Untextured giraffe

This commit is contained in:
congusbongus
2025-05-31 21:07:35 +10:00
parent 68f80e5a8c
commit 6b8d11cee2
13 changed files with 94 additions and 16 deletions

View File

@@ -114,13 +114,13 @@
"HasGlasses": false "HasGlasses": false
}, },
{ {
"Name": "Dr Schabbs", "Name": "Giraffe",
"HeadPics": { "HeadPics": {
"Type": "Directional", "Type": "Directional",
"Sprites": "chars/heads/jones" "Sprites": "chars/heads/sheep"
}, },
"Body": "big", "Body": "giraffe",
"Sounds": "schabbs" "Sounds": "giraffe"
}, },
{ {
"Name": "Mecha Hitler", "Name": "Mecha Hitler",

View File

@@ -156,16 +156,16 @@
"actionDelay": 40 "actionDelay": 40
}, },
{ {
"Class": "Dr Schabbs", "Class": "Giraffe",
"GlassesType": "goggles", "HatType": "ossicone",
"Skin": "ffc785ff", "Skin": "e09323ff",
"Arms": "f7f5f5ff", "Arms": "f7f5f5ff",
"Body": "fffafaff", "Body": "fffafaff",
"Legs": "fffcfcff", "Legs": "fffcfcff",
"Hair": "fcfcfcff", "Hair": "693b16ff",
"Feet": "fffcfcff", "Feet": "170606ff",
"Facehair": "fcfcfcff", "Facehair": "fcfcfcff",
"Hat": "fcfcfcff", "Hat": "5b2901ff",
"Glasses": "fcfcfcff", "Glasses": "fcfcfcff",
"speed": 192, "speed": 192,
"Gun": "Syringes", "Gun": "Syringes",

View File

@@ -0,0 +1,65 @@
{
"Version": 2,
"Order": [
["gun_r", "gun_l", "legs", "body", "head"],
["gun_r", "gun_l", "legs", "body", "head"],
["legs", "body", "head", "gun_r", "gun_l"],
["legs", "body", "head", "gun_r", "gun_l"],
["legs", "body", "head", "gun_r", "gun_l"],
["legs", "body", "head", "gun_r", "gun_l"],
["legs", "gun_r", "gun_l", "body", "head"],
["gun_r", "gun_l", "legs", "body", "head"]
],
"Offsets": {
"Frame": {
"Head": {
"stand": [[0, 17]],
"idle": [[0, 17]],
"run": [
[0, 17],
[0, 16],
[0, 16],
[0, 17],
[0, 17],
[0, 18],
[0, 18],
[0, 17]
]
},
"Body": {
"stand": [[0, 6]],
"idle": [[0, 6]]
},
"Legs": {
"stand": [[0, 6]],
"idle": [[0, 6]]
},
"Gun": {
"stand": [[0, 6]],
"idle": [[0, 6]],
"run": [
[0, 7],
[0, 6],
[0, 5],
[0, 6],
[0, 7],
[0, 6],
[0, 5],
[0, 6]
]
}
},
"Dir": {
"Head": [
[0, -3],
[7, -3],
[11, 0],
[10, 5],
[0, 6],
[-10, 5],
[-12, 0],
[-7, -3]
]
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 433 B

View File

@@ -0,0 +1,4 @@
Adapted from Animated Animales Low Poly
by quaternius
https://opengameart.org/content/animated-animales-low-poly
http://creativecommons.org/publicdomain/zero/1.0/

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

View File

@@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Create character spritesheet and join all the rendered images # Create character spritesheet and join all the rendered images
# Requires blender and imagemagick
# #
set -e set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
@@ -11,10 +12,18 @@ fi
if [[ "$OSTYPE" == "linux-gnu" ]]; then if [[ "$OSTYPE" == "linux-gnu" ]]; then
BLENDER=blender BLENDER=blender
elif [[ "$OSTYPE" == "msys" ]]; then
BLENDER="/c/Program Files/Blender Foundation/Blender 4.4/blender.exe"
else else
# macos # macOS
BLENDER=/Applications/blender.app/Contents/MacOS/blender BLENDER=/Applications/blender.app/Contents/MacOS/blender
fi fi
if [[ "$OSTYPE" == "msys" ]]; then
BLENDER_OUT="C:/out"
else
BLENDER_OUT="out"
fi
INFILE=$1/src.blend INFILE=$1/src.blend
# Render separate body parts (in collections) # Render separate body parts (in collections)
parts=(legs upper) parts=(legs upper)
@@ -52,11 +61,11 @@ do
fi fi
"$BLENDER" -noaudio -b "$INFILE" -P ${SCRIPT_DIR}/render.py -- "$collections" "$action" "$frames" "$part" "$BLENDER" -noaudio -b "$INFILE" -P ${SCRIPT_DIR}/render.py -- "$collections" "$action" "$frames" "$part"
DIMENSIONS=`identify -format "%wx%h" "out/${part}_${action}_0_00.png"` DIMENSIONS=`identify -format "%wx%h" "${BLENDER_OUT}/${part}_${action}_0_00.png"`
OUTFILE=$1/${part}_${action}_${DIMENSIONS}.png OUTFILE=$1/${part}_${action}_${DIMENSIONS}.png
rm -f "$OUTFILE" rm -f "$OUTFILE"
montage -geometry +0+0 -background none -tile x8 "out/${part}_${action}_*.png" -channel A tmpimage montage -geometry +0+0 -background none -tile x8 "${BLENDER_OUT}/${part}_${action}_*.png" -channel A tmpimage
convert tmpimage -dither None -colors 32 -level 25%,60% "$OUTFILE" magick convert tmpimage -dither None -colors 32 -level 25%,60% "$OUTFILE"
rm tmpimage rm tmpimage
chmod 644 "$OUTFILE" chmod 644 "$OUTFILE"
echo "Created $OUTFILE" echo "Created $OUTFILE"

View File

@@ -21,7 +21,7 @@ action = argv[1]
frames = int(argv[2]) frames = int(argv[2])
name = '{}_{}'.format(argv[3], action) name = '{}_{}'.format(argv[3], action)
RESOLUTION = 24 RESOLUTION = 32
FRAME_SKIP = 10 FRAME_SKIP = 10
angle = -45 angle = -45