Beispiel #1
0
  public void createGameActions() {
    super.createGameActions();
    moveLeft = new GameAction("moveLeft", GameAction.NORMAL, Keyboard.KEY_LEFT);
    moveRight = new GameAction("moveRight", GameAction.NORMAL, Keyboard.KEY_RIGHT);
    moveUp = new GameAction("moveUp", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_UP);
    moveDown = new GameAction("moveDown", GameAction.NORMAL, Keyboard.KEY_DOWN);
    zoomIn = new GameAction("zoomIn", GameAction.NORMAL, Keyboard.KEY_HOME);
    zoomOut = new GameAction("zoomOut", GameAction.NORMAL, Keyboard.KEY_END);

    drawMode = new GameAction("drawMode", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_T);
    modTex = new GameAction("modTex", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_M);
    debug = new GameAction("debug", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_SPACE);
  }
Beispiel #2
0
  public void createGameActions() {

    super.createGameActions();

    moveLeft = new GameAction("moveLeft", GameAction.NORMAL, Keyboard.KEY_LEFT);
    moveRight = new GameAction("moveRight", GameAction.NORMAL, Keyboard.KEY_RIGHT);
    moveUp = new GameAction("moveUp", GameAction.NORMAL, Keyboard.KEY_UP);
    moveDown = new GameAction("moveDown", GameAction.NORMAL, Keyboard.KEY_DOWN);
    zoomIn = new GameAction("zoomIn", GameAction.NORMAL, Keyboard.KEY_W);
    zoomOut = new GameAction("zoomOut", GameAction.NORMAL, Keyboard.KEY_S);
    exit = new GameAction("exit", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_ESCAPE);

    left = new GameAction("left", GameAction.NORMAL, Keyboard.KEY_A);

    enter = new GameAction("enter", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_RETURN);
    debug = new GameAction("debug", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_SPACE);
    fullScreen =
        new GameAction("fullScreen", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_F1);
    saveCamera =
        new GameAction("saveCamera", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_F11);
    drawMode = new GameAction("drawMode", GameAction.DETECT_INITIAL_PRESS_ONLY, Keyboard.KEY_T);
    right = new GameAction("right", GameAction.NORMAL, Keyboard.KEY_D);
  }