Hey guys
I need a bit of assistance building an asteroids style game for college work. The problem I face is mainly finding coding for making the ship rotate in the middle of the screen.
Here is my design blog:
I dont know whether to allow the player to move or just let them rotate on a fix location in the middle of the screen (i can always add it in once the rotation has been coded)
So my first problem is sorting out coding to allow the "A" and "D" keys to rotate the "spaceship" accordingly.
reps for any help
I need a bit of assistance building an asteroids style game for college work. The problem I face is mainly finding coding for making the ship rotate in the middle of the screen.
Here is my design blog:
My game idea follows the basic idea of the classic Atari game, Asteroids. I aim to use basic graphics that I have designed myself, on a background of stars and planets. The player will have to fire at asteroids, making suitable sound effects as the missile/laser fires out of the ship, destroying the asteroid (if hit) showing an explosion animated gif. Lives will be shown at the bottom of the screen and score will increase by 50 per asteroid. I could even make levels, so that asteroids speed up by a certain value per 10 asteroids destroyed (will be calculated by score increase).
I dont know whether to allow the player to move or just let them rotate on a fix location in the middle of the screen (i can always add it in once the rotation has been coded)
So my first problem is sorting out coding to allow the "A" and "D" keys to rotate the "spaceship" accordingly.
reps for any help