fix bot speed
Co-authored-by: Alberto Xamin <alberto@xamin.it>
This commit is contained in:
parent
e3e8316e85
commit
5210638275
@ -229,7 +229,7 @@ class Player:
|
||||
|
||||
def bot_spin(self):
|
||||
while self.is_bot and self.game != None and not self.game.shutting_down:
|
||||
eventlet.sleep(min(0.2, uniform(self.game.bot_speed/2-0.1, self.game.bot_speed)))
|
||||
eventlet.sleep(max(0.2, uniform(self.game.bot_speed/2-0.1, self.game.bot_speed)))
|
||||
if self.lives > 0 or self.is_ghost:
|
||||
self.bot_logic()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user