From b63a44e5859df1a2ace3bbe4073dc5e23aa0cf1c Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Wed, 25 Jan 2023 10:44:59 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20=C3=84ndern=20der=20Maus?= =?UTF-8?q?-Startposition.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java index a73c94c..add52f9 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java @@ -19,7 +19,7 @@ public class MouseGame extends JFrame { private JPanel contentPane; - Robot robot = new Robot(); + public Robot robot = new Robot(); /** @@ -45,7 +45,7 @@ public class MouseGame extends JFrame { //Fensterrahmen Haupt Layout setTitle("Maze Game"); setBounds(100, 100, 900, 650); - + robot.mouseMove(200, 170); contentPane = new JPanel(); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); @@ -110,7 +110,7 @@ public class MouseGame extends JFrame { }//end standardkonstruktor - + private void reset(JPanel panel) { panel.addMouseListener(new MouseAdapter() { @Override