Friday, December 21, 2007

Major progress for a change

The game is coming along just great! I've completed the superclass for structures and inherited two buildings from it. The superclass has the values no building can do without: the position, sprite, health, maxHealth, name, description, price, power consumption, width, height and the inherited building classes set those values (each building class has variable set for maxHealth etc., but also the accessors to modify them).

PIC1: Building can now be selected and the building info box shows the real data. Also, when the building is not selected, hovering above it shows a hint box with the building name.



PIC2: When no building is selected, there's no need for the building info box.



PIC3: Here's another buiding inherited from the structure class.



Just in case someone cares, I'm planing to release the binaries and source codes every once in a while, but can't do so just yet as the building graphics are not my own. I'm working on some building sprites of my own, but until then I can't be sharing.

Some short descriptions with code samples about the game engine functions might appear here some time in the future though...

No comments: