@gamely/gly-engine-nano 0.2.4 → 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.
Files changed (2) hide show
  1. package/dist/main.lua +31 -28
  2. package/package.json +1 -1
package/dist/main.lua CHANGED
@@ -1,19 +1,19 @@
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()
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={
@@ -64,7 +64,10 @@ if type(script) == 'string' then
64
64
  ok, script=eval_code.script(script)
65
65
  end
66
66
  if not script then
67
- ok, script=pcall(loadfile, 'game.lua')
67
+ ok, script = pcall(loadfile, 'game.lua')
68
+ end
69
+ if type(script) == 'function' then
70
+ ok, script = pcall(script)
68
71
  end
69
72
  if not ok or not script then
70
73
  error(script, 0)
@@ -112,11 +115,11 @@ version=version
112
115
  }
113
116
  return P
114
117
  end
115
- source_version_c17 = function()
116
- return '0.2.4'
118
+ source_version_c52 = function()
119
+ return '0.2.6'
117
120
  end
118
121
  --
119
- source_engine_api_system_key_c29 = function()
122
+ source_engine_api_system_key_c64 = function()
120
123
  local function real_key(std, engine, rkey, rvalue)
121
124
  local value = rvalue == 1 or rvalue == true
122
125
  local key = engine.key_bindings[rkey] or (std.key.axis[rkey] and rkey)
@@ -153,8 +156,8 @@ install = install
153
156
  return P
154
157
  end
155
158
  --
156
- source_engine_api_draw_text_c34 = function()
157
- local util_decorator = source_shared_functional_decorator_10a0()
159
+ source_engine_api_draw_text_c6f = function()
160
+ local util_decorator = source_shared_functional_decorator_10fd()
158
161
  local function text_put(std, engine, font_previous, pos_x, pos_y, text, size)
159
162
  size = size or 2
160
163
  local hem = engine.current.data.width / 80
@@ -183,7 +186,7 @@ install=install
183
186
  return P
184
187
  end
185
188
  --
186
- source_engine_api_draw_poly_c3f = function()
189
+ source_engine_api_draw_poly_c7a = function()
187
190
  local function decorator_poo(object, func)
188
191
  if not object or not func then return func end
189
192
  return function(a, b, c, d)
@@ -290,7 +293,7 @@ install=install
290
293
  return P
291
294
  end
292
295
  --
293
- source_engine_api_system_color_c51 = function()
296
+ source_engine_api_system_color_c8c = function()
294
297
  local function install(std)
295
298
  std.color = std.color or {}
296
299
  std.color.white = 0xFFFFFFFF
@@ -325,7 +328,7 @@ install = install
325
328
  return P
326
329
  end
327
330
  --
328
- source_shared_var_object_std_c5c = function()
331
+ source_shared_var_object_std_c97 = function()
329
332
  local P = {
330
333
  milis = 0,
331
334
  delta = 0,
@@ -393,7 +396,7 @@ any=false
393
396
  return P;
394
397
  end
395
398
  --
396
- source_shared_string_eval_code_c6e = function()
399
+ source_shared_string_eval_code_ca9 = function()
397
400
  local function script(src)
398
401
  local loader = loadstring or load
399
402
  if not loader then
@@ -414,7 +417,7 @@ script = script,
414
417
  return P
415
418
  end
416
419
  --
417
- source_shared_functional_decorator_10a0 = function()
420
+ source_shared_functional_decorator_10fd = function()
418
421
  local function decorator_prefix3(zig, zag, zom, func)
419
422
  return function (a, b, c, d, e, f)
420
423
  return func(zig, zag, zom, a, b, c, d, e, f)
@@ -472,4 +475,4 @@ prefix1_t = table_prefix1
472
475
  return P
473
476
  end
474
477
  --
475
- return main_c0e()
478
+ return main_c49()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gamely/gly-engine-nano",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "author": "RodrigoDornelles",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://docs.gamely.com.br",