Sign in to follow this  
phil67rpg

asteriods game and opengl

Recommended Posts

phil67rpg    443
well I have written up a SRS for an asteriods game using opengl.
is the next step pseudocode or a flow chart.
here is what I have so far.

Space Ship Functions
Render a triangle primitive as a Space Ship.
Draw the ship in the center of the screen.
Move the ship up the screen. W Key
Move the ship down the screen. Z Key
Rotate the ship to the left. A Key
Rotate the ship to the right. D Key
Turn on the ship shield. S Key
Turn off the ship shield. S Key
Turn on the ship thruster. T Key
Turn off the ship thruster. T Key
Have ship fire bullet. Space Key
Have bullet wrap around the screen with limited range.
Have ship wrap around the screen.

Asteroid Functions
Draw four asteroids on the screen.
Move asteroids up the screen.
Move asteroids down the screen.
Have asteroids wrap around the screen.
Have a bullet hit an asteroid.
If bullet hits an asteroid it breaks into two smaller asteroids.
Use collision detection when bullet hits an asteroid.
Asteroid disappears after being hit with bullet.

Alien Ship Functions
Draw big alien ship.
Have alien ship enter from the side of the screen.
Have alien ship fire bullets in random directions.
If bullet hits alien ship it disappears.
Alien ship moves in random directions.

Scoring Chart
Level 1 Asteroid (Big) - 10
Level 2 Asteroid (Mid) - 20
Level 3 Asteroid (Mid) - 30
Level 4 Asteroid (Small) - 40
Big Alien Ship - 500
Small Alien Ship - 1000
































Share this post


Link to post
Share on other sites
SriLumpa    198
[quote name='phil67rpg' timestamp='1302755144' post='4798261']
is the next step pseudocode or a flow chart.
[/quote]

The next step is real code ! For something that simple, even what you did is too much, if you ask me :)
By the way, what is a "SRS" ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this