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