The open source repository for the action RPG game in development by Sig Productions titled 'Adventures in Lestoria'! https://forums.lestoria.net
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
AdventuresInLestoria/Crawler/Map.h

31 lines
510 B

#pragma once
#include "TSXParser.h"
#include "olcUTIL_Geometry2D.h"
enum MapName{
LEVEL1,
LEVEL2,
CAMPAIGN_1_1,
};
struct TilesetData{
Renderable*tileset;
std::map<int,XMLTag>foregroundTiles;
};
struct TileRenderData{
Decal*tileset;
vi2d pos;
vi2d tileSheetPos;
};
struct TileGroup{
private:
geom2d::rect<int>range;
std::vector<TileRenderData>tiles;
public:
geom2d::rect<int>GetRange();
std::vector<TileRenderData>&GetTiles();
void InsertTile(TileRenderData tile);
bool playerBehind=false;
};