Directional spider bomb

This commit is contained in:
MaddoScientisto 2025-03-15 17:56:55 +01:00
commit 36e77adcd7
8 changed files with 44 additions and 6 deletions

View file

@ -8,7 +8,11 @@ public partial class Active : PlayerStateBase
{
public override PlayerState StateId => PlayerState.Active;
private Vector2 _movementDirection { get; set; }
public Vector2 FacingDirection { get; private set; } = Vector2.Down;
public Vector2 FacingDirection
{
get => _storageModule.FacingDirection;
private set => _storageModule.FacingDirection = value;
}
[Export]
public int Speed { get; set; } = 45;
@ -32,6 +36,8 @@ public partial class Active : PlayerStateBase
[Export] private ActivationProvider _activationProvider;
[Export] private InteractionController _interactionController;
[Export] private PlayerStorageModule _storageModule;
private bool _isStrafing;