Beispiel #1
0
void GStateNewGame::update(const double dt_){
	this->passedTime += dt_;

	handleSelectorMenu();

	std::array<bool, GameKeys::MAX> keyStates = Game::instance().getInput();
	if(keyStates[GameKeys::ESCAPE] == true){
		Game::instance().setState(Game::GStates::MENU);
	}

}
Beispiel #2
0
void Game::updatePause(){

	handleSelectorMenu();
}