CSC8503_Advanced_Game_Technologies / CSC8503 / CSC8503Common / SingleplayerGameState.cpp
SingleplayerGameState.cpp
Raw
#include "SingleplayerGameState.h"
void SingleplayerGameState::OnAwake() {
	//tutorialGame->UpdateGame(dt);
}

PushdownState::PushdownResult SingleplayerGameState::OnUpdate(float dt, PushdownState** pushFunc) {
	level1Game->UpdateGame(dt);
	if (level1Game->IsOver() ||  Window::GetKeyboard()->KeyPressed(KeyboardKeys::ESCAPE)) {
		//delete level1Game;
		return PushdownState::PushdownResult::Pop;
	}
	return PushdownState::PushdownResult::NoChange;
}