mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
added the game
This commit is contained in:
15
Scripts/Parts/LostLevelsEndingDoor.gd
Normal file
15
Scripts/Parts/LostLevelsEndingDoor.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends Node2D
|
||||
|
||||
|
||||
@export_file("*.tscn") var scene := ""
|
||||
|
||||
func begin() -> void:
|
||||
$CameraRightLimit._enter_tree()
|
||||
await AudioManager.music_override_player.finished
|
||||
await get_tree().create_timer(1, false).timeout
|
||||
if Global.current_game_mode == Global.GameMode.MARATHON or Global.current_game_mode == Global.GameMode.MARATHON_PRACTICE:
|
||||
Global.open_marathon_results()
|
||||
return
|
||||
$StaticBody2D.queue_free()
|
||||
await get_tree().create_timer(2, false).timeout
|
||||
Global.transition_to_scene(scene)
|
Reference in New Issue
Block a user