diff --git a/.gitignore b/.gitignore index ac7cff2..eeb6598 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ src/img/*.png +.luarc.json diff --git a/justfile b/justfile index 1ca5b64..cde05dd 100644 --- a/justfile +++ b/justfile @@ -10,7 +10,7 @@ simu: build cook-assets: @(which aseprite > /dev/null) || (echo "Missing aseprite program"; exit 1) - tup + -tup setup: tools/gen-luarc.nu diff --git a/src/img/Tupfile b/src/img/Tupfile index 04c14dc..766965e 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-32-32.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/img/level_01.ase b/src/img/level_01.ase index ca8a6dd..b62a629 100644 Binary files a/src/img/level_01.ase and b/src/img/level_01.ase differ diff --git a/src/img/player.ase b/src/img/player.ase index 6454979..b1263b8 100644 Binary files a/src/img/player.ase and b/src/img/player.ase differ diff --git a/src/img/player.png b/src/img/player.png deleted file mode 100644 index 3d5b500..0000000 Binary files a/src/img/player.png and /dev/null differ diff --git a/src/main.lua b/src/main.lua index fa5c03e..792cb77 100644 --- a/src/main.lua +++ b/src/main.lua @@ -9,11 +9,12 @@ local playerSprite = nil local atlas = nil function gameInit() + playdate.display.setScale(2) local playerImage = gfx.image.new("img/player") assert(playerImage) playerSprite = gfx.sprite.new(playerImage) - playerSprite:moveTo(200, 120) -- (200,120) is the center of the Playdate screen + playerSprite:moveTo(100, 60) -- (200,120) is the center of the Playdate screen playerSprite:add() atlas = gfx.imagetable.new("img/level_01") @@ -47,5 +48,5 @@ function playdate.update() gfx.sprite.update() playdate.timer.updateTimers() - atlas:drawImage(2, 32, 32) + atlas:drawImage(2, 16, 16) end diff --git a/tools/gen-luarc.nu b/tools/gen-luarc.nu old mode 100644 new mode 100755 diff --git a/tools/luarc_sample.json b/tools/luarc_sample.json old mode 100644 new mode 100755