diff --git a/SeasonsOfLoneliness.cpp b/SeasonsOfLoneliness.cpp index a1aa366..9e19d11 100644 --- a/SeasonsOfLoneliness.cpp +++ b/SeasonsOfLoneliness.cpp @@ -9,11 +9,18 @@ enum GAMESTATE{ GAMEWORLD }; +enum TILES{ + DIRT, + GRASS, + WATER +}; + #define WIDTH 256 #define HEIGHT 224 #define ALPHA_SCREEN1 128 #define ALPHA_SCREEN2 20 #define FADE_SPD 6 +#define MOVE_SPD 0.01 class SeasonsOfLoneliness : public olc::PixelGameEngine { @@ -24,7 +31,7 @@ public: } public: - GAMESTATE GAME_STATE=CUTSCENE_1; + GAMESTATE GAME_STATE=GAMEWORLD; int textInd=0; int cursorX=0; int transitionTime=0; @@ -37,6 +44,8 @@ public: int**MAP=NULL; int MAP_WIDTH=-1; int MAP_HEIGHT=-1; + olc::Decal*TILES; + float PLAYER_COORDS[2] = {}; void LoadMap(char*mapName) { std::ifstream f("assets/maps/map1"); @@ -71,6 +80,7 @@ public: } } } + printf("Loaded %dx%d map:\n",MAP_WIDTH,MAP_HEIGHT); for (int y=0;y=0&&xOffset+x=0&&yOffset+y