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:
13
Scripts/Parts/CoinHeavenWarpPoint.gd
Normal file
13
Scripts/Parts/CoinHeavenWarpPoint.gd
Normal file
@@ -0,0 +1,13 @@
|
||||
class_name CoinHeavenWarpPoint
|
||||
extends Node2D
|
||||
|
||||
@export_file("*.tscn") var heaven_scene := ""
|
||||
|
||||
func _ready() -> void:
|
||||
Level.vine_warp_level = heaven_scene
|
||||
if Level.in_vine_level and PipeArea.exiting_pipe_id == -1:
|
||||
Level.in_vine_level = false
|
||||
for i in get_tree().get_nodes_in_group("Players"):
|
||||
i.global_position = global_position
|
||||
i.reset_physics_interpolation()
|
||||
i.recenter_camera()
|
Reference in New Issue
Block a user