From bd80f4081451e6ef25b763d5f74891075936fdd0 Mon Sep 17 00:00:00 2001 From: drumsetmonkey Date: Tue, 13 Oct 2015 00:22:57 -0400 Subject: Documented things, updated DEBUG_printf() --- include/common.h | 10 ++++++---- include/entities.h | 10 ---------- 2 files changed, 6 insertions(+), 14 deletions(-) (limited to 'include') diff --git a/include/common.h b/include/common.h index b57999d..7df147f 100644 --- a/include/common.h +++ b/include/common.h @@ -24,14 +24,14 @@ enum _TYPE { //these are the main types of entities enum GENDER{ MALE, FEMALE, - NONE + NONE }; #include #include -#define SCREEN_WIDTH 640 -#define SCREEN_HEIGHT 480 +#define SCREEN_WIDTH 1280 +#define SCREEN_HEIGHT 720 //#define FULLSCREEN #define HLINE 3 //base unit of the world @@ -53,6 +53,8 @@ extern Mix_Music *music; extern Mix_Chunk *horn; GLuint loadTexture(const char *fileName); -void DEBUG_printf(const char *s,...); +void DEBUG_prints(const char* file, int line, const char *s,...); + +#define DEBUG_printf( message, ...) DEBUG_prints(__FILE__, __LINE__, message, __VA_ARGS__) //IF THERE IS NO VA_ARGS AT THE END OF A CALL, SUBSTITUTE IT WITH [ NULL ] #endif // COMMON_H diff --git a/include/entities.h b/include/entities.h index 833ebe1..ecfe539 100644 --- a/include/entities.h +++ b/include/entities.h @@ -95,14 +95,4 @@ ENTITY TYPES | 2 MOBS |->1 Skirl - - - - - - - - - - **/ \ No newline at end of file -- cgit v1.2.3