Permalink
Browse files

En fonction du sens, le triangle pointe vers une autre direction

  • Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent 9d428ce commit d4d500a3f67fc3dc5a28ec5733168ad18700ca50
Showing with 4 additions and 1 deletion.
  1. +4 −1 pygame0_code_minimal.py
View
@@ -45,7 +45,10 @@
pygame.draw.rect(ecran, ROUGE, [100,200, 20,40]) pygame.draw.rect(ecran, ROUGE, [100,200, 20,40])
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)
pygame.draw.polygon(ecran, ROUGE, [[0,50], [100,0], [100,100]]) if sens == -1:
pygame.draw.polygon(ecran, ROUGE, [[0,50], [100,0], [100,100]])
else:
pygame.draw.polygon(ecran, ROUGE, [[100,50], [0,0], [0,100]])
pygame.display.flip() pygame.display.flip()

0 comments on commit d4d500a

Please sign in to comment.