More info, going deeper in my searches :
- It looks like to crash only if files had been created with 2.0 using the Game/Animation template. If the file is created with 2.1 with the template it works.
- If the file is edited using Sublime Text on Mac, it works after transfer (via drop box) on iPhone
It looks like a text formatting issue...
Here is the code (but should probably not produce the crash because of text copy/past from the .py file to this page):
#This guy produces an hard crash on v2.1
from scene import *
import sound
import random
import math
#import photos
class MyScene (Scene):
def setup(self):
self.background_color = '#ffffff'
self.target = SpriteNode('iob:ionic_256')
self.add_child(self.target)
pass
def did_change_size(self):
pass
def update(self):
pass
def touch_began(self, touch):
pass
def touch_moved(self, touch):
pass
def touch_ended(self, touch):
pass
if __name__ == '__main__':
run(MyScene(), PORTRAIT, show_fps=True)
Do other people are facing this ?
Thanks