omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Scaling the screen

    Pythonista
    game scale scene
    2
    5
    4260
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • newtoonie
      newtoonie last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

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

        1 Reply Last reply Reply Quote 0
        • newtoonie
          newtoonie last edited by

          I was aware but thanks for helping

          1 Reply Last reply Reply Quote 0
          • ccc
            ccc last edited by

            😬 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.

            1 Reply Last reply Reply Quote 0
            • newtoonie
              newtoonie last edited by

              Thank you much my dude :)

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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors