delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/13/02:00:55

From: Matt Guest <ghema AT jaguarsystems DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Scrolling???
Date: Fri, 13 Mar 1998 01:46:53 -0500
Organization: InterActive Network - Serving S. NJ (609)227-4428
Lines: 29
Message-ID: <3508D65D.3A8105B5@jaguarsystems.com>
References: <01bd4dd6$5a412200$9c51dece AT stachowiak>
NNTP-Posting-Host: usr16-7-5.jaguarsystems.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


Helix wrote:

> I've reached a point in game development were I need the ability to scroll
> the screen. Now normally I would simply redraw a different part of a bitmap
> if the picture on the screen had to change. I have a problem in the sense
> that I have to redraw a large number of bitmaps, which flickers and slows
> down the game.
> What I would like ultimatly is a way of blitting the screen including areas
> not on the screen at that particular time into a large bitmap that I can
> the manipulate.
> If anyone has a better (meaning easier and faster) way of scrolling I would
> really appreciate it. Sample code would be especially nice.
>
> maciek AT compmore DOT net
> THANKS

What graphics lib are you using?

Allegro allows you to create bitmaps of any size, so you could draw the area
around the screen and copy the part you want to currently show all at once.  It
also supports modeX which has hardware scrolling support.  You should look into
it.  If you want a very detailed explination on how to scroll the screen, email
me.

-Matt
guestm AT usa DOT net

- Raw text -


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