Pygame - locking the scroll of a surface area to a limited amount
Pygame - locking the scroll of a surface area to a limited amount I'm playing with pygame and I'm making a memory game. In my memory game I need to have a small Menu on the middle-bottom of the screen and the player list on top of the screen. The game manager will output the message in the upper left corner of the screen. The playable board where the cards will be situated should be in the center of the screen with a small margin on the right and the left and about 200px from the top and the bottom.(e.g. if the screen width and height are 1200 x 800, the playable board should be from 2 to 1998 width and 200 to 600 height. I've made a screenshot of the idea I have: I've put up the idea of the scrollable board with the cards, although it's hardcoded for now, I mostly need the idea not the code since I just have a hard time figuring out how it should work. The playable board (game board on the screenshot), should be moved through the keyboard(so up, right, down, left a...