home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4696 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  1.8 KB

  1. Path: sparky!uunet!gumby!wupost!cs.utexas.edu!ut-emx!ccwf.cc.utexas.edu
  2. From: baylor@ccwf.cc.utexas.edu (Baylor)
  3. Newsgroups: rec.games.programmer
  4. Subject: Re: Xmode Scrolling
  5. Message-ID: <83704@ut-emx.uucp>
  6. Date: 15 Nov 92 23:09:14 GMT
  7. Sender: news@ut-emx.uucp
  8. Organization: The University of Texas at Austin, Austin TX
  9. Lines: 28
  10.  
  11. >  What I am wondering is how games do scrolling (smooth) with a static 
  12. >piece any other place on the screen, such as on the left.
  13. >  
  14.     Honestly, they do it completely different then the way you think.
  15.     They don't scroll anything onto the screen. Virtual screens
  16. are almost always to short for anything except demos and title screens
  17. (at which point it looks very nice).
  18.     They define an array of screen tiles for background (not
  19. jill, alligators or such) and then do a putpic-type blit for each
  20. visible screen, that is, they constantly redraw it!
  21.     Ok, get yourself a scratch piece of video memory. Put down the 
  22. background (can be done with movsw), each tile hopefully like 16*16
  23. or 32*32. Then put down things that go over the background, keeping in 
  24. mind their priority (if two things collide on the screen, like the
  25. birds and alligators, which overlaps which? Depends on the order
  26. they're put down, so keep that in mind). Then lastly draw the things that
  27. masks everything else, like the words DEMO in keen or other words
  28. on jill (or anything you can walk behind that masks you, like columns
  29. and hidden tunnels).
  30.     That's also how you can have teh score on top or on the side and
  31. scroll in a window, like in duke pukem.
  32.     Someday look at the intro to Ultima 6. Turn your machine down to
  33. 4mhz and use the pause button alot - you'll see that it doesn't scroll
  34. smoothly and that you can catch it before it finishes a redraw, something
  35. that doesn't happen by scrolling with the start address.
  36.                             - baylor
  37.  
  38.  
  39.