@gamely/gly-engine-micro 0.2.5 → 0.2.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_1438 = nil
|
|
3
|
+
local source_engine_api_system_app_144a = nil
|
|
4
|
+
local source_engine_api_system_key_1455 = nil
|
|
5
|
+
local source_engine_api_math_basic_1460 = nil
|
|
6
|
+
local source_engine_api_math_clib_146b = nil
|
|
7
|
+
local source_engine_api_math_random_1476 = nil
|
|
8
|
+
local source_engine_api_data_array_1481 = nil
|
|
9
|
+
local source_engine_api_draw_text_148c = nil
|
|
10
|
+
local source_engine_api_draw_poly_1497 = nil
|
|
11
|
+
local source_engine_api_raw_memory_14a2 = nil
|
|
12
|
+
local source_engine_api_system_color_14b4 = nil
|
|
13
|
+
local source_shared_var_object_std_14bf = nil
|
|
14
|
+
local source_shared_string_eval_code_14d1 = nil
|
|
15
|
+
local source_shared_functional_decorator_1856 = nil
|
|
16
|
+
local function main_142f()
|
|
17
|
+
local version = source_version_1438()
|
|
18
|
+
local engine_game = source_engine_api_system_app_144a()
|
|
19
|
+
local engine_key = source_engine_api_system_key_1455()
|
|
20
|
+
local engine_math = source_engine_api_math_basic_1460()
|
|
21
|
+
local engine_math_clib = source_engine_api_math_clib_146b()
|
|
22
|
+
local engine_math_random = source_engine_api_math_random_1476()
|
|
23
|
+
local engine_array = source_engine_api_data_array_1481()
|
|
24
|
+
local engine_api_draw_text = source_engine_api_draw_text_148c()
|
|
25
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_1497()
|
|
26
|
+
local engine_raw_memory = source_engine_api_raw_memory_14a2()
|
|
27
|
+
local color = source_engine_api_system_color_14b4()
|
|
28
|
+
local std = source_shared_var_object_std_14bf()
|
|
29
|
+
local eval_code = source_shared_string_eval_code_14d1()
|
|
30
30
|
local f=function(a,b)end
|
|
31
31
|
local engine={keyboard=f}
|
|
32
32
|
local application={
|
|
@@ -141,12 +141,12 @@ version=version
|
|
|
141
141
|
}
|
|
142
142
|
return P
|
|
143
143
|
end
|
|
144
|
-
|
|
145
|
-
return '0.2.
|
|
144
|
+
source_version_1438 = function()
|
|
145
|
+
return '0.2.6'
|
|
146
146
|
end
|
|
147
147
|
--
|
|
148
|
-
|
|
149
|
-
local util_decorator =
|
|
148
|
+
source_engine_api_system_app_144a = function()
|
|
149
|
+
local util_decorator = source_shared_functional_decorator_1856()
|
|
150
150
|
local function reset(std, engine)
|
|
151
151
|
if std.node then
|
|
152
152
|
std.bus.emit('exit')
|
|
@@ -186,7 +186,7 @@ install=install
|
|
|
186
186
|
return P
|
|
187
187
|
end
|
|
188
188
|
--
|
|
189
|
-
|
|
189
|
+
source_engine_api_system_key_1455 = function()
|
|
190
190
|
local function real_key(std, engine, rkey, rvalue)
|
|
191
191
|
local value = rvalue == 1 or rvalue == true
|
|
192
192
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -223,7 +223,7 @@ install = install
|
|
|
223
223
|
return P
|
|
224
224
|
end
|
|
225
225
|
--
|
|
226
|
-
|
|
226
|
+
source_engine_api_math_basic_1460 = function()
|
|
227
227
|
local function abs(value)
|
|
228
228
|
if value < 0 then
|
|
229
229
|
return -value
|
|
@@ -322,7 +322,7 @@ install = install
|
|
|
322
322
|
return P
|
|
323
323
|
end
|
|
324
324
|
--
|
|
325
|
-
|
|
325
|
+
source_engine_api_math_clib_146b = function()
|
|
326
326
|
local function install(std)
|
|
327
327
|
assert(math and (1/2 ~= 0))
|
|
328
328
|
std.math = std.math or {}
|
|
@@ -358,7 +358,7 @@ install = install
|
|
|
358
358
|
return P
|
|
359
359
|
end
|
|
360
360
|
--
|
|
361
|
-
|
|
361
|
+
source_engine_api_math_random_1476 = function()
|
|
362
362
|
local function install(std)
|
|
363
363
|
assert(math and (1/2 ~= 0))
|
|
364
364
|
std.math = std.math or {}
|
|
@@ -375,8 +375,8 @@ install = install
|
|
|
375
375
|
return P
|
|
376
376
|
end
|
|
377
377
|
--
|
|
378
|
-
|
|
379
|
-
local util_decorator =
|
|
378
|
+
source_engine_api_data_array_1481 = function()
|
|
379
|
+
local util_decorator = source_shared_functional_decorator_1856()
|
|
380
380
|
local function array_map(array, func)
|
|
381
381
|
local res = {}
|
|
382
382
|
local index = 1
|
|
@@ -537,8 +537,8 @@ install = install
|
|
|
537
537
|
return P
|
|
538
538
|
end
|
|
539
539
|
--
|
|
540
|
-
|
|
541
|
-
local util_decorator =
|
|
540
|
+
source_engine_api_draw_text_148c = function()
|
|
541
|
+
local util_decorator = source_shared_functional_decorator_1856()
|
|
542
542
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
543
543
|
size = size or 2
|
|
544
544
|
local hem = engine.current.data.width / 80
|
|
@@ -567,7 +567,7 @@ install=install
|
|
|
567
567
|
return P
|
|
568
568
|
end
|
|
569
569
|
--
|
|
570
|
-
|
|
570
|
+
source_engine_api_draw_poly_1497 = function()
|
|
571
571
|
local function decorator_poo(object, func)
|
|
572
572
|
if not object or not func then return func end
|
|
573
573
|
return function(a, b, c, d)
|
|
@@ -674,7 +674,7 @@ install=install
|
|
|
674
674
|
return P
|
|
675
675
|
end
|
|
676
676
|
--
|
|
677
|
-
|
|
677
|
+
source_engine_api_raw_memory_14a2 = function()
|
|
678
678
|
local memory_dict_unload = {}
|
|
679
679
|
local memory_dict = {}
|
|
680
680
|
local memory_list = {}
|
|
@@ -729,7 +729,7 @@ install=install
|
|
|
729
729
|
return P
|
|
730
730
|
end
|
|
731
731
|
--
|
|
732
|
-
|
|
732
|
+
source_engine_api_system_color_14b4 = function()
|
|
733
733
|
local function install(std)
|
|
734
734
|
std.color = std.color or {}
|
|
735
735
|
std.color.white = 0xFFFFFFFF
|
|
@@ -764,7 +764,7 @@ install = install
|
|
|
764
764
|
return P
|
|
765
765
|
end
|
|
766
766
|
--
|
|
767
|
-
|
|
767
|
+
source_shared_var_object_std_14bf = function()
|
|
768
768
|
local P = {
|
|
769
769
|
milis = 0,
|
|
770
770
|
delta = 0,
|
|
@@ -832,7 +832,7 @@ any=false
|
|
|
832
832
|
return P;
|
|
833
833
|
end
|
|
834
834
|
--
|
|
835
|
-
|
|
835
|
+
source_shared_string_eval_code_14d1 = function()
|
|
836
836
|
local function script(src)
|
|
837
837
|
local loader = loadstring or load
|
|
838
838
|
if not loader then
|
|
@@ -853,7 +853,7 @@ script = script,
|
|
|
853
853
|
return P
|
|
854
854
|
end
|
|
855
855
|
--
|
|
856
|
-
|
|
856
|
+
source_shared_functional_decorator_1856 = function()
|
|
857
857
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
858
858
|
return function (a, b, c, d, e, f)
|
|
859
859
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -911,4 +911,4 @@ prefix1_t = table_prefix1
|
|
|
911
911
|
return P
|
|
912
912
|
end
|
|
913
913
|
--
|
|
914
|
-
return
|
|
914
|
+
return main_142f()
|