Add hit reset flag for monsters that charge at players such that they must reset it to damage the player with contact damage again. Player spawn location now reads from the level file. Collision tile data loaded.

This commit is contained in:
2023-06-23 20:42:55 -07:00
parent d9e8c6ddbd
commit cdab15d8d3
13 changed files with 78 additions and 45 deletions
+7 -1
View File
@@ -1,16 +1,22 @@
#pragma once
#include "TSXParser.h"
#include "olcUTIL_Geometry2D.h"
struct XMLTag;
enum MapName{
LEVEL1,
LEVEL2,
CAMPAIGN_1_1,
};
struct TileCollisionData{
geom2d::rect<int>collision;
};
struct TilesetData{
Renderable*tileset;
std::map<int,XMLTag>foregroundTiles;
std::map<int,TileCollisionData>collision;
};
struct TileRenderData{