Files
project-hood/scripts/player.gd
2025-10-08 00:50:39 +02:00

8 lines
209 B
GDScript

extends CharacterBody2D
const SPEED: int = 500
func _physics_process(delta: float) -> void:
velocity = Input.get_vector("move_left","move_right","move_up","move_down") * delta * SPEED * 3
move_and_slide()