-
Notifications
You must be signed in to change notification settings - Fork 1
/
MobBot.rb
executable file
·54 lines (43 loc) · 954 Bytes
/
MobBot.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
require './Jacksloon.rb'
require './Okuda.rb'
class Mobbot < Jacksloon
MARJ = 0.5
def initialize(starx, stary)
@width = 4.72
@heigh = 5.0
@depth = 0.8 #0.75
super(starx, stary)
end
def dx(x)
return @curxo + x
end
def dy(y)
return @stary + y
end
def boxo()
botrail = dy(-@heighchub+0.4)
toprail = dy(@heighchub-0.4)
@curxo += MARJ
screw = -0.16
drillerx = @curxo+0.55
for i in 0..3 do
drillus(drillerx-0.35,toprail+0.15,0,-0.15)
drillus(drillerx+0.35,toprail+0.15,0,-0.15)
box(drillerx-0.25, dy(3.5-2.5),drillerx+0.25,dy(4.5-2.5),0,-0.12,1)
drillus(drillerx,botrail-0.15,0,-0.15)
drillerx += 1.2
end
@curxo += @width /2
@myOkuda = Okuda.new(@curxo,@stary,@width+MARJ*2+$bitwidth,@heigh+@@lipp*2+$bitwidth,0.5)
@curxo += @width /2
@curxo += MARJ
return @curxo
end
def ducabot
@myOkuda.bokchoydeluxe(-0.78,1.0,16,12,[],[])
end
def duxo
return @curxo
end
end
stutterat(Mobbot)