Game Development Reference
In-Depth Information
case STATE_SUBMIT:
if (rectOK.contains(x,y)){
father.myHandler.sendEmptyMessage(5); //leader board
}
else if (rectCANCEL.contains(x,y)){
score = 0;
initStageData();
startGame();
gameState = STATE_PLAY;
}
break ;
case STATE_OVER:
if (rectDIAG.contains(x,y)){
score = 0;
initStageData();
startGame();
gameState = STATE_PLAY;
}
break ;
case STATE_CLOSE:
if (rectOK.contains(x,y)){
father.myHandler.sendEmptyMessage(2); //exit
}
else if (rectCANCEL.contains(x,y)){
startGame();
gameState = STATE_PLAY;
}
break ;
}
return true ;
}
pickBonus() Method
Search WWH ::




Custom Search