Gradually reducing the initial size of the highlight arrow as the player levels up.

This commit is contained in:
Nick Winter 2014-11-25 17:55:10 -08:00
parent 6f2ac13c5a
commit 09d67a8189

View file

@ -341,10 +341,11 @@ module.exports = class CocoView extends Backbone.View
@pointerRadialDistance = -47
@pointerRotation = options.rotation ? Math.atan2(@$el.outerWidth() * 0.5 - targetLeft, targetTop - @$el.outerHeight() * 0.5)
initialScale = Math.max 1, 20 - me.level()
$pointer.css
opacity: 1.0
transition: 'none'
transform: "rotate(#{@pointerRotation}rad) translate(-3px, #{@pointerRadialDistance}px) scale(20)"
transform: "rotate(#{@pointerRotation}rad) translate(-3px, #{@pointerRadialDistance}px) scale(#{initialScale})"
top: targetTop - 50
left: targetLeft - 50
_.defer =>