Guest User

Untitled

a guest
Jan 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. def play_crash():
  2. pygame.time.delay(500)
  3. cutsc_crash.play(0)
  4.  
  5. def play_fwoosh():
  6. pygame.time.delay(2000)
  7. cutsc_fwoosh.play(0, 0, 50)
  8.  
  9. def play_burn():
  10. pygame.time.delay(2050)
  11. cutsc_fire.play(0, 15000, 0)
  12.  
  13. def play_run():
  14. pygame.time.delay(2500)
  15. cutsc_run.play()
  16.  
  17. def intro_cutscene():
  18.  
  19. pygame.mixer.music.stop()
  20. gameDisplay.fill(black)
  21. pygame.display.update()
  22.  
  23. Skip_Cut = False
  24. play_audio = True
  25.  
  26. while not Skip_Cut:
  27. Clock.tick(60)
  28. pygame.key.get_pressed()
  29. pygame.display.update()
  30. for event in pygame.event.get():
  31. if event.type == pygame.KEYDOWN:
  32. if event.key == pygame.K_ESCAPE:
  33. Skip_Cut = True
  34. if event.key == pygame.K_RETURN:
  35. print("in a perfect universe, this would do something more significant.")
  36. if event.type == pygame.QUIT:
  37. print("Ending program.")
  38. pygame.quit()
  39. quit()
  40. if play_audio:
  41. play_crash()
  42. play_fwoosh()
  43. play_burn()
  44. play_run()
  45. play_audio = False
  46. pygame.display.update()
  47.  
  48. if Skip_Cut:
  49. pygame.display.update()
  50. pygame.mixer.stop()
  51. print("Skipping cutscene...")
  52. print(game_test())
Add Comment
Please, Sign In to add comment