fix: update player positions
This commit is contained in:
@@ -126,6 +126,9 @@ func _process(delta):
|
||||
else:
|
||||
move_state = MoveState.Still;
|
||||
|
||||
position += velocity * delta
|
||||
position = position.clamp(Vector2.ZERO, screen_size)
|
||||
|
||||
# Handle action_state
|
||||
if Input.is_action_pressed("play_card"):
|
||||
play_card();
|
||||
@@ -139,4 +142,3 @@ func _process(delta):
|
||||
elif Input.is_action_pressed("charge"):
|
||||
action_state = ActionState.Charging;
|
||||
charge();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user