aduros / flambe

Rapidly cook up games for HTML5, Flash, Android, and iOS.
https://github.com/aduros/flambe/wiki
MIT License
745 stars 118 forks source link

Convenient functions to avoid using the underscore for most cases #338

Closed markknol closed 9 years ago

markknol commented 9 years ago

I think

owner.get(Sprite).scaleX.multiplyBy(1.4);

Looks slightly better than

owner.get(Sprite).scaleX._ *= 1.4;

In ideal case AnimatedFloat is an abstract so you can do enityA.get(Sprite).scaleX * enityB.get(Sprite).scaleX and maybe we don't need to deal with the underscore, ever.

markknol commented 9 years ago

This is possible with abstract, forget this PR