2017-2018/ISN/pygame/snake_corr.py

23 lines
390 B
Python
Raw Normal View History

2017-11-02 02:19:19 +00:00
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()