Browse Source

Mise à jour de 'app.py'

master
w_iyad 2 months ago
parent
commit
d0a461f442
  1. 4
      app.py

4
app.py

@ -24,7 +24,7 @@ class Chien :
self.x = self.x + dist self.x = self.x + dist
if self.x < 0: if self.x < 0:
self.x = 0 self.x = 0
elif self.x >= XMAX: elif self.x > XMAX:
self.x = XMAX self.x = XMAX
def dep_y(self,dist) : def dep_y(self,dist) :
@ -32,7 +32,7 @@ class Chien :
self.y = self.y + dist self.y = self.y + dist
if self.y < 0: if self.y < 0:
self.y = 0 self.y = 0
elif self.y >= YMAX: elif self.y > YMAX:
self.y = YMAX self.y = YMAX
class Joueur : class Joueur :

Loading…
Cancel
Save