View Single Post
Old 26 July 2013, 21:15   #222
Mrs Beanbag
Glastonbridge Software
 
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
Quote:
Originally Posted by diablothe2nd View Post
would you suggest i take my pre rendered background and break it up into 64x64 tiles. then simply tell it to load only the tiles about to come into view? EDIT - and discard the ones that just left
As in, load them from disk? Usually you would store all the tiles in Chip RAM and draw them on the screen when needed. 16x16 and 32x32 are typical sizes for tiles but you could use 64x64.

A common trick is to use the Copper to reset the bitplane pointers back to the top of the screen so it "wraps round" vertically. Horizontally you don't need to worry about because that wraps round anyway. Just make sure the screen has a few spare lines at the bottom. That way you can scroll around a huge virtual area, and only draw the tiles at the edge as they come into view.
Mrs Beanbag is offline  
 
Page generated in 0.08006 seconds with 11 queries