|
@ -4,7 +4,12 @@ using System.Collections.Generic; |
|
|
|
|
|
|
|
|
namespace SemiColinGames { |
|
|
namespace SemiColinGames { |
|
|
class Player { |
|
|
class Player { |
|
|
enum Facing { Left, Right }; |
|
|
|
|
|
|
|
|
// The player's Facing corresponds to the x-direction that they're looking.
|
|
|
|
|
|
enum Facing { |
|
|
|
|
|
Left = -1, |
|
|
|
|
|
Right = 1 |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
enum Pose { Walking, Standing, Crouching, Stretching, SwordSwing, Jumping }; |
|
|
enum Pose { Walking, Standing, Crouching, Stretching, SwordSwing, Jumping }; |
|
|
|
|
|
|
|
|
private const int moveSpeed = 180; |
|
|
private const int moveSpeed = 180; |
|
|