Restructuring of Nodes and Scenes. Added WorldCamera. Added a Main Scene.
This commit is contained in:
14
Scenes/Main/main.gd
Normal file
14
Scenes/Main/main.gd
Normal 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
|
||||
Reference in New Issue
Block a user