> On Fri, 13 Apr 2007, [EMAIL PROTECTED] wrote: >> Alright I got an error saying: >> >> Syntax Error Line 6: >> pygame.init() >> >> >> Script: >> >> import sys >> import pygame >> from pygame.locals import * >> >> >> pygame.init() > > Indeed this is a syntax error - the code is indented unnecessarily and > invalidly. > > > Richard > Yay I finally fixed it.
Code: import sys import pygame from pygame.locals import * pygame.init() size = width, height = 320, 240 speed = [2, 2] black = 0, 0, 0 screen = pygame.display.set_mode(size) while 1: for event in pygame.event.get(): if event.type == pygame.QUIT: sys.exit() screen.fill(black) pygame.display.flip()