1
0
Fork 0

Game: remove setup() method. do setup in run() instead.

This commit is contained in:
Henrik Hautakoski 2020-09-23 16:55:42 +02:00
parent d58c49421e
commit 2a1851efb5
2 changed files with 1 additions and 8 deletions

View file

@ -40,8 +40,6 @@ protected :
private :
void setup();
void gameLoop();
void processEvents();

View file

@ -30,16 +30,11 @@ Game::~Game()
delete m_messageHandler;
}
void Game::setup()
void Game::run()
{
m_graphics->init();
init();
}
void Game::run()
{
setup();
gameLoop();
}