All,
I put together a little demo of easing behavior for wade.
Not sure why this type of motion isn't built into the engine already ?
Is it too resource intensive for mobile apps ?
Maybe it is and I have missed it ?
This uses the new wade 1.2 engine.
You will have to modify the html file to point to wherever you are getting the wade engine from.
Besides modifying the html, it should run out of the box.
This is based on the formulas of Robert Penner. Please read the notice at tha bottom of the
easing.js file if you plan on reuseing the code.
There are lots of other easing motion routines. But most can be implemented by changing the
values of the exponents in the exponential motion routines.
If you set the x power and the y power to different values, you get some pretty cool swooping motion.
Not sure about the performance in an actual game, seems pretty math
intensive, but the demo runs smoothly.
anyway, enjoy
Attached Files