Pew pew pew!!

I’ve made a bit of progress over the last few days. Which is nice. I thought I’d share the progress with you and, if you’re interested in such things, give you a small insight to how such feats are achieved.

First of all, here’s a video clip of the current state of the game. It still isn’t much to look at but it has most of the basic gameplay elements implemented; Moving, Jumping, and Shooting.

Now, here’s a few parts of the game code for you to look at, I’ve taken some screen grabs from Bullet.cs and Game1.cs (Click to enlarge the images)

Bullet.cs

Bullet.cs is exactly what you think, it’s the code that handles everything bullet related, so it initialises the bullets with their starting variables, moves them around the screen and Draws them so the player can see them.

Game1.cs

Game1.cs is the real heart of the game, it manages everything. This is a snippet of the code which handles bullets. You can see the game waiting for input from the controller and then adding a bullet. Bullets are stored in a structure similar to an Array, a List. Lists are dynamic in size so they only use memory when it’s needed, an Array would work the same but instead of having to tell the game to initialise an Array with 200 memory slots, the List increases and decreases in size to suit the requirements.

So, there you have it. The project is progressing quite nicely, and quicker than I imagined. Next task – Implement some form of collision detection.

Colour Block Arena (WIP)

Right, time to start work on an actual game! One that I will see through all the way to the end!

This one’s based on a game I made late last year at Uni using Game Maker 8.0, a fairly powerful piece of software which is a good way of teaching you how games are made and how to make good design decisions, but not exactly what you’d use to make a professional product.

Here’s a video of that version in action : http://www.youtube.com/watch?v=JO6DyWNLp30

If you want to have a play of that, follow this link: http://sandbox.yoyogames.com/games/148513-colour-block-arena

Now, feast your eyes on this – this is how the XNA version looks at the moment! – http://www.youtube.com/watch?v=L7pIAl40F7Q

If you want to have a play of that…. why the hell would you? Not much to look at (yet) but, by gum! This is tough! My next task is to get the little dude to shoot stuff, after that, putting down some blocks and adding collision detection. Still a long way to go. I’ll post here from time to time with any progress, but I doubt this project will be done before the year is out. It’s going to take a while!

Watch this space 🙂

Dave.