Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavesilver <nibor123@gmail.com>2010-08-03 20:01:09 (GMT)
committer davesilver <nibor123@gmail.com>2010-08-03 20:01:09 (GMT)
commit5a8e06aef8628638f82a9732ae95945a1565a854 (patch)
tree83754360cb7f659a3cfaae565a767560720cdd9d
parent21041487cdde42555fe31c58885a1e8aa6f5381e (diff)
Working on integration
-rw-r--r--MAFH2/fortuneengine/DrawableObject.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/MAFH2/fortuneengine/DrawableObject.py b/MAFH2/fortuneengine/DrawableObject.py
index 70bc2ae..a06f485 100644
--- a/MAFH2/fortuneengine/DrawableObject.py
+++ b/MAFH2/fortuneengine/DrawableObject.py
@@ -12,12 +12,6 @@ class DrawableObject(pygame.sprite.Sprite):
self._origImages.append(images[i].convert_alpha())
self._start = pygame.time.get_ticks()
-
- if transparent == False:
- self.image = self._images[0]
- else:
- self.makeTransparent(transparent)
-
self._last_update = 0
self._frame = 0
self.animations = {}
@@ -29,6 +23,10 @@ class DrawableObject(pygame.sprite.Sprite):
self.xSize = self.image.get_width()
self.ySize = self.image.get_height()
self.rect.topleft = (x,y)
+ if transparent == False:
+ self.image = self._images[0]
+ else:
+ self.makeTransparent(transparent)
if textfileName != '':