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.


    Arcade for Pythonista

    Pythonista
    3
    8
    1433
    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.
    • assesssyrian123
      assesssyrian123 last edited by assesssyrian123

      I’ve just started using Pythonista and I’m still unsure on many of the features. I’m trying to install the arcade module to Pythonista but am unable to do so. If anybody could explain all the steps necessary to get Arcade on Pythonista 3 that would be amazing. Thanks in advance!

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

        Arcade depends on pyglet, which depends on pygame, which is mostly written in c. Pythonista is limited to installation of pure python modules (or those which only depend on moudles included with pythonista, like numpy)

        Portions of pyglet, like the physics model, might be usable in pythonista with some work to disentangle it from the backend graphics, but it would be pretty complicated to replicate the pyglet graphics stuff using Pythonista scene constructs, or maybe the lower level iOS constructs.

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

          Are there any workarounds for this?

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

            Theoretically, you could use objc_util /OpenGLES/EAGL to implement the presentation layer of pyglet/pygame. It would be hard, and probably super slow.

            I don't believe Pyto has yet included pygame either, despite a few requests. It is open source, so you could go for it, but I'm not sure if there is an iOS SDL library.

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

              Are there any other iOS/iPadOS python apps which support the arcade module?

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

                I doubt it. l

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

                  I'm still unsure on many of the features. I'm trying to install the arcade module to Pythonista myfiosgateway.com
                  mobdro

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

                    You won't be able to install arcade. Pip might say it installed, but it won't work.

                    Pythonista has its own unique game module called scene. You won't be able to reuse code from other engines, though you can translate most of what other simple 2d engines do to something equivalent in scene.

                    @Cethric developed an engine that makes use of iOS OpenGLES, including a basic physics engine:
                    https://github.com/Cethric/OpenGLES-Pythonista

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