Merge branch 'master' of https://github.com/Crizomb/RythmGame
This commit is contained in:
commit
c010e61522
5 changed files with 49 additions and 10 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <SFML/Graphics/RectangleShape.hpp>
|
||||
#include <SFML/Graphics/Sprite.hpp>
|
||||
#include <SFML/Graphics/Text.hpp>
|
||||
#ifndef BOOK_GAME_HPP
|
||||
#define BOOK_GAME_HPP
|
||||
|
||||
|
@ -21,6 +22,7 @@ private:
|
|||
void start();
|
||||
void update(sf::Time elapsedTime);
|
||||
void render();
|
||||
void update_scores(bool good_action);
|
||||
|
||||
void updateStatistics(AudioEmitter &audioEmitter);
|
||||
|
||||
|
@ -38,6 +40,11 @@ private:
|
|||
sf::RectangleShape rightPressZone;
|
||||
|
||||
std::size_t mStatisticsNumFrames{0};
|
||||
|
||||
sf::Text ScoreText{mFont};
|
||||
sf::Text ScoreMultiplierText{mFont};
|
||||
int score = 0;
|
||||
int score_multiplier = 1; // number of good press without misses
|
||||
};
|
||||
|
||||
#endif // BOOK_GAME_HPP
|
||||
|
|
|
@ -35,7 +35,8 @@ public:
|
|||
// press
|
||||
static bool checkPress(float press_time, NotePlaceEnum key_pressed);
|
||||
|
||||
static void update(float dtime, sf::RenderWindow &window);
|
||||
// return false if missed tile
|
||||
static bool update(float dtime, sf::RenderWindow &window);
|
||||
|
||||
// Some getters usefull in test :
|
||||
float getPlayTime() const { return play_time; };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue