Thursday, July 21, 2005
Flying units are now in the game, and cards now have colors.
Tuesday July 19, 2005
I added thoughts on unit costs. Also some new screens.
Sunday July 17, 2005
A lot of refactoring happened in the last few weeks, changing things from hardcoded to more configurable. The battle system is becoming much more rounded out. Now characters can have multiple attacks, and the attacks can be of different types. Currently ranged attacks and HTH attacks are supported. Units will only counter-attack if their default attack can reach. So if an archer shoots a knight from 3 spaces away, the Knight can't do anything. (Before the Knight would magically attack back.)
To support this I added a rough menu system rather than relying on keyboard shortcuts like before. (You can still use shortcuts int the menus though). At this point I'm getting pretty happy with the combat in general, it's very tweakable now.
Here is an example of the Ninja character XML file. It's a file that uses Java reflection to set-up a unit with an attack list. As you can see, the Ninja has a projectile attack and a normal attack.
As a next step I might work on the army set-up and creation, because I'll need that once I have more than a handful of units.
After some initial messing around, I've decided an army set-up UI is a big task that really requires some planning. So for the time being I've made it so that armies can be created as text files and loaded at startup.
- Units can now have more than one attack specified in XML file.
- Bare-bones menu system in place.
- Major code refactoring to support XML specified actions.
- Units will now only counter-attack when appropriate.
Sunday July 3, 2005
- Made red and blue team populated on opposite sides of map.
- Units now show time till next turn for debugging purposes. Moving, attacking, and ending turn all add to the time the next turn takes to roll around, with some units (Ninjas) rolling over more quickly than others. (Knights)
- Combat now does some actual math and units take damage, although they cannot die.
- Added some new screenshots.