Things!
This commit is contained in:
6
The Great Machine/Camera.hpp
Normal file
6
The Great Machine/Camera.hpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef GREATMACHINE_CAMERA_H_
|
||||
#define GREATMACHINE_CAMERA_H_
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
@@ -5,6 +5,9 @@ class Dungeon
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,2 +1,11 @@
|
||||
#include "Things.hpp"
|
||||
|
||||
void Tile::Update(float fTime)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void Tile::Draw(olc::PixelGameEngine* engine, )
|
||||
{
|
||||
engine->DrawPartialSprite()
|
||||
}
|
||||
|
||||
@@ -32,18 +32,21 @@ namespace EEntity
|
||||
Boss
|
||||
};
|
||||
|
||||
enum Item
|
||||
namespace EItem
|
||||
{
|
||||
None,
|
||||
Sword
|
||||
};
|
||||
enum Item
|
||||
{
|
||||
None,
|
||||
Sword
|
||||
};
|
||||
|
||||
// Fixed items can have states #door open / closed
|
||||
enum FixedItem
|
||||
{
|
||||
Torch,
|
||||
Door
|
||||
};
|
||||
// Fixed items can have states #door open / closed
|
||||
enum FixedItem
|
||||
{
|
||||
Torch,
|
||||
Door
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
class Entity
|
||||
@@ -56,20 +59,27 @@ public:
|
||||
class Item : public Entity
|
||||
{
|
||||
public:
|
||||
EEntity::Item Item;
|
||||
EEntity::EItem::Item Item;
|
||||
};
|
||||
|
||||
class FixedItem : public Entity
|
||||
{
|
||||
EEntity::FixedItem Item;
|
||||
EEntity::EItem::FixedItem Item;
|
||||
};
|
||||
|
||||
|
||||
class Tile
|
||||
{
|
||||
public:
|
||||
olc::vd2d Coords;
|
||||
ETile::Type Type;
|
||||
ETile::State State;
|
||||
|
||||
olc::vd2d SpriteTextureMask;
|
||||
olc::Sprite* SpriteMap;
|
||||
|
||||
virtual void Update(float fTime);
|
||||
void Draw(olc::PixelGameEngine* engine);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user