Make bezier gun target on scroll
This commit is contained in:
@@ -249,6 +249,7 @@ aCurveBulAt maycid col pos control targ hiteff width = Bul'
|
||||
, _btTimer' = 100
|
||||
, _btHitEffect' = hiteff
|
||||
}
|
||||
where f i = g $ (100 - fromIntegral i) / 10
|
||||
g x = map (bf . (+ x)) [0,0.01..0.09]
|
||||
where f i = g $ (100 - fromIntegral i) / den
|
||||
g x = map (bf . (+ x)) [0,1 / (den * 10)..9 / (den * 10)]
|
||||
bf = bQuadToF (pos,control,targ)
|
||||
den = 20
|
||||
|
||||
Reference in New Issue
Block a user