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:
parent
16508a4256
commit
9d51f823c2
|
@ -271,7 +271,7 @@ def __spawn_ellements(world: World):
|
|||
Player1(),
|
||||
UpKey("z"),
|
||||
DownKey("s"),
|
||||
Speed(1000),
|
||||
Speed(500),
|
||||
LastPlayerTurn(),
|
||||
RestrictToScene(),
|
||||
)
|
||||
|
@ -287,9 +287,9 @@ def __spawn_ellements(world: World):
|
|||
),
|
||||
Solid(),
|
||||
Player2(),
|
||||
(UpKey("up"), DownKey("down"), Speed(1000))
|
||||
(UpKey("up"), DownKey("down"), Speed(500))
|
||||
if world[GameMode] == GameMode.TWO
|
||||
else Speed(300),
|
||||
else Speed(500),
|
||||
RestrictToScene(),
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue