extends Node2D @export var speed: float = 200.0 var velocity: Vector2 = Vector2.ZERO func _ready() -> void: print("Player ready") func _process(delta: float) -> void: var dir := Input.get_vector("ui_left", "ui_right", "ui_up", "ui_down") velocity = dir * speed position += velocity * delta