On rend la partie équitable en mettant le bot a la même vitesse que le joueur (#10)

Reviewed-on: #10
Reviewed-by: Corentin <solois.corentin@gmail.com>
Co-authored-by: Tipragot <contact@tipragot.fr>
Co-committed-by: Tipragot <contact@tipragot.fr>
This commit is contained in:
Tipragot 2024-01-07 09:45:56 +00:00 committed by Corentin
parent 16508a4256
commit 9d51f823c2
2 changed files with 207 additions and 207 deletions

View file

@ -271,7 +271,7 @@ def __spawn_ellements(world: World):
Player1(), Player1(),
UpKey("z"), UpKey("z"),
DownKey("s"), DownKey("s"),
Speed(1000), Speed(500),
LastPlayerTurn(), LastPlayerTurn(),
RestrictToScene(), RestrictToScene(),
) )
@ -287,9 +287,9 @@ def __spawn_ellements(world: World):
), ),
Solid(), Solid(),
Player2(), Player2(),
(UpKey("up"), DownKey("down"), Speed(1000)) (UpKey("up"), DownKey("down"), Speed(500))
if world[GameMode] == GameMode.TWO if world[GameMode] == GameMode.TWO
else Speed(300), else Speed(500),
RestrictToScene(), RestrictToScene(),
) )