Skip to content

Commit 211766c

Browse files
committed
tweak power of kaboom peg
1 parent d367273 commit 211766c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ps4/peggleclone/SLGameEngine/PowerUpHandler.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class PowerUpHandler {
3636
if isWithinExplosionRadius(kaboomPeg: kaboomPeg, physicsBody: cannonBallPhysicsBody) {
3737
let forceDirection = kaboomPeg.center.vectorTo(point: cannonBallPhysicsBody.position)
3838
let distance = kaboomPeg.center.distanceFrom(point: cannonBallPhysicsBody.position)
39-
let ratio = 15 * (1 - distance / kaboomPeg.radiusOfExplosion)
39+
let ratio = 25 * (1 - distance / kaboomPeg.radiusOfExplosion)
4040
cannonBallPhysicsBody.addForceToVelocity(force: forceDirection.multiplyWithScalar(scalar: ratio))
4141
}
4242
kaboomPeg.setActivated()

0 commit comments

Comments
 (0)