diff options
Diffstat (limited to 'Gambiarra/objects/elastica.py')
-rw-r--r-- | Gambiarra/objects/elastica.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/Gambiarra/objects/elastica.py b/Gambiarra/objects/elastica.py index 9a7a2cd..7395e22 100644 --- a/Gambiarra/objects/elastica.py +++ b/Gambiarra/objects/elastica.py @@ -19,23 +19,21 @@ # 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 Elastica(Thing): - def __init__(self, initialPosition = [0,0], editable=True): + def __init__(self, initial_pos = None, editable=True): if pygame.mixer.get_init(): - snd = pygame.mixer.Sound(abspath("data/snd/cama_elastica.wav")) + snd = pygame.mixer.Sound("data/snd/cama_elastica.wav") else: snd = None - super(Elastica, self).__init__( - pygame.image.load(abspath("data/images/cama_elastica.png")), + Thing.__init__(self, + pygame.image.load("data/images/cama_elastica.png"), editable, snd, - initialPosition, elasticity = 100, mobility = False, + initial_pos, elasticity = 100, mobility = False, gravity = 10) def collide(self, obj): |