diff options
| author | ne_mene <[email protected]> | 2026-03-13 17:54:17 +0100 |
|---|---|---|
| committer | ne_mene <[email protected]> | 2026-03-13 17:54:17 +0100 |
| commit | b47490aea2f63d881a2cc69a326b03abae1a46c0 (patch) | |
| tree | 2f25d7d56fb495bdbc5a2f24fc7776c9f7e87bdd /main.lua | |
| parent | bc52ad3e36ecb0918eca17ea68a0dc54852a3392 (diff) | |
| parent | 94141331ac0365c8eaa823d0ed1e8eb928f09dc6 (diff) | |
stupid merge that i hate
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 7 |
1 files changed, 6 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) @@ -24,6 +25,9 @@ function love.load() ground1 = phys.Box.new(5, 50, 64, 16, {}) ground2 = phys.Box.new(64 - 16, 50 + 16, 16, 64, {}) + + local room_editor = new_entity() + add_comp(room_editor, "Room_Editor") end function love.update(dt) @@ -52,6 +56,7 @@ function love.draw(dt) local scr_width, scr_height = lg.getDimensions() WindowScale = min(scr_width / SCR_WIDTH, scr_height / SCR_HEIGHT) + lg.setColor(1, 1, 1) lg.draw( viewport, scr_width / 2, scr_height / 2, 0, |
