While the project is in development phase it is very convenient to have all the assets laying around in folders. But when it’s time to distribute your game it doesn’t look as professional when everything is lying all over the …

Spacefight – Packing all the resources into one file – Part 10 Read more »

In software development there are different types of bugs. C++ is a hard typed language which makes it easy for the compiler to detect errors in the code. So if there is type error (int is not a float, or …

Spacefight – Gamecrash, memory leaks and frustration – Part 8 Read more »

All games contain loops of some sort. The most important loop in the game is simply called “game-loop”. This is a short example how it will run:

This is a short version of what is happening in the code. …

Spacefight – The game-loop – Part 6 Read more »

In the last post I made a GameObject class. Now it’s time to subclass from the GameObject class into an enemy. The enemy object will make use of the shared functionality in GameObject, like position, access to a shared AnimationLibrary …

Spacefight – Subclassing into enemies, player and other stuff – part 5 Read more »