Use StringName literals with Input methods

This commit is contained in:
Aaron Franke
2022-03-27 19:19:09 -05:00
parent ab0816a44e
commit cb52878006
37 changed files with 126 additions and 126 deletions

View File

@@ -62,11 +62,11 @@ func _integrate_forces(s):
var new_siding_left = siding_left
# Get player input.
var move_left = Input.is_action_pressed("move_left")
var move_right = Input.is_action_pressed("move_right")
var jump = Input.is_action_pressed("jump")
var shoot = Input.is_action_pressed("shoot")
var spawn = Input.is_action_pressed("spawn")
var move_left = Input.is_action_pressed(&"move_left")
var move_right = Input.is_action_pressed(&"move_right")
var jump = Input.is_action_pressed(&"jump")
var shoot = Input.is_action_pressed(&"shoot")
var spawn = Input.is_action_pressed(&"spawn")
if spawn:
call_deferred("_spawn_enemy_above")