summaryrefslogtreecommitdiffhomepage
path: root/GameScreen.cpp
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-24 23:51:27 +0200
committerAki <please@ignore.pl>2022-04-24 23:51:27 +0200
commit88d53cab4e10aed6cdae443aa66136add99562bb (patch)
tree7a75635ba679c0c1f8fc371079429d3ec5142673 /GameScreen.cpp
parent38df088b80cb6c159eb9941cf6d3c0a8492e65ee (diff)
downloadbullethell2022-88d53cab4e10aed6cdae443aa66136add99562bb.zip
bullethell2022-88d53cab4e10aed6cdae443aa66136add99562bb.tar.gz
bullethell2022-88d53cab4e10aed6cdae443aa66136add99562bb.tar.bz2
Added some colorful stuff and interface
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);