-
Notifications
You must be signed in to change notification settings - Fork 1
/
BlockMiller.rb
executable file
·45 lines (39 loc) · 844 Bytes
/
BlockMiller.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
require './Jacksloon.rb'
require './Okuda.rb'
class Deerorg < Jacksloon
MARJ = 0.42
def initialize(starx, stary)
@width = 11.3
@heigh = 6.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 drawzsquare(minx,miny,maxx,maxy)
minx += $halfwidth
miny += $halfwidth
maxx -= $halfwidth
maxy -= $halfwidth
drawzframe(minx,miny,maxx,maxy)
end
def box(minx,miny,maxx,maxy,zstart,zdepth,step)
incro = (Float(zdepth-zstart) / Float(step))
skimtoPoint(minx+$halfwidth,miny+$halfwidth,zstart+0.1)
for i in 1..step do
penetrate(zstart + (incro * i))
drawzsquare(minx,miny,maxx,maxy)
end
end
def boxo()
botrail = dy(-@heighchub+0.5)
toprail = dy(@heighchub-0.5)
@curxo += MARJ
box(0,-4.25,1,4.25,0,-0.6,3)
end
end
stutterat(Deerorg)