View difference between Paste ID: m0kbB61u and cmjRZ0qM
SHOW: | | - or go back to the newest paste.
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:
13+
            else: # bmap.get_repeat(x, y) is grass_biome:
14
                structure = plane
15
            left, top, right, bottom = bmap.rect_of_point(x,y)
16
            for ct in xrange(random.randint(1,3)):
17
                build(random.randint(left,right)
18
                    , random.randint(top,bottom) 
19
                    , rotate_all(structure, 0, random.randint(0,3)) #rotate it different every time
20
                    , (255,0,216))