Wednesday 10 December 2014

Under the Hood

The past few late nights have been spent splitting the project into reusable components. It was already structured that way but now we have a shared game library that can be linked to for use in future games.

The lib can be linked statically or dynamically.

An example of the line between the game and the lib is the Player Sprite. The Player Sprite is part of the game and inherits from Sprite which is part of the generic library. Sprite then inherits from a generic Renderable object.

The lib also contains stuff like math tools (vectors), physics, input and Window management. Anything that could be reused for another game really!

P.S. Finally made the jump from bog-standard make to cmake for the shared library. It's just as cryptic but a little easier to use I guess!

No comments:

Post a Comment