From 818cf47c437b4ebf8cfcd0c66419b87afa7d1615 Mon Sep 17 00:00:00 2001 From: Bertrand Benjamin Date: Thu, 2 Nov 2017 05:19:19 +0300 Subject: [PATCH] =?UTF-8?q?d=C3=A9but=20de=20correction=20du=20snake=20en?= =?UTF-8?q?=20ISN?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ISN/snake_corr.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ISN/snake_corr.py diff --git a/ISN/snake_corr.py b/ISN/snake_corr.py new file mode 100644 index 0000000..6c728ff --- /dev/null +++ b/ISN/snake_corr.py @@ -0,0 +1,22 @@ +import pygame + +pygame.init() + +largeur = 600 +hauteur = 400 +windowSurface = pygame.display.set_mode((largeur, hauteur), 0,32) + +WHITE = (255, 255, 255) + +running = True +while running: + + pygame.draw.line(windowSurface, WHITE, (0,10), (600,10)) + + pygame.display.update() + + for event in pygame.event.get(): + if event.type == pygame.QUIT: + running = False + +pygame.quit()