mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
added the game
This commit is contained in:
27
Scripts/Parts/PipeCutscene.gd
Normal file
27
Scripts/Parts/PipeCutscene.gd
Normal file
@@ -0,0 +1,27 @@
|
||||
class_name PipeCutscene
|
||||
extends Level
|
||||
|
||||
static var seen_cutscene := false
|
||||
|
||||
func _enter_tree() -> void:
|
||||
Global.game_paused = false
|
||||
theme = WORLD_THEMES[Global.current_campaign][Global.world_num]
|
||||
if Global.world_num > 4 and Global.world_num <= 8:
|
||||
theme_time = "Night"
|
||||
else:
|
||||
theme_time = "Day"
|
||||
Global.level_theme = theme
|
||||
Global.theme_time = theme_time
|
||||
|
||||
func _ready() -> void:
|
||||
Global.current_level = null
|
||||
seen_cutscene = true
|
||||
first_load = true
|
||||
$Music.play()
|
||||
|
||||
func update_next_level_info() -> void:
|
||||
pass
|
||||
|
||||
func go_to_level() -> void:
|
||||
first_load = true
|
||||
Global.transition_to_scene(LevelTransition.level_to_transition_to)
|
Reference in New Issue
Block a user