draw floor
This commit is contained in:
parent
04352959ac
commit
5f9b8d374f
|
@ -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
|
: player.ase |> aseprite --batch %f --save-as %o |> %B.png
|
||||||
|
|
14
src/main.lua
14
src/main.lua
|
@ -47,6 +47,18 @@ function playdate.update()
|
||||||
-- average-complexity games, you will.)
|
-- average-complexity games, you will.)
|
||||||
|
|
||||||
gfx.sprite.update()
|
gfx.sprite.update()
|
||||||
|
drawLevel()
|
||||||
|
|
||||||
playdate.timer.updateTimers()
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue