Permalink
Browse files

Le triangle bouge avec le cercle. On a séparé les 3 points sur une li…

…gne pour améliorer la visibilité.
  • Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent d4d500a commit 6edca4a554c11419eb1f9ee88ac2c6c5c1b444f5
Showing with 8 additions and 2 deletions.
  1. +8 −2 pygame0_code_minimal.py
View
@@ -46,9 +46,15 @@
pygame.draw.circle(ecran, BLEU, [100,200], 20) pygame.draw.circle(ecran, BLEU, [100,200], 20)
pygame.draw.circle(ecran, VERT, [ma_position, 80], 10) pygame.draw.circle(ecran, VERT, [ma_position, 80], 10)
if sens == -1: if sens == -1:
pygame.draw.polygon(ecran, ROUGE, [[0,50], [100,0], [100,100]]) pygame.draw.polygon(ecran, ROUGE, [
[ma_position + 0, 50],
[ma_position + 100, 0],
[ma_position + 100, 100]])
else: else:
pygame.draw.polygon(ecran, ROUGE, [[100,50], [0,0], [0,100]]) pygame.draw.polygon(ecran, ROUGE, [
[ma_position + 100, 50],
[ma_position + 0, 0],
[ma_position + 0, 100]])
pygame.display.flip() pygame.display.flip()

0 comments on commit 6edca4a

Please sign in to comment.