* PySFML now compiles and runs with python3 (and still compiles and runs

with python 2.5)
* Improved support for unicode
* Fixed a mysterious bug with the opengl sample
* Code clean up


git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1024 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
remi-k 2009-02-27 17:57:39 +00:00
parent af3dd7c630
commit 39f4805a98
14 changed files with 306 additions and 140 deletions

View file

@ -44,7 +44,8 @@ class Apple(sf.Sprite):
def __init__(self):
apple_img = sf.Image() # Apple's image
if not apple_img.LoadFromFile("./data/apple.png"):
print "Could not load data/apple.png"
pass
# print "Could not load data/apple.png"
sf.Sprite.__init__(self, apple_img)
self.SetCenter(apple_img.GetWidth()/2, apple_img.GetHeight()/2)
self.size = apple_img.GetWidth()
@ -109,7 +110,8 @@ class Worm(list):
self.rond = sf.Image()
self.level_completed = False
if not self.rond.LoadFromFile("./data/rond2.png"):
print "Could not load data/rond2.png"
pass
# print "Could not load data/rond2.png"
def reset(self, arena):
self.targeted_length, self.angle, self.direction = 30, 0, 0