private void initState() { Block[][] blocks = null; if (mSizeInfo.useDefaultSize) { blocks = GameLogic.createBlocksByScreen( mViewInfo.blockRect.width(), mViewInfo.blockRect.height(), mPictureInfo.animalBitmaps.size(), getResources().getDisplayMetrics().densityDpi); } else { blocks = GameLogic.createBlocks(mSizeInfo.rows, mSizeInfo.cols, mPictureInfo.animalBitmaps.size()); } mGameState.start(blocks, mCurLevel); eventBus.post(GameEvent.createEvent(GameEvent.GAME_START_ONE_LEVEL)); invalidate(); }