Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

asteriods game and opengl

This topic is 2749 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement

is the next step pseudocode or a flow chart.


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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!