Restructuring of Nodes and Scenes. Added WorldCamera. Added a Main Scene.

This commit is contained in:
gdz
2025-12-07 14:15:24 +01:00
parent 2a5fdec16a
commit de8a4e5e91
16 changed files with 128 additions and 81 deletions

14
Scenes/Main/main.gd Normal file
View File

@@ -0,0 +1,14 @@
extends Node
@onready var _Map = $Map
@onready var _Player = $Player
@onready var _Camera = $WorldCamera
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
_Map.populate_terrain(_Camera.global_position)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass