From 0a6c38d78ec96013cb585e8cc0502fe1add345ba Mon Sep 17 00:00:00 2001 From: Pazaz Date: Mon, 25 Apr 2022 21:38:05 -0400 Subject: [PATCH] Fix camera orientation wrapping in playground --- playground/src/main/java/com/itspazaz/rt4/Playground.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playground/src/main/java/com/itspazaz/rt4/Playground.java b/playground/src/main/java/com/itspazaz/rt4/Playground.java index 1a27dd8..37ed438 100644 --- a/playground/src/main/java/com/itspazaz/rt4/Playground.java +++ b/playground/src/main/java/com/itspazaz/rt4/Playground.java @@ -76,6 +76,9 @@ public class Playground extends GameShell { js5NetQueue = new Js5NetQueue(); js5CacheQueue = new Js5CacheQueue(); + + Preferences.characterShadowsOn = false; + Preferences.highDetailLighting = false; } public int percentage = 0; @@ -210,7 +213,7 @@ public class Playground extends GameShell { } } - public static boolean useGl = true; + public static boolean useGl = false; private void exportGlImage(String filename) { GL2 gl = GLContext.getCurrentGL().getGL2(); @@ -305,8 +308,10 @@ public class Playground extends GameShell { if (Keyboard.getKey(KeyEvent.VK_LEFT)) { orientation += modifier; + orientation &= 2047; } else if (Keyboard.getKey(KeyEvent.VK_RIGHT)) { orientation -= modifier; + orientation &= 2047; } if (Keyboard.getKey(KeyEvent.VK_OPEN_BRACKET)) {