Melee Combat: Duel at Dawn

Professor Parse

In this chapter, you'll duel at dawn, with a sword. The big idea is that a fight is a state machine of wind-up, strike, and recovery, where timing decides who wins, and where the same rules can run both the player and the opponent.

I'm still writing this chapter, step by step. In the meantime, you can play the finished game, and read the code and the assets that make it, so that you can run it and change it yourself.

Play the Game

The code that makes it:

The assets, which go in an assets folder next to the game: