From 91550e4f651a8cb0f5160eaf706d63890c2375ab Mon Sep 17 00:00:00 2001 From: Alan Aguiar Date: Tue, 21 Jan 2014 01:23:57 +0000 Subject: CSprite init uses x,y position --- (limited to 'src') 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. -- cgit v0.9.1