2 #include "../include/GameGenerics.h"
12 texture.loadFromFile(
"images/Arkanoid_Img/gameover.png" );
13 Sprite s_GameOver( texture );
14 s_GameOver.setPosition( 50, 50 );
17 window.draw( s_GameOver );
20 std::string textstring =
"Score: " + strScore;
23 font.loadFromFile(
"fonts/arial.ttf" );
24 Text text( textstring.c_str(), font, 30 );
25 text.setPosition( 100, 250 );
26 text.setColor( sf::Color::Red );
GameGenerics()
Default Constructor for GameGenerics. This is a abstract class and you cannot instantiate this class.
void GameOverScreen(RenderWindow &window)
Display a game over screen at the end of the game alone with user's score. Currently,...
virtual int CalculateScore()=0
Pure virtual function inherited from GameGenerics.h Each game calculate scores differently and theref...