Added preprocessor directives to make it easy to switch between testing modes

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
sigonasr2 2022-08-29 23:56:14 -05:00
parent 346ac249db
commit 2a452571c8
2 changed files with 22 additions and 2 deletions

View File

@ -7,9 +7,29 @@
using namespace olc;
#define TEST_MAP1 //Toggle to just play around on map 1.
//#define TEST_MAP2 //Toggle on to just play around on map 2.
#define STARTING_MAP "assets/maps/map1"
#define STARTING_STATE CUTSCENE_1
#define MOVE_SPD 0.075
#define PLAYER_X 14
#define PLAYER_Y 4
#ifdef TEST_MAP1
#define STARTING_MAP "assets/maps/map1"
#define STARTING_STATE GAMEWORLD
#define MOVE_SPD 0.1
#define PLAYER_X 40
#define PLAYER_Y 31
#endif
#ifdef TEST_MAP2
#define STARTING_MAP "assets/maps/map2"
#define STARTING_STATE GAMEWORLD
#define MOVE_SPD 0.1
#define PLAYER_X 16
#define PLAYER_Y 5
#endif
enum GAMESTATE{
CUTSCENE_1,
@ -281,7 +301,7 @@ public:
int MAP_WIDTH=-1;
int MAP_HEIGHT=-1;
Decal*TILES;
float PLAYER_COORDS[2] = {14,4};
float PLAYER_COORDS[2] = {PLAYER_X,PLAYER_Y};
std::vector<Object*> OBJECTS;
bool CUTSCENE_ACTIVE=false;
cutscene::CUTSCENE CURRENT_CUTSCENE=cutscene::NONE;

Binary file not shown.