examples: Add assets and scripts to collision examples

This commit is contained in:
Antonio Niño Díaz 2023-05-13 17:51:59 +01:00
parent 1246d11d74
commit 2b079d20cf
33 changed files with 97 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 260 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

View File

@ -0,0 +1,29 @@
#!/bin/sh
grit whiteball.png -ftb -fh! -gTFF00FF -gt -gB8 -m!
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img ../nitrofiles/sprite
grit pdemo_bg.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img *.map ../nitrofiles/bg
grit pdemo_colmap.png -ftb -fh! -gt -gB8 -mRtp -mLf -p!
for file in *.img.bin; do
mv -- "$file" "${file%.img.bin}".dat
done
for file in *.map.bin; do
mv -- "$file" "${file%.map.bin}".cmp
done
mv *.dat *.cmp ../nitrofiles/maps

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 560 B

View File

@ -82,7 +82,7 @@ int main(int argc, char **argv) {
// Carga los archivos de sprites
NF_LoadSpriteGfx("sprite/whiteball", 0, 16, 16); // Pelota
NF_LoadSpritePal("sprite/whitepal", 0);
NF_LoadSpritePal("sprite/whiteball", 0);
// Carga el fondo de colisiones
NF_LoadCollisionBg("maps/pdemo_colmap", 0, 256, 256);

View File

@ -0,0 +1,29 @@
#!/bin/sh
grit puntero.png -ftb -fh! -gTFF00FF -gt -gB8 -m!
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img ../nitrofiles/sprite
grit ppc_bg.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img *.map ../nitrofiles/bg
grit ppc_cmap.png -ftb -fh! -gt -gB8 -mRtp -mLf -p!
for file in *.img.bin; do
mv -- "$file" "${file%.img.bin}".dat
done
for file in *.map.bin; do
mv -- "$file" "${file%.map.bin}".cmp
done
mv *.dat *.cmp ../nitrofiles/maps

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

View File

@ -0,0 +1,38 @@
#!/bin/sh
grit puntero.png -ftb -fh! -gTFF00FF -gt -gB8 -m!
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img ../nitrofiles/sprite
grit colmap.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
grit layer3.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
mv *.pal *.img *.map ../nitrofiles/bg
grit cmap.png -ftb -fh! -g! -gB8 -mRt -mLf -p!
for file in *.map.bin; do
mv -- "$file" "${file%.map.bin}".cmp
done
mv *.cmp ../nitrofiles/maps
grit default.png -ftb -fh! -gt -gB8 -m!
for file in *.bin; do
mv -- "$file" "${file%.bin}"
done
for file in *.img; do
mv -- "$file" "${file%.img}".fnt
done
mv *.pal *.fnt ../nitrofiles/fnt

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB