omz:forum

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

    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 1
    • Topics 40
    • Posts 140
    • Best 2
    • Controversial 0
    • Groups 0

    JadedTuna

    @JadedTuna

    3
    Reputation
    1550
    Profile views
    140
    Posts
    1
    Followers
    0
    Following
    Joined Last Online
    Website jadedtuna.github.io Location Sweden Age 22

    JadedTuna Unfollow Follow

    Best posts made by JadedTuna

    • 3D in Pythonista?

      Hey guys. Is it possible to draw 3D objects in Pythonista? I know it doesn't have 3D libraries, but AFAIK Doom was made in DOS without 3D libraries (2.5 D or something). Is it possible to do such stuff in Pythonista (and if it is, what's the estimated speed?). Thanks.

      posted in Pythonista
      JadedTuna
      JadedTuna
    • Pythonista AirCode

      Hey guys! ShadowSlayer here. I've noticed that these is no AirCode function in Pythonista... So I made a simple app :). It has:<br>
      GUI Client (Computer)<br>
      Simple server (iOS)<br>
      GUI Client uses wxPython toolkit.

      Basically, it allows you to edit files on your computer and then save them to Pythonista.

      If you find any bugs, please report them to my email!

      [Website][]
      [Website]: http://www.randomgalaxy.com/programming/python/Pythonista-AirCode/

      posted in Pythonista
      JadedTuna
      JadedTuna

    Latest posts made by JadedTuna

    • RE: Pythonista crashes after extensive use of scene.load_image_data (and .load_pil_image)

      @omz how long would it take for this fix to make it into the App Store? Also, will getting the beta affect my files/settings in any way?

      posted in Pythonista
      JadedTuna
      JadedTuna
    • Pythonista crashes after extensive use of scene.load_image_data (and .load_pil_image)

      While developing a streaming app for Pythonista I noticed that it usually crashes after some time. Turns out it's somehow related to loading/unloading images with scene. Here is a minimal example that crashes Pythonista reliably:

      import scene
      import random
      from cStringIO import StringIO
      import Image
      
      def raw_jpeg(img):
          buf = StringIO()
          img.save(buf, 'JPEG', quality=50)
          data = buf.getvalue()[::]
          buf.close()
          return data
      
      imglist = [raw_jpeg(img) for img in [
          Image.new('RGB', (512, 384), 'red'),
          Image.new('RGB', (512, 384), 'yellow'),
          Image.new('RGB', (512, 384), 'green'),
          Image.new('RGB', (512, 384), 'blue'),
          Image.new('RGB', (512, 384), 'gray'),
      ]]
      
      imgnames = []
      while True:
          name = scene.load_image_data(random.choice(imglist))
          if len(imgnames) == 16:
              scene.unload_image(imgnames.pop(0))
          imgnames.append(name)
          print name
      

      It takes a variable amount of time, somewhere between a second and a minute I'd say. And using scene.load_pil_image instead does not help, but only makes the loading process slower.
      Am I missing something? scene.unload_image should free memory, and since this example never exceeds 16 images loaded at once it should have plenty of that.
      EDIT: I am using iPad 4 and what seems to be the latest version of Pythonista.

      posted in Pythonista
      JadedTuna
      JadedTuna
    • How scene.rotate works?

      I tried using it with a simple ellipse, but I still have no idea how it works and where actually is the rotation point. It seems as the ellipse is not rotated along its own rotation point (center).

      P. S. A side question: scene.translate just moves objects on the x and y axises by the specified number, right?

      posted in Pythonista
      JadedTuna
      JadedTuna
    • RE: Undocumented function?

      Heh, no. This is a method of a class Scene, and I am talking about the scene module itself (scene.size not scene.Scene.size)

      posted in Pythonista
      JadedTuna
      JadedTuna
    • Undocumented function?

      Module scene has a function called size which seems to return the size of the display, but I can't seem to find it here: http://omz-software.com/pythonista/docs/ios/scene ? : ]

      posted in Pythonista
      JadedTuna
      JadedTuna
    • RE: touch_id how to use this

      Hey there. touch_id is basically an ID for every touch - you can have any amount of touches and all of them will have an unique touch_id. It can be used in multi-touch applications to track down different touches.

      posted in Pythonista
      JadedTuna
      JadedTuna
    • RE: GamePie - game engine designed to ease creation of cross-platform games.

      Gonna advertise GamePie some more :)

      Here is a video of a game I am working on (PieRPG): https://www.youtube.com/watch?v=N3cKMUwPd_g.
      It uses GamePie as game engine and runs fine on Linux and iOS.

      P. S. Incase anybody wants to take a look at the code it is here: https://github.com/Vik2015/pierpg. Please note that PieRPG is using a dev version of GamePie (0.2) which is not available yet.

      posted in Pythonista
      JadedTuna
      JadedTuna
    • GamePie - game engine designed to ease creation of cross-platform games.

      I finally made something that works! :)

      GamePie allows you to create games which can be ran on many platforms. The project was created to allow creation of cross-platform games - those that can run on both iOS devices and PCs. It's licensed under zlib license.

      Git repository is here: https://github.com/Vik2015/gamepie. For PC you need gamepie-pc/ and for iOS - gamepie-ios/. Just put it in the site-packages folder and rename to gamepie.

      Check examples/ folder to see some examples. Currently it contains planes.py which is a shooting game where you control the player and your goal is to shoot down as many enemy planes as possible. Player can be controlled via keyboard on PC (left/a and right/d keys, space shoots, escape quits) and mouse/touches on PC and iOS. Nothing fancy :)

      If you have any ideas about what can I add to it please post them here.

      posted in Pythonista
      JadedTuna
      JadedTuna
    • RE: GamePie - game engine designed to ease creation of cross-platform games.

      @Moe, thanks, cross-platform support was the intention :). Btw, the library also automatically converts Pythonista coordinates ([0, 0] is bottom-left) to PyGame coordinates ([0, 0] is upper-left).

      posted in Pythonista
      JadedTuna
      JadedTuna
    • 3D in Pythonista?

      Hey guys. Is it possible to draw 3D objects in Pythonista? I know it doesn't have 3D libraries, but AFAIK Doom was made in DOS without 3D libraries (2.5 D or something). Is it possible to do such stuff in Pythonista (and if it is, what's the estimated speed?). Thanks.

      posted in Pythonista
      JadedTuna
      JadedTuna