write(f, 'TERRAIN_LINE %5s %s' % (y, quote(line)))
for thing in game.world.things:
write(f, 'THING_TYPE %s %s' % (thing.id_, thing.type_))
write(f, 'TERRAIN_LINE %5s %s' % (y, quote(line)))
for thing in game.world.things:
write(f, 'THING_TYPE %s %s' % (thing.id_, thing.type_))