rimlike/scenes/main/main.gd
megaproxy 18fb784e76 Make main scene root Node2D so editor defaults to 2D view
Plain 'Node' root causes Godot to open the scene in 3D perspective
view because the engine can't infer the intended dimension. Node2D
root is the right default for our 2D project; the editor opens in
2D view automatically.

Confirmed via MCP get_editor_screenshot — Phase 0 verification was
landing in 3D editor view because of this.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-10 20:19:09 +01:00

20 lines
792 B
GDScript

extends Node2D
## Phase 0 smoke-test scene root.
##
## Verifies the autoload graph is alive and the i18n table resolves a key.
## Once Phase 1 lands the world view, this becomes the bootstrap that loads
## the right scene based on game state (new game / continue / settings).
@onready var hello_label: Label = $HelloLabel
func _ready() -> void:
Audit.log("main", "Phase 0 smoke test online.")
# Verify autoloads are alive.
assert(World != null, "World autoload missing")
assert(Sim != null, "Sim autoload missing")
assert(GameState != null, "GameState autoload missing")
assert(EventBus != null, "EventBus autoload missing")
assert(Strings != null, "Strings autoload missing")
assert(SaveSystem != null, "SaveSystem autoload missing")
hello_label.text = Strings.t(&"smoke.hello")