@gamely/gly-engine-micro 0.1.4 → 0.1.6
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.
- package/dist/main.lua +47 -47
- 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
|
|
3
|
-
local
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local
|
|
10
|
-
local
|
|
11
|
-
local
|
|
12
|
-
local
|
|
13
|
-
local
|
|
14
|
-
local
|
|
15
|
-
local
|
|
16
|
-
local function
|
|
17
|
-
local version =
|
|
18
|
-
local engine_game =
|
|
19
|
-
local engine_key =
|
|
20
|
-
local engine_math =
|
|
21
|
-
local engine_math_clib =
|
|
22
|
-
local engine_math_random =
|
|
23
|
-
local engine_array =
|
|
24
|
-
local engine_api_draw_text =
|
|
25
|
-
local engine_api_draw_poly =
|
|
26
|
-
local engine_raw_memory =
|
|
27
|
-
local color =
|
|
28
|
-
local std =
|
|
29
|
-
local eval_code =
|
|
2
|
+
local source_version_13ea = nil
|
|
3
|
+
local source_engine_api_system_app_13fc = nil
|
|
4
|
+
local source_engine_api_system_key_1407 = nil
|
|
5
|
+
local source_engine_api_math_basic_1412 = nil
|
|
6
|
+
local source_engine_api_math_clib_141d = nil
|
|
7
|
+
local source_engine_api_math_random_1428 = nil
|
|
8
|
+
local source_engine_api_data_array_1433 = nil
|
|
9
|
+
local source_engine_api_draw_text_143e = nil
|
|
10
|
+
local source_engine_api_draw_poly_1449 = nil
|
|
11
|
+
local source_engine_api_raw_memory_1454 = nil
|
|
12
|
+
local source_engine_api_system_color_1466 = nil
|
|
13
|
+
local source_shared_var_object_std_1471 = nil
|
|
14
|
+
local source_shared_string_eval_code_1483 = nil
|
|
15
|
+
local source_shared_functional_decorator_17e1 = nil
|
|
16
|
+
local function main_13e1()
|
|
17
|
+
local version = source_version_13ea()
|
|
18
|
+
local engine_game = source_engine_api_system_app_13fc()
|
|
19
|
+
local engine_key = source_engine_api_system_key_1407()
|
|
20
|
+
local engine_math = source_engine_api_math_basic_1412()
|
|
21
|
+
local engine_math_clib = source_engine_api_math_clib_141d()
|
|
22
|
+
local engine_math_random = source_engine_api_math_random_1428()
|
|
23
|
+
local engine_array = source_engine_api_data_array_1433()
|
|
24
|
+
local engine_api_draw_text = source_engine_api_draw_text_143e()
|
|
25
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_1449()
|
|
26
|
+
local engine_raw_memory = source_engine_api_raw_memory_1454()
|
|
27
|
+
local color = source_engine_api_system_color_1466()
|
|
28
|
+
local std = source_shared_var_object_std_1471()
|
|
29
|
+
local eval_code = source_shared_string_eval_code_1483()
|
|
30
30
|
local f=function(a,b)end
|
|
31
31
|
local engine={keyboard=f}
|
|
32
32
|
local application={
|
|
@@ -136,12 +136,12 @@ version=version
|
|
|
136
136
|
}
|
|
137
137
|
return P
|
|
138
138
|
end
|
|
139
|
-
|
|
140
|
-
return '0.1.
|
|
139
|
+
source_version_13ea = function()
|
|
140
|
+
return '0.1.6'
|
|
141
141
|
end
|
|
142
142
|
--
|
|
143
|
-
|
|
144
|
-
local util_decorator =
|
|
143
|
+
source_engine_api_system_app_13fc = function()
|
|
144
|
+
local util_decorator = source_shared_functional_decorator_17e1()
|
|
145
145
|
local function reset(std, engine)
|
|
146
146
|
if std.node then
|
|
147
147
|
std.bus.emit('exit')
|
|
@@ -181,7 +181,7 @@ install=install
|
|
|
181
181
|
return P
|
|
182
182
|
end
|
|
183
183
|
--
|
|
184
|
-
|
|
184
|
+
source_engine_api_system_key_1407 = function()
|
|
185
185
|
local function real_key(std, engine, rkey, rvalue)
|
|
186
186
|
local value = rvalue == 1 or rvalue == true
|
|
187
187
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -218,7 +218,7 @@ install = install
|
|
|
218
218
|
return P
|
|
219
219
|
end
|
|
220
220
|
--
|
|
221
|
-
|
|
221
|
+
source_engine_api_math_basic_1412 = function()
|
|
222
222
|
local function abs(value)
|
|
223
223
|
if value < 0 then
|
|
224
224
|
return -value
|
|
@@ -317,7 +317,7 @@ install = install
|
|
|
317
317
|
return P
|
|
318
318
|
end
|
|
319
319
|
--
|
|
320
|
-
|
|
320
|
+
source_engine_api_math_clib_141d = function()
|
|
321
321
|
local function install(std)
|
|
322
322
|
assert(math and (1/2 ~= 0))
|
|
323
323
|
std.math = std.math or {}
|
|
@@ -353,7 +353,7 @@ install = install
|
|
|
353
353
|
return P
|
|
354
354
|
end
|
|
355
355
|
--
|
|
356
|
-
|
|
356
|
+
source_engine_api_math_random_1428 = function()
|
|
357
357
|
local function install(std)
|
|
358
358
|
assert(math and (1/2 ~= 0))
|
|
359
359
|
std.math = std.math or {}
|
|
@@ -370,8 +370,8 @@ install = install
|
|
|
370
370
|
return P
|
|
371
371
|
end
|
|
372
372
|
--
|
|
373
|
-
|
|
374
|
-
local util_decorator =
|
|
373
|
+
source_engine_api_data_array_1433 = function()
|
|
374
|
+
local util_decorator = source_shared_functional_decorator_17e1()
|
|
375
375
|
local function array_map(array, func)
|
|
376
376
|
local res = {}
|
|
377
377
|
local index = 1
|
|
@@ -532,8 +532,8 @@ install = install
|
|
|
532
532
|
return P
|
|
533
533
|
end
|
|
534
534
|
--
|
|
535
|
-
|
|
536
|
-
local util_decorator =
|
|
535
|
+
source_engine_api_draw_text_143e = function()
|
|
536
|
+
local util_decorator = source_shared_functional_decorator_17e1()
|
|
537
537
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
538
538
|
size = size or 2
|
|
539
539
|
local hem = engine.current.data.width / 80
|
|
@@ -562,7 +562,7 @@ install=install
|
|
|
562
562
|
return P
|
|
563
563
|
end
|
|
564
564
|
--
|
|
565
|
-
|
|
565
|
+
source_engine_api_draw_poly_1449 = function()
|
|
566
566
|
local function decorator_poo(object, func)
|
|
567
567
|
if not object or not func then return func end
|
|
568
568
|
return function(a, b, c, d)
|
|
@@ -669,7 +669,7 @@ install=install
|
|
|
669
669
|
return P
|
|
670
670
|
end
|
|
671
671
|
--
|
|
672
|
-
|
|
672
|
+
source_engine_api_raw_memory_1454 = function()
|
|
673
673
|
local memory_dict_unload = {}
|
|
674
674
|
local memory_dict = {}
|
|
675
675
|
local memory_list = {}
|
|
@@ -724,7 +724,7 @@ install=install
|
|
|
724
724
|
return P
|
|
725
725
|
end
|
|
726
726
|
--
|
|
727
|
-
|
|
727
|
+
source_engine_api_system_color_1466 = function()
|
|
728
728
|
local function install(std)
|
|
729
729
|
std.color = std.color or {}
|
|
730
730
|
std.color.white = 0xFFFFFFFF
|
|
@@ -759,7 +759,7 @@ install = install
|
|
|
759
759
|
return P
|
|
760
760
|
end
|
|
761
761
|
--
|
|
762
|
-
|
|
762
|
+
source_shared_var_object_std_1471 = function()
|
|
763
763
|
local P = {
|
|
764
764
|
milis = 0,
|
|
765
765
|
delta = 0,
|
|
@@ -827,7 +827,7 @@ any=false
|
|
|
827
827
|
return P;
|
|
828
828
|
end
|
|
829
829
|
--
|
|
830
|
-
|
|
830
|
+
source_shared_string_eval_code_1483 = function()
|
|
831
831
|
local function script(src)
|
|
832
832
|
local loader = loadstring or load
|
|
833
833
|
if not loader then
|
|
@@ -848,7 +848,7 @@ script = script,
|
|
|
848
848
|
return P
|
|
849
849
|
end
|
|
850
850
|
--
|
|
851
|
-
|
|
851
|
+
source_shared_functional_decorator_17e1 = function()
|
|
852
852
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
853
853
|
return function (a, b, c, d, e, f)
|
|
854
854
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -906,4 +906,4 @@ prefix1_t = table_prefix1
|
|
|
906
906
|
return P
|
|
907
907
|
end
|
|
908
908
|
--
|
|
909
|
-
return
|
|
909
|
+
return main_13e1()
|