From 88d53cab4e10aed6cdae443aa66136add99562bb Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 24 Apr 2022 23:51:27 +0200 Subject: Added some colorful stuff and interface --- GameScreen.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'GameScreen.cpp') 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) : m_stage {std::move(stage)}, m_stats {std::make_shared()} @@ -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); -- cgit v1.1