r = Rect(cw_park.hallways[i]) if i == 0: dest = r.center halls.append(HallRect(r)) except Exception, e: print 'tried but failed to import hallways defined in cw_park' print 'Exception', type(e), e computedList = precompute(halls, dest) f = file('/tmp/pathtest.py', 'w') f.write('l = [\n') for r in halls: print r f.write('\n"""' + r.GetSaveRepr() + '""",\n') f.write('\n]\n') f.close() #from pprint import pprint #pprint (computedList) #Initialize Everything from pygame.locals import * import pygame global screen pygame.init() RESOLUTION = (800, 800) screen = pygame.display.set_mode(RESOLUTION) #Display The Background