From 1813921b585c39673b32cf3bf1927a82f12585bb Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Sat, 15 Sep 2018 22:33:59 +0200 Subject: [PATCH] Refactoring --- .vscode/launch.json | 10 +++++++++- src/main/java/{MainClass.java => JaimesHut.java} | 7 +++---- 2 files changed, 12 insertions(+), 5 deletions(-) rename src/main/java/{MainClass.java => JaimesHut.java} (98%) diff --git a/.vscode/launch.json b/.vscode/launch.json index e5d501a..13265f7 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,9 +11,17 @@ "cwd": "${workspaceFolder}", "console": "internalConsole", "stopOnEntry": false, - "mainClass": "MainClass", + "mainClass": "JaimesHut", "args": "", "preLaunchTask": "devBuild" + + }, + { + "type": "java", + "name": "Debug (Attach)", + "request": "attach", + "hostName": "localhost", + "port": "" } ] } \ No newline at end of file diff --git a/src/main/java/MainClass.java b/src/main/java/JaimesHut.java similarity index 98% rename from src/main/java/MainClass.java rename to src/main/java/JaimesHut.java index bec6af8..fcf9846 100644 --- a/src/main/java/MainClass.java +++ b/src/main/java/JaimesHut.java @@ -41,14 +41,13 @@ * of jmePhonon on a real use case. If you need a properly written example, please refer to the * non-unit tests on the main repository. */ -public class MainClass extends SimpleApplication implements PhysicsTickListener,ActionListener{ +public class JaimesHut extends SimpleApplication implements PhysicsTickListener,ActionListener{ public static void main(String[] args) { AppSettings settings=new AppSettings(true); settings.setRenderer(AppSettings.LWJGL_OPENGL3); USE_PHONON=true; - settings.setWidth(1440); - settings.setHeight(900); - MainClass app=new MainClass(); + + JaimesHut app=new JaimesHut(); app.setSettings(settings); app.setShowSettings(true);