Add easing to gemswap cursor

feature/coffeescript
Sven Slootweg 10 years ago
parent 247975216b
commit ca333b8901

@ -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

@ -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) {

Loading…
Cancel
Save