From 32b24eb5b1ab78986df57f2c952d8b28f5c85929 Mon Sep 17 00:00:00 2001 From: ne_mene Date: Fri, 27 Mar 2026 00:24:03 +0100 Subject: moved game scene init logic --- main.lua | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) (limited to 'main.lua') diff --git a/main.lua b/main.lua index c909c95..185a2ae 100644 --- a/main.lua +++ b/main.lua @@ -5,36 +5,7 @@ lg.setLineStyle("rough") function love.load() main_init() - local scn = new_scene() - event_bind(scn.on_update, "Body", body_sys) - event_bind(scn.on_update, "Player", player_update_sys) - event_bind(scn.on_update, "State_Machine", state_update_sys) - event_bind(scn.on_update, "Sprite", sprite_anim_sys) - event_bind(scn.on_update, "Sprite", sprite_anim_sys) - event_bind(scn.on_update, "Speck_System", speck_update_sys) - - event_bind(scn.on_draw, "Sprite", sprite_draw_sys) - event_bind(scn.on_draw, "Tilemap", tilemap_draw_sys) - event_bind(scn.on_draw, "Speck_System", speck_draw_sys) - - event_bind(scn.on_update, "Room_Editor", room_editor_ui_sys) - event_bind(scn.on_ui, "Room_Editor", tile_place_sys) - event_bind(scn.on_draw, "Editor_Entity", draw_editor_entity_sys) - event_bind(scn.on_ui, "Editor_Entity", editor_entity_ui_sys) - - set_scene(scn) - - local tilemap = new_tilemap(64, 64) - scn.tilemap = tilemap - - for x=2, 12 do - set_tile(tilemap, x, 10, 1) - end - - player = new_player(100, 100) - - local room_editor = new_entity() - add_comp(room_editor, "Room_Editor") + start_game_scene() end function love.update(dt) -- cgit v1.3-2-g0d8e