Advertisement
infogulch

Untitled

Aug 7th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     penis_settings = json.load(open('./qb/penis.avx.txt', 'r'))
  2.     penis = AVX.fromfile('./qb/penis.avx').tosparsedict()
  3.     penis = dict(shift_origin(penis, penis_settings['origin']))
  4.  
  5.     plane_settings = json.load(open('./qb/plane.avx.txt', 'r'))
  6.     plane = AVX.fromfile('./qb/plane.avx').tosparsedict()
  7.     plane = dict(shift_origin(penis, plane_settings['origin']))
  8.  
  9.     for x in xrange(0, bmap.width):
  10.         for y in xrange(0, bmap.height):
  11.             if bmap.get_repeat(x, y) is hill_biome:
  12.                 structure = penis
  13.             elif bmap.get_repeat(x, y) is grass_biome:
  14.                 structure = plane
  15.             else:
  16.                 continue
  17.             left, top, right, bottom = bmap.rect_of_point(x,y)
  18.             for ct in xrange(random.randint(1,3)):
  19.                 build(random.randint(left,right)
  20.                     , random.randint(top,bottom)
  21.                     , rotate_all(structure, 0, random.randint(0,3)) #rotate it different every time
  22.                     , (255,0,216))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement