PDA

View Full Version : Scrolling stars / background?



CharredSoul
06-12-2002, 06:32 PM
Ok so im a new to opengl and im starting to make a space game.

My goal is to have a top-down view of objects/spacecraft ect with stars underneath them. The ships would move like real live (I.E. the old asteroids game) and the stars would scroll under the ships.

Any ideas on a good way to accomplish this with opengl?

Damon
06-12-2002, 09:49 PM
Originally posted by CharredSoul:
Ok so im a new to opengl and im starting to make a space game.

Well, you probably should be posting in the beginner's forum then.

You'll find plenty of examples / starting points at http://nehe.gamedev.net/

My goal is to have a top-down view of objects/spacecraft ect with stars underneath them. The ships would move like real live (I.E. the old asteroids game) and the stars would scroll under the ships.

Any ideas on a good way to accomplish this with opengl?

1) Clear screen
2) Draw stars
3) Draw ships
4) Compute new starfield position
5) Compute new ship position
6) GOTO 1

-Damon