Make bezier gun target on scroll

This commit is contained in:
2021-03-16 11:33:47 +01:00
parent 24aede4cac
commit 97fd7f5576
6 changed files with 23 additions and 27 deletions
+3 -2
View File
@@ -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