def enter(): # Stop the idle sounds ghost_story_sound.stop() director.play_sound("scenes/p2/audio/take_a_seat.ogg", channel=INSIDE_CHANNEL) director.set_off(WELCOME_SIGN_RELAY, 2) director.remove_trigger(DOOR_TRIGGER)
def play(): # Stop the idle sounds ghost_story_sound.stop() # Siren director.set_on(SIREN_RELAY, 0, 13) director.set_on(CLAXON_RELAY, 0, 0.5) director.set_on(CLAXON_RELAY, 1, 0.5) director.set_on(CLAXON_RELAY, 2, 0.5) director.play_sound("scenes/p2/audio/siren.ogg", channel=INSIDE_CHANNEL) # Green light and hum sound effect director.play_sound(switch_sound, 5, channel=INSIDE_CHANNEL) director.set_on(GREEN_LIGHT_RELAY, 5.5, 7.5) director.play_sound("scenes/p2/audio/switch_hum.ogg", 5, loops=-1, maxtime=4, channel=INSIDE_CHANNEL) # Red light director.play_sound(switch_sound, 6, channel=INSIDE_CHANNEL) director.set_on(RED_LIGHT_RELAY, 6.5, 6.5) # fire the chair director.set_on(CHAIR_VIBRATE_RELAY, 6.8, 5) director.play_sound("scenes/p2/audio/electric.ogg", 6, maxtime=6.5, channel=INSIDE_CHANNEL) # Flicker chair light director.set_off(CHAIR_SPOT_RELAY, 6.8) director.set_on(CHAIR_SPOT_RELAY, 6.9, 0.2) director.set_on(CHAIR_SPOT_RELAY, 7.9, 0.2) director.set_on(CHAIR_SPOT_RELAY, 8.3, 0.1) director.set_on(CHAIR_SPOT_RELAY, 8.7, 0.1) director.set_on(CHAIR_SPOT_RELAY, 8.9, 0.3) director.set_on(CHAIR_SPOT_RELAY, 9.5, 0.1) director.set_on(CHAIR_SPOT_RELAY, 9.7, 0.1) director.set_on(CHAIR_SPOT_RELAY, 10.4, 0.3) director.set_on(CHAIR_SPOT_RELAY, 11, 0.1) director.set_on(CHAIR_SPOT_RELAY, 11.3, 0.4) director.set_on(CHAIR_SPOT_RELAY, 12.2, 0.3) director.set_on(CHAIR_SPOT_RELAY, 12.8) # Air blast director.set_on(AIR_BLAST_RELAY, 6.9, 2) director.set_on(AIR_BLAST_RELAY, 10, 1) # End sound director.play_sound(switch_sound, 12.5, channel=INSIDE_CHANNEL) # Reset director.schedule(120, reset, ()) director.remove_trigger(CHAIR_TRIGGER)