Article View: rec.games.programmer
Article #722PC: background scrolling using virtual screens
From: John Zurawski
Date: Fri, 14 Aug 1992 07:34
Date: Fri, 14 Aug 1992 07:34
29 lines
1495 bytes
1495 bytes
I am trying to create a horizontal scrolling background. I believe
that to do this I create a virtual screen that is larger than the physical
screen and pan across the virtual screen. I place the tiles on the off-screen
portion and then pan to the right to smoothly reveal them.
Visible portion of virtual screen
| +----- Placement of new tiles
\/ \/ /------- End of virtual screen
+---+-------+---+
| | |X |
| | |X |
+---+-------+---+
I then continue the process of adding new tiles and panning to achieve
the scrolling effect.
My question is, what do I do when I reach the end of the virtual screen.
I want to have the illusion of an inifinitely long background. I have tried
panning past the end of the virtual screen, the left side wraps around
successfully, but I loose the top line of the background each time.
Also, provided there is enough video memory left over, is it possible
to implement double buffering/page flipping AND panning AND/OR a split
screen for smooth animation of any objects?
--John C. Zurawski
Technical Details
Message-ID:
<1992Aug14.073401.7744@tamsun.tamu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!tamuts!jczhelpShow Full Headers
Complete Article Headers
Newsgroups: rec.games.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!tamsun.tamu.edu!tamuts!jczhelp From: jczhelp@tamuts.tamu.edu (John Zurawski) Subject: PC: background scrolling using virtual screens Message-ID: <1992Aug14.073401.7744@tamsun.tamu.edu> Sender: news@tamsun.tamu.edu (Read News) Organization: ~/lib/organization Date: Fri, 14 Aug 1992 07:34:01 GMT Lines: 30