Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/api/Sprite2.py
diff options
context:
space:
mode:
authorAlan Aguiar <alanjas@hotmail.com>2014-01-21 01:23:57 (GMT)
committer Alan Aguiar <alanjas@hotmail.com>2014-01-21 01:23:57 (GMT)
commit91550e4f651a8cb0f5160eaf706d63890c2375ab (patch)
tree3ed0c50ba3a2d6b461dc8a1e60a667c8e4661dbf /src/api/Sprite2.py
parent3e7f035b9526b0daaba740ee915c5f02332c867c (diff)
CSprite init uses x,y position
Diffstat (limited to 'src/api/Sprite2.py')
-rw-r--r--src/api/Sprite2.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/Sprite2.py b/src/api/Sprite2.py
index 7d11f10..16faf97 100644
--- a/src/api/Sprite2.py
+++ b/src/api/Sprite2.py
@@ -15,10 +15,10 @@ class CSprite(pygame.sprite.Sprite):
Will automatically travel in direction and speed indicated
"""
- def __init__(self):
+ def __init__(self, x = 0, y = 0):
pygame.sprite.Sprite.__init__(self)
- self.mPos = CVector(0, 0)
+ self.mPos = CVector(x, y)
self.mVel = CVector(0, 0)
# Registration point offset.