enchant.js | S example

Mithat Konar

March 23, 2014

Animation

Download starter project

Rotation


    

Run


    

Run


    

Run

Scaling


    

Run


    

Run

Scaling in one dimension

Scaling in one dimension can be used for some interesting effects.

Turning


    

Run

Spinning on an axis


    

Run

Using multiple images


    

Run


    

Run


    

Run

Automatic multi-image sprite animation

This example was adapted from McInnis, Brandon, Ryo Shimizu, Hidekazu Furukawa, Ryohei Fushimi, Ryo Tanaka, and Kevin Kratzer. "Basic Features of enchant.js." In HTML5 game programming with enchant.js. Berkely, Calif.: Apress, 2013. 63-67, and uses images that are not licenced for unlimited use. As such, it may be subject to copyright or other intellectual property conditions that are different from the other resources used here.


    

Run