Skip to content

Commit

Permalink
standardise instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
chestnutcase committed Aug 12, 2021
1 parent 39d37d1 commit a456893
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ C - change cross section shape
UP/DOWN - increment/decrement number of sides in cross section
RIGHT - step forward physics simulation
R - take screenshot
P - print camera position
```

# Code explanation
Expand Down
17 changes: 9 additions & 8 deletions src/main/java/org/lwjglb/game/DummyGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,15 @@ public void input(Window window, MouseInput mouseInput) {
if (window.isKeyPressed(GLFW_KEY_H) && debounceKey.getOrDefault(GLFW_KEY_H, true)) {
debounceKey.put(GLFW_KEY_H, false);
System.out.println("""
wasd shift space: camera movement
r: take screenshot
t: change texture
c: change cross section shape
l: toggle swept surface visibility
p: print camera position
up/down: increment/decrement cross section sides
right: step physics
WASD LSHIFT SPACE - camera movement
RIGHTMOUSE+DRAG - camera look
T - change texture
L - toggle swept surface visibility
C - change cross section shape
UP/DOWN - increment/decrement number of sides in cross section
RIGHT - step forward physics simulation
R - take screenshot
P - print camera position
""");
} else if (!window.isKeyPressed(GLFW_KEY_H)) {
debounceKey.put(GLFW_KEY_H, true);
Expand Down

0 comments on commit a456893

Please sign in to comment.