Article View: rec.games.programmer
Article #1112MCGA Vertical Panning/Windowing
From: Southern
Date: Fri, 09 Oct 1992 20:44
Date: Fri, 09 Oct 1992 20:44
11 lines
1125 bytes
1125 bytes
Some games I have seen seem to scroll through a buffer in a window on the screen. I have experimented with the Start Hi/Lo registers and so on, but I can't figure out how they can scroll in a window like that.. What I'd like to be able to do is have a vertical scroll in say a 300x150 window centered on the screen. What is the best method to update the buffer for the scrolling? I have tried storing a long image in memory and moving it one chunk (4 rows of 320 pixels) at a time to the invisible part of the buffer during the scroll. I can't find a better way to do it. I'd really like to learn more about this sort of programming and this newsgroup has been the best place to learn.
Technical Details
Message-ID:
<1992Oct9.164412.916@newstand.syr.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!van-bc!cs.ubc.ca!destroyer!gatech!rutgers!psinntp!psinntp!newstand.syr.edu!rodan.acs.syr.edu!southernShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!van-bc!cs.ubc.ca!destroyer!gatech!rutgers!psinntp!psinntp!newstand.syr.edu!rodan.acs.syr.edu!southern From: southern@rodan.acs.syr.edu (Southern) Newsgroups: rec.games.programmer Subject: MCGA Vertical Panning/Windowing Message-ID: <1992Oct9.164412.916@newstand.syr.edu> Date: 9 Oct 92 20:44:12 GMT Organization: Syracuse University, Syracuse, NY Lines: 11 Originator: southern@rodan.acs.syr.edu