This commit is contained in:
Bram Verhulst
2024-06-09 22:03:29 +02:00
parent d7389411f5
commit 5f1dcd5788
76 changed files with 1532 additions and 385 deletions

View File

@@ -89,6 +89,7 @@ WorldTile::~WorldTile() {
}
void WorldTile::Draw() {
utils::SetColor(Colors::WHITE);
switch (m_GroundTileType->GetType()) {
case GroundTileTypes::Air: {

View File

@@ -22,6 +22,7 @@ enum class GroundTileTypes {
Iron,
};
static std::map<GroundTileTypes, std::string> GroundTileTypeStrings {
{ GroundTileTypes::Air, "Air" },
{ GroundTileTypes::Dirt, "Dirt" },
@@ -35,6 +36,9 @@ static std::map<GroundTileTypes, std::string> GroundTileTypeStrings {
};
GroundTileType * getRandomGroundTile();
class GroundTileType {
@@ -140,7 +144,7 @@ public:
~WorldTile();
void Draw();
void Update(const Camera* camera); //TODO: no use
void Update(const Camera* camera);
Vector2f GetPosition() const {
return m_Position;