diff options
Diffstat (limited to 'main.lua')
| -rw-r--r-- | main.lua | 25 |
1 files changed, 12 insertions, 13 deletions
@@ -17,16 +17,15 @@ function love.load() set_scene(scn) + local tilemap = new_tilemap(64, 64) + scn.tilemap = tilemap + set_tile(tilemap, 0, 0, 1) + player = new_player(100, 100) ground1 = phys.Box.new(5, 50, 64, 16, {}) ground2 = phys.Box.new(64 - 16, 50 + 16, 16, 64, {}) - local tilemap = new_tilemap(64, 64) - scn.tilemap = tilemap - - set_tile(tilemap, 0, 0, 1) - local room_editor = new_entity() add_comp(room_editor, "Room_Editor") end @@ -69,16 +68,16 @@ function love.draw(dt) fire_event(scn.on_ui) im.draw() - im.end_step() lg.print(tostring(love.timer.getFPS())) - lg.print("left "..tostring(player.box:touching_left()), 0, 20) - lg.print("right "..tostring(player.box:touching_right()), 0, 40) - lg.print("horizontal "..tostring(player.box:touching_horizontal()), 0, 60) - lg.print("up "..tostring(player.box:touching_up()), 0, 80) - lg.print("down "..tostring(player.box:touching_down()), 0, 100) - lg.print("vertical "..tostring(player.box:touching_vertical()), 0, 120) - lg.print("any "..tostring(player.box:touching()), 0, 140) + -- lg.print("left "..tostring(player.box:touching_left()), 0, 20) + -- lg.print("right "..tostring(player.box:touching_right()), 0, 40) + -- lg.print("horizontal "..tostring(player.box:touching_horizontal()), 0, 60) + -- lg.print("up "..tostring(player.box:touching_up()), 0, 80) + -- lg.print("down "..tostring(player.box:touching_down()), 0, 100) + -- lg.print("vertical "..tostring(player.box:touching_vertical()), 0, 120) + -- lg.print("any "..tostring(player.box:touching()), 0, 140) + input_step() end |
