-
Notifications
You must be signed in to change notification settings - Fork 2
/
GamePage.h
50 lines (40 loc) · 999 Bytes
/
GamePage.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
41
42
43
44
45
46
47
48
49
50
#pragma once
#ifndef GAMEPAGE_H
#define GAMEPAGE_H
#include <SFML/Graphics.hpp>
#include <cassert>
#include "GameObject.h"
#include "Throwings.h"
#include "Throwings_Gen.h"
#include "ScoreAndLife.h"
using namespace sf;
using namespace std;
class GamePage {
private:
Font font;
GameObject tamagotchi;
Throwings_Gen throwings;
ScoreAndLife score;
Text textScore;
Text textLife;
Text textgap;
int cur_score;
int cur_life;
RenderWindow *window;
RectangleShape rec;
public:
GamePage() {
window = new RenderWindow(VideoMode(360, 480), "TAMAGOTCHI - MINIGAME");
RectangleShape rec(Vector2f(360, 480));
cur_score = 0;
cur_life = 5;
}
void gameStart(void);
void rectangle(RectangleShape&);
void gameStart(RenderWindow&, RectangleShape&, Font&);
int fontCheck(Font&, string);
void startPage(RenderWindow&, Font&);
void endPage(RenderWindow&, Font&);
int getScore(void);
};
#endif