Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api/Game.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2012-04-11 15:09:11 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2012-04-11 15:09:11 (GMT)
commitdbf6c8ca3ee1adc2ca18e363756e6e6538341952 (patch)
tree2d66c22f5a2f17ec24ed18a5841ccb6843e04e17 /src/api/Game.py
parent55358ae6da71ad4c963c2db4da82d37d77976e7f (diff)
use layered updates instead
Diffstat (limited to 'src/api/Game.py')
-rwxr-xr-xsrc/api/Game.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/Game.py b/src/api/Game.py
index 84ab92a..b3fe189 100755
--- a/src/api/Game.py
+++ b/src/api/Game.py
@@ -82,7 +82,7 @@ class CGame(object):
#self.mAllSprites = pygame.sprite.Group()
Sprites = []
- self.mAllSprites = pygame.sprite.OrderedUpdates(Sprites)
+ self.mAllSprites = pygame.sprite.LayeredUpdates(Sprites)
#self.mGroups = []
@@ -151,8 +151,8 @@ class CGame(object):
#self.mGroups.append(self.mMainSprites)
# Add a sprite to the sprite list.
- def addChild(self, aSprite):
- self.mAllSprites.add(aSprite)
+ def addChild(self, aSprite, aLayer=0):
+ self.mAllSprites.add(aSprite, layer=aLayer)
def removeChild(self, aSprite):
self.mAllSprites.remove(aSprite)