Monday 10 October 2011

Counter-attacks, bug fixing

Over the weekend I added in a few features to the project, the biggest change being the addition of counter attack. Now, if a fighter successfully blocks an opponent's attack, they have a (changeable) window of .5 of a second to retaliate, causing an instant and powerful attack to occur. All of the values included in this are fully tweakable, so balance changes can easily occur.

Another addition to the moves are separate movesets for each fighter. There is now a base moveset, containing things like blocking and crouching, which is inherited by all the fighter's separate movesets. These contain the rest of their attacks, allowing them to have completely individual moves per fighter. This means that Ivanov, a slow character, can have slow, powerful moves compared to Catalina, who is a fast character, while both executing the same move sequence.

I also did a few minor bug fixes and tweaks, such as resetting the fighters to their start position at the end of a round, and preventing attacks or movement events to be queued up while blocking.

No comments:

Post a Comment