From 6a01dc315b38a047d202b3924be5a84321db8226 Mon Sep 17 00:00:00 2001 From: mithe24 Date: Fri, 23 May 2025 19:24:52 +0200 Subject: Last commits. I won't be contributing anymore. (#27) * im done * feat(GameConfig): Adds immutability for GameConfig record * accidentally removed main menu button * throwing exceptions * Please stop using protected --- .../controller/src/main/resources/testConfig.json | 41 ++++++++++++++++++++++ .../src/main/resources/testGameState.json | 22 ------------ 2 files changed, 41 insertions(+), 22 deletions(-) create mode 100644 pacman/controller/src/main/resources/testConfig.json delete mode 100644 pacman/controller/src/main/resources/testGameState.json (limited to 'pacman/controller/src/main/resources') diff --git a/pacman/controller/src/main/resources/testConfig.json b/pacman/controller/src/main/resources/testConfig.json new file mode 100644 index 0000000..1c07899 --- /dev/null +++ b/pacman/controller/src/main/resources/testConfig.json @@ -0,0 +1,41 @@ +{ + "powerModeDuration": 10.0, + "lives": 3, + "ghostSpeed": 2.5, + "numberOfItems": 36, + + "pacman": { + "x": 1, + "y": 1, + "speed": 3.0, + }, + "redGhost": { + "x": 7, + "y": 4 + }, + "blueGhost": { + "x": 7, + "y": 5 + }, + "pinkGhost": { + "x": 7, + "y": 6 + }, + "orangeGhost": { + "x": 7, + "y": 7 + }, + + "board": [ + ["W","W","W","W","W","W","W","W","W"], + ["W","p","p","p","P","p","p","p","W"], + ["E","p","W","W","p","W","W","p","E"], + ["W","p","W","W","p","W","W","p","W"], + ["W","p","W","W","p","W","W","p","W"], + ["W","P","p","p","P","p","p","P","W"], + ["W","p","W","W","p","W","W","p","W"], + ["E","p","W","W","p","W","W","p","E"], + ["W","p","p","p","P","p","p","p","W"], + ["W","W","W","W","W","W","W","W","W"] + ] +} diff --git a/pacman/controller/src/main/resources/testGameState.json b/pacman/controller/src/main/resources/testGameState.json deleted file mode 100644 index 48e333a..0000000 --- a/pacman/controller/src/main/resources/testGameState.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "pacman": { - "x": 1, - "y": 1, - "speed": 3.0, - "radius": 1.0 - }, - - "itmes": [], - "board": [ - ["W","W","W","W","W","W","W","W","W"], - ["W","E","E","E","E","E","E","E","W"], - ["E","E","W","W","E","W","W","E","E"], - ["W","E","W","W","E","W","W","E","W"], - ["W","E","W","W","E","W","W","E","W"], - ["W","E","E","E","E","E","E","E","W"], - ["W","E","W","W","E","W","W","E","W"], - ["E","E","W","W","E","W","W","E","E"], - ["W","E","E","E","E","E","E","E","W"], - ["W","W","W","W","W","W","W","W","W"] - ] -} -- cgit v1.2.3-70-g09d2