summaryrefslogtreecommitdiffhomepage
path: root/GameScreen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GameScreen.cpp')
-rw-r--r--GameScreen.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/GameScreen.cpp b/GameScreen.cpp
index 1a8795f..a5b4c6c 100644
--- a/GameScreen.cpp
+++ b/GameScreen.cpp
@@ -10,6 +10,9 @@
#include "Stage.h"
+static constexpr Color INTERFACE {0, 0, 0, 230};
+
+
GameScreen::GameScreen(std::unique_ptr<Stage> stage) :
m_stage {std::move(stage)},
m_stats {std::make_shared<Stats>()}
@@ -31,6 +34,8 @@ void
GameScreen::draw()
{
m_stage->draw();
+ DrawRectangle(0, 0, 160, 600, INTERFACE);
+ DrawRectangle(800 - 160, 0, 160, 600, INTERFACE);
DrawText(TextFormat("%d", m_stats->total_bullets), 5, 25, 20, DARKGRAY);
DrawText(TextFormat("%d", m_stats->lifes), 5, 45, 20, DARKGREEN);
DrawText(TextFormat("%d", m_stats->points), 5, 65, 20, GOLD);