diff options
| author | iamcheeseman <[email protected]> | 2026-03-12 18:10:06 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-12 18:10:06 -0400 |
| commit | 2b3245f44fecbf2e426bb28f522a24e00662c610 (patch) | |
| tree | 20740cedc0c063ec76ecd42794b60b414775dbd5 /main.lua | |
| parent | 97d2fc1f3cef3c02fee36e416a8f2b5205940be2 (diff) | |
Make the room editor un-hacked in
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -12,7 +12,8 @@ function love.load() event_bind(scn.on_draw, "Sprite", sprite_draw_sys) event_bind(scn.on_draw, "Tilemap", tilemap_draw_sys) - event_bind(scn.on_ui, "Player", player_ui_sys) + event_bind(scn.on_update, "Room_Editor", room_editor_ui_sys) + event_bind(scn.on_ui, "Room_Editor", tile_place_sys) set_scene(scn) @@ -25,6 +26,9 @@ function love.load() scn.tilemap = tilemap set_tile(tilemap, 0, 0, 1) + + local room_editor = new_entity() + add_comp(room_editor, "Room_Editor") end function love.update(dt) |
