I've also started making the class structure for the buildings by making a super class that has all the elements that every structure shares (position, texture, health, maxhealth, etc.). The next thing to do is to inherit some classes from it and to make the logig for selecting and building structures.
I've also made up my mind about the way I'm going to make the fog-of war. I've decided to use an array covering the whole map and edit that whenever a unit moves. I could have made it manipulating an image and using it as an alpha-blending map, but I think this will suite my needs better - after all, this is a tile based game, so the shadows can also be tiles.

And here's a shot of the selecting box.
1 comment:
Awesome work :) It's nice to get a visual on these projects as opposed to just talk about it. let me know when you have something up to test.
Thanks,
Ziggy
Ziggyware XNA News and Tutorials
Post a Comment