début de correction du snake en ISN
This commit is contained in:
parent
2474c2be2f
commit
818cf47c43
22
ISN/snake_corr.py
Normal file
22
ISN/snake_corr.py
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user