mirror of
https://github.com/cxong/cdogs-sdl.git
synced 2025-07-22 15:10:33 +02:00
Untextured giraffe
This commit is contained in:
@@ -114,13 +114,13 @@
|
||||
"HasGlasses": false
|
||||
},
|
||||
{
|
||||
"Name": "Dr Schabbs",
|
||||
"Name": "Giraffe",
|
||||
"HeadPics": {
|
||||
"Type": "Directional",
|
||||
"Sprites": "chars/heads/jones"
|
||||
"Sprites": "chars/heads/sheep"
|
||||
},
|
||||
"Body": "big",
|
||||
"Sounds": "schabbs"
|
||||
"Body": "giraffe",
|
||||
"Sounds": "giraffe"
|
||||
},
|
||||
{
|
||||
"Name": "Mecha Hitler",
|
||||
|
@@ -156,16 +156,16 @@
|
||||
"actionDelay": 40
|
||||
},
|
||||
{
|
||||
"Class": "Dr Schabbs",
|
||||
"GlassesType": "goggles",
|
||||
"Skin": "ffc785ff",
|
||||
"Class": "Giraffe",
|
||||
"HatType": "ossicone",
|
||||
"Skin": "e09323ff",
|
||||
"Arms": "f7f5f5ff",
|
||||
"Body": "fffafaff",
|
||||
"Legs": "fffcfcff",
|
||||
"Hair": "fcfcfcff",
|
||||
"Feet": "fffcfcff",
|
||||
"Hair": "693b16ff",
|
||||
"Feet": "170606ff",
|
||||
"Facehair": "fcfcfcff",
|
||||
"Hat": "fcfcfcff",
|
||||
"Hat": "5b2901ff",
|
||||
"Glasses": "fcfcfcff",
|
||||
"speed": 192,
|
||||
"Gun": "Syringes",
|
||||
@@ -360,4 +360,4 @@
|
||||
"actionDelay": 15
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -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 |
Binary file not shown.
@@ -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 |
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Create character spritesheet and join all the rendered images
|
||||
# Requires blender and imagemagick
|
||||
#
|
||||
set -e
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
@@ -11,10 +12,18 @@ fi
|
||||
|
||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||
BLENDER=blender
|
||||
elif [[ "$OSTYPE" == "msys" ]]; then
|
||||
BLENDER="/c/Program Files/Blender Foundation/Blender 4.4/blender.exe"
|
||||
else
|
||||
# macos
|
||||
# macOS
|
||||
BLENDER=/Applications/blender.app/Contents/MacOS/blender
|
||||
fi
|
||||
if [[ "$OSTYPE" == "msys" ]]; then
|
||||
BLENDER_OUT="C:/out"
|
||||
else
|
||||
BLENDER_OUT="out"
|
||||
fi
|
||||
|
||||
INFILE=$1/src.blend
|
||||
# Render separate body parts (in collections)
|
||||
parts=(legs upper)
|
||||
@@ -52,11 +61,11 @@ do
|
||||
fi
|
||||
"$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
|
||||
rm -f "$OUTFILE"
|
||||
montage -geometry +0+0 -background none -tile x8 "out/${part}_${action}_*.png" -channel A tmpimage
|
||||
convert tmpimage -dither None -colors 32 -level 25%,60% "$OUTFILE"
|
||||
montage -geometry +0+0 -background none -tile x8 "${BLENDER_OUT}/${part}_${action}_*.png" -channel A tmpimage
|
||||
magick convert tmpimage -dither None -colors 32 -level 25%,60% "$OUTFILE"
|
||||
rm tmpimage
|
||||
chmod 644 "$OUTFILE"
|
||||
echo "Created $OUTFILE"
|
||||
|
@@ -21,7 +21,7 @@ action = argv[1]
|
||||
frames = int(argv[2])
|
||||
name = '{}_{}'.format(argv[3], action)
|
||||
|
||||
RESOLUTION = 24
|
||||
RESOLUTION = 32
|
||||
FRAME_SKIP = 10
|
||||
|
||||
angle = -45
|
||||
|
Reference in New Issue
Block a user