game data schema
This commit is contained in:
70
src/assets/data/gdRoot.json
Normal file
70
src/assets/data/gdRoot.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"enemies": [
|
||||
{
|
||||
"speed": 1
|
||||
}
|
||||
],
|
||||
"towers": [
|
||||
{
|
||||
"cost": 75,
|
||||
"projectileEffect": {
|
||||
"type": 0,
|
||||
"amount": 2,
|
||||
"speed": 10
|
||||
},
|
||||
"projectileRange": 2,
|
||||
"projectileRate": 5,
|
||||
"projectileSize": 0.2,
|
||||
"aoeEffect": null,
|
||||
"aoeRange": 0,
|
||||
"aoeRate": 0
|
||||
}
|
||||
],
|
||||
"levels": [
|
||||
{
|
||||
"radius": 9,
|
||||
"currency": 1500,
|
||||
"walls": [
|
||||
{ "col": 0, "row": 0 }
|
||||
],
|
||||
"enemySpawns": [
|
||||
{ "col": -9, "row": -1},
|
||||
{ "col": -9, "row": 0},
|
||||
{ "col": -9, "row": 1}
|
||||
],
|
||||
"enemyTargets": [
|
||||
{ "col": 8, "row": -1},
|
||||
{ "col": 9, "row": 0},
|
||||
{ "col": 8, "row": 1}
|
||||
],
|
||||
"enemyRoutes": [
|
||||
[0, 0],
|
||||
[0, 1],
|
||||
[0, 2],
|
||||
[1, 0],
|
||||
[1, 1],
|
||||
[1, 2],
|
||||
[2, 0],
|
||||
[2, 1],
|
||||
[2, 2]
|
||||
],
|
||||
"waves": [
|
||||
{ "enemy": 0, "size": 1, "amount": 10, "gain": 3, "hitpoints": 10 },
|
||||
{ "enemy": 0, "size": 1, "amount": 10, "gain": 5, "hitpoints": 20 },
|
||||
{ "enemy": 0, "size": 0, "amount": 50, "gain": 7, "hitpoints": 5 },
|
||||
{ "enemy": 0, "size": 1, "amount": 15, "gain": 10, "hitpoints": 30 },
|
||||
{ "enemy": 0, "size": 2, "amount": 3, "gain": 50, "hitpoints": 200 },
|
||||
{ "enemy": 0, "size": 1, "amount": 10, "gain": 10, "hitpoints": 60 },
|
||||
{ "enemy": 0, "size": 1, "amount": 10, "gain": 15, "hitpoints": 70 },
|
||||
{ "enemy": 0, "size": 1, "amount": 15, "gain": 20, "hitpoints": 80 },
|
||||
{ "enemy": 0, "size": 1, "amount": 15, "gain": 25, "hitpoints": 90 },
|
||||
{ "enemy": 0, "size": 2, "amount": 3, "gain": 100, "hitpoints": 500 }
|
||||
]
|
||||
}
|
||||
],
|
||||
"simulation": {
|
||||
"stepsPerSecond": 30,
|
||||
"waveDuration": 5,
|
||||
"spawnDelay": 0.5
|
||||
}
|
||||
}
|
||||
@@ -19,6 +19,11 @@
|
||||
"type": "audio",
|
||||
"size": 5622381
|
||||
},
|
||||
{
|
||||
"path": "data/gdRoot.json",
|
||||
"type": "other",
|
||||
"size": 1723
|
||||
},
|
||||
{
|
||||
"path": "gameData.json",
|
||||
"type": "other",
|
||||
@@ -433,10 +438,5 @@
|
||||
"path": "images/wall.png",
|
||||
"type": "image",
|
||||
"size": 310712
|
||||
},
|
||||
{
|
||||
"path": "manifest.json",
|
||||
"type": "other",
|
||||
"size": 7722
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user