@gamely/gly-engine-nano 0.2.1 → 0.2.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.
- package/dist/main.lua +28 -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_c17 = nil
|
|
2
|
+
local source_engine_api_system_key_c29 = nil
|
|
3
|
+
local source_engine_api_draw_text_c34 = nil
|
|
4
|
+
local source_engine_api_draw_poly_c3f = nil
|
|
5
|
+
local source_engine_api_system_color_c51 = nil
|
|
6
|
+
local source_shared_var_object_std_c5c = nil
|
|
7
|
+
local source_shared_string_eval_code_c6e = nil
|
|
8
|
+
local source_shared_functional_decorator_10a0 = nil
|
|
9
|
+
local function main_c0e()
|
|
10
|
+
local version = source_version_c17()
|
|
11
|
+
local engine_key = source_engine_api_system_key_c29()
|
|
12
|
+
local engine_api_draw_text = source_engine_api_draw_text_c34()
|
|
13
|
+
local engine_api_draw_poly = source_engine_api_draw_poly_c3f()
|
|
14
|
+
local color = source_engine_api_system_color_c51()
|
|
15
|
+
local std = source_shared_var_object_std_c5c()
|
|
16
|
+
local eval_code = source_shared_string_eval_code_c6e()
|
|
17
17
|
local f=function(a,b)end
|
|
18
18
|
local engine={keyboard=f}
|
|
19
19
|
local application={
|
|
@@ -76,6 +76,7 @@ script.config=application.config
|
|
|
76
76
|
application=script
|
|
77
77
|
std.draw.color=native_draw_color
|
|
78
78
|
std.draw.font=native_draw_font
|
|
79
|
+
std.draw.rect2=native_draw_rect2 or native_draw_rect
|
|
79
80
|
std.draw.rect=native_draw_rect
|
|
80
81
|
std.draw.line=native_draw_line
|
|
81
82
|
std.image.load=native_image_load
|
|
@@ -111,11 +112,11 @@ version=version
|
|
|
111
112
|
}
|
|
112
113
|
return P
|
|
113
114
|
end
|
|
114
|
-
|
|
115
|
-
return '0.2.
|
|
115
|
+
source_version_c17 = function()
|
|
116
|
+
return '0.2.3'
|
|
116
117
|
end
|
|
117
118
|
--
|
|
118
|
-
|
|
119
|
+
source_engine_api_system_key_c29 = function()
|
|
119
120
|
local function real_key(std, engine, rkey, rvalue)
|
|
120
121
|
local value = rvalue == 1 or rvalue == true
|
|
121
122
|
local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
|
|
@@ -152,8 +153,8 @@ install = install
|
|
|
152
153
|
return P
|
|
153
154
|
end
|
|
154
155
|
--
|
|
155
|
-
|
|
156
|
-
local util_decorator =
|
|
156
|
+
source_engine_api_draw_text_c34 = function()
|
|
157
|
+
local util_decorator = source_shared_functional_decorator_10a0()
|
|
157
158
|
local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
|
|
158
159
|
size = size or 2
|
|
159
160
|
local hem = engine.current.data.width / 80
|
|
@@ -182,7 +183,7 @@ install=install
|
|
|
182
183
|
return P
|
|
183
184
|
end
|
|
184
185
|
--
|
|
185
|
-
|
|
186
|
+
source_engine_api_draw_poly_c3f = function()
|
|
186
187
|
local function decorator_poo(object, func)
|
|
187
188
|
if not object or not func then return func end
|
|
188
189
|
return function(a, b, c, d)
|
|
@@ -289,7 +290,7 @@ install=install
|
|
|
289
290
|
return P
|
|
290
291
|
end
|
|
291
292
|
--
|
|
292
|
-
|
|
293
|
+
source_engine_api_system_color_c51 = function()
|
|
293
294
|
local function install(std)
|
|
294
295
|
std.color = std.color or {}
|
|
295
296
|
std.color.white = 0xFFFFFFFF
|
|
@@ -324,7 +325,7 @@ install = install
|
|
|
324
325
|
return P
|
|
325
326
|
end
|
|
326
327
|
--
|
|
327
|
-
|
|
328
|
+
source_shared_var_object_std_c5c = function()
|
|
328
329
|
local P = {
|
|
329
330
|
milis = 0,
|
|
330
331
|
delta = 0,
|
|
@@ -392,7 +393,7 @@ any=false
|
|
|
392
393
|
return P;
|
|
393
394
|
end
|
|
394
395
|
--
|
|
395
|
-
|
|
396
|
+
source_shared_string_eval_code_c6e = function()
|
|
396
397
|
local function script(src)
|
|
397
398
|
local loader = loadstring or load
|
|
398
399
|
if not loader then
|
|
@@ -413,7 +414,7 @@ script = script,
|
|
|
413
414
|
return P
|
|
414
415
|
end
|
|
415
416
|
--
|
|
416
|
-
|
|
417
|
+
source_shared_functional_decorator_10a0 = function()
|
|
417
418
|
local function decorator_prefix3(zig, zag, zom, func)
|
|
418
419
|
return function (a, b, c, d, e, f)
|
|
419
420
|
return func(zig, zag, zom, a, b, c, d, e, f)
|
|
@@ -471,4 +472,4 @@ prefix1_t = table_prefix1
|
|
|
471
472
|
return P
|
|
472
473
|
end
|
|
473
474
|
--
|
|
474
|
-
return
|
|
475
|
+
return main_c0e()
|