[common] add deathmatch mode

This commit is contained in:
2019-03-25 17:42:20 +03:00
parent 7d570336a5
commit 556cd2f1a9
14 changed files with 223 additions and 15 deletions

View File

@@ -0,0 +1,89 @@
game:
levels: 1
friendlyFire: true
complete: []
map:
cellWidth: 22
cellHeight: 22
gridWidth: 20
gridHeight: 20
bricks:
- {type: border, index: -1, layer: 2, armor: -1}
- {type: none, index: 0, layer: 0, armor: 0}
- {type: ace, index: 1, layer: 0, armor: 0}
- {type: bush, index: 2, layer: 3, armor: 0}
- {type: water, index: 3, layer: 1, armor: 0}
- {type: armor, index: 4, layer: 2, armor: 2}
- {type: brick, index: 5, layer: 2, armor: 1}
player:
default: &player
protect: 3
tanks:
- {type: default, rate: 1}
team:
base: &team
life: 10
players:
- {<<: *player, index: 0}
presets:
- id: default
teams:
- id: alpha
color: 0xFF4422
<<: *team
- id: beta
color: 0xFFD000
<<: *team
- id: gamma
color: 0x3EFE00
<<: *team
- id: delta
color: 0x00FFF8
<<: *team
- id: epsilon
color: 0x00B37F
<<: *team
- id: zeta
color: 0xFC00FF
<<: *team
- id: eta
color: 0x8F00FD
<<: *team
- id: theta
color: 0xB66F00
<<: *team
points:
- {team: alpha, type: tank, index: 0, direction: right, x: 0, y: 0}
- {team: beta, type: tank, index: 0, direction: right, x: 2, y: 0}
- {team: gamma, type: tank, index: 0, direction: right, x: 4, y: 0}
- {team: delta, type: tank, index: 0, direction: right, x: 6, y: 0}
- {team: epsilon, type: tank, index: 0, direction: right, x: 0, y: 2}
- {team: zeta, type: tank, index: 0, direction: right, x: 2, y: 2}
- {team: eta, type: tank, index: 0, direction: right, x: 4, y: 2}
- {team: theta, type: tank, index: 0, direction: right, x: 6, y: 2}
bullet: &bullet
width: 12
height: 12
speed: 0
piercing: 1
tanks:
- type: default
width: 38
height: 36
speed: 2.3
bullet:
<<: *bullet
speed: 12.0
bullets: 2
score: 100
skin: pc
bonuses: []

View File

@@ -0,0 +1,2 @@
points: [{y: 0, team: alpha, x: 0, direction: right, type: tank, index: 0}, {y: 0, team: beta, x: 6, direction: right, type: tank, index: 0}, {y: 0, team: gamma, x: 12, direction: right, type: tank, index: 0}, {y: 0, team: delta, x: 18, direction: right, type: tank, index: 0}, {y: 18, team: epsilon, x: 0, direction: right, type: tank, index: 0}, {y: 18, team: zeta, x: 6, direction: right, type: tank, index: 0}, {y: 18, team: eta, x: 12, direction: right, type: tank, index: 0}, {y: 18, team: theta, x: 18, direction: right, type: tank, index: 0}]
data: "0004400004400004400000044000044000044000555555555555555555550000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000555555555555555555550004400004400004400000044000044000044000"