Create a demo to showcase a parry mechanic in a 2D game. This demo is, in particular, about a "perfect block". It should showcase both a basic blocking mechanic ( you press a key down, and it blocks incoming attacks) and some special bonus when blocking with great timing.
Like before, you want the demo to focus entirely on the parry mechanic, so you want:
Something that attacks the player.
A player character that can parry (and, optionally, move).
You can use side-view-only gameplay for this demo to keep the character movement/parry code simple. Like in a fighting game, where characters always face the same direction.
Requirements
The enemy attacks the player with some close combat weapon (sword, club, ...)
When the player presses the block action down, they block incoming attacks from the front.
If the player presses the block action right when the enemy's attack is about to hit, the enemy gets stunned for a short amount of time (they stop attacking).
Optional
(these things are optional requirements to add if you feel up to the challenge)
The enemy has simple AI. They move towards the player if not in range.
Important aspects of the design
Allow controlling the timing window and area for doing a perfect parry (give the player some margin to make the game feel fair).
You need to decide on how permissive button bashing is, like if you constantly press the guard key, does this count as a perfect parry or not?
Create a demo to showcase a parry mechanic in a 2D game. This demo is, in particular, about a "perfect block". It should showcase both a basic blocking mechanic ( you press a key down, and it blocks incoming attacks) and some special bonus when blocking with great timing.
Like before, you want the demo to focus entirely on the parry mechanic, so you want:
You can use side-view-only gameplay for this demo to keep the character movement/parry code simple. Like in a fighting game, where characters always face the same direction.
Requirements
Optional
(these things are optional requirements to add if you feel up to the challenge)
Important aspects of the design