Collisions?
This commit is contained in:
@@ -91,13 +91,7 @@ namespace EEntity
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// AABB
|
class HitBox;
|
||||||
class HitBox
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
int x, y, w, h;
|
|
||||||
};
|
|
||||||
|
|
||||||
class Entity
|
class Entity
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -147,10 +141,9 @@ public:
|
|||||||
olc::vi2d Coords;
|
olc::vi2d Coords;
|
||||||
ETile::Type Type;
|
ETile::Type Type;
|
||||||
ETile::State State;
|
ETile::State State;
|
||||||
|
|
||||||
//olc::vf2d SpriteTextureMask;
|
|
||||||
//olc::Renderable* SpriteMap;
|
|
||||||
|
|
||||||
|
HitBox* AABBHitBox;
|
||||||
|
|
||||||
virtual void Update(float fTime);
|
virtual void Update(float fTime);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user