background
This commit is contained in:
parent
785453b009
commit
b5a253a865
5 changed files with 35 additions and 12 deletions
|
@ -45,6 +45,8 @@ private:
|
|||
sf::Text ScoreMultiplierText{mFont};
|
||||
int score = 0;
|
||||
int score_multiplier = 1; // number of good press without misses
|
||||
|
||||
sf::Sprite backGround;
|
||||
};
|
||||
|
||||
#endif // BOOK_GAME_HPP
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
static constexpr unsigned int SCREEN_WIDTH = 1080;
|
||||
static constexpr unsigned int SCREEN_WIDTH = 1280;
|
||||
static constexpr unsigned int SCREEN_HEIGHT = 720;
|
||||
static constexpr unsigned int NOTE_PRESS_HEIGHT = SCREEN_HEIGHT * 0.9;
|
||||
static constexpr unsigned int NOTE_PRESS_HEIGHT = SCREEN_HEIGHT * 0.8;
|
||||
|
||||
static constexpr unsigned int MIDDLE_WIDTH = SCREEN_WIDTH / 2;
|
||||
static constexpr unsigned int MIDDLE_HEIGHT = SCREEN_HEIGHT / 2;
|
||||
|
||||
static constexpr unsigned int NOTE_PLACE_X_POS[3] = {
|
||||
SCREEN_WIDTH * 3 / 10, SCREEN_WIDTH * 5 / 10, SCREEN_WIDTH * 7 / 10};
|
||||
SCREEN_WIDTH * 6 / 10, SCREEN_WIDTH * 7 / 10, SCREEN_WIDTH * 8 / 10};
|
||||
|
||||
namespace sf {
|
||||
class Texture;
|
||||
};
|
||||
extern sf::Texture placeHolder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue