aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/main.lua b/main.lua
index 2b2e380..f6ea661 100644
--- a/main.lua
+++ b/main.lua
@@ -7,6 +7,7 @@ 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)
@@ -29,9 +30,6 @@ function love.load()
player = new_player(100, 100)
- 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
@@ -53,9 +51,6 @@ function love.draw(dt)
assert(scn, "No scene set.")
fire_event(scn.on_draw, dt)
- ground1:draw()
- ground2:draw()
- player.box:draw()
-- TODO: Take care of weird displays
lg.setCanvas()