Skip to content

Commit

Permalink
examples: Add assets of graphics/bgextpalette example
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioND committed May 14, 2023
1 parent be3050b commit 3d2b4eb
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 0 deletions.
Binary file added examples/graphics/bgextpalette/assets/blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions examples/graphics/bgextpalette/assets/convert.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh

grit blue.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs
# Only generate palette for the other two
grit red.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs -m! -g!
grit green.png -ftb -fh! -gTFF00FF -gt -gB8 -mR8 -mLs -m! -g!

for file in *.bin; do
mv -- "$file" "${file%.bin}"
done

mv *.pal *.img *.map ../nitrofiles/bg

grit default.png -ftb -fh! -gTFF00FF -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 added examples/graphics/bgextpalette/assets/default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/graphics/bgextpalette/assets/green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/graphics/bgextpalette/assets/red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/graphics/bgextpalette/nitrofiles/bg/blue.img
Binary file not shown.
Binary file modified examples/graphics/bgextpalette/nitrofiles/bg/blue.pal
Binary file not shown.
Binary file modified examples/graphics/bgextpalette/nitrofiles/bg/green.pal
Binary file not shown.
Binary file modified examples/graphics/bgextpalette/nitrofiles/bg/red.pal
Binary file not shown.
Binary file modified examples/graphics/bgextpalette/nitrofiles/fnt/default.fnt
Binary file not shown.
Binary file modified examples/graphics/bgextpalette/nitrofiles/fnt/default.pal
Binary file not shown.

0 comments on commit 3d2b4eb

Please sign in to comment.