I’d like to make a map by using an image. It’s supposed to be larger than the game screen so I need a way to scroll around said map as my character moves. How do I go about doing this?
I looked at some existing games but I’m still fairly new to Python and coding in general and didn’t understand much.
I’m using Python 3.2 and Pygame 1.9.1.
A simple way could be to have an
offset_xandoffset_yvariable. These variables store where the top left of the screen should be. When you render the image, make sure that it’s x position isx + offset_xandy + offset_y.