mend
testing actions Godot auto build Godot auto build Godot auto build Godot auto build Godot auto build Finished adding items into the game along with auto build for linux.
This commit is contained in:
+4
-4
@@ -24,13 +24,13 @@ func _process(delta: float) -> void:
|
||||
func handle_keyboard_movement(delta: float) -> void:
|
||||
var velocity = Vector2.ZERO
|
||||
|
||||
if Input.is_key_pressed(KEY_LEFT) or Input.is_key_pressed(KEY_A):
|
||||
if Input.is_key_pressed(KEY_LEFT):
|
||||
velocity.x -= 1
|
||||
if Input.is_key_pressed(KEY_RIGHT) or Input.is_key_pressed(KEY_D):
|
||||
if Input.is_key_pressed(KEY_RIGHT):
|
||||
velocity.x += 1
|
||||
if Input.is_key_pressed(KEY_UP) or Input.is_key_pressed(KEY_W):
|
||||
if Input.is_key_pressed(KEY_UP):
|
||||
velocity.y -= 1
|
||||
if Input.is_key_pressed(KEY_DOWN) or Input.is_key_pressed(KEY_S):
|
||||
if Input.is_key_pressed(KEY_DOWN):
|
||||
velocity.y += 1
|
||||
|
||||
# Move the camera based on direction, speed, and time passed
|
||||
|
||||
Reference in New Issue
Block a user