private void initPlate() { final int[] square = ScreenUtils.getSquare(); final float x = ScreenUtils.getCenterX() - square[0] / 2 + GAME_MARGIN_WIDTH; final float y = ScreenUtils.getCenterY() - square[1] / 2 + GAME_MARGIN_HEIGHT; final float w = square[0] - GAME_MARGIN_WIDTH * 2; final float h = square[1] - GAME_MARGIN_HEIGHT * 2; plateComponent = new PlateComponent(x, y, plateTextureRegion, GameActivity.this, darkFont, lightFont); plateComponent.setSize(w, h); getEngine().getScene().attachChild(plateComponent); }