diff options
| author | mithe24 <mithe24@student.sdu.dk> | 2025-05-07 17:11:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-07 17:11:58 +0200 |
| commit | c164daed53574babb26796b05682432709e2c5c1 (patch) | |
| tree | 50690b34f82847368be7c08c54b4489d4fea3e15 /pacman/controller/src/main/resources | |
| parent | ec0f4221ecd71c0b18e8403daa58b66077ec4343 (diff) | |
| download | pacman-c164daed53574babb26796b05682432709e2c5c1.tar.gz pacman-c164daed53574babb26796b05682432709e2c5c1.zip | |
Feature/json parser (#18)
* chore(model/json-parser): Added maven dependency
* chore(model): Removed old test JSON file
* refactor(model/GameState): List better then map, entities should be able
to overlap
* feat(Pacman): Added GameState builder to initiate GameState with given
paramters.
Added a short example JSON-file, more key-value pairs needs to be added
as the game progresses.
Likewise the builder won't parse for any other key-value pair
automatically.
Diffstat (limited to 'pacman/controller/src/main/resources')
| -rw-r--r-- | pacman/controller/src/main/resources/testGameState.json | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pacman/controller/src/main/resources/testGameState.json b/pacman/controller/src/main/resources/testGameState.json new file mode 100644 index 0000000..48e333a --- /dev/null +++ b/pacman/controller/src/main/resources/testGameState.json @@ -0,0 +1,22 @@ +{ + "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"] + ] +} |