Remove useless Clock

This commit is contained in:
NaiJi ✨ 2020-02-21 20:40:48 +03:00
parent 2c31af397c
commit c2a8772129
2 changed files with 0 additions and 3 deletions

View File

@ -19,8 +19,6 @@ Game::Game()
int Game::run() int Game::run()
{ {
clock = std::make_unique<sf::Clock>();
// On the game loop // On the game loop
while (main_window.isOpen()) while (main_window.isOpen())
{ {

1
game.h
View File

@ -19,7 +19,6 @@ private:
std::unique_ptr<Level> level; std::unique_ptr<Level> level;
// SFML entities // SFML entities
std::unique_ptr<sf::Clock> clock;
sf::RenderWindow main_window; sf::RenderWindow main_window;
/// Convert pressed key into a game direction /// Convert pressed key into a game direction