www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/19/21:35:43

From: arg AT whangomatic DOT freeserve DOT co DOT uk (Andrew R. Gillett)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Tile-based side scroller
Date: Tue, 20 Apr 1999 03:07:52 +0100
Organization: www.release-dates.co.uk
Message-ID: <MPG.1185e78369624d2298a9a1@news.freeserve.net>
References: <371BA144 DOT 7E87BF51 AT usa DOT net>
NNTP-Posting-Host: modem-76.dextroamphetam.dialup.pol.co.uk
X-Trace: news5.svr.pol.co.uk 924574075 7310 62.136.62.204 (20 Apr 1999 02:07:55 GMT)
NNTP-Posting-Date: 20 Apr 1999 02:07:55 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: MicroPlanet Gravity v2.11
Lines: 14
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In comp.os.msdos.djgpp, Lonny Smith wrote:
> I'm doing a side scroller and I was wondering exactly how to get the
> screen to scroll.  And am I supposed to use an enourmous image as the
> level or what?  Are there utilities for making scrollers?  I'm
> completely clueless.  Any help would be appreciated.

If it's tile-based, then you have a big array which defines the map in 
terms of which tile sprite each square uses, then you display the map by 
reading from that array. To scroll, simply change the x and y offset 
which determine where in the array you start when drawing to the screen.

-- 
Andrew Gillett       http://argnet.fatal-design.com/      ICQ: See homepage
"Aaaaaaaaaaaaaaaahh." - Richard Herring

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019