Skip to content

Commit

Permalink
style: module renames #32
Browse files Browse the repository at this point in the history
  • Loading branch information
RodrigoDornelles committed Oct 4, 2024
1 parent f6ea834 commit 6377d23
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion examples/asteroids/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
Expand Down
2 changes: 1 addition & 1 deletion examples/launcher/game.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/engine/core/ginga/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/engine/core/love/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/engine/core/native/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/engine/core/nintendo_wii/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/engine/core/repl/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6377d23

Please sign in to comment.