Skip to content

Commit

Permalink
En fonction du sens, le triangle pointe vers une autre direction
Browse files Browse the repository at this point in the history
  • Loading branch information
robertvandeneynde committed Jan 24, 2018
1 parent 9d428ce commit d4d500a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pygame0_code_minimal.py
Expand Up @@ -45,7 +45,10 @@
pygame.draw.rect(ecran, ROUGE, [100,200, 20,40])
pygame.draw.circle(ecran, BLEU, [100,200], 20)
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()

Expand Down

0 comments on commit d4d500a

Please sign in to comment.