Code and Death
Working on some basic "next steps" for the combat system.
- Action Lock and Rotation Lock while attacking
- Attack Cooldowns
- Mini-Stagger when hit (action lock, slowed movement)
- HP & Death
When implementing the stagger stuff i had to revisit the frame animation system i wrote for this game (more details later). Specifically i had to add a .durationMultiplier, so i could simply extend the basic animations, and slow them down... Or i guess also speed them up. Anyway, that took a bit of futzing to get working corretly, now needing the frame accumulator to work with floats rather then the simple ints. Sigh. Stagger is kind of complicated because I also want any "in progress" actions (attacks, jump, roll, etc) to finish out before applying the stagger effects.
Finally added HP and damage values (very basic, JabDamage and SlashDamagejust to get something in there quick). And the Death state/animation. Sweet.
