def play_bounce (o, e): global g, bounces pge.play ("/home/gaius/Sandpit/cluedo/sounds/cardsnap.wav") if bounces % 2 == 0: g.set_colour (red) else: g.set_colour (gold) bounces += 1 if bounces == 10: g.rm () g = placeBall (gold, 0.15, 0.8, 0.05).mass (1.25).on_collision (play_bounce) bounces = 0
def play_bounce(o, e): pge.play("/home/gaius/Sandpit/cluedo/sounds/cardsnap.wav")
def play_crack(o, e): pge.play("/home/gaius/Sandpit/penguin-tower/sounds/crack-single.wav")
def play_wood(o, e): pge.play("/home/gaius/Sandpit/cluedo/sounds/bounce.wav")
def play_bounce (o): print "play_bounce - wants to play cardsnap.wav" pge.play ("/home/gaius/Sandpit/cluedo/sounds/cardsnap.wav")
def play_crack (o): print "play_crack - wants to play crack-single.wav" pge.play ("/home/gaius/Sandpit/penguin-tower/sounds/crack-single.wav")
def play_wood (o): print "play_wood - wants to play bounce.wav" pge.play ("/home/gaius/Sandpit/cluedo/sounds/bounce.wav")