2009/06/26

Blender 3d fighter game.

The game discussed in this blog is available here: http://www.3dvia.com/kiml/models/61890657697B4D5F Click on download, then original blend file.
Yesterday I started to make a game in blender, I was going for a little game where you move some sort of rudimentary car around, but I ended up with this. I'd say this is about a 0.3 release, so don't expect perfect functionality. I'd like to hear any sort of feed back, especially if it helps me make the game better. I've added the instructions and description at the end, so I'll just show you the video.







You'll need Blender to run this game, which is free, open source and works on most operating systems.
Just open up the game and press p to play.
The controls are as follows:
arrow keys - turn the ship
space bar - fire main thrusters, also acts to stop rotation.
w,a,s,d - move camera.
q,e - roll ship
z - fire guns
x - fire main engine
c - detonate all bullets
left Alt - reverse (Alt and space together work quite well to keep you stationary)
m - start the music... which won't have been included, sorry.

The aim of the game is to destroy the asteroids without getting your ship broken. You can shoot 'em, ram 'em, hit 'em with the traps, whatever, if your ship still works after what you did was fine. When you've got all the asteroids, well done, it doesn't say it, so just pat yourself on the back.

Damage; This game doesn't have any sort of damage meter, but you can be damaged. The engines are not connected to the ship at all, you'll see them moving around in little boxes. If you hit something too hard (or something hits you too hard (beware the spinny and the crushy things) an engine might get turned around or come loose entirely and fly around on its own. If you do loose an engine you can still manoeuvre with the other ones, but you can't get that one back. If you loose all four engines all you can do is move forward and shoot, but you'll never be hurt any more.
It's sometimes an interesting challenge to try to manoeuvre when damaged.
The gun is a bit odd. It looks normal enough when you fire, a continuous string of bullets come from it. The odd part is that they explode when they hit anything, or if you press c. But after they've exploded they're able to explode again and again until the cease to exist after a certain time. These bullets are the thing that can most easily damage you ship, so don't fire at too close range.

If you're more familiar with blender, you might want to try viewing from the lunar lander view and using layer one and the one beneath it to play the lunar lander variant of this game, all controls are the same, but I haven't set up the camera. You'll also want to set the world to one with gravity (in the materials tab) or just put the gravity slider up a bit.
In this game the aim is to get the three coloured spheres back to the pad you start over. If anything touches the pad beneath the sphere it'll jump to your location and move with the ship until you touch the home pad again. Logically you'll go and land on the goal's pad, but there are other ways to do it. The third one is a little different. You have to fly all the way down the tunnel and through the sphere to pick it up, which is easier said than done as there's and endless stream of balls rolling down with you.
Oh' and with the gravity on, be careful of shooting straight up, you have been warned.

I've only run this game on my computer which has a 2GHz dual core processor, and it's frame rate sometimes gets a bit low, so if you're running on a less powerful computer you may have to be careful how many shots you have flying around at once, or even delete a few objects to make it simpler.
I hope you enjoy this game, all forms of feed back are welcome and encouraged.