@gamely/gly-engine-micro 0.2.1 → 0.2.2

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 (2) hide show
  1. package/dist/main.lua +48 -47
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,32 +1,32 @@
1
1
  local math = ((function() local x, y = pcall(require, 'math'); return x and y end)()) or _G.math
2
- local source_version_13d4 = nil
3
- local source_engine_api_system_app_13e6 = nil
4
- local source_engine_api_system_key_13f1 = nil
5
- local source_engine_api_math_basic_13fc = nil
6
- local source_engine_api_math_clib_1407 = nil
7
- local source_engine_api_math_random_1412 = nil
8
- local source_engine_api_data_array_141d = nil
9
- local source_engine_api_draw_text_1428 = nil
10
- local source_engine_api_draw_poly_1433 = nil
11
- local source_engine_api_raw_memory_143e = nil
12
- local source_engine_api_system_color_1450 = nil
13
- local source_shared_var_object_std_145b = nil
14
- local source_shared_string_eval_code_146d = nil
15
- local source_shared_functional_decorator_17d2 = nil
16
- local function main_13cb()
17
- local version = source_version_13d4()
18
- local engine_game = source_engine_api_system_app_13e6()
19
- local engine_key = source_engine_api_system_key_13f1()
20
- local engine_math = source_engine_api_math_basic_13fc()
21
- local engine_math_clib = source_engine_api_math_clib_1407()
22
- local engine_math_random = source_engine_api_math_random_1412()
23
- local engine_array = source_engine_api_data_array_141d()
24
- local engine_api_draw_text = source_engine_api_draw_text_1428()
25
- local engine_api_draw_poly = source_engine_api_draw_poly_1433()
26
- local engine_raw_memory = source_engine_api_raw_memory_143e()
27
- local color = source_engine_api_system_color_1450()
28
- local std = source_shared_var_object_std_145b()
29
- local eval_code = source_shared_string_eval_code_146d()
2
+ local source_version_13d6 = nil
3
+ local source_engine_api_system_app_13e8 = nil
4
+ local source_engine_api_system_key_13f3 = nil
5
+ local source_engine_api_math_basic_13fe = nil
6
+ local source_engine_api_math_clib_1409 = nil
7
+ local source_engine_api_math_random_1414 = nil
8
+ local source_engine_api_data_array_141f = nil
9
+ local source_engine_api_draw_text_142a = nil
10
+ local source_engine_api_draw_poly_1435 = nil
11
+ local source_engine_api_raw_memory_1440 = nil
12
+ local source_engine_api_system_color_1452 = nil
13
+ local source_shared_var_object_std_145d = nil
14
+ local source_shared_string_eval_code_146f = nil
15
+ local source_shared_functional_decorator_17db = nil
16
+ local function main_13cd()
17
+ local version = source_version_13d6()
18
+ local engine_game = source_engine_api_system_app_13e8()
19
+ local engine_key = source_engine_api_system_key_13f3()
20
+ local engine_math = source_engine_api_math_basic_13fe()
21
+ local engine_math_clib = source_engine_api_math_clib_1409()
22
+ local engine_math_random = source_engine_api_math_random_1414()
23
+ local engine_array = source_engine_api_data_array_141f()
24
+ local engine_api_draw_text = source_engine_api_draw_text_142a()
25
+ local engine_api_draw_poly = source_engine_api_draw_poly_1435()
26
+ local engine_raw_memory = source_engine_api_raw_memory_1440()
27
+ local color = source_engine_api_system_color_1452()
28
+ local std = source_shared_var_object_std_145d()
29
+ local eval_code = source_shared_string_eval_code_146f()
30
30
  local f=function(a,b)end
31
31
  local engine={keyboard=f}
32
32
  local application={
@@ -97,6 +97,7 @@ script.config=application.config
97
97
  application=script
98
98
  std.draw.color=native_draw_color
99
99
  std.draw.font=native_draw_font
100
+ std.draw.rect2=native_draw_rect2 or native_draw_rect
100
101
  std.draw.rect=native_draw_rect
101
102
  std.draw.line=native_draw_line
102
103
  std.image.load=native_image_load
@@ -137,12 +138,12 @@ version=version
137
138
  }
138
139
  return P
139
140
  end
140
- source_version_13d4 = function()
141
- return '0.2.1'
141
+ source_version_13d6 = function()
142
+ return '0.2.2'
142
143
  end
143
144
  --
144
- source_engine_api_system_app_13e6 = function()
145
- local util_decorator = source_shared_functional_decorator_17d2()
145
+ source_engine_api_system_app_13e8 = function()
146
+ local util_decorator = source_shared_functional_decorator_17db()
146
147
  local function reset(std, engine)
147
148
  if std.node then
148
149
  std.bus.emit('exit')
@@ -182,7 +183,7 @@ install=install
182
183
  return P
183
184
  end
184
185
  --
185
- source_engine_api_system_key_13f1 = function()
186
+ source_engine_api_system_key_13f3 = function()
186
187
  local function real_key(std, engine, rkey, rvalue)
187
188
  local value = rvalue == 1 or rvalue == true
188
189
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -219,7 +220,7 @@ install = install
219
220
  return P
220
221
  end
221
222
  --
222
- source_engine_api_math_basic_13fc = function()
223
+ source_engine_api_math_basic_13fe = function()
223
224
  local function abs(value)
224
225
  if value < 0 then
225
226
  return -value
@@ -318,7 +319,7 @@ install = install
318
319
  return P
319
320
  end
320
321
  --
321
- source_engine_api_math_clib_1407 = function()
322
+ source_engine_api_math_clib_1409 = function()
322
323
  local function install(std)
323
324
  assert(math and (1/2 ~= 0))
324
325
  std.math = std.math or {}
@@ -354,7 +355,7 @@ install = install
354
355
  return P
355
356
  end
356
357
  --
357
- source_engine_api_math_random_1412 = function()
358
+ source_engine_api_math_random_1414 = function()
358
359
  local function install(std)
359
360
  assert(math and (1/2 ~= 0))
360
361
  std.math = std.math or {}
@@ -371,8 +372,8 @@ install = install
371
372
  return P
372
373
  end
373
374
  --
374
- source_engine_api_data_array_141d = function()
375
- local util_decorator = source_shared_functional_decorator_17d2()
375
+ source_engine_api_data_array_141f = function()
376
+ local util_decorator = source_shared_functional_decorator_17db()
376
377
  local function array_map(array, func)
377
378
  local res = {}
378
379
  local index = 1
@@ -533,8 +534,8 @@ install = install
533
534
  return P
534
535
  end
535
536
  --
536
- source_engine_api_draw_text_1428 = function()
537
- local util_decorator = source_shared_functional_decorator_17d2()
537
+ source_engine_api_draw_text_142a = function()
538
+ local util_decorator = source_shared_functional_decorator_17db()
538
539
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
539
540
  size = size or 2
540
541
  local hem = engine.current.data.width / 80
@@ -563,7 +564,7 @@ install=install
563
564
  return P
564
565
  end
565
566
  --
566
- source_engine_api_draw_poly_1433 = function()
567
+ source_engine_api_draw_poly_1435 = function()
567
568
  local function decorator_poo(object, func)
568
569
  if not object or not func then return func end
569
570
  return function(a, b, c, d)
@@ -670,7 +671,7 @@ install=install
670
671
  return P
671
672
  end
672
673
  --
673
- source_engine_api_raw_memory_143e = function()
674
+ source_engine_api_raw_memory_1440 = function()
674
675
  local memory_dict_unload = {}
675
676
  local memory_dict = {}
676
677
  local memory_list = {}
@@ -725,7 +726,7 @@ install=install
725
726
  return P
726
727
  end
727
728
  --
728
- source_engine_api_system_color_1450 = function()
729
+ source_engine_api_system_color_1452 = function()
729
730
  local function install(std)
730
731
  std.color = std.color or {}
731
732
  std.color.white = 0xFFFFFFFF
@@ -760,7 +761,7 @@ install = install
760
761
  return P
761
762
  end
762
763
  --
763
- source_shared_var_object_std_145b = function()
764
+ source_shared_var_object_std_145d = function()
764
765
  local P = {
765
766
  milis = 0,
766
767
  delta = 0,
@@ -828,7 +829,7 @@ any=false
828
829
  return P;
829
830
  end
830
831
  --
831
- source_shared_string_eval_code_146d = function()
832
+ source_shared_string_eval_code_146f = function()
832
833
  local function script(src)
833
834
  local loader = loadstring or load
834
835
  if not loader then
@@ -849,7 +850,7 @@ script = script,
849
850
  return P
850
851
  end
851
852
  --
852
- source_shared_functional_decorator_17d2 = function()
853
+ source_shared_functional_decorator_17db = function()
853
854
  local function decorator_prefix3(zig, zag, zom, func)
854
855
  return function (a, b, c, d, e, f)
855
856
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -907,4 +908,4 @@ prefix1_t = table_prefix1
907
908
  return P
908
909
  end
909
910
  --
910
- return main_13cb()
911
+ return main_13cd()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-micro",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",