first commit
This commit is contained in:
7
scripts/player.gd
Normal file
7
scripts/player.gd
Normal file
@@ -0,0 +1,7 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user