@gamely/gly-engine-micro 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/main.lua +43 -42
  2. package/package.json +9 -2
  3. package/README.md +0 -3
package/dist/main.lua CHANGED
@@ -1,28 +1,28 @@
1
1
  local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
2
- local source_version_55e1a30cf5b0 = nil
3
- local source_engine_api_system_app_55e1a3106da0 = nil
4
- local source_engine_api_system_key_55e1a30cb790 = nil
5
- local source_engine_api_system_math_55e1a30f2ca0 = nil
6
- local source_engine_api_data_array_55e1a3118770 = nil
7
- local source_engine_api_draw_text_55e1a3117cb0 = nil
8
- local source_engine_api_draw_poly_55e1a3125030 = nil
9
- local source_engine_api_raw_memory_55e1a312a370 = nil
10
- local source_engine_api_system_color_55e1a311eb20 = nil
11
- local source_shared_var_object_std_55e1a3130f10 = nil
12
- local source_shared_string_eval_code_55e1a310d160 = nil
13
- local source_shared_functional_decorator_55e1a312bf80 = nil
14
- local function main_55e1a312c2b0()
15
- local version = source_version_55e1a30cf5b0()
16
- local engine_game = source_engine_api_system_app_55e1a3106da0()
17
- local engine_key = source_engine_api_system_key_55e1a30cb790()
18
- local engine_math = source_engine_api_system_math_55e1a30f2ca0()
19
- local engine_array = source_engine_api_data_array_55e1a3118770()
20
- local engine_api_draw_text = source_engine_api_draw_text_55e1a3117cb0()
21
- local engine_api_draw_poly = source_engine_api_draw_poly_55e1a3125030()
22
- local engine_raw_memory = source_engine_api_raw_memory_55e1a312a370()
23
- local color = source_engine_api_system_color_55e1a311eb20()
24
- local std = source_shared_var_object_std_55e1a3130f10()
25
- local eval_code = source_shared_string_eval_code_55e1a310d160()
2
+ local source_version_608 = nil
3
+ local source_engine_api_system_app_61a = nil
4
+ local source_engine_api_system_key_625 = nil
5
+ local source_engine_api_system_math_630 = nil
6
+ local source_engine_api_data_array_63b = nil
7
+ local source_engine_api_draw_text_646 = nil
8
+ local source_engine_api_draw_poly_651 = nil
9
+ local source_engine_api_raw_memory_65c = nil
10
+ local source_engine_api_system_color_66e = nil
11
+ local source_shared_var_object_std_679 = nil
12
+ local source_shared_string_eval_code_68b = nil
13
+ local source_shared_functional_decorator_9db = nil
14
+ local function main_5ff()
15
+ local version = source_version_608()
16
+ local engine_game = source_engine_api_system_app_61a()
17
+ local engine_key = source_engine_api_system_key_625()
18
+ local engine_math = source_engine_api_system_math_630()
19
+ local engine_array = source_engine_api_data_array_63b()
20
+ local engine_api_draw_text = source_engine_api_draw_text_646()
21
+ local engine_api_draw_poly = source_engine_api_draw_poly_651()
22
+ local engine_raw_memory = source_engine_api_raw_memory_65c()
23
+ local color = source_engine_api_system_color_66e()
24
+ local std = source_shared_var_object_std_679()
25
+ local eval_code = source_shared_string_eval_code_68b()
26
26
  local f=function(a,b)end
27
27
  local engine={keyboard=f}
28
28
  local application={
@@ -94,7 +94,6 @@ std.draw.color=native_draw_color
94
94
  std.draw.font=native_draw_font
95
95
  std.draw.rect=native_draw_rect
96
96
  std.draw.line=native_draw_line
97
- std.draw.image=native_image_draw
98
97
  std.image.load=native_image_load
99
98
  std.image.draw=native_image_draw
100
99
  std.text.print=native_text_print
@@ -131,12 +130,12 @@ version=version
131
130
  }
132
131
  return P
133
132
  end
134
- source_version_55e1a30cf5b0 = function()
135
- return '0.1.2'
133
+ source_version_608 = function()
134
+ return '0.1.3'
136
135
  end
137
136
  --
138
- source_engine_api_system_app_55e1a3106da0 = function()
139
- local util_decorator = source_shared_functional_decorator_55e1a312bf80()
137
+ source_engine_api_system_app_61a = function()
138
+ local util_decorator = source_shared_functional_decorator_9db()
140
139
  local function reset(std, engine)
141
140
  if std.node then
142
141
  std.bus.emit('exit')
@@ -176,7 +175,7 @@ install=install
176
175
  return P
177
176
  end
178
177
  --
179
- source_engine_api_system_key_55e1a30cb790 = function()
178
+ source_engine_api_system_key_625 = function()
180
179
  local function real_key(std, engine, rkey, rvalue)
181
180
  local value = rvalue == 1 or rvalue == true
182
181
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -213,7 +212,7 @@ install = install
213
212
  return P
214
213
  end
215
214
  --
216
- source_engine_api_system_math_55e1a30f2ca0 = function()
215
+ source_engine_api_system_math_630 = function()
217
216
  local function abs(value)
218
217
  if value < 0 then
219
218
  return -value
@@ -388,8 +387,8 @@ install = install_clib_random
388
387
  return P;
389
388
  end
390
389
  --
391
- source_engine_api_data_array_55e1a3118770 = function()
392
- local util_decorator = source_shared_functional_decorator_55e1a312bf80()
390
+ source_engine_api_data_array_63b = function()
391
+ local util_decorator = source_shared_functional_decorator_9db()
393
392
  local function array_map(array, func)
394
393
  local res = {}
395
394
  local index = 1
@@ -550,8 +549,8 @@ install = install
550
549
  return P
551
550
  end
552
551
  --
553
- source_engine_api_draw_text_55e1a3117cb0 = function()
554
- local util_decorator = source_shared_functional_decorator_55e1a312bf80()
552
+ source_engine_api_draw_text_646 = function()
553
+ local util_decorator = source_shared_functional_decorator_9db()
555
554
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
556
555
  size = size or 2
557
556
  local hem = engine.current.data.width / 80
@@ -578,7 +577,7 @@ install=install
578
577
  return P
579
578
  end
580
579
  --
581
- source_engine_api_draw_poly_55e1a3125030 = function()
580
+ source_engine_api_draw_poly_651 = function()
582
581
  local function decorator_poo(object, func)
583
582
  if not object or not func then return func end
584
583
  return function(a, b, c, d)
@@ -685,7 +684,7 @@ install=install
685
684
  return P
686
685
  end
687
686
  --
688
- source_engine_api_raw_memory_55e1a312a370 = function()
687
+ source_engine_api_raw_memory_65c = function()
689
688
  local memory_dict_unload = {}
690
689
  local memory_dict = {}
691
690
  local memory_list = {}
@@ -740,7 +739,7 @@ install=install
740
739
  return P
741
740
  end
742
741
  --
743
- source_engine_api_system_color_55e1a311eb20 = function()
742
+ source_engine_api_system_color_66e = function()
744
743
  local function install(std)
745
744
  std.color = std.color or {}
746
745
  std.color.white = 0xFFFFFFFF
@@ -775,12 +774,14 @@ install = install
775
774
  return P
776
775
  end
777
776
  --
778
- source_shared_var_object_std_55e1a3130f10 = function()
777
+ source_shared_var_object_std_679 = function()
779
778
  local P = {
780
779
  milis = 0,
781
780
  delta = 0,
782
781
  math = {
783
782
  },
783
+ media = {
784
+ },
784
785
  draw = {
785
786
  image = function() end,
786
787
  clear = function () end,
@@ -841,7 +842,7 @@ any=false
841
842
  return P;
842
843
  end
843
844
  --
844
- source_shared_string_eval_code_55e1a310d160 = function()
845
+ source_shared_string_eval_code_68b = function()
845
846
  local function script(src)
846
847
  local loader = loadstring or load
847
848
  if not loader then
@@ -862,7 +863,7 @@ script = script,
862
863
  return P
863
864
  end
864
865
  --
865
- source_shared_functional_decorator_55e1a312bf80 = function()
866
+ source_shared_functional_decorator_9db = function()
866
867
  local function decorator_prefix3(zig, zag, zom, func)
867
868
  return function (a, b, c, d, e, f)
868
869
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -920,4 +921,4 @@ prefix1_t = table_prefix1
920
921
  return P
921
922
  end
922
923
  --
923
- return main_55e1a312c2b0()
924
+ return main_5ff()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-micro",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",
@@ -15,5 +15,12 @@
15
15
  "game engine",
16
16
  "game",
17
17
  "engine"
18
- ]
18
+ ],
19
+ "scripts": {
20
+ "step1": "cd ../.. && rm -Rf dist && mkdir -p ./dist/types",
21
+ "step2": "cd ../.. && node cli.js build --core micro --bundler --outdir dist/dist",
22
+ "step3": "cd ../.. && node cli.js meta source/cli/main.lua --infile npm/gly-engine-micro/package.json --outfile dist/package.json",
23
+ "step4": "cd ../.. && echo \"declare module '@gamely/gly-engine-micro' {\n const content: string;\n export default content;\n}\" > dist/types/main.d.ts",
24
+ "build": "npm run step1 && npm run step2 && npm run step3 && npm run step4"
25
+ }
19
26
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- <div align="center">
2
- <h1>:mechanical_arm:<br>GLY Engine<br><sup><sub>powered by <a href="https://gamely.com.br" target="_blank">gamely.com.br</a></sub></sup></h1>
3
- </div>