make Facing's enum value correspond to the x-direction they're looking

GitOrigin-RevId: fe9318a68edd86a2dcfe949640aba48a2039f69e
This commit is contained in:
Colin McMillen 2020-01-29 14:05:00 -05:00
parent bff5d2b490
commit 08792320df

View File

@ -4,7 +4,12 @@ using System.Collections.Generic;
namespace SemiColinGames {
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 };
private const int moveSpeed = 180;