Skip to content

Commit 2cb481e

Browse files
committed
Merge branch 'main' of https://github.com/Coding-in-community/DungeonRoyale into feat/adicionar-escaneamento-de-mapa
2 parents 562c9e3 + 1bd23f2 commit 2cb481e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/Player/Scripts/Player.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace DungeonRoyale.Modules.Player.Scripts;
55
public partial class Player : CharacterBody2D
66
{
77
[Export] private float MovementSpeed { get; set; } = 200.0f;
8-
private AnimatedSprite2D _animatedSprite;
8+
private AnimatedSprite2D _animatedSprite = null!;
99
private Direction _currentDirection = Direction.South;
1010

1111
private const float DIRECTION_THRESHOLD = 0.1f;
@@ -114,7 +114,7 @@ private void PlayIdleAnimation()
114114
if (_animatedSprite.Animation == idleAnimation)
115115
return;
116116

117-
PlayAnimation(idleAnimation);
117+
PlayAnimation(idleAnimation, (_currentDirection == Direction.East));
118118
_animatedSprite.SpeedScale = 1.0f;
119119
}
120120

0 commit comments

Comments
 (0)