Files
gamedev-the-steward/demo/src/DemoScene.gd
T
admin 4463e524aa style: apply gdformat formatting across the entire project
Auto-format all GDScript files using gdformat from gdtoolkit.
This is a baseline formatting pass to ensure consistent style:

- Normalizes indentation and spacing
- Wraps long lines to 100 characters
- Removes trailing whitespace
- Standardizes blank lines between functions

68 files reformatted, 8 files left unchanged (3rd-party addon files
with parse errors excluded).
2026-07-05 23:06:23 +02:00

25 lines
605 B
GDScript

@tool
extends Node
@onready var terrain: Terrain3D = find_child("Terrain3D")
func _ready():
if not Engine.is_editor_hint() and has_node("UI"):
$UI.player = $Player
# Load Sky3D into the demo environment if enabled
if (
Engine.is_editor_hint()
and has_node("Environment")
and Engine.get_singleton(&"EditorInterface").is_plugin_enabled("sky_3d")
):
$Environment.queue_free()
var sky3d = load("res://addons/sky_3d/src/Sky3D.gd").new()
sky3d.name = "Sky3D"
add_child(sky3d, true)
move_child(sky3d, 1)
sky3d.owner = self
sky3d.current_time = 10
sky3d.enable_editor_time = false