-
Notifications
You must be signed in to change notification settings - Fork 1
/
LongEars.rb
executable file
·89 lines (75 loc) · 2.39 KB
/
LongEars.rb
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
require 'Bot.rb'
class LongEars < Bot
LIPP = 0.1
def initialize()
@width=4.3
@latowidth=2.2
@heigh=3.7
@depth=0.77
super
end
def boxo(startx, starty)
curxo = startx + @width
botrail = starty-@heighchub+0.4
toprail = [email protected]
drillerx = startx+0.5
for i in 0..3 do
drillus(drillerx,botrail-0.15,0,-0.2)
drillus(drillerx,toprail+0.15,0,-0.2)
drillerx += 1.1
end
midx = @width/2
nowchub = 0.25 #adamusb
box(startx+midx-0.25,toprail-0.1,startx+midx+0.25,starty+@heighchub+0.1,0,-0.42,4)
midx -= 1.1
nowchub = (0.610/2) #alpswitch
box(startx+midx-nowchub,toprail-0.1,startx+midx+nowchub,starty+@heighchub-LIPP,0,-0.334,3)
nowchub = (0.2/2) #alpsSHAFT
box(startx+midx-nowchub,[email protected],startx+midx+nowchub,starty+@heighchub+0.1,0,-0.3,3)
midx += 2.2
nowchub = (0.474/2) #kyconSTEREO
box(startx+midx-nowchub,toprail-0.1,startx+midx+nowchub,starty+@heighchub-LIPP,0,-0.334,3)
dux(startx+midx-nowchub+$halfwidth,toprail,startx+midx-nowchub+$halfwidth,[email protected]$halfwidth,-0.334,-0.374,1)
dux(startx+midx+nowchub-$halfwidth,toprail,startx+midx+nowchub-$halfwidth,[email protected]$halfwidth,-0.334,-0.374,1)
nowchub = (0.250/2) #kyconSHAFT
box(startx+midx-nowchub,[email protected],startx+midx+nowchub,starty+@heighchub+0.1,0,-0.3,3)
box(startx+0.1,botrail,curxo-0.1,toprail,0,-0.105,1)
dux(curxo-0.17,starty-0.5,curxo-0.17,starty+0.5,-0.105,-0.305,2)
box(startx+0.2,botrail,curxo-0.2,toprail,-0.105,-0.420,3)
#tubo(startx+@width/2,starty-@heighchub+2.850,0.2,-0.42,0-@depth,3)
return curxo
end
def lato(startx, starty)
curxo = startx + @latowidth
botrail = starty-@heighchub+0.4
toprail = [email protected]
box(startx+0.2,botrail,curxo-0.2,toprail,0,-0.420,4)
weirdsignale(startx+0.2,botrail,curxo-0.2,toprail,-0.42,0-@depth)
return curxo
end
def bottop
curyo = @yplankus
for i in 1..@yarg do
curyo -= $bitwidth
curyo -= @heighchub
if (i%2) == 0
curxo = 0
else curxo = 0.5 end
curxo = duxo(curxo,curyo)
for j in 1..@xarg do
curxold = curxo
curxo += @latowidth
curxo = boxo(curxo,curyo)
dwellus(60)
lato(curxold,curyo)
curxo = lato(curxo,curyo)
curxo = duxo(curxo,curyo)
end
curyo -= @heighchub
end
@xplankus = @latowidth + @latowidth + @width + ($bitwidth * 2)
end
end
mystuff = LongEars.new
mystuff.bottop
mystuff.londucate