aboutsummaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-14 11:51:05 -0400
committerAndy Belle-Isle <abelleisle@roadrunner.com>2015-09-14 11:51:05 -0400
commit7d974f6f4d54b3fbea99780ddf6e395b217065bc (patch)
treeb9d8fe2166eedc57137737091c08cd7bbd749ddf /include/common.h
parentd2d334f2cd3cc78f088f429eb5d0037268366e6d (diff)
Added NPC Stuff
Added Wandering, and variable spawning amounts
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index e1b536f..f32aad0 100644
--- a/include/common.h
+++ b/include/common.h
@@ -15,7 +15,8 @@ typedef struct{float x; float y;}vec2;
#include <World.h>
#define SCREEN_WIDTH 1280
-#define SCREEN_HEIGHT 800
+#define SCREEN_HEIGHT 720
+#define SCREEN_RATIO (float)SCREEN_WIDTH/(float)SCREEN_HEIGHT
//#define FULLSCREEN
#define HLINE (2.0f / (SCREEN_WIDTH / 4))
@@ -23,6 +24,9 @@ typedef struct{float x; float y;}vec2;
#define irand srand
#define grand rand
+template<typename T, size_t N>
+int eAmt(T (&)[N]){return N;}
+
//SDL VARIABLES
extern SDL_Window *window;
extern SDL_Surface *renderSurface;