Announcing Hex

This month, I’ll be taking part in the #1GAM (one game a month) challenge with a game that I started a while back. Right now, I’m calling it Hex, though that might change. I’ve been making decent progress on it for the last week or so, and to keep me motivated, I’ll be blogging about my progress each day. The challenge ends on February 28th, so Hex will be available to play by then at the latest.

On to the status update. Today I added a new type of unit to Hex, called an Arrow (resolving GitHub issue #6). Arrows are unique because they can attack twice before becoming exhausted, which allows them to attack multiple targets, or to burst a single target. They can also move between attacks. There are two other kinds of units- Cubes, and Pyramids- which I will describe in more detail in the coming days. Both of the other unit types have already been implemented.

I cannot emphasize enough how important it is to bake good polymorphism and inheritance into this kind of code; having a solid Unit base class to work with is making the other unit classes much smaller.

Here’s how things look right now:

Capture

 

I’m excited to continue working on Hex!

 

piebie

 

Leave a Reply

Your email address will not be published. Required fields are marked *