diff --git a/gemswap/core.coffee b/gemswap/core.coffee index 2546146..4feee33 100644 --- a/gemswap/core.coffee +++ b/gemswap/core.coffee @@ -80,8 +80,8 @@ $(-> @fade_value = @engine.ease.circOut(0, 1, 10, @engine.ease.bounceOut(1, 0, 35)) cursor = @engine.getObject("cursor").getInstances()[0] - cursor.x = @x - 9 - cursor.y = @y - 9 + cursor.x = @engine.ease.quadInOut(cursor.x, @x - 9, 8) + cursor.y = @engine.ease.quadInOut(cursor.y, @y - 9, 8) for x in [10 .. 728] by 80 for y in [10 .. 550] by 80 diff --git a/gemswap/gemswap.js b/gemswap/gemswap.js index f7cba29..f9cd824 100644 --- a/gemswap/gemswap.js +++ b/gemswap/gemswap.js @@ -60,8 +60,8 @@ diamond.onMouseOver = function() { this.fade_value = this.engine.ease.circOut(0, 1, 10, this.engine.ease.bounceOut(1, 0, 35)); cursor = this.engine.getObject("cursor").getInstances()[0]; - cursor.x = this.x - 9; - return cursor.y = this.y - 9; + 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); }; for (x = _i = 10; _i <= 728; x = _i += 80) { for (y = _j = 10; _j <= 550; y = _j += 80) {