- correction du déplacement de la balle + joueur (utilisation du dt)

-  modification todo
This commit is contained in:
2026-06-29 13:34:52 +02:00
parent 9d9c583598
commit a0d25c9768
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -73,8 +73,8 @@ class Ball(Entity):
else: self.collide = False
self.pos.x += round(self.velocity.x)
self.pos.y += round(self.velocity.y)
self.pos.x += self.velocity.x * deltatime * 100
self.pos.y += self.velocity.y * deltatime * 100
def as_winner(self) -> int:
if (self.pos.y < 0): return 0 # Joueur a gagner