Browse Source

[MouseGame Class]: Ändern der Maus-Startposition.

remotes/origin/MouseGame
fdai7382 2 years ago
parent
commit
b63a44e585
  1. 6
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

6
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

Loading…
Cancel
Save