v1.3.0, Added game saving mechanic (Done)

This commit is contained in:
Nicola Sovic
2022-06-05 14:28:01 +02:00
parent a0fc2e4790
commit ae5378090c
6 changed files with 191 additions and 27 deletions

130
save.json
View File

@@ -1,7 +1,7 @@
[
{
"Player": {
"playername": "",
{
"Player": {
"playername": "",
"maxHealth": 110,
"maxSecondary": 10,
"secondary": 10,
@@ -17,11 +17,125 @@
"points": 0,
"isDodging": "False",
"killcount": 0,
"difficulty": 0,
},
"World": {
"difficulty": 0
},
"World": {
"cityAmount": 10,
"maxCityAmount": 10,
"currentTile": {
"tiletype": "",
"positionX": 0,
"positionY": 0,
"positionZ": 0,
"Objects": {
"Object0": {
"positionX": -33.3,
"positionY": 4.48,
"positionZ": 37.8,
"objectname": "OakTree"
},
"Object1": {
"positionX": 9.49,
"positionY": 4.48,
"positionZ": 19.03,
"objectname": "PineTree"
},
"Object2": {
"positionX": 30,
"positionY": 9.5,
"positionZ": 30,
"objectname": "HouseIdle"
},
"Object3": {
"positionX": -26.1,
"positionY": 1.28,
"positionZ": 0,
"objectname": "StoneBasic"
},
"Object4": {
"positionX": 0,
"positionY": 1.28,
"positionZ": -38.56,
"objectname": "StoneBasic (1)"
},
"Object5": {
"positionX": -29.6,
"positionY": 4.48,
"positionZ": -27.38,
"objectname": "OakTree (1)"
},
"Object6": {
"positionX": 28.87,
"positionY": 4.479999,
"positionZ": -12.93,
"objectname": "PineTree (1)"
},
"Object7": {
"positionX": 30,
"positionY": 9.5,
"positionZ": -30,
"objectname": "HouseIdle (1)"
}
}
},
"Map": {
"Tile0": {
"tiletype": "",
"positionX": 0,
"positionY": 0,
"positionZ": 0,
"Objects": {
"Object0": {
"positionX": -33.3,
"positionY": 4.48,
"positionZ": 37.8,
"objectname": "OakTree"
},
"Object1": {
"positionX": 9.49,
"positionY": 4.48,
"positionZ": 19.03,
"objectname": "PineTree"
},
"Object2": {
"positionX": 30,
"positionY": 9.5,
"positionZ": 30,
"objectname": "HouseIdle"
},
"Object3": {
"positionX": -26.1,
"positionY": 1.28,
"positionZ": 0,
"objectname": "StoneBasic"
},
"Object4": {
"positionX": 0,
"positionY": 1.28,
"positionZ": -38.56,
"objectname": "StoneBasic (1)"
},
"Object5": {
"positionX": -29.6,
"positionY": 4.48,
"positionZ": -27.38,
"objectname": "OakTree (1)"
},
"Object6": {
"positionX": 28.87,
"positionY": 4.479999,
"positionZ": -12.93,
"objectname": "PineTree (1)"
},
"Object7": {
"positionX": 30,
"positionY": 9.5,
"positionZ": -30,
"objectname": "HouseIdle (1)"
}
}
}
}
}
}
]