cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Tween loop #95

Open viki53 opened 10 years ago

viki53 commented 10 years ago

It would be really great if the tween component allowed to create a loop, instead of using callbacks. For example, moving a sprite for { x:0 } to { x: 50 } would mean 0 -> 50 -> 0 -> 50 and so on... Tween.js allows it : https://github.com/sole/tween.js/blob/master/src/Tween.js#L101

cykod commented 10 years ago

Good idea