@Override public void input(Window window, MouseInput mouseInput) { cameraInc.set(0, 0, 0); if (window.isKeyPressed(GLFW_KEY_W)) { cameraInc.z = -1; } else if (window.isKeyPressed(GLFW_KEY_S)) { cameraInc.z = 1; } if (window.isKeyPressed(GLFW_KEY_A)) { cameraInc.x = -1; } else if (window.isKeyPressed(GLFW_KEY_D)) { cameraInc.x = 1; } if (window.isKeyPressed(GLFW_KEY_Z)) { cameraInc.y = -1; } else if (window.isKeyPressed(GLFW_KEY_X)) { cameraInc.y = 1; } if (window.isKeyPressed(GLFW_KEY_LEFT)) { angleInc -= 0.05f; } else if (window.isKeyPressed(GLFW_KEY_RIGHT)) { angleInc += 0.05f; } else { angleInc = 0; } if (window.isKeyPressed(GLFW_KEY_SPACE)) { monster.nextFrame(); } }
@Override public void input(Window window, MouseInput mouseInput) { cameraInc.set(0, 0, 0); if (window.isKeyPressed(GLFW_KEY_W)) { cameraInc.z = -1; } else if (window.isKeyPressed(GLFW_KEY_S)) { cameraInc.z = 1; } if (window.isKeyPressed(GLFW_KEY_A)) { cameraInc.x = -1; } else if (window.isKeyPressed(GLFW_KEY_D)) { cameraInc.x = 1; } if (window.isKeyPressed(GLFW_KEY_Z)) { cameraInc.y = -1; } else if (window.isKeyPressed(GLFW_KEY_X)) { cameraInc.y = 1; } if (window.isKeyPressed(GLFW_KEY_LEFT)) { angleInc -= 0.05f; soundMgr.playSoundSource(Sounds.BEEP.toString()); } else if (window.isKeyPressed(GLFW_KEY_RIGHT)) { angleInc += 0.05f; soundMgr.playSoundSource(Sounds.BEEP.toString()); } else { angleInc = 0; } }