diff --git a/examples/asteroids/game.lua b/examples/asteroids/game.lua index 0b27f0e..cb16ed8 100644 --- a/examples/asteroids/game.lua +++ b/examples/asteroids/game.lua @@ -499,7 +499,7 @@ local P = { version='1.0.0' }, config = { - require = 'math random i18n', + require = 'math math.random i18n', fps_drop = 5, fps_time = 5 }, diff --git a/examples/launcher/game.lua b/examples/launcher/game.lua index 27bbf17..2f9f360 100644 --- a/examples/launcher/game.lua +++ b/examples/launcher/game.lua @@ -236,7 +236,7 @@ local P = { version='1.0.0' }, config={ - require='http random math csv load' + require='http math.random math csv load' }, callbacks={ init=init, diff --git a/src/engine/core/ginga/main.lua b/src/engine/core/ginga/main.lua index c8ed3ba..a0b2265 100644 --- a/src/engine/core/ginga/main.lua +++ b/src/engine/core/ginga/main.lua @@ -90,14 +90,14 @@ local function install(evt, gamefile) :package('@keys', engine_keys) :package('@loop', engine_loop) :package('@draw', engine_draw, ginga) - :package('@draw_fps', engine_draw_fps) - :package('@draw_poly', engine_draw_poly, polygons) + :package('@draw.fps', engine_draw_fps) + :package('@draw.poly', engine_draw_poly, polygons) :package('@memory', engine_memory) :package('load', zeebo_module.load) :package('csv', engine_encoder, library_csv) :package('json', engine_encoder, library_json) :package('math', engine_math.clib) - :package('random', engine_math.clib_random) + :package('math.random', engine_math.clib_random) :package('http', engine_http, protocol_http_ginga) :package('i18n', engine_i18n, system_language) :register(register_event_loop) diff --git a/src/engine/core/love/main.lua b/src/engine/core/love/main.lua index 5e276b1..bfefe05 100644 --- a/src/engine/core/love/main.lua +++ b/src/engine/core/love/main.lua @@ -47,12 +47,12 @@ function love.load(args) :package('@keys', engine_keys) :package('@loop', engine_loop) :package('@color', engine_color) - :package('@draw_fps', engine_draw_fps) - :package('@draw_poly', engine_draw_poly, polygons) + :package('@draw.fps', engine_draw_fps) + :package('@draw.poly', engine_draw_poly, polygons) :package('@memory', engine_memory) :package('load', zeebo_module.load) :package('math', engine_math.clib) - :package('random', engine_math.clib_random) + :package('math.random', engine_math.clib_random) :package('http', engine_http, protocol_curl_love) :package('csv', engine_encoder, library_csv) :package('json', engine_encoder, library_json) diff --git a/src/engine/core/native/main.lua b/src/engine/core/native/main.lua index c000223..9a80a0c 100644 --- a/src/engine/core/native/main.lua +++ b/src/engine/core/native/main.lua @@ -57,11 +57,11 @@ function native_callback_init(width, height, game_lua) :package('@game', engine_game) :package('@math', engine_math) :package('@color', engine_color) - :package('@draw_fps', engine_draw_fps) - :package('@draw_poly', engine_draw_poly, native_dict_poly) + :package('@draw.fps', engine_draw_fps) + :package('@draw.poly', engine_draw_poly, native_dict_poly) :package('load', zeebo_module.load) :package('math', engine_math.clib) - :package('random', engine_math.clib_random) + :package('math.random', engine_math.clib_random) :package('http', engine_http, native_dict_http) :package('json', engine_encoder, native_dict_json) :package('xml', engine_encoder, native_dict_xml) diff --git a/src/engine/core/nintendo_wii/main.lua b/src/engine/core/nintendo_wii/main.lua index ceaa9c9..faf5240 100644 --- a/src/engine/core/nintendo_wii/main.lua +++ b/src/engine/core/nintendo_wii/main.lua @@ -31,10 +31,10 @@ function love.load(args) :package('@keys', engine_keys) :package('@loop', engine_loop) :package('@color', engine_color) - :package('@draw_poly', engine_draw_poly, polygons) + :package('@draw.poly', engine_draw_poly, polygons) :package('load', zeebo_module.load) :package('math', engine_math.clib) - :package('random', engine_math.clib_random) + :package('math.random', engine_math.clib_random) :run() game.width, game.height = w, h diff --git a/src/engine/core/repl/main.lua b/src/engine/core/repl/main.lua index 7d8bb40..f8c96fa 100644 --- a/src/engine/core/repl/main.lua +++ b/src/engine/core/repl/main.lua @@ -82,7 +82,7 @@ local function main() :package('@color', engine_color) :package('load', zeebo_module.load) :package('math', engine_math.clib) - :package('random', engine_math.clib_random) + :package('math.random', engine_math.clib_random) :package('http', engine_http, protocol_curl) :package('csv', engine_encoder, library_csv) :package('json', engine_encoder, library_json)