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:
11
Scripts/Classes/CoinHeaven.gd
Normal file
11
Scripts/Classes/CoinHeaven.gd
Normal file
@@ -0,0 +1,11 @@
|
||||
class_name CoinHeaven
|
||||
extends Level
|
||||
|
||||
@export var all_coins_check: AllCoinsCollectedCheck = null
|
||||
|
||||
func warp_back(player: Player) -> void:
|
||||
player.state_machine.transition_to("Freeze")
|
||||
if all_coins_check != null:
|
||||
await all_coins_check.check()
|
||||
await get_tree().create_timer(1, false).timeout
|
||||
Global.transition_to_scene(Level.vine_return_level)
|
Reference in New Issue
Block a user