пишет IndentationError: unindent does not match any outer indentation level
вот код:
import pygame
# initialize pygame
pygame.init()
# create display & run update
display = pygame.display.set_mode((640, 480))
pygame.display.update()
pygame.display.set_caption("Snake game by SApelkin")
# start loop
game_end = False
while not game_end:
#game loop
for event in pygame.event.get():
if event.type == pygame.QUIT:
game_end = True
# draw stuff here
pygame.draw.rect( display, (0,255,0), [640/2-5, 480/2-5, 10, 10] )
pygame.display.update()
#close app, if required
pygame.quit()
quit()
вот код:
import pygame
# initialize pygame
pygame.init()
# create display & run update
display = pygame.display.set_mode((640, 480))
pygame.display.update()
pygame.display.set_caption("Snake game by SApelkin")
# start loop
game_end = False
while not game_end:
#game loop
for event in pygame.event.get():
if event.type == pygame.QUIT:
game_end = True
# draw stuff here
pygame.draw.rect( display, (0,255,0), [640/2-5, 480/2-5, 10, 10] )
pygame.display.update()
#close app, if required
pygame.quit()
quit()