omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. skehmatics

    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.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    skehmatics

    @skehmatics

    0
    Reputation
    378
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    skehmatics Unfollow Follow

    Latest posts made by skehmatics

    • RE: a quick Xcode/background question

      Hi mirko,

      Pythonista looks for .png photos inside the textures directory.
      So, as example, to add a photo called logo.png, you would drag it into the Textures folder (Make sure you drag and drop into xcode's file browser, not finder. Xcode <i>should</i> automatically copy the files appropriately.), and then reference it in your script with the name of 'logo' (<code>self.root_layer.image = 'logo'</code>)

      It's best to keep your root layer as the background, so you can call <code>self.root_layer.image = 'yourImageName'</code> in setup to set its background image. If that wont work for your script, then you can make a new layer under the root layer by not adding it to the root layer. Instead, just call <code>self.layerName.draw()</code> (and <code>self.layerName.update(self.dt)</code> if you're using animations on this layer) in your draw function, <i>before</i> root layer's draw, and other images/objects are called.

      You can add the logo above the root layer by simply creating it (example, <code>self.logo = Layer(Rect(*self.bounds.center().as_tuple(), 100, 100))</code>) and then adding it to the root layer (<code>self.rootlayer.addlayer(self.logo)</code>)
      By default, it is put above the root layer.

      I hope this answers your questions!

      ~skehmatics

      posted in Pythonista
      skehmatics
      skehmatics
    • Xcode noob and scene.py questions

      I been building a game using pythonista, and with more and more progress, a question keep popping up.

      Does the scene module have any possibility of mulitplatform support? (i.e, if it uses some sort of ObjC connection library, could it be edited to work with a Java connection library so it can be used on android devices?) I know I could use other frameworks, but I do enjoy the flow of scene very much, and I would like to know if it could, theoretically, be used on another platform.

      Also, when I've exported to xcode to do testing, a couple of problems arise.

      1: The project always opens to the command-line interface, and then starts the script. How would I make it so that the start-up images would stay until the script has been initialized instead of the app?

      2: The resolution of anything drawn with scene is much less when using the xcode build. I did disable the armv7s and armv64 architectures (because I kept getting errors that they didn't have all their requisites), could this have anything to do with it?

      Thanks in advance for all your help!

      posted in Pythonista
      skehmatics
      skehmatics