Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #functions that play sounds (windoze only)
- import winsound
- def start():
- start = "start.wav"
- winsound.PlaySound(start, winsound.SND_FILENAME|winsound.SND_ASYNC)
- print("Welcome to my text adventure, try to solve the puzzles to win!")
- input("Press any key to continue...")
- def door():
- door = "door.wav"
- winsound.PlaySound(door, winsound.SND_FILENAME|winsound.SND_ASYNC)
- def cave():
- cave = "cave.wav"
- winsound.PlaySound(cave, winsound.SND_FILENAME|winsound.SND_ASYNC)
- def shotgun():
- shot = "shotgun.wav"
- winsound.PlaySound(shotgun, winsound.SND_FILENAME|winsound.SND_ASYNC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement