Exemplo n.º 1
0
  @Override
  public void present(float deltaTime) {
    Graphics g = game.getGraphics();

    g.clear(Color.BLACK);
    g.drawPixmap(Assets.logo, LOGO_IMAGE_X, LOGO_IMAGE_Y);
    g.drawPixmap(Assets.mainMenu, MENU_IMAGE_X, MENU_IMAGE_Y);
    if (Settings.soundEnabled)
      g.drawPixmap(
          Assets.buttons,
          BUTTON_SOUND_X,
          BUTTON_SOUND_Y,
          Assets.BUTTON_SOUND_ON_SCRX,
          Assets.BUTTON_SOUND_ON_SCRY,
          Assets.BUTTON_WIDTH,
          Assets.BUTTON_HEIGHT);
    else
      g.drawPixmap(
          Assets.buttons,
          BUTTON_SOUND_X,
          BUTTON_SOUND_Y,
          Assets.BUTTON_SOUND_OFF_SCRX,
          Assets.BUTTON_SOUND_OFF_SCRY,
          Assets.BUTTON_WIDTH,
          Assets.BUTTON_HEIGHT);

    if (DEBUG_BOUNDS == true) {
      drawDebugBounds(g, mBounds);
    }
  }