1
0
Fork 0

World: Use nicer custom colors

This commit is contained in:
Teo-CD 2024-01-21 20:41:19 +00:00
parent be78434a9c
commit c6b09d668c

View file

@ -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<BlockType> worldMap = {});
World(int w, int h,
sf::Color groundColor = sf::Color{67, 137, 39},
sf::Color ceilingColor = sf::Color{39, 69, 137},
std::vector<BlockType> 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