Permalink
Browse files

playing game sound

  • Loading branch information...
1 parent e691f72 commit d211021e0a8ac020ef79d74a03dab816745d3d28 @andrewsmedina committed Aug 26, 2010
Showing with 7 additions and 3 deletions.
  1. +4 −3 jailbreakerz/jailbreakerz.py
  2. +3 −0 jailbreakerz/sound.py
@@ -12,6 +12,7 @@
import pyglet
+import sound
import credits
import game
@@ -55,9 +56,9 @@ def __init__(self):
self.create_menu(items)
- sound = pyglet.resource.media('media/sounds/menu.wav')
- sound.play()
-
+ sound.player.queue(pyglet.resource.media('media/sounds/fundogame.aif'))
+ sound.player.eos_action = 'loop'
+ sound.player.play()
def on_start(self):
game_scene = Scene(game.Game(), game.Catcher(), \
View
@@ -0,0 +1,3 @@
+import pyglet
+
+player = pyglet.media.Player()

0 comments on commit d211021

Please sign in to comment.