RicardoP
RicardoP

Reputation: 207

Adding a vertical and horizontal scroll bar to the display surface in Pygame

I'm using pygame and I've been working so far in a large monitor, but now I need to work on a small laptop, whose screen is much smaller than the mentioned monitor. The dimensions I gave to the display surface and the items blitted to it work well on the previous monitor but it is too large on the laptop and therefore I cannot reach all buttons. Since I can't seem to find a way to resize everything proportionaly, is there an easy way to add a vertical and horizontal scroll bar in order to navigate around the display surface?

Thank you

Upvotes: 1

Views: 846

Answers (1)

John Frames
John Frames

Reputation: 79

I don't think that you can add a scroll bar. What you can do is shift the x or y of everything when you press the corresponding arrow keys. But as said by Ted Klein Bergman, it is better to simply resize everything.

Upvotes: 1

Related Questions