Animation.looped has been renamed to Animation.loop. It's a boolean you can toggle at run-time to turn on/off animation looping.

A single Animation object now has 3 new events: onStart, onLoop and onComplete.
Animation.loopCount holds the number of times the animation has looped since it last started.
Animation.stop has a new parameter: dispatchComplete. If true it'll dispatch an Animation.onComplete event.
This commit is contained in:
photonstorm
2014-03-03 16:05:55 +00:00
parent 4a370c82cf
commit 833960b3c8
9 changed files with 292 additions and 24 deletions
+2 -3
View File
@@ -42,9 +42,7 @@ function update() {
// This creates a simple sine-wave effect running through our BitmapData.
// This is then duplicated across all 100 sprites using it, meaning we only have to calculate it and upload it to the GPU once.
function updateWobblyBall()
{
function updateWobblyBall() {
var s = 0;
var copyRect = { x: 0, y: 0, w: wavePixelChunk, h: 32 };
@@ -76,4 +74,5 @@ function updateWobblyBall()
{
waveDataCounter = 0;
}
}