60 lines
740 B
YAML
60 lines
740 B
YAML
# General configuration
|
|
general:
|
|
maxFPS: 30
|
|
|
|
# Players config
|
|
players:
|
|
width: 1000
|
|
startXPosition: 50
|
|
fireCooldown: 10
|
|
speed: 20
|
|
lives: 3
|
|
user1:
|
|
color: red
|
|
keys:
|
|
left: q
|
|
right: d
|
|
shoot: s
|
|
user2:
|
|
color: blue
|
|
keys:
|
|
left: 4
|
|
right: 6
|
|
shoot: 5
|
|
|
|
# Enemies config
|
|
invaders:
|
|
fireCooldown: 20
|
|
size: 40
|
|
speed: 7
|
|
distance: 10 # distance in pixels between invaders
|
|
|
|
typeA:
|
|
points: 100
|
|
color: green
|
|
typeB:
|
|
points: 250
|
|
color: blue
|
|
typeC:
|
|
points: 600
|
|
color: red
|
|
|
|
|
|
# Projectiles config
|
|
projectiles:
|
|
missiles:
|
|
color: yellow
|
|
speed: 10
|
|
width: 10
|
|
torpedos:
|
|
color: green
|
|
speed: 10
|
|
width: 10
|
|
|
|
# Grid definition
|
|
# You can add more rows, make rows longer and add spaces
|
|
grid:
|
|
- " "
|
|
- " "
|
|
- "B"
|