Saturday, 11 December 2010

Its alive...

Slowly but surely I am managing to get things working in my game.

This week I have added a vector of enemies with functions containing for loops to do the necessary loading and rendering to the screen.

I have also managed to get my bullet moving and returning after a key press.

I am currently working on my collision detection algorithm which at the moment looks like this:

bool CollisionCheck()
{
    if (G1.B1.GETXCOORD() > D1.GETXCOORD() && G1.B1.GETXCOORD() < D1.GETXCOORD())
    {
        return true;
    }

    else if (G1.B1.GETYCOORD() > D1.GETYCOORD() && G1.B1.GETYCOORD() < D1.GETYCOORD())
    {
        return true;
    }
}

Wednesday, 1 December 2010

Some progress/changes

Scratch my last post. My game is now called "Dragon Swarm"

I have currently added a background, a player class which inherits from the game object class and an enemy class which inherits from the player class. I have implented some simple movement functions for the enemy and also for the players gun.

I have a bullet class that will fire which the left mouse button is clicked.

Sum sprite sheets to follow:

Enemies, crosshairs, bullets and weapon