From cbbf1a0b15316d61cefb90a2a2d513ff783cfd4c Mon Sep 17 00:00:00 2001
From: Claudio Hoffmann <hoffmanncl72341@th-nuernberg.de>
Date: Sun, 17 Jan 2021 15:41:07 +0100
Subject: [PATCH] Scoreb: Add a drop shadow behind the numbers

Better readability on the Game Over screen.
---
 Scoreb.cpp | 130 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 70 insertions(+), 60 deletions(-)

diff --git a/Scoreb.cpp b/Scoreb.cpp
index 61c3fba..aa7589a 100644
--- a/Scoreb.cpp
+++ b/Scoreb.cpp
@@ -43,85 +43,95 @@ static StaticPixelBuffer<34,18> constexpr gameover= {
 {"00FFFFFF00000F000FFFFFFFF0FF00FFF0"}
     }}};
 
-static StaticPixelBuffer<3,5> constexpr eins= {
+static StaticPixelBuffer<4,6> constexpr eins= {
     {{
-         {" 1 "},
-         {"11 "},
-         {" 1 "},
-         {" 1 "},
-         {" 1 "}
+         {" 1  "},
+         {"110 "},
+         {" 10 "},
+         {" 10 "},
+         {" 10 "},
+         {"  0 "}
     }}};
-static StaticPixelBuffer<3,5> constexpr zwei= {
+static StaticPixelBuffer<4,6> constexpr zwei= {
     {{
-         {"222"},
-         {"  2"},
-         {"222"},
-         {"2  "},
-         {"222"}
+         {"222 "},
+         {"  20"},
+         {"2220"},
+         {"2000"},
+         {"222 "},
+         {" 000"}
     }}};
-static StaticPixelBuffer<3,5> constexpr drei= {
+static StaticPixelBuffer<4,6> constexpr drei= {
     {{
-         {"333"},
-         {"  3"},
-         {"333"},
-         {"  3"},
-         {"333"}
+         {"333 "},
+         {" 030"},
+         {"3330"},
+         {" 030"},
+         {"3330"},
+         {" 000"}
     }}};
-static StaticPixelBuffer<3,5> constexpr vier= {
+static StaticPixelBuffer<4,6> constexpr vier= {
     {{
-         {"4 4"},
-         {"4 4"},
-         {"444"},
-         {"  4"},
-         {"  4"}
+         {"4 4 "},
+         {"4040"},
+         {"4440"},
+         {" 040"},
+         {"  40"},
+         {"   0"}
     }}};
-static StaticPixelBuffer<3,5> constexpr funf= {
+static StaticPixelBuffer<4,6> constexpr funf= {
     {{
-         {"555"},
-         {"5  "},
-         {"555"},
-         {"  5"},
-         {"555"}
+         {"555 "},
+         {"5000"},
+         {"555 "},
+         {" 050"},
+         {"5550"},
+         {" 000"}
     }}};
-static StaticPixelBuffer<3,5> constexpr sechs= {
+static StaticPixelBuffer<4,6> constexpr sechs= {
     {{
-         {"666"},
-         {"6  "},
-         {"666"},
-         {"6 6"},
-         {"666"}
+         {"666 "},
+         {"6000"},
+         {"666 "},
+         {"6060"},
+         {"6660"},
+         {" 000"},
     }}};
-static StaticPixelBuffer<3,5> constexpr sieben= {
+static StaticPixelBuffer<4,6> constexpr sieben= {
     {{
-         {"777"},
-         {"  7"},
-         {"  7"},
-         {" 7 "},
-         {" 7 "}
+         {"777 "},
+         {"  7 "},
+         {"  70"},
+         {" 7 0"},
+         {" 70 "},
+         {"  0 "},
     }}};
-static StaticPixelBuffer<3,5> constexpr acht= {
+static StaticPixelBuffer<4,6> constexpr acht= {
     {{
-         {"888"},
-         {"8 8"},
-         {"888"},
-         {"8 8"},
-         {"888"}
+         {"888 "},
+         {"8080"},
+         {"8880"},
+         {"8080"},
+         {"8880"},
+         {" 000"},
     }}};
-static StaticPixelBuffer<3,5> constexpr neun= {
+static StaticPixelBuffer<4,6> constexpr neun= {
     {{
-         {"999"},
-         {"9 9"},
-         {"999"},
-         {"  9"},
-         {"999"}
+         {"999 "},
+         {"9090"},
+         {"9990"},
+         {"  90"},
+         {"9990"},
+         {" 000"},
     }}};
-static StaticPixelBuffer<3,5> constexpr null= {
+static StaticPixelBuffer<4,6> constexpr null= {
     {{
-         {"AAA"},
-         {"A A"},
-         {"A A"},
-         {"A A"},
-         {"AAA"}
+         {"AAA "},
+         {"A0A0"},
+         {"A0A0"},
+         {"A0A0"},
+         {"AAA0"},
+         {" 000"},
     }}};
 const PixelBuffer& Score::getGameOverSprite()
 {
-- 
GitLab