Fix controls and add random meme pics.
This commit is contained in:
parent
701165c012
commit
f7fef8c958
4 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ public class TestGame implements ILogic {
|
||||||
renderer.init();
|
renderer.init();
|
||||||
|
|
||||||
Model model = loader.loadOBJModel("/models/cube.obj");
|
Model model = loader.loadOBJModel("/models/cube.obj");
|
||||||
model.setTexture(new Texture(loader.loadTexture("/textures/grassblock.jpg")));
|
model.setTexture(new Texture(loader.loadTexture("/textures/bryan.jpg")));
|
||||||
|
|
||||||
entity = new Entity(model, new Vector3f(0, 0, -5), new Vector3f(0, 0, 0), 1);
|
entity = new Entity(model, new Vector3f(0, 0, -5), new Vector3f(0, 0, 0), 1);
|
||||||
}
|
}
|
||||||
|
@ -44,14 +44,14 @@ public class TestGame implements ILogic {
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_W))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_W))
|
||||||
cameraInc.z = -1;
|
cameraInc.z = -1;
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_A))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_A))
|
||||||
cameraInc.x = 1;
|
cameraInc.x = -1;
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_S))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_S))
|
||||||
cameraInc.z = 1;
|
cameraInc.z = 1;
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_D))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_D))
|
||||||
cameraInc.x = -1;
|
cameraInc.x = 1;
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_Z))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_SPACE))
|
||||||
cameraInc.y = 1;
|
cameraInc.y = 1;
|
||||||
if (window.isKeyPressed(GLFW.GLFW_KEY_X))
|
if (window.isKeyPressed(GLFW.GLFW_KEY_LEFT_SHIFT))
|
||||||
cameraInc.y = -1;
|
cameraInc.y = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
BIN
src/main/resources/textures/bryan.jpg
Normal file
BIN
src/main/resources/textures/bryan.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
src/main/resources/textures/bryan.png
Normal file
BIN
src/main/resources/textures/bryan.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 201 KiB |
BIN
src/main/resources/textures/dende.jpg
Normal file
BIN
src/main/resources/textures/dende.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
Loading…
Add table
Add a link
Reference in a new issue