Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/api/Points.py4
-rw-r--r--src/api/Sprite2.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/api/Points.py b/src/api/Points.py
index 872b0cb..0d425c2 100644
--- a/src/api/Points.py
+++ b/src/api/Points.py
@@ -6,8 +6,8 @@ from api.Sprite2 import CSprite
class CPoints(CSprite):
- def __init__(self):
- CSprite.__init__(self)
+ def __init__(self, x = 0, y = 0):
+ CSprite.__init__(self, x , y)
self.mGoods = 0
self.mBads = 0
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.