PipeCutscene.gd 629 B

123456789101112131415161718192021222324252627
  1. class_name PipeCutscene
  2. extends Level
  3. static var seen_cutscene := false
  4. func _enter_tree() -> void:
  5. Global.game_paused = false
  6. theme = WORLD_THEMES[Global.current_campaign][Global.world_num]
  7. if Global.world_num > 4 and Global.world_num <= 8:
  8. theme_time = "Night"
  9. else:
  10. theme_time = "Day"
  11. Global.level_theme = theme
  12. Global.theme_time = theme_time
  13. func _ready() -> void:
  14. Global.current_level = null
  15. seen_cutscene = true
  16. first_load = true
  17. $Music.play()
  18. func update_next_level_info() -> void:
  19. pass
  20. func go_to_level() -> void:
  21. first_load = true
  22. Global.transition_to_scene(LevelTransition.level_to_transition_to)