From 945fac0dfaa06a4c259a6ac60c4a61f52e04999f Mon Sep 17 00:00:00 2001 From: David Hermann Date: Wed, 4 Jan 2023 02:34:42 +0100 Subject: [PATCH] Added config files for the game with examples: - crafting.json - gameconfig.json - items.json - playerconfig.json --- src/main/resources/crafting.json | 3 +++ src/main/resources/gameconfig.json | 38 ++++++++++++++++++++++++++++ src/main/resources/items.json | 26 +++++++++++++++++++ src/main/resources/playerconfig.json | 17 +++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 src/main/resources/crafting.json create mode 100644 src/main/resources/gameconfig.json create mode 100644 src/main/resources/items.json create mode 100644 src/main/resources/playerconfig.json diff --git a/src/main/resources/crafting.json b/src/main/resources/crafting.json new file mode 100644 index 0000000..0e0dcd2 --- /dev/null +++ b/src/main/resources/crafting.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/src/main/resources/gameconfig.json b/src/main/resources/gameconfig.json new file mode 100644 index 0000000..a29ef19 --- /dev/null +++ b/src/main/resources/gameconfig.json @@ -0,0 +1,38 @@ +{ + "shopitems": [ + { + "name": "Holz", + "amount": 10, + "gold": 10 + }, + { + "name": "Heiliges Schwert der Engel", + "amount": 1, + "gold": 1000 + }, + { + "name": "Stein", + "amount": 5, + "gold": 100 + } + ], + "locations": [ + { + "name": "Wald", + "items": [ + "Holz", + "Stein" + ], + "mobs": [ + { + "name": "Big Foot", + "hp": 50, + "damage": "10-15", + "items": [ + "Fell" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/items.json b/src/main/resources/items.json new file mode 100644 index 0000000..85b3f26 --- /dev/null +++ b/src/main/resources/items.json @@ -0,0 +1,26 @@ +[ + { + "name": "Holz", + "damage": "1-3", + "crafting": true, + "durability": 1000 + }, + { + "name": "Heiliges Schwert der Engel", + "damage": "1000", + "crafting": false, + "durability": 1000 + }, + { + "name": "Stein", + "damage": "5-10", + "crafting": true, + "durability": 1000 + }, + { + "name": "Fell", + "damage": "0", + "crafting": true, + "durability": 1000 + } +] \ No newline at end of file diff --git a/src/main/resources/playerconfig.json b/src/main/resources/playerconfig.json new file mode 100644 index 0000000..1a2c55e --- /dev/null +++ b/src/main/resources/playerconfig.json @@ -0,0 +1,17 @@ +{ + "name": "null", + "gold": 0, + "hp": 10, + "currentLocation": "Wald", + "inventory": [ + { + "name": "Holz", + "amount": "5", + "durability": 1000 + },{ + "name": "Stein", + "amount": "5", + "durability": 1000 + } + ] +} \ No newline at end of file