September 9, 2010

When Robots Attack. Part 1


I am going to do something different tonight. I have been working on making a engine in c++ for a Top down shooter game. Like i made a game with zombies in it or Robotron 2084. I was originally create my master piece, but I decided to make something less ambitious so I can get my feet wet in the genera. As stated this project will be programmed in C++ and I will work on it in my free time.

I don't plan on making regular blogs about this, but more or less of showing off what I get done as I progress with the creation of it. Anyway you probably want to know what type of game I am making. All I know about the game so far is the enemies will be robots and you will have a gun with upgradeable rate of fire. Beyond that this game is a blank slate ready to be filled.

As for programming I have done quite a bit of work on the core element of the engine. So far I have a player(red square), who shoots bullets(not shown), walls(dark grey, and enemies(dark tanish brown color). These are all displayed in the picture below.
Now please don't leave comments saying that the graphics look like crap. I know that they are just place holder graphics till I can make or find good ones.

Now I shall explain what you see. The player can move up,down,left, and right. The enemies automatically run towards the player. By pressing the mouse button the player can shoot a bullet. One thing I am proud of is that about 3 times every second a new enemy is created and yet there is no slow down. Even though I am doing some very heavy lifting for the enemy AI (floating points, and division every frame) the frame rate so far has not hiccuped on my middle end laptop.

What I hope to get done within the next few weeks is get stats like health and score. More entry points for the robots. Improved AI so perhaps the enemies can go around obstacles and perhaps camera functions for larger levels.