Posted June 14, 2019 by SDJedi
The last of my placeholder models are gone. Fire Ghouls have taken their place!
When I introduced counter-attacks last week, I found some issues with my code structure. My code was working under the assumption that characters would only die at their "home" positions, and so I ran into all kinds of wonkiness when an attacking character died from a counter in the middle of the battlefield. My workaround was to prevent counter attacks that could be fatal, but I didn't like this approach. This week I restructured my code so that it doesn't matter where a character dies, and counter-attacks can once again be lethal. (Note: to test out lethal counter attacks, the Fire Dragon has been gifted with a particularly nasty counter).
My goal when I began this project was just to build the turn-based combat system for an RPG. Specifically, I set out to create the following:
I managed to build all of the things I'd hoped to when I started the project, and I'm pretty happy with the results. And so, I've decided to expand the scope of the project. I've only just started, and this week's build shows the first step. The player can now right-click and move around in an "overworld" and transition to the battle via a button in the top-left corner of the screen. My goal is to begin building on this, adding to the overworld and introducing the traditional "random encounters" as the player wanders around.
If i like how things are going, I will start work on other RPG systems, such as questing, inventory, crafting, etc. One step at a time!