-
Notifications
You must be signed in to change notification settings - Fork 0
/
Menu.h
42 lines (37 loc) · 790 Bytes
/
Menu.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include <iostream>
#include "Score.h"
#include <sstream>
#include <SFML/Graphics.hpp>
using namespace std;
using namespace sf;
class Menu
{
private:
int selectedItem;
Font font;
Text text1; //Press Enter to play
Text text2; //cs
//Text score;
//Score s;
Text life;
//Sprite lives[4];
//Texture livesTexture;
Text gameOverText;
Text win;
ostringstream stream;
Sprite image1;
Texture image1_Texture;
Sprite image2;
Texture image2_Texture;
Sprite gameOverImage;
Texture gameOver_Texture;
public:
Menu();
void drawOnWindow(RenderWindow& window);
void drawGameover(RenderWindow& window);
void drawWin(RenderWindow& window);
//void drawScore(RenderWindow& window);
//void drawLives(RenderWindow& window, int l); //(n)
//void setScore(int s); // (n)
};