Save unfinished work

This commit is contained in:
Tipragot 2024-01-07 09:17:50 +01:00
parent ea70c297b2
commit ddadf97e0e

View file

@ -558,8 +558,10 @@ def _update_bot(world: World):
# On se déplace vers la meilleure option
diff = target - bot[Position].y
if abs(diff) > 10:
if abs(diff) > bot[Speed] * world[Delta]:
bot[Position].y += (diff / abs(diff)) * bot[Speed] * world[Delta]
else:
bot[Position].y = target
def __check_bonus_collision(world: World):