diff --git a/Map.h b/Map.h new file mode 100644 index 0000000..ffe5deb --- /dev/null +++ b/Map.h @@ -0,0 +1,25 @@ +#ifndef TILEMAP_H +#define TILEMAP_H + +#include +#include + +using namespace std; + +class TileMap { +public: + //3 arrays to store the converted 2D map layer data + vector background; + vector foreground; + vector collision; + + int mapWidth; + int mapHeight; + + int getTile(int x, int y) const; + int setTile(int x, int y, int tileID) const; + + void loadMap(string file); + +}; +#endif diff --git a/TerminalTrainers b/TerminalTrainers index 406d658..f850d64 100755 Binary files a/TerminalTrainers and b/TerminalTrainers differ diff --git a/main.cpp b/main.cpp index 3b3094d..bda9e16 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,3 @@ -#include #define OLC_PGE_APPLICATION #include "olcPixelGameEngine.h" @@ -121,7 +120,7 @@ protected: int main() { TerminalTrainers demo; - if(demo.Construct(640, 360, 8, 8)) + if(demo.Construct(256, 240, 4, 4)) demo.Start(); return 0; diff --git a/main.o b/main.o index c92ae44..4727593 100644 Binary files a/main.o and b/main.o differ