Game Development Reference
In-Depth Information
case STATE_SUBMIT:
drawRotate(4,canvas,0,DIAG_Y);
break ;
case STATE_OVER:
drawRotate(5,canvas,0,DIAG_Y);
if (rot == 0) drawNumber(canvas,score,SCORE_X1,SCORE_Y1);
break ;
case STATE_CLOSE:
drawRotate(6,canvas,0,DIAG_Y);
}
}
initStageData() Method
Called to initialize the stage (level) data, including soundPools, layers, object attributes,
impassable path matrix, etc.
//Initializes stage data, including soundPool, layers, impassable path matrix,
//hero's position & level, monsters' positions & levels.
public void initStageData(){
startRow = 0;
startCol = 0;
offsetX = 0;
offsetY = 0;
bonus = 0;
delPoints.clear();
//Initializes the variables of rotation animations
initRot();
//Initializes soundPool
if (father.mediaPlayer == null ) father.initSound();
//Loads the current stage resources
BitmapManager.loadCurrentStage(getResources(), currStage);
//Retrieves layerlist by stage
layerList = LayerList.getLayerListByStage(currStage);
Search WWH ::




Custom Search