From c04ccc9cc3aa91c634880cbfd2d77b58d68189ad Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Tue, 21 Dec 2010 18:00:21 +0000 Subject: Implement crouching --- intensemarcus.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'intensemarcus.h') diff --git a/intensemarcus.h b/intensemarcus.h index 3e98220..4724e85 100644 --- a/intensemarcus.h +++ b/intensemarcus.h @@ -15,6 +15,7 @@ const int ORIENT_FRONT = 0; const int ORIENT_BACK = 1; const int ORIENT_RIGHT = 2; const int ORIENT_LEFT = 3; +const int ORIENT_CROUCH = 4; const int GRAVITY = 3; const int JUMP_STRENGTH = 40; const int MOVE_AMOUNT = 10; @@ -22,6 +23,7 @@ const float SPRINT_MULTIPLYER = 1.5; const int MAP_X = 48; const int MAP_Y = 12; const int TILE_SIZE = 50; +const int CROUCH_HEIGHT = 30; SDL_Surface *loadImage(std::string filename); -- cgit v1.2.3