View difference between Paste ID: cmjRZ0qM and tksUZ7Zw
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-
                left, top, right, bottom = bmap.rect_of_point(x,y)
13+
14-
                for ct in xrange(random.randint(1,3)):
14+
                structure = plane
15-
                    build(random.randint(left,right)
15+
            left, top, right, bottom = bmap.rect_of_point(x,y)
16-
                        , random.randint(top,bottom) 
16+
            for ct in xrange(random.randint(1,3)):
17-
                        , rotate_all(penis, 0, random.randint(0,3)) #rotate it different every time
17+
                build(random.randint(left,right)
18-
                        , (255,0,216))
18+
                    , random.randint(top,bottom) 
19
                    , rotate_all(structure, 0, random.randint(0,3)) #rotate it different every time
20-
                left, top, right, bottom = bmap.rect_of_point(x,y)
20+
                    , (255,0,216))