From c39f1f6d4ce7adc3551ecdfbce986b4d13d26e12 Mon Sep 17 00:00:00 2001 From: Johannes Schmelz Date: Sat, 23 Nov 2024 22:12:34 +0100 Subject: [PATCH] tweaked camera params --- Projekte/monopoly/client/client.properties | 4 ++-- .../java/pp/monopoly/client/gui/CameraController.java | 8 ++++---- .../src/main/java/pp/monopoly/client/gui/TestWorld.java | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Projekte/monopoly/client/client.properties b/Projekte/monopoly/client/client.properties index 3e2d911..fd98968 100644 --- a/Projekte/monopoly/client/client.properties +++ b/Projekte/monopoly/client/client.properties @@ -24,10 +24,10 @@ overlay.top.color=1, 1, 1, 1 settings.show=false # # Specifies the width of the application window in pixels. -settings.resolution.width=1200 +settings.resolution.width=1920 # # Specifies the height of the application window in pixels. -settings.resolution.height=800 +settings.resolution.height=1080 # # Determines whether the application runs in full-screen mode. settings.full-screen=false diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CameraController.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CameraController.java index 4c0a3d5..a2d04cf 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CameraController.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/CameraController.java @@ -51,10 +51,10 @@ public class CameraController { } private Vector3f fieldIdToVector(int fieldID) { - if (fieldID <= 10) return new Vector3f(4,height,0); - if (fieldID <= 20) return new Vector3f(0, height, 4); - if (fieldID <= 30) return new Vector3f(-4, height, 0); - if (fieldID <= 40) return new Vector3f(0, height, -4); + if (fieldID <= 10) return new Vector3f(30,height,0); + if (fieldID <= 20) return new Vector3f(0, height, 30); + if (fieldID <= 30) return new Vector3f(-30, height, 0); + if (fieldID <= 40) return new Vector3f(0, height, -30); else throw new IllegalArgumentException(); } } diff --git a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java index 2a5e4e0..e88b030 100644 --- a/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java +++ b/Projekte/monopoly/client/src/main/java/pp/monopoly/client/gui/TestWorld.java @@ -48,7 +48,7 @@ public class TestWorld { app.getCamera(), // Die Kamera der App Vector3f.ZERO, // Fokus auf die Mitte des Spielfelds 4, // Radius des Kreises - 2, // Höhe der Kamera + 15, // Höhe der Kamera 0 // Geschwindigkeit der Bewegung ); @@ -82,7 +82,7 @@ public class TestWorld { */ private void createBoard() { // Erstelle ein Quadrat - Box box = new Box(1, 0.01f, 1); // Dünnes Quadrat für die Textur + Box box = new Box(10, 0.1f, 10); // Dünnes Quadrat für die Textur Geometry geom = new Geometry("Board", box); // Setze das Material mit Textur