Background character and enemy
This commit is contained in:
7
scripts/playerscript.gd
Normal file
7
scripts/playerscript.gd
Normal file
@ -0,0 +1,7 @@
|
||||
extends CharacterBody2D
|
||||
|
||||
func _physics_process(delta):
|
||||
var direction = Input.get_vector("move_left", "move_right", "move_up", "move_down")
|
||||
velocity = direction * 200
|
||||
move_and_slide()
|
||||
pass
|
Reference in New Issue
Block a user