From 08792320df912ae42106ffabd67a12e65a190f48 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Wed, 29 Jan 2020 14:05:00 -0500 Subject: [PATCH] make Facing's enum value correspond to the x-direction they're looking GitOrigin-RevId: fe9318a68edd86a2dcfe949640aba48a2039f69e --- Shared/Player.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shared/Player.cs b/Shared/Player.cs index 8433626..5a3d439 100644 --- a/Shared/Player.cs +++ b/Shared/Player.cs @@ -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;