Exemple #1
0
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
Exemple #2
0
def play_bounce(o, e):
    pge.play("/home/gaius/Sandpit/cluedo/sounds/cardsnap.wav")
Exemple #3
0
def play_crack(o, e):
    pge.play("/home/gaius/Sandpit/penguin-tower/sounds/crack-single.wav")
Exemple #4
0
def play_wood(o, e):
    pge.play("/home/gaius/Sandpit/cluedo/sounds/bounce.wav")
Exemple #5
0
def play_bounce (o):
    print "play_bounce - wants to play cardsnap.wav"
    pge.play ("/home/gaius/Sandpit/cluedo/sounds/cardsnap.wav")
Exemple #6
0
def play_crack (o):
    print "play_crack - wants to play crack-single.wav"
    pge.play ("/home/gaius/Sandpit/penguin-tower/sounds/crack-single.wav")
Exemple #7
0
def play_wood (o):
    print "play_wood - wants to play bounce.wav"
    pge.play ("/home/gaius/Sandpit/cluedo/sounds/bounce.wav")