15 lines
333 B
GDScript
15 lines
333 B
GDScript
extends Node
|
|
|
|
class_name GameScreen
|
|
|
|
@export var map: Node
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready() -> void:
|
|
map.add_child(load(GameManager.currentMapPath).instantiate())
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta: float) -> void:
|
|
pass
|