Mapping coordinates to screen in PyGame
<p>Ok, lots of explaining to follow, so bear with me.</p>

<p>I'm making a 2D top-down game in PyGame, and I have a "chunk loading" system set up. The system is as follows...</p>

<p>I have a "world" object, made up of "chunks". Each chunk is 16x16 "tiles" and contains data for each one of those tiles. In the world object, I have a system for generating these chunks as needs be, and storing them in a dictionary, like <code>{(x, y):"grass"} etc...</code> Each tile in the chunk is a 10px image, that needs to be drawn to the screen in PyGame, given the position of the camera (<em>counted in tiles</em>). I want the camera to be able to pan around over the top of these images, and move around. How on earth can I make this work?</p>

<p>A quick diagram...</p>

<p><img src="http://williamgardner.noip.me/files/chunks" alt="diagram"></p>

<p>I hope this makes sense, thanks!</p>

<p>If I understand your problem right, TomTsagk explained it really good:</p>

<p><a href="http://stackoverflow.com/questions/19746552/pygame-camera-follow-in-a-2d-tile-game">Pygame camera follow in a 2d tile game</a></p>

<p>Hope this helps. </p>

python pygame coordinates chunks