add Map definition

This commit is contained in:
2025-04-06 14:20:21 -04:00
parent 6b397222ab
commit b46a16b6c3
4 changed files with 26 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
#ifndef TILEMAP_H
#define TILEMAP_H
#include <string>
#include <vector>
using namespace std;
class TileMap {
public:
//3 arrays to store the converted 2D map layer data
vector<int> background;
vector<int> foreground;
vector<int> 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