Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Gambiarra/objects/target.py
diff options
context:
space:
mode:
Diffstat (limited to 'Gambiarra/objects/target.py')
-rw-r--r--Gambiarra/objects/target.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Gambiarra/objects/target.py b/Gambiarra/objects/target.py
index eae95bd..c455995 100644
--- a/Gambiarra/objects/target.py
+++ b/Gambiarra/objects/target.py
@@ -19,18 +19,16 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-from os.path import abspath
-
import pygame
from things import Thing
class Target(Thing):
- def __init__(self, initialPosition = [0,0], editable=True):
- super(Target, self).__init__(
- pygame.image.load(abspath("data/images/target.png")),
+ def __init__(self, initial_pos=None, editable=True):
+ Thing.__init__(self,
+ pygame.image.load("data/images/target.png"),
editable, None,
- initialPosition, elasticity = 100, mobility = False,
+ initial_pos, elasticity = 100, mobility = False,
gravity = 10)
def collide(self, obj):