I'm just getting started with Python and Pygame. I was following this lesson (GitHub) on how to make tile-based game. I want to implement mouse tracking, so player sprite will always look where mouse is pointed.
The game has Camera class which offsets all sprites when player moves. I managed to do mouse tracking, but currently it shows me where it is placed on 1024 * 768 screen, while player is positioned for example on 2000 * 1000. Result: player is looking from his 2000 * 1000 position to some place 'inside' that screen.
I want my mouse position to be shifted by the same number of pixels, so it always stays inside player camera.