@gamely/gly-engine-nano 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 +27 -27
- package/package.json +1 -1
package/dist/main.lua
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
local
|
|
2
|
-
local
|
|
3
|
-
local
|
|
4
|
-
local
|
|
5
|
-
local
|
|
6
|
-
local
|
|
7
|
-
local
|
|
8
|
-
local
|
|
9
|
-
local function
|
|
10
|
-
local version =
|
|
11
|
-
local engine_key =
|
|
12
|
-
local engine_api_draw_text =
|
|
13
|
-
local engine_api_draw_poly =
|
|
14
|
-
local color =
|
|
15
|
-
local std =
|
|
16
|
-
local eval_code =
|
|
1
|
+
local source_version_c52 = nil
|
|
2
|
+
local source_engine_api_system_key_c64 = nil
|
|
3
|
+
local source_engine_api_draw_text_c6f = nil
|
|
4
|
+
local source_engine_api_draw_poly_c7a = nil
|
|
5
|
+
local source_engine_api_system_color_c8c = nil
|
|
6
|
+
local source_shared_var_object_std_c97 = nil
|
|
7
|
+
local source_shared_string_eval_code_ca9 = nil
|
|
8
|
+
local source_shared_functional_decorator_10fd = nil
|
|
9
|
+
local function main_c49()
|
|
10
|
+
local version = source_version_c52()
|
|
11
|
+
local engine_key = source_engine_api_system_key_c64()
|
|
12
|
+
local engine_api_draw_text = source_engine_api_draw_text_c6f()
|
|
13
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_c7a()
|
|
14
|
+
local color = source_engine_api_system_color_c8c()
|
|
15
|
+
local std = source_shared_var_object_std_c97()
|
|
16
|
+
local eval_code = source_shared_string_eval_code_ca9()
|
|
17
17
|
local f=function(a,b)end
|
|
18
18
|
local engine={keyboard=f}
|
|
19
19
|
local application={
|
|
@@ -115,11 +115,11 @@ version=version
|
|
|
115
115
|
}
|
|
116
116
|
return P
|
|
117
117
|
end
|
|
118
|
-
|
|
119
|
-
return '0.2.
|
|
118
|
+
source_version_c52 = function()
|
|
119
|
+
return '0.2.6'
|
|
120
120
|
end
|
|
121
121
|
--
|
|
122
|
-
|
|
122
|
+
source_engine_api_system_key_c64 = function()
|
|
123
123
|
local function real_key(std, engine, rkey, rvalue)
|
|
124
124
|
local value = rvalue == 1 or rvalue == true
|
|
125
125
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -156,8 +156,8 @@ install = install
|
|
|
156
156
|
return P
|
|
157
157
|
end
|
|
158
158
|
--
|
|
159
|
-
|
|
160
|
-
local util_decorator =
|
|
159
|
+
source_engine_api_draw_text_c6f = function()
|
|
160
|
+
local util_decorator = source_shared_functional_decorator_10fd()
|
|
161
161
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
162
162
|
size = size or 2
|
|
163
163
|
local hem = engine.current.data.width / 80
|
|
@@ -186,7 +186,7 @@ install=install
|
|
|
186
186
|
return P
|
|
187
187
|
end
|
|
188
188
|
--
|
|
189
|
-
|
|
189
|
+
source_engine_api_draw_poly_c7a = function()
|
|
190
190
|
local function decorator_poo(object, func)
|
|
191
191
|
if not object or not func then return func end
|
|
192
192
|
return function(a, b, c, d)
|
|
@@ -293,7 +293,7 @@ install=install
|
|
|
293
293
|
return P
|
|
294
294
|
end
|
|
295
295
|
--
|
|
296
|
-
|
|
296
|
+
source_engine_api_system_color_c8c = function()
|
|
297
297
|
local function install(std)
|
|
298
298
|
std.color = std.color or {}
|
|
299
299
|
std.color.white = 0xFFFFFFFF
|
|
@@ -328,7 +328,7 @@ install = install
|
|
|
328
328
|
return P
|
|
329
329
|
end
|
|
330
330
|
--
|
|
331
|
-
|
|
331
|
+
source_shared_var_object_std_c97 = function()
|
|
332
332
|
local P = {
|
|
333
333
|
milis = 0,
|
|
334
334
|
delta = 0,
|
|
@@ -396,7 +396,7 @@ any=false
|
|
|
396
396
|
return P;
|
|
397
397
|
end
|
|
398
398
|
--
|
|
399
|
-
|
|
399
|
+
source_shared_string_eval_code_ca9 = function()
|
|
400
400
|
local function script(src)
|
|
401
401
|
local loader = loadstring or load
|
|
402
402
|
if not loader then
|
|
@@ -417,7 +417,7 @@ script = script,
|
|
|
417
417
|
return P
|
|
418
418
|
end
|
|
419
419
|
--
|
|
420
|
-
|
|
420
|
+
source_shared_functional_decorator_10fd = function()
|
|
421
421
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
422
422
|
return function (a, b, c, d, e, f)
|
|
423
423
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -475,4 +475,4 @@ prefix1_t = table_prefix1
|
|
|
475
475
|
return P
|
|
476
476
|
end
|
|
477
477
|
--
|
|
478
|
-
return
|
|
478
|
+
return main_c49()
|