cook assets
This commit is contained in:
parent
5affd98436
commit
4a6437c323
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
src/img/*.png
|
0
Tupfile.ini
Normal file
0
Tupfile.ini
Normal file
3
justfile
3
justfile
|
@ -1,7 +1,7 @@
|
|||
bin := "Rush.pdx"
|
||||
|
||||
alias b := build
|
||||
build:
|
||||
build: cook-assets
|
||||
pdc --quiet --skip-unknown src {{ bin }}
|
||||
|
||||
alias s := simu
|
||||
|
@ -10,3 +10,4 @@ simu: build
|
|||
|
||||
cook-assets:
|
||||
@(which aseprite > /dev/null) || (echo "Missing aseprite program"; exit 1)
|
||||
tup
|
||||
|
|
2
src/img/Tupfile
Normal file
2
src/img/Tupfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
: level_01.ase |> aseprite --batch --export-tileset %f --sheet %o |> %B-table-32-32.png
|
||||
: player.ase |> aseprite --batch %f --save-as %o |> %B.png
|
Binary file not shown.
Before Width: | Height: | Size: 190 B |
Binary file not shown.
Binary file not shown.
BIN
src/img/player.ase
Normal file
BIN
src/img/player.ase
Normal file
Binary file not shown.
Binary file not shown.
|
@ -16,7 +16,7 @@ function gameInit()
|
|||
playerSprite:moveTo(200, 120) -- (200,120) is the center of the Playdate screen
|
||||
playerSprite:add()
|
||||
|
||||
atlas = gfx.imagetable.new("img/bg_atlas")
|
||||
atlas = gfx.imagetable.new("img/level_01")
|
||||
end
|
||||
|
||||
gameInit()
|
||||
|
@ -47,5 +47,5 @@ function playdate.update()
|
|||
|
||||
gfx.sprite.update()
|
||||
playdate.timer.updateTimers()
|
||||
atlas:drawImage(1, 32, 32)
|
||||
atlas:drawImage(2, 32, 32)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue