Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Gambiarra/gambiarra.py
diff options
context:
space:
mode:
authorLuiz Irber <luiz.irber@gmail.com>2008-04-10 21:25:37 (GMT)
committer Luiz Irber <luiz.irber@gmail.com>2008-04-10 21:25:37 (GMT)
commitc9e517c8235a549fe32d4a9e03eed474eb981531 (patch)
treeb6b0c9ef82765ef35a64fd8f13f6e7e82843f64d /Gambiarra/gambiarra.py
parentdfd7f8c5d097ac02857b66940cf6fbf77e132c05 (diff)
Path cleanup and access
- Added the libs subdir to path, we can start to use them - Created a gambiarra.py file on project root to start the game outside XO - Every access to the data dir don't have a '..' prefix anymore...
Diffstat (limited to 'Gambiarra/gambiarra.py')
-rw-r--r--Gambiarra/gambiarra.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/Gambiarra/gambiarra.py b/Gambiarra/gambiarra.py
index d52d058..dee4335 100644
--- a/Gambiarra/gambiarra.py
+++ b/Gambiarra/gambiarra.py
@@ -71,9 +71,9 @@ class Game(object):
self.clock = pygame.time.Clock()
self.levels = Levels.init_levels()
self.menu = GameMenu()
- self.congrats = pygame.image.load("../data/images/fim_fase.png")
+ self.congrats = pygame.image.load("data/images/fim_fase.png")
if self.play_sounds:
- self.congratsSnd = pygame.mixer.Sound(abspath("../data/snd/Congrats.wav"))
+ self.congratsSnd = pygame.mixer.Sound(abspath("data/snd/Congrats.wav"))
self._showed_help = False
self.count = 0
@@ -206,9 +206,3 @@ class Game(object):
if (len(self.levels) == self.level) :
self.running = False
-def main():
- game = Game(play_sounds=False)
- game.run()
-
-if __name__ == "__main__":
- main()