Ejemplo n.º 1
0
// on "init" you need to initialize your instance
bool MainMenu::init(std::string csbFile)
{
    BaseScene::init(csbFile);
    
    bindButton("playButton", CC_CALLBACK_0(MainMenu::playGame, this));
    bindButton("storeButton", CC_CALLBACK_0(MainMenu::goToStore, this));
    // Settings scene is not needed now
    //bindButton("settingButton", CC_CALLBACK_0(MainMenu::settings, this));
    bindButton("quitButton", CC_CALLBACK_0(MainMenu::quitGame, this));
    
    // End init scene
    return true;
}
Ejemplo n.º 2
0
// on "init" you need to initialize your instance
bool EnterName::init(std::string csbFile)
{
    BaseScene::init(csbFile);
    
    bindButton("submitButton", CC_CALLBACK_0(EnterName::submit, this));
    
    return true;
}
Ejemplo n.º 3
0
// on "init" you need to initialize your instance
bool Store::init(std::string csbFile)
{
    BaseScene::init(csbFile);
    
    bindButton("home", CC_CALLBACK_0(Store::backToHome, this));
    
    return true;
}