Skip to main content
gamedev.net
🔒 Locked

yet another scrolling post

Started by OoMMMoO 1 reply 150+ views
Original Post
OoMMMoO
OoMMMoO
Im not to sure but I was thinking, to scroll couldnt you just make a RECT the same size as the screen either 800x600 or whatever and then move the rectangle along your tile maps? And have your first layer of tiles already layed and blit the other layers of tiles only when they are being displayed. Would this work?
biskit
biskit
Yes it would. However, it would probably be more memory efficient if you just store the layers in RAM, and render the layers to your map surface everytime you draw. Then you would just use your viewport rectangle to figure out which tiles to render on the map surface.
----------------------------------------Implementation is everything. Period.
OoMMMoO
OoMMMoO
Do you mean blt stuff even if it isnt in the viewable rectangle?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.