Mail Archives: djgpp/1996/11/06/15:29:42
Michael Sweeney wrote:
>
> I was wondering on how to implement a HUGE scrolling screen, similar to games
> such as C&C and Warcraft. I've checked out most sites and could not find any
> info on how to do it, and Allegro unfortunatly doesn't support the size of
> virtual screen I would need. So if I want to use something other than virtual
> screen how should I go about it?
Just how big do you want?
The library I use (mine) supports images as big as you can fit in
memory, which would be about 4096x4096 on my machine.
But it sounds like you want to use a tile-based background. What you'll
need to do is store a bunch of tiles somewhere, and the background will
be a grid of numbers representing which tiles go where. Then you just
create the tile background in real time, drawing from the large tile map
to a smaller screen buffer.
-- Yamaha / XYZZ
mailto:scriven AT CS DOT ColoState DOT edu
mailto:scriven AT VIS DOT ColoState DOT edu
http://www.vis.colostate.edu/~scriven/
- Raw text -