Use different easing algo for gemswap tilting effect

feature/coffeescript
Sven Slootweg 10 years ago
parent ca333b8901
commit 8ba19bf92b

@ -77,7 +77,7 @@ $(->
}) })
diamond.onMouseOver = -> diamond.onMouseOver = ->
@fade_value = @engine.ease.circOut(0, 1, 10, @engine.ease.bounceOut(1, 0, 35)) @fade_value = @engine.ease.quadInOut(0, 1, 10, @engine.ease.bounceOut(1, 0, 35))
cursor = @engine.getObject("cursor").getInstances()[0] cursor = @engine.getObject("cursor").getInstances()[0]
cursor.x = @engine.ease.quadInOut(cursor.x, @x - 9, 8) cursor.x = @engine.ease.quadInOut(cursor.x, @x - 9, 8)

@ -58,7 +58,7 @@
}); });
}; };
diamond.onMouseOver = function() { diamond.onMouseOver = function() {
this.fade_value = this.engine.ease.circOut(0, 1, 10, this.engine.ease.bounceOut(1, 0, 35)); this.fade_value = this.engine.ease.quadInOut(0, 1, 10, this.engine.ease.bounceOut(1, 0, 35));
cursor = this.engine.getObject("cursor").getInstances()[0]; cursor = this.engine.getObject("cursor").getInstances()[0];
cursor.x = this.engine.ease.quadInOut(cursor.x, this.x - 9, 8); cursor.x = this.engine.ease.quadInOut(cursor.x, this.x - 9, 8);
return cursor.y = this.engine.ease.quadInOut(cursor.y, this.y - 9, 8); return cursor.y = this.engine.ease.quadInOut(cursor.y, this.y - 9, 8);

Loading…
Cancel
Save