remove unused Crouching & Stretching poses
This commit is contained in:
parent
393e9d14b9
commit
9bd33a406a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user