Forum Archive

Scaling the screen

newtoonie

So i'm creating a game using the scene module. I was wondering, how do I program the game to scale correctly based on the device's resolution?

ccc

Every Scene.scene has attributes boundsand size that will provide you with the current device resolution.

newtoonie

I was aware but thanks for helping

ccc

😬 so.... What was your real question? Was it about scaling or repositioning sprites? Scaling or repositioning text? Dealing with changes in screen orientation? http://pythonista-tools.github.io/Pythonista-Tools contains lots of examples.

newtoonie

Thank you much my dude :)

(Im kinda young btw so that's why I ask all these simple questions)