-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEndlessGame.h
36 lines (30 loc) · 878 Bytes
/
EndlessGame.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
/*****************************************************************//**
* \file EndlessGame.h
* \brief Game mode that will let player plays endlessly
*
* \author Chau Le
* \date August 2021
*********************************************************************/
#pragma once
#ifndef ENDLESS_GAME_H
#define ENDLESS_GAME_H
#include "GameBase.h"
class EndlessGame :
public GameBase
{
private:
bool hsSaved = false;
public:
EndlessGame(StateManager &stateManager, std::string folderPath);
~EndlessGame();
//sf::Clock clock;
// Game Base functions
//************************************************
void tick(const float & dt, sf::RenderWindow& window);
void keyEvent(const float & dt, sf::Event event);
void mouseEvent(const float & dt, sf::RenderWindow& window, sf::Event event);
void render(sf::RenderWindow& window);
private:
void gameOver();
};
#endif