started building out hub more

This commit is contained in:
derek
2025-03-28 16:48:27 -05:00
parent a591865d4b
commit d64ef7ccde
20 changed files with 158 additions and 156 deletions

View File

@@ -8,6 +8,8 @@ var timer_active = false
var active = true
var index : int
const SCENE_SPAWN_OFFSET = Vector3(0,-150,0)
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
pass # Replace with function body.
@@ -24,8 +26,11 @@ func _on_body_entered(body: Node3D) -> void:
active = false
var scene = load(level_info["level_path"]).instantiate()
if scene.sky_type != null:
SignalBus.emit_signal("update_sky",scene.sky_type)
get_tree().current_scene.add_child(scene)
scene.global_position = global_position
scene.global_position = global_position + SCENE_SPAWN_OFFSET
func _on_start_activation_timeout() -> void: