Пример #1
0
  public void resize(int width, int height) {
    renderer.setSize(width, height);
    this.width = width;
    this.height = height;
    buttonSize = height / 6F;

    left.set(buttonSize / 2F, buttonSize / 2F, buttonSize, buttonSize);
    right.set(buttonSize * 2, buttonSize / 2F, buttonSize, buttonSize);

    jump.set(width - (buttonSize * 3 / 2), buttonSize / 2F, buttonSize, buttonSize);
  }