aboutsummaryrefslogtreecommitdiff
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/main.lua b/main.lua
index 78101d5..517a948 100644
--- a/main.lua
+++ b/main.lua
@@ -16,12 +16,7 @@ function love.load()
set_scene(scn)
- new_player(100, 100)
-
- box1 = phys.Box.new(20, 20, 16, 16, {
- layers = {},
- mask = { "hard" },
- })
+ player = new_player(100, 100)
ground1 = phys.Box.new(5, 50, 64, 16, {})
ground2 = phys.Box.new(64 - 16, 50 + 16, 16, 64, {})
@@ -37,7 +32,6 @@ function love.update(dt)
assert(scn, "No scene set.")
fire_event(scn.on_update, dt)
- box1:update(0, 5, dt)
flush_scene()
end
@@ -50,6 +44,9 @@ function love.draw(dt)
assert(scn, "No scene set.")
fire_event(scn.on_draw, dt)
+ ground1:draw()
+ ground2:draw()
+ player.box:draw()
im.begin_step()