Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- penis_settings = json.load(open('./qb/penis.avx.txt', 'r'))
- penis = AVX.fromfile('./qb/penis.avx').tosparsedict()
- penis = dict(shift_origin(penis, penis_settings['origin']))
- plane_settings = json.load(open('./qb/plane.avx.txt', 'r'))
- plane = AVX.fromfile('./qb/plane.avx').tosparsedict()
- plane = dict(shift_origin(penis, plane_settings['origin']))
- for x in xrange(0, bmap.width):
- for y in xrange(0, bmap.height):
- if bmap.get_repeat(x, y) is hill_biome:
- structure = penis
- else: # bmap.get_repeat(x, y) is grass_biome:
- structure = plane
- left, top, right, bottom = bmap.rect_of_point(x,y)
- for ct in xrange(random.randint(1,3)):
- build(random.randint(left,right)
- , random.randint(top,bottom)
- , rotate_all(structure, 0, random.randint(0,3)) #rotate it different every time
- , (255,0,216))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement