Sunday, 8 January 2012
Adding the peeps
I've found the original
Saturday, 7 January 2012
Making gravity work against you
Thursday, 5 January 2012
Making use of particles for explosions
So far when I collide with a building. Nothing happens other than the player UFO bounces off.
I've added some quick code to make the player disapper and reset position.
But it would be nice to have a cool explosion. Well these new particles will work nicely.
Firstly I've created a wrapper class to contain the particle effects and then I can just pass this to my player object and upon collision just add the explosion particle to the game world.
Very easy to implement and now when I crash there is a satisfying explosion.
I decided to add another particle effect too for when you thrust the player UFO it now has an emission trail shoot out of the bottom.
All I did was copy the fire particle system and tweak it with a new graphic to get my desired effect.
This is kind of a distraction from getting my core game done but it was a fun experience and has added a nice polish to the game.
Wednesday, 4 January 2012
Particles are fun
I want to see my bounding boxes
Tuesday, 3 January 2012
Giving the player a bit of character
So far the player UFO just slides around the map. It would be nice to have some sort of animation. Something like the UFO spinning around.
I think you can pre animate models and then play them in XNA, not sure though I've not really researched it.
My needs are simple, I Just want to rotate the 3D object through the Y axis and my base3Dobject already has a rotation property. All I need to do is add to this value every game iteration and my 3D object will rotate as the world matrix of the object takes scale, rotation and position into consideration.
Now the player UFO spins around when I run the game.
But now I'm getting some strange collision detection issues. I can cut right into the buildings and sometimes when I land I drop through the building.
What's going on? I've only changed the rotation!