I have got some code for an asteriods game that moves the ship around and can fire bullets. i am really stuck on the asteroids part.
I need to include an asteroid, map a texture onto it, how?
make the asteroids move around?
make the ship, bullets and asteroids detect collision?
asteroids split when hit?
map an image in for the ship instead of having a firing triangle?

Quite alot really. Can anyone help or donate some code that shows me how this to do it please, it would be a great help

Thanks Mat

nexusone

04-24-2003, 08:09 AM

nehe.gamedev.net has a good tutor that will help with all that you have asked.
I think it is lesson 32, in which he does a simple game using textured maped objects.

Originally posted by mat01:
I have got some code for an asteriods game that moves the ship around and can fire bullets. i am really stuck on the asteroids part.
I need to include an asteroid, map a texture onto it, how?
make the asteroids move around?
make the ship, bullets and asteroids detect collision?
asteroids split when hit?
map an image in for the ship instead of having a firing triangle?

Quite alot really. Can anyone help or donate some code that shows me how this to do it please, it would be a great help