Not perfect but enemies move/attack with animation

This commit is contained in:
2024-09-15 23:56:05 -07:00
parent 4a1fdd94f8
commit 8143da44db
36 changed files with 891 additions and 507 deletions

View File

@@ -65,6 +65,8 @@ namespace GameJamDungeon
private PlayerData PlayerData { get; set; } = default!;
private bool flipAttack = false;
public void Initialize()
{
AnimationPlayer.AnimationFinished += OnAnimationFinished;
@@ -120,8 +122,8 @@ namespace GameJamDungeon
{
var attackSpeed = PlayerData.Inventory.EquippedWeapon.Value.WeaponStats.AttackSpeed;
AnimationPlayer.SetSpeedScale((float)attackSpeed);
AnimationPlayer.Play("attack");
SwordSlashAnimation.Play("attack");
})
.Handle((in PlayerLogic.Output.ThrowItem output) =>
{