diff options
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -13,12 +13,7 @@ function love.load() event_bind(scn.on_draw, "Tilemap", tilemap_draw_sys) 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, {}) @@ -34,7 +29,6 @@ function love.update(dt) assert(scn, "No scene set.") fire_event(scn.on_update, dt) - box1:update(0, 5, dt) flush_scene() end @@ -47,6 +41,9 @@ 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() |
