generated from hertog/godot-module-template
13 lines
268 B
GDScript
13 lines
268 B
GDScript
extends Window
|
|
|
|
@export var player: RigidBody2D
|
|
@onready var camera: Camera2D = get_node("Camera2D")
|
|
|
|
func _ready() -> void:
|
|
var world = get_node("../Level").find_world_2d()
|
|
world_2d = world
|
|
|
|
|
|
func _process(delta: float) -> void:
|
|
camera.position = player.position
|