[common] add EntityBuilder

This commit is contained in:
2019-05-06 16:21:45 +03:00
parent d11d0ac53f
commit d6b572aead
17 changed files with 205 additions and 66 deletions

View File

@@ -34,6 +34,14 @@ player:
- {type: bot2, rate: 0.27}
- {type: bot3, rate: 0.15}
team:
human: &team_human
id: human
players:
- {<<: *human, index: 0, color: 0xFFFF00, control: human-0}
eagle:
score: 0
points:
- {team: human, type: eagle, index: -1, direction: right, x: 12, y: 24}
- {team: human, type: tank, index: 0, direction: top, x: 8, y: 24}
@@ -152,12 +160,10 @@ presets:
- id: 0
name: easy
teams:
- id: human
players:
- {<<: *human, index: 0, color: 0xFFFF00, control: human-0}
- {<<: *team_human}
- id: bot
spawnInterval: 3000
life: 10
life: 1
players:
- {<<: *bot, index: 0, control: bot-stupid}
- {<<: *bot, index: 1, control: bot-stupid}
@@ -165,9 +171,7 @@ presets:
- id: 1
name: normal
teams:
- id: human
players:
- {<<: *human, index: 0, color: 0xFFFF00, control: human-0}
- {<<: *team_human}
- id: bot
spawnInterval: 3000
life: 20
@@ -180,9 +184,7 @@ presets:
- id: 2
name: hard
teams:
- id: human
players:
- {<<: *human, index: 0, color: 0xFFFF00, control: human-0}
- {<<: *team_human}
- id: bot
spawnInterval: 1000
life: 30