Game/Source/SceneWin.cpp
// Called before the first frame / when activated
Called before the first frame / when activated
Called before the first frame / when activated
bool SceneWin::Load()
{
	LOG("Loading Win Screen");
	 Load map
	map = (Map*)entityManager->CreateEntity(EntityType::MAP);
	map->Load("scene_win.tmx");
	 Load music
	victoryFX = audioManager->LoadFX("Assets/Audio/FX/victory.wav");
	audioManager->musicList.Add(&victoryFX);
	 Move camera
	render->camera.x = render->camera.y = 0;
	 Flags reset
	playFX = true;
	return false;
}
bool SceneWin :: Load ( ) { LOG ( " " ) ; map = ( Map * ) entityManager -> CreateEntity ( EntityType :: MAP ) ; map -> Load ( " " ) ; victoryFX = audioManager -> LoadFX ( " " ) ; audioManager -> musicList . Add ( & victoryFX ) ; render -> camera . x = render -> camera . y = 0 ; playFX = true ; return false ; }
Called before the first frame / when activated
Called before the first frame / when activated
// // Load map // // // Load music // // // Move camera // // // Flags reset //