diff --git a/Shared/Player.cs b/Shared/Player.cs index 810c3ed..3bc45a6 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -5,7 +5,7 @@ using System.Collections.Generic; namespace SemiColinGames { public class Player { - private enum Pose { Walking, Standing, Crouching, Stretching, SwordSwing, Jumping }; + private enum Pose { Walking, Standing, SwordSwing, Jumping }; private const int moveSpeed = 180; private const int jumpSpeed = -600; @@ -164,10 +164,6 @@ namespace SemiColinGames { pose = Pose.Jumping; } else if (inputMovement.X != 0) { pose = Pose.Walking; - } else if (input[0].Motion.Y > 0) { - pose = Pose.Stretching; - } else if (input[0].Motion.Y < 0) { - pose = Pose.Crouching; } else { pose = Pose.Standing; } @@ -206,8 +202,6 @@ namespace SemiColinGames { // TODO: make a proper animation class & FSM-driven animations. return Sprites.Ninja.GetTextureSource( "attack_sword", 0.3 - swordSwingTime); - case Pose.Crouching: - case Pose.Stretching: case Pose.Standing: default: return Sprites.Ninja.GetTextureSource("idle", time);