Skip to content
Permalink
Browse files

La direction est commandée par la variable sens

  • Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent 3d25ee5 commit 9f101a44135700685c7a75475f4c9be0b6032481
Showing with 4 additions and 1 deletion.
  1. +4 −1 pygame0_code_minimal.py
@@ -29,7 +29,10 @@


# TICK # TICK


ma_position = ma_position - 5 if sens == -1:
ma_position = ma_position - 5
else:
ma_position = ma_position + 5
if ma_position > 700: if ma_position > 700:
ma_position = 0 ma_position = 0
print(ma_position) print(ma_position)

0 comments on commit 9f101a4

Please sign in to comment.
You can’t perform that action at this time.