home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / rec / games / programm / 5534 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.5 KB

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