diff options
Diffstat (limited to 'Gambiarra/objects/animals.py')
-rw-r--r-- | Gambiarra/objects/animals.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Gambiarra/objects/animals.py b/Gambiarra/objects/animals.py index f1a86e6..b22f146 100644 --- a/Gambiarra/objects/animals.py +++ b/Gambiarra/objects/animals.py @@ -23,17 +23,15 @@ import pygame from things import Thing -from os.path import abspath - class Penguin(Thing): - def __init__(self, initialPosition=None, editable=True): + def __init__(self, initial_pos=None, editable=True): if pygame.mixer.get_init(): - snd = pygame.mixer.Sound(abspath("data/snd/penguin.wav")) + snd = pygame.mixer.Sound("data/snd/penguin.wav") else: snd = None - super(Penguin, self).__init__( - pygame.image.load(abspath("data/images/penguin.png")), + Thing.__init__(self, + pygame.image.load("data/images/penguin.png"), editable, snd, - initialPosition, elasticity = 100, mobility = True, + initial_pos, elasticity = 100, mobility = True, gravity = 5) self.speed=[5,0] |