Skip to content

Commit

Permalink
playing game sound
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsmedina committed Aug 26, 2010
1 parent e691f72 commit d211021
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions jailbreakerz/jailbreakerz.py
Expand Up @@ -12,6 +12,7 @@

import pyglet

import sound
import credits
import game

Expand Down Expand Up @@ -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(), \
Expand Down
3 changes: 3 additions & 0 deletions jailbreakerz/sound.py
@@ -0,0 +1,3 @@
import pyglet

player = pyglet.media.Player()

0 comments on commit d211021

Please sign in to comment.