extends Area2D var velocity: Vector2 func _ready() -> void: $ShotSound.play() func type() -> String: return "arrow" func damage(other: Area2D) -> void: other.damage(1) queue_free() get_node("../BowHit").play() func _physics_process(_delta: float) -> void: position += velocity if position.x < -Globals.WIDTH / 2. or position.y < -Globals.HEIGHT / 2. or \ position.x > Globals.WIDTH / 2. or position.y > Globals.HEIGHT / 2.: queue_free()