diff options
author | Luiz Irber <luiz.irber@gmail.com> | 2008-04-06 16:55:57 (GMT) |
---|---|---|
committer | Luiz Irber <luiz.irber@gmail.com> | 2008-04-06 16:55:57 (GMT) |
commit | 1fd480d53e99b8f8849e5ebc39134e1dc8cea698 (patch) | |
tree | b392dd4dffb52caf594a5ca6e45b566036ba3b37 /Gambiarra/objects/target.py | |
parent | 76863407698542c73afb5840e658b615e2dfa8d1 (diff) |
Fixes on sound and levels.
- Now the game can be started without a sound device on the computer.
But it still needs more testing.
- Multiple targets can be set on a level, and any object can be a target.
But there isn't any level that uses this feature yet.
- Minor cleanup on code, and some comments added.
Diffstat (limited to 'Gambiarra/objects/target.py')
-rw-r--r-- | Gambiarra/objects/target.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Gambiarra/objects/target.py b/Gambiarra/objects/target.py index 62a481c..8df61b8 100644 --- a/Gambiarra/objects/target.py +++ b/Gambiarra/objects/target.py @@ -23,12 +23,12 @@ from os.path import abspath import pygame -from things import Thing, NoSound +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")), - editable, NoSound(), + editable, None, initialPosition, elasticity = 100, mobility = False, gravity = 10) |