Article View: rec.games.programmer
Article #1957Smooth-scrolling tilemap programming (PC/VGA)
From: Kludge
Date: Wed, 13 Jan 1993 04:11
Date: Wed, 13 Jan 1993 04:11
15 lines
1323 bytes
1323 bytes
Aaaargh. What's the best way to implement a scrolling tilemap? I don't want to use the one in one of the pre-done packages because mine will probably use a strange storage method. I'm using XLIB04, and it works -- but too slowly. I'm using a screen surrounded by a border of extra tiles, which are scrolled smoothly onto the screen using pel panning (changing the start address.) When I have scrolled as far as possible, I do a block copy (with x_cp_vid_rect()) from the current page to the hidden page, moving the block in the direction I'm scrolling. Then I redraw the "exposed" line of tiles and flip pages. This works... but I get a noticeable pause at each copy/redraw/flip. Any suggestions? I know this can be done faster, but how? Thanks... ...Kludge
Technical Details
Message-ID:
<1j04q9INN57t@shelley.u.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!ogicse!cs.uoregon.edu!news.uoregon.edu!news.u.washington.edu!hardy.u.washington.edu!kludgeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!cs.uoregon.edu!news.uoregon.edu!news.u.washington.edu!hardy.u.washington.edu!kludge From: kludge@hardy.u.washington.edu (Kludge) Newsgroups: rec.games.programmer Subject: Smooth-scrolling tilemap programming (PC/VGA) Message-ID: <1j04q9INN57t@shelley.u.washington.edu> Date: 13 Jan 93 04:11:53 GMT Article-I.D.: shelley.1j04q9INN57t Reply-To: kludge@u.washington.edu Distribution: world Organization: University of Washington, Seattle Lines: 15 NNTP-Posting-Host: hardy.u.washington.edu