draw floor

This commit is contained in:
Fabien Freling 2025-03-11 13:58:04 +01:00
parent 04352959ac
commit 5f9b8d374f
2 changed files with 14 additions and 2 deletions

View file

@ -1,2 +1,2 @@
: level_01.ase |> aseprite --batch --export-tileset %f --sheet %o |> %B-table-16-16.png
#: level_01.ase |> aseprite --batch --export-tileset %f --sheet %o |> %B-table-16-16.png
: player.ase |> aseprite --batch %f --save-as %o |> %B.png

View file

@ -47,6 +47,18 @@ function playdate.update()
-- average-complexity games, you will.)
gfx.sprite.update()
drawLevel()
playdate.timer.updateTimers()
atlas:drawImage(2, 16, 16)
end
function drawLevel()
local left = 1
local right = 2
local middle = 3
atlas:drawImage(left, 0, 96)
atlas:drawImage(right, 200 - 16, 96)
for i = 16, 200 - 17, 16 do
atlas:drawImage(middle, i, 96)
end
end