#ifndef GAME_INIT_H #define GAME_INIT_H #define PARTY_TRAIL_LENGTH 48 #include "pixelGameEngine.h" #include "encounters.h" #include "map.h" #include "states.h" #include "references.h" #include "cutscene.h" #include "tiles.h" using namespace olc; static PixelGameEngine*GAME; static std::vectorOBJECTS; static vd2d cameraPos; static std::vectorENCOUNTER_LIST; static int frameCount=0; static float elapsedTime=0; static const float TARGET_RATE = 1/60.0; static int MAP_WIDTH=-1; static int MAP_HEIGHT=-1; static Map*CURRENT_MAP; static Map*MAP_ONETT; static int GAME_STATE = GameState::EDITOR; static vi2d SELECTED_TILE={0,0}; static vi2d HIGHLIGHTED_TILE={0,0}; static int EDITING_LAYER=layer::DYNAMIC; static int SELECTED_OBJ_ID = PLAYER; static int OBJ_DISPLAY_OFFSET = 0; static bool GAME_FLAGS[128]={}; static std::array PARTY_MEMBER_OBJ; static std::array PARTY_MEMBER_STATS; static bool messageBoxVisible=false; static std::string messageBoxText=""; static std::string messageBoxTargetText=""; static std::string messageBoxFinalText=""; static int messageBoxMarker=0; static int messageBoxStartMarker=0; //Start of text display. static int messageBoxStopMarker=0; //End of text display for current printout. static int messageBoxFrameWaitTime=1; static bool messageBoxLoad=false; //Set to true when ready to load a message in. static std::map additionalChars; static Cutscene*TestCutscene; static Cutscene*CurrentCutscene=nullptr; static ActionType CurrentAction=ActionType::NONE; static double CUTSCENE_FADE_VALUE=0; static std::vectorCUTSCENE_QUEUE; static std::mapMOVELIST; static std::array partyTrail={vd2d{0,0}}; static int PARTY_MEMBER_COUNT = 1; static int ENCOUNTER_SELECTED = 0; static int ENCOUNTER_OFFSET = 0; static bool MOUSE_PRESSED_DOWN=false,MOUSE_DOWN=false,MOUSE_RELEASED=false; //TODO Implement Mouse things.static static std::vector> MAP; //The foreground layer. static std::vector> MAP2; static std::vector> MAP3; static std::vector> MAP4; static std::vector> MAP5; //Collision Layer static std::map SPRITES; static std::map ANIMATIONS; static std::map OBJ_INFO; #endif