tdgame test branch by gemini.
This commit is contained in:
4
data/enemies/definitions.json
Normal file
4
data/enemies/definitions.json
Normal file
@@ -0,0 +1,4 @@
|
||||
[
|
||||
{"id": "grunt", "maxHp": 75, "speed": 2.5, "reward": 5, "type": "GROUND", "mesh_path": "./data/meshes/cube.mesh"},
|
||||
{"id": "tank", "maxHp": 300, "speed": 1.5, "reward": 15, "type": "GROUND", "mesh_path": "./data/meshes/cube.mesh"}
|
||||
]
|
||||
24
data/maps/level1.json
Normal file
24
data/maps/level1.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"width": 20, "height": 15,
|
||||
"start_health": 20, "start_money": 350,
|
||||
"tile_key": {
|
||||
"g": "grass", ".": "path", "S": "spawn", "B": "base"
|
||||
},
|
||||
"layout": [
|
||||
"g g g g g g g g g g g g g g g g g g g g",
|
||||
"g g g g g S . . . . . . . . g g g g g g",
|
||||
"g g g g g . g g g g g g g . g g g g g g",
|
||||
"g g g g g . g . . . . . . . . . . g g g",
|
||||
"g g g g g . g . g g g g g g g g . g g g",
|
||||
"g g . . . . . . . g g g g g g g . g g g",
|
||||
"g g . g g g g g . g g g g g g g . g g g",
|
||||
"g g . g g g g g . . . . . . . . . . B g",
|
||||
"g g . g g g g g g g g g g g g g . g g g",
|
||||
"g g . . . . . . . . . . . . . . . g g g",
|
||||
"g g g g g g g g g g g g g g g g g g g g",
|
||||
"g g g g g g g g g g g g g g g g g g g g",
|
||||
"g g g g g g g g g g g g g g g g g g g g",
|
||||
"g g g g g g g g g g g g g g g g g g g g",
|
||||
"g g g g g g g g g g g g g g g g g g g g"
|
||||
]
|
||||
}
|
||||
BIN
data/meshes/cube.mesh
Normal file
BIN
data/meshes/cube.mesh
Normal file
Binary file not shown.
BIN
data/meshes/pyramid.mesh
Normal file
BIN
data/meshes/pyramid.mesh
Normal file
Binary file not shown.
14
data/tiles/definitions.json
Normal file
14
data/tiles/definitions.json
Normal file
@@ -0,0 +1,14 @@
|
||||
[
|
||||
{"id": "grass", "type": "empty"},
|
||||
{"id": "path", "type": "path", "path": {"ground": true, "air": true}},
|
||||
{"id": "spawn", "type": "spawn", "path": {"ground": true, "air": true},
|
||||
"spawn": {
|
||||
"loop": true, "loop_hp_scale": 0.2,
|
||||
"waves": [
|
||||
{"enemy_id": "grunt", "count": 10, "interval": 1.0, "hp_mult": 1.0},
|
||||
{"enemy_id": "grunt", "count": 15, "interval": 0.8, "hp_mult": 1.2},
|
||||
{"enemy_id": "tank", "count": 5, "interval": 2.0, "hp_mult": 1.5}
|
||||
]
|
||||
}},
|
||||
{"id": "base", "type": "base", "path": {"ground": true, "air": true}}
|
||||
]
|
||||
11
data/towers/definitions.json
Normal file
11
data/towers/definitions.json
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
"id": "archer", "name": "Archer Tower", "cost": 100, "range": 5.0,
|
||||
"damage": 12.0, "fire_rate": 1.2, "targeting": "first",
|
||||
"mesh_path": "./data/meshes/pyramid.mesh",
|
||||
"upgrades": [
|
||||
{"cost": 50, "range_bonus": 0.5, "damage_bonus": 5, "fire_rate_bonus": 0.2},
|
||||
{"cost": 100, "range_bonus": 0.5, "damage_bonus": 10, "fire_rate_bonus": 0.3}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user