# robertvandeneynde/parascolaire-tutorials

J'ai choisi le centre du triangle comme étant 50, 50 vu que le triang…

`…le est haut de 100 et large de 100. Cependant prendre un autre centre est peut-être plus naturel pour un triangle.`
• Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent e86109c commit 87099ea28f48b40e9a29648878078795c617c31d
Showing with 6 additions and 6 deletions.
1. +6 −6 pygame0_code_minimal.py
 @@ -46,14 +46,14 @@ pygame.draw.circle(ecran, BLEU, [100,200], 20) pygame.draw.circle(ecran, BLEU, [100,200], 20) if sens == -1: if sens == -1: pygame.draw.polygon(ecran, ROUGE, [ pygame.draw.polygon(ecran, ROUGE, [ [ma_position + 0, 80 + 50], [ma_position + 0 - 50, 80 + 50 - 50], [ma_position + 100, 80 + 0], [ma_position + 100 - 50, 80 + 0 - 50], [ma_position + 100, 80 + 100]]) [ma_position + 100 - 50, 80 + 100 - 50]]) else: else: pygame.draw.polygon(ecran, ROUGE, [ pygame.draw.polygon(ecran, ROUGE, [ [ma_position + 100, 80 + 50], [ma_position + 100 - 50, 80 + 50 - 50], [ma_position + 0, 80 + 0], [ma_position + 0 - 50, 80 + 0 - 50], [ma_position + 0, 80 + 100]]) [ma_position + 0 - 50, 80 + 100 - 50]]) pygame.draw.circle(ecran, VERT, [ma_position, 80], 10) pygame.draw.circle(ecran, VERT, [ma_position, 80], 10) pygame.display.flip() pygame.display.flip()

#### 0 comments on commit `87099ea`

Please sign in to comment.