World: Use nicer custom colors
This commit is contained in:
parent
be78434a9c
commit
c6b09d668c
1 changed files with 6 additions and 3 deletions
9
World.h
9
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<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
|
||||
|
|
Loading…
Add table
Reference in a new issue