Playground
From portcullis · Compiles in your browser · $0
CtrlShiftS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
asset portcullis "Portcullis" complexity=4// the gate to the throne room: two chunky stone pillars and a heavy lintel with a horned skull// keystone, an iron grate of bars with spiked feet sliding in grooves, a winch drum with a chain on// one pillar and a pull lever on the other. On raise the lever yanks down, the drum turns and the// grate grinds up, hangs, then slams back down. Fits a 3 m passage; it faces +z.let stoneC = greystone:2|granite|rockCoollet ironC = iron:3|inkDarklet boneC = cream:2|birch// the framebox pillar at=(1.28, 0, 0) mirror size=(.46, 3.3, .66) round=.08 bev=2 bands=[.1:stoneC*.86 .14:stoneC .5:stoneC*.93 .54:stoneC] color=stoneCbox lintel at=(0, 3.25, 0) size=(3.0, .6, .76) round=.1 bev=2 bands=[.5:stoneC*.9] color=stoneCball keystone on=lintel at=(0, .3, .36) r=(.24, .22, .16) color=boneC segs=14 rings=9ball socket on=keystone at=(.08, .03, .12) mirror r=(.06, .065, .04) color=inkDark segs=8 rings=5cone khorn on=keystone at=(.18, .12, 0) mirror rot=(0, 0, -60) h=.2 r=.05 bend=-30 color=boneC segs=8box groove on=pillar at=(-.26, .05, 0) size=(.08, 3.1, .18) round=.02 color=inkDark// the grate: a bottom rail, bars with spiked feet, cross barsbox rail at=(0, .14, 0) size=(2.06, .1, .1) round=.03 color=ironC jointrod bar x7 on=rail at=(0, .05, 0) row=(.32, 0, 0) to=(0, 2.85, 0) r=.045 sides=6 color=ironCcone spike on=bar at=(0, -.02, 0) rot=(180, 0, 0) h=.16 r=.045 color=ironC*1.4 segs=6box cross x3 on=rail at=(0, 1.35, 0) row=(0, .85, 0) size=(2.03, .08, .07) round=.02 color=ironCball rivet x7 on=cross at=(0, .04, .045) row=(.32, 0, 0) r=.03 color=ironC*1.5 segs=6 rings=4// the winch drum on the lintel front, its chain down to the gratecyl drum on=lintel at=(-1.35, .3, .5) rot=(0, 0, -90) h=.9 r=.2 color=walnut stripes=[walnut oak] panels=8 segs=12 jointtorus drumRim x2 on=drum at=(0, .45, 0) row=(0, .86, 0) R=.2 r=.03 color=ironC segs=16 sides=5rod spokeH x2 on=drum at=(-.3+i*.3, .9+i*.012, -i*.3) to=(.6-i*.6, 0, i*.6) r=.03 sides=5 color=walnutrod chain on=lintel at=(-.9, .12, .52) to=(0, -.55, -.08) r=.03 sides=5 color=ironC// the pull lever on the right pillarbox leverPlate at=(-1.28, 1.2, .33) size=(.26, .4, .06) round=.02 color=ironCrod lever on=leverPlate at=(0, .2, .04) rot=(25, 0, 0) to=(0, .55, 0) r=.03 sides=6 color=ironC jointball knob on=lever at=end r=.06 color=tomato segs=10 rings=6// raise: lever down, drum turns, the grate grinds up, hangs, slams downanim raise: lever rx keys=[0:0 .15:80 .85:80 1:0] hz=.2anim raise: rail py keys=[0:0 .1:0 .4:2.3 .82:2.3 .9:0 .95:.08 1:0] hz=.2anim raise: drum ry keys=[0:0 .1:0 .4:-360 .82:-360 .9:0 1:0] hz=.2
Clean: no issues on this seed.
Loading
seed
Shapes— / 70
Triangles— / 6,000
Draw calls— / 4