Example #1
0
 EndingState::EndingState( Application* a )
    : State( a )
    , mElapsedTime(0)
    , mLeavingState(false)
 {
    mImage = Texture::create("ending");
    // Start playing the theme song.
    Jukebox* jukebox = GameManager::instance().getSoundManager()->getJukebox();
    jukebox->clear();
    jukebox->addTrack("music/theme.ogg");
    jukebox->play();
 }