Thursday, December 20, 2007

Progress report 20/12

The game engine now has the ability to scroll and the mouse cursor is changed to give the necessary visual aide. Some tweaking has also been made to the select box (ie. the ability to select multiple targets by dragging a box over them), mainly to draw it over the right things and under the others (units, menus).

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:

Zygote said...

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