I simultaneously hit a major milestone and problem in my most recent game. The basic plan is to make a turn based strategy game similar to Shining Force and Fire Emblem. I've been working on the movement for a couple of days and finally got it working how I want it to.

The Good

  • I wrote an algorithm that steps around a character and finds the spaces within their movement range, taking into account terrain.
  • I wrote a heatmaping algorithm that allows all the troops assigned to a hero have an easy, computationally inexpensive way to move towards and keep with the leader of their squad.
  • I wrote a bunch of code that handles movement exceptions (squads can move across members of the squad but not stop in the same space. Heroes can swap places with any of their squadmates. Enemies block movement. Etc.)
  • I made some test graphics and got everything working together.
It works slick so far. I assigned 200 troops to a leader and can move him and have all 200 troops find the best way to follow him in less than a tenth of a second, less time than it takes for the movement animation to finish.

The very, very bad:

I'm writing it in Haxe using HaxeFlixel. The problem is that when I target Flash it hangs. Even with only one troop. There is something about the different way that Haxe compiles to Flash versus the Neko emulator that causes my algorithm to hang. I love Haxe, but these types of errors are really difficult to track down.

Make games.

Work on some aspect of a game, let's say 5 days a week.

daily from 2015-01-25 to 2016-01-25

Code @Home

Work on a Home Project each day

daily from 2015-01-26 to 2015-12-31