aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-03-12 18:10:06 -0400
committeriamcheeseman <[email protected]>2026-03-12 18:10:06 -0400
commit2b3245f44fecbf2e426bb28f522a24e00662c610 (patch)
tree20740cedc0c063ec76ecd42794b60b414775dbd5 /main.lua
parent97d2fc1f3cef3c02fee36e416a8f2b5205940be2 (diff)
Make the room editor un-hacked in
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/main.lua b/main.lua
index ed1a48a..2453b53 100644
--- a/main.lua
+++ b/main.lua
@@ -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)