home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!hela.iti.org!ais.org!roofus!empath
- Message-ID: <765371d7001478t21@roofus.ann-arbor.mi.us>
- Date: Wednesday, 27 January 1993 19:23:46 EST
- X-Mailer: TMail version 1.14R
- From: "Tim Triemstra" <empath@ais.org>
- Organization: Empath Software
- References: <7764@sersun1.essex.ac.uk>
- Subject: Re: Starfields.
- Newsgroups: rec.games.programmer
- Distribution: world
- Lines: 26
-
- In <7764@sersun1.essex.ac.uk>, alexk@essex.ac.uk wrote:
- > I am currently attempting to write a starfield that moves from the
- >centre outwards. I have done a horizontal one, but am advancing. Mine is
- >decidily slow and cumbersome. Does anyone have some info on this.
-
- Hows about are you trying to accomplish this? If it involves and array,
- I can already tell you that you're probably not going to get the results
- you are looking for (not to mention taking up alot of memory that isn't
- needed.)
-
- You may want to try this. Draw the stars in a color that isn't used for
- anything else within the starfield. Then, move around the screen, from the
- inside out, looking for screen pixels with this color. Then, simply put
- the color back (to black) and draw the star at the same angle away from the
- center at a slightly longer distance....
-
- I hope this helps. Although it may require a half-way decent graphics
- package to get good results.
-
- Tim.
-
- -------------------------------------------------------
- | When the end comes, there will be two men standing: |
- | Me, and the guy I gotta kill. - Gosh I'm EVIL |
- ------ Tim Triemstra ------------- empath@ais.org -----
-