diff --git a/src/img/Tupfile b/src/img/Tupfile index 766965e..c572259 100644 --- a/src/img/Tupfile +++ b/src/img/Tupfile @@ -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 diff --git a/src/main.lua b/src/main.lua index 792cb77..027e136 100644 --- a/src/main.lua +++ b/src/main.lua @@ -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