What is the best general approach to implement scrolling for a 2D tile based game?
I need to scroll the map with a constant speed, lets say 2 pixels every frame (like in a top down shooter).
The tiles are 32x32 and the map is quite big, lets say 10 x 300.
There are 2 layers: - first is the background layer - second is the forgeground layer with obstacles and enemies
The target plattform is android and I want to use OpenGl.
What is best practice?
a) Draw only the visible Screen all the time (every frame) b) Load complete map into memory and just move the camera
Is there a difference in performance and determining collision etc.?
Thanks for any help!