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:
+7
-1
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user