After testing the infantry extensively I've come to the conclusion that it's possible to depict an infantry man with just 4 directions of movement and 4 frames of animation.
Previously I was using 8 directions and 8 frames of animation. That's;
Previously I was using 8 directions and 8 frames of animation. That's;
4x4=16 vs 8x8=64
Obviously 8 frames looks much better, but not so much that it's worth 4 times as much resources. An 8x8, 64x64 pixel animation takes up 512x512 pixels. That means for a 1024x1024 sprite sheet I could fit in 4 animations.
Each infantry type has 16 animations at the moment:
- default: Just standing around waiting.
- walk: walking, running, marching, it's all pretty much the same.
- fidget: A general all purpose action, for laying mines, serving an anti-tank gun, etc...
- ride vehicle: Crouching atop a tank or assault gun for quick transport.*
- shoot 1: a variation on shooting their weapon. Maybe standing.
- shoot 2: so it doesn't look boring, an additional shooting action, crouching for aim?
- go prone: going in a prone position. Harder to damage when prone but moves slower.
- prone default: or maybe a fidget? could use the last frame of go prone.
- prone shoot: need a different animation for shooting while prone.
- prone crawl: for moving while prone.
- prone die: when the character is killed while prone.
- in trench default: only shown from the waist up, taking cover in trench or fox hole.
- in trench shoot: again, only shown from the waist, could also be used for being in water.
- in trench die: dead in a trench, or in a swamp or river etc...
- die 1: first variation
- die 2: second variation to avoid a whole squad doing synchronized death dance.
If I use 8x8 animations, I'd need 4 sheets per infantry variation (machine gunner, officer, rifleman etc...) but if I cut it down to 4x4 animations I can fit them all on one sheet, and I can lay them out as above, one line for each animation. This makes organization much easier.
Other options would be to reduce the size of the sprites (32x32 pixels looks terrible), to reduce the number of animations, or to reduce the number of infantry types.
* ride vehicle would be a special case, 4 directions wouldn't look that great so it would be better to have 8 directions but only 2 frames of animation, or even only 1 frame and 16 directions of animations, this would make them look better while the vehicle is turning, as they wouldn't switch direction too suddenly.
In other news I've been working on the combat controller, which will choose nearest targets, rotate turrets and keep track of damage and ammo as well as firing weapons.
So far I've got it picking targets and rotating the turret. I need to go back to the vehicle builder and add some more stats (turret rotation speed, rate of fire etc...) before moving on with that.
Another idea I had today was to have north and south directions plus south east and north east. Mirroring these two directions would give south west and north west for a total of 6 directions..
ReplyDeleteThe down side is that the characters would switch their weapon hand. Also the north and south mirrors would be wasted as mirroring them wouldn't produce a new direction.
Perhaps only have S, Se, E and Ne. That would give 7 directions with mirror images.