Permalink
Browse files

La variable sens peut maintenant changer

  • Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent b4048be commit 966ca3cc9b44b753d5f2bb58bf36097f04a7e56a
Showing with 3 additions and 3 deletions.
  1. +3 −3 pygame0_code_minimal.py
View
@@ -16,7 +16,7 @@
# DÉBUT # DÉBUT
ma_position = 600 ma_position = 600
sens = -1 sens = 1
clock = pygame.time.Clock() clock = pygame.time.Clock()
@@ -34,8 +34,8 @@
else: else:
ma_position = ma_position + 5 ma_position = ma_position + 5
if ma_position > 700: if ma_position > 700:
ma_position = 0 sens = -1
print(ma_position) print(sens, ma_position)
# DESSIN # DESSIN
ecran.fill(BLANC) ecran.fill(BLANC)

0 comments on commit 966ca3c

Please sign in to comment.