make Facing's enum value correspond to the x-direction they're looking
GitOrigin-RevId: fe9318a68edd86a2dcfe949640aba48a2039f69e
This commit is contained in:
parent
bff5d2b490
commit
08792320df
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user