diff --git a/assets.sh b/assets.sh new file mode 100644 index 0000000..381cbf2 --- /dev/null +++ b/assets.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +NITRO_ENGINE=$DEVKITPRO/nitro-engine +ASSETS=./assets +TOOLS=$NITRO_ENGINE/tools +MD5_TO_DSMA=$TOOLS/md5_to_dsma/md5_to_dsma.py +GRIT=grit + +rm -rf nitrofiles +mkdir -p nitrofiles + +# Chibi model +python3 $MD5_TO_DSMA \ + --model $ASSETS/chibi_kp/chibi_kp.md5mesh \ + --name chibi_kp \ + --output nitrofiles \ + --texture 256 256 \ + --anim $ASSETS/chibi_kp/chibi_kp_spin.md5anim \ + --skip-frames 1 \ + --blender-fix + +$GRIT \ + $ASSETS/chibi_kp/chibi_kp_albedo.png \ + -ftb -fh! -W1 \ + -onitrofiles/chibi_kp_texture + +# Badge Graphic +mkdir nitrofiles/bmp + +$GRIT \ + $ASSETS/badge_01.jpg -ftb -fh! -gb -fB16 + +for file in *.bin; do + mv -- "$file" "${file%.bin}" +done + +mv *.img nitrofiles/bmp diff --git a/graphics/badge_01.jpg b/assets/badge_01.jpg similarity index 100% rename from graphics/badge_01.jpg rename to assets/badge_01.jpg diff --git a/source/chibi_kp/chibi_kp.blend b/assets/chibi_kp/chibi_kp.blend similarity index 100% rename from source/chibi_kp/chibi_kp.blend rename to assets/chibi_kp/chibi_kp.blend diff --git a/source/chibi_kp/chibi_kp.md5mesh b/assets/chibi_kp/chibi_kp.md5mesh similarity index 100% rename from source/chibi_kp/chibi_kp.md5mesh rename to assets/chibi_kp/chibi_kp.md5mesh diff --git a/source/chibi_kp/chibi_kp.mtl b/assets/chibi_kp/chibi_kp.mtl similarity index 100% rename from source/chibi_kp/chibi_kp.mtl rename to assets/chibi_kp/chibi_kp.mtl diff --git a/source/chibi_kp/chibi_kp.obj b/assets/chibi_kp/chibi_kp.obj similarity index 100% rename from source/chibi_kp/chibi_kp.obj rename to assets/chibi_kp/chibi_kp.obj diff --git a/source/chibi_kp/chibi_kp_albedo.png b/assets/chibi_kp/chibi_kp_albedo.png similarity index 100% rename from source/chibi_kp/chibi_kp_albedo.png rename to assets/chibi_kp/chibi_kp_albedo.png diff --git a/source/chibi_kp/chibi_kp_spin.md5anim b/assets/chibi_kp/chibi_kp_spin.md5anim similarity index 100% rename from source/chibi_kp/chibi_kp_spin.md5anim rename to assets/chibi_kp/chibi_kp_spin.md5anim diff --git a/graphics/convert.sh b/assets/convert.sh similarity index 100% rename from graphics/convert.sh rename to assets/convert.sh diff --git a/nitrofiles/chibi_kp.dsm b/nitrofiles/chibi_kp.dsm new file mode 100644 index 0000000..4f2d501 Binary files /dev/null and b/nitrofiles/chibi_kp.dsm differ diff --git a/nitrofiles/chibi_kp_chibi_kp_spin.dsa b/nitrofiles/chibi_kp_chibi_kp_spin.dsa new file mode 100644 index 0000000..b1656ee Binary files /dev/null and b/nitrofiles/chibi_kp_chibi_kp_spin.dsa differ diff --git a/nitrofiles/chibi_kp_texture.img.bin b/nitrofiles/chibi_kp_texture.img.bin new file mode 100644 index 0000000..76ff257 Binary files /dev/null and b/nitrofiles/chibi_kp_texture.img.bin differ