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;
    }
}

No comments:

Post a Comment