World: Use nicer custom colors
This commit is contained in:
parent
be78434a9c
commit
c6b09d668c
1 changed files with 6 additions and 3 deletions
7
World.h
7
World.h
|
@ -23,7 +23,9 @@ class World {
|
||||||
public:
|
public:
|
||||||
Player player;
|
Player player;
|
||||||
|
|
||||||
World(int w, int h, sf::Color groundColor = sf::Color::Green, sf::Color ceilingColor = sf::Color::Blue,
|
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 = {});
|
std::vector<BlockType> worldMap = {});
|
||||||
int getW() const;
|
int getW() const;
|
||||||
int getH() const;
|
int getH() const;
|
||||||
|
@ -42,7 +44,8 @@ private:
|
||||||
sf::Color groundColor;
|
sf::Color groundColor;
|
||||||
sf::Color ceilingColor;
|
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.
|
* Cast a ray from a given position and return the on-screen scale.
|
||||||
* @param originX Ray X origin
|
* @param originX Ray X origin
|
||||||
|
|
Loading…
Add table
Reference in a new issue