feat: improved tower place + tower upgrade

This commit is contained in:
2021-11-05 17:35:39 +01:00
parent 524af9ad5f
commit f863fb4942
6 changed files with 87 additions and 32 deletions

View File

@@ -28,7 +28,7 @@ private:
glm::vec2 m_HoldCursorPos;
float m_Zoom;
float m_CamSensibility = 1;
bool m_TowerPlacePopupOpened = false;
bool m_PopupOpened = false;
VertexCache m_TowersCache;
public:
WorldRenderer(game::World* world, client::ClientGame* client);
@@ -53,6 +53,8 @@ private:
void renderMobs() const;
void renderTileSelect() const;
void renderPopups() const;
void renderTowerPlacePopup() const;
void renderTowerUpgradePopup() const;
void renderMobTooltip() const;
void detectClick();
glm::vec2 getCursorWorldPos() const;