begin portin attack
This commit is contained in:
@@ -94,24 +94,10 @@ struct
|
||||
case #mainAttack player of
|
||||
MAIN_ATTACKING amt =>
|
||||
let
|
||||
val data = (rx, ry, 4.0, windowWidth, windowHeight)
|
||||
val playerVec = PlayerAttackStandLeft.lerp (rx, ry, 3.0, windowWidth, windowHeight)
|
||||
val projectileVec = Vector.fromList []
|
||||
in
|
||||
if amt <= 3 then
|
||||
PlayerAttackLeft1.lerp data
|
||||
else if amt <= 7 then
|
||||
PlayerAttackLeft2.lerp data
|
||||
else if amt <= 9 then
|
||||
PlayerAttackLeft3.lerp data
|
||||
else
|
||||
let
|
||||
val playerVec = PlayerAttackLeft4.lerp data
|
||||
val rx = rx - Real32.fromInt Constants.playerWidth + 25.0
|
||||
val ry = ry + (Real32.fromInt Constants.playerHeight / 2.0) + 7.0
|
||||
val whipVec = StraightWhip.lerp
|
||||
(rx, ry, 4.0, windowWidth, windowHeight)
|
||||
in
|
||||
Vector.concat [playerVec, whipVec]
|
||||
end
|
||||
playerVec
|
||||
end
|
||||
| _ =>
|
||||
case #attacked player of
|
||||
|
||||
Reference in New Issue
Block a user