2017-2018/ISN/pygame/snake_corr.py

23 lines
390 B
Python

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()