Browse Source

Added config files for the game with examples:

- crafting.json
- gameconfig.json
- items.json
- playerconfig.json
remotes/origin/locations
David Hermann 2 years ago
parent
commit
945fac0dfa
  1. 3
      src/main/resources/crafting.json
  2. 38
      src/main/resources/gameconfig.json
  3. 26
      src/main/resources/items.json
  4. 17
      src/main/resources/playerconfig.json

3
src/main/resources/crafting.json

@ -0,0 +1,3 @@
{
}

38
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"
]
}
]
}
]
}

26
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
}
]

17
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
}
]
}
Loading…
Cancel
Save