[common] add PlayerControl presets

This commit is contained in:
2019-05-30 15:24:26 +03:00
parent c7946ef1da
commit abf944418e
26 changed files with 264 additions and 92 deletions

View File

@@ -38,14 +38,15 @@ team:
human: &team_human
id: human
players:
- {<<: *human, index: 0, color: 0xFFFF00, control: human-0}
- {<<: *human, index: 0, color: 0xFFFF00, control: 'null'}
- {<<: *human, index: 1, color: 0x15C040, control: 'null'}
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}
#- {team: human, type: tank, index: 1, direction: top, x: 16, y: 24}
- {team: human, type: tank, index: 1, direction: top, x: 16, y: 24}
- {team: bot, type: tank, index: -1, direction: bottom, x: 0, y: 0}
- {team: bot, type: tank, index: -2, direction: bottom, x: 12, y: 0}
- {team: bot, type: tank, index: -3, direction: bottom, x: 24, y: 0}
@@ -195,3 +196,17 @@ presets:
- {<<: *bot, index: 3, control: bot-hard}
- {<<: *bot, index: 4, control: bot-hard}
- {<<: *bot, index: 5, control: bot-hard}
controls:
- id: 0
name: 1 Player
values:
- playerId: [human, 0]
control: human-0
- id: 1
name: 2 Player
values:
- playerId: [human, 0]
control: human-0
- playerId: [human, 1]
control: human-1

View File

@@ -37,8 +37,6 @@ presets:
teams:
- id: alpha
color: 0xFF4422
players:
- {<<: *player, index: 0, control: human-0}
<<: *team
- id: beta
color: 0xFFD000
@@ -91,3 +89,17 @@ tanks:
skin: pc
bonuses: []
controls:
- id: 0
name: 1 Player
values:
- playerId: [alpha, 0]
control: human-0
- id: 1
name: 2 Player
values:
- playerId: [alpha, 0]
control: human-0
- playerId: [beta, 0]
control: human-1

View File

@@ -41,7 +41,7 @@ team:
id: radiant
color: 0xff4422
players:
- {<<: *player-slow, index: 0, control: human-0, color: 0xff8866}
- {<<: *player-slow, index: 0, control: bot-hard}
- {<<: *player-fast, index: 1, control: bot-hard}
- {<<: *player-slow, index: 2, control: bot-hard}
- {<<: *player-fast, index: 3, control: bot-hard}
@@ -114,3 +114,29 @@ bonuses:
- {type: life}
- {type: shovel, duration: 10}
- {type: star}
controls:
- id: 0
name: 1 Player
values:
- playerId: [radiant, 0]
control: human-0
color: 0xff8866
- id: 1
name: 2 Player Coop
values:
- playerId: [radiant, 0]
control: human-0
color: 0xff8866
- playerId: [radiant, 1]
control: human-1
color: 0xff8866
- id: 2
name: 2 Player VS
values:
- playerId: [radiant, 0]
control: human-0
color: 0xff8866
- playerId: [dire, 0]
control: human-1
color: 0x4294ff