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;
}
}
This blog will record my progress as I attempt to make my Pseudo 2.5D game in DirectX for my C++ coursework. If you like this software and blog please donate to Cancer Research UK through the following link: http://www.justgiving.com/game4cancer
Saturday, 11 December 2010
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
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
Subscribe to:
Posts (Atom)