Permalink
Browse files

Le triangle est aligné également en y (le cercle est en y = 80)

  • Loading branch information...
robertvandeneynde committed Jan 24, 2018
1 parent 6edca4a commit e86109ce7430f5270de14a81605ce24a95109d6a
Showing with 7 additions and 7 deletions.
  1. +7 −7 pygame0_code_minimal.py
View
@@ -44,17 +44,17 @@
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)
if sens == -1: if sens == -1:
pygame.draw.polygon(ecran, ROUGE, [ pygame.draw.polygon(ecran, ROUGE, [
[ma_position + 0, 50], [ma_position + 0, 80 + 50],
[ma_position + 100, 0], [ma_position + 100, 80 + 0],
[ma_position + 100, 100]]) [ma_position + 100, 80 + 100]])
else: else:
pygame.draw.polygon(ecran, ROUGE, [ pygame.draw.polygon(ecran, ROUGE, [
[ma_position + 100, 50], [ma_position + 100, 80 + 50],
[ma_position + 0, 0], [ma_position + 0, 80 + 0],
[ma_position + 0, 100]]) [ma_position + 0, 80 + 100]])
pygame.draw.circle(ecran, VERT, [ma_position, 80], 10)
pygame.display.flip() pygame.display.flip()

0 comments on commit e86109c

Please sign in to comment.