I have a grid of tiles (200 across and 200 down). I want to display them on the screen within the screen viewport and let the user scroll with their finger to move the tiles around. There would only be 3-4 tiles displayed on either axis at any time.
So, my question is, if I have a center point which is the center of the screen. How can I calculate which tiles I need to draw and draw them relative to the center?
I know this is a basic question but I'm new to graphics programming and can't find any examples that explain how to do it.