Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def play_crash():
- pygame.time.delay(500)
- cutsc_crash.play(0)
- def play_fwoosh():
- pygame.time.delay(2000)
- cutsc_fwoosh.play(0, 0, 50)
- def play_burn():
- pygame.time.delay(2050)
- cutsc_fire.play(0, 15000, 0)
- def play_run():
- pygame.time.delay(2500)
- cutsc_run.play()
- def intro_cutscene():
- pygame.mixer.music.stop()
- gameDisplay.fill(black)
- pygame.display.update()
- Skip_Cut = False
- play_audio = True
- while not Skip_Cut:
- Clock.tick(60)
- pygame.key.get_pressed()
- pygame.display.update()
- for event in pygame.event.get():
- if event.type == pygame.KEYDOWN:
- if event.key == pygame.K_ESCAPE:
- Skip_Cut = True
- if event.key == pygame.K_RETURN:
- print("in a perfect universe, this would do something more significant.")
- if event.type == pygame.QUIT:
- print("Ending program.")
- pygame.quit()
- quit()
- if play_audio:
- play_crash()
- play_fwoosh()
- play_burn()
- play_run()
- play_audio = False
- pygame.display.update()
- if Skip_Cut:
- pygame.display.update()
- pygame.mixer.stop()
- print("Skipping cutscene...")
- print(game_test())
Add Comment
Please, Sign In to add comment