From c6b09d668ce58d2159082bc3b779c31eb86d11ed Mon Sep 17 00:00:00 2001 From: Teo-CD Date: Sun, 21 Jan 2024 20:41:19 +0000 Subject: [PATCH] World: Use nicer custom colors --- World.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/World.h b/World.h index eeff8f5..c008cc0 100644 --- a/World.h +++ b/World.h @@ -23,8 +23,10 @@ class World { public: Player player; - World(int w, int h, sf::Color groundColor = sf::Color::Green, sf::Color ceilingColor = sf::Color::Blue, - std::vector worldMap = {}); + World(int w, int h, + sf::Color groundColor = sf::Color{67, 137, 39}, + sf::Color ceilingColor = sf::Color{39, 69, 137}, + std::vector worldMap = {}); int getW() const; int getH() const; @@ -42,7 +44,8 @@ private: sf::Color groundColor; sf::Color ceilingColor; - void fillColumn(sf::RenderWindow&, int column, float scale, sf::Color wallColor = sf::Color(127,127,127)) const; + void fillColumn(sf::RenderWindow&, int column, float scale, + sf::Color wallColor = sf::Color(84,56,34)) const; /** * Cast a ray from a given position and return the on-screen scale. * @param originX Ray X origin