Animation.killOnComplete added and fixed a few issues in the Tanks game.

This commit is contained in:
photonstorm
2013-10-09 13:36:57 +01:00
parent 29acf7fb4b
commit f10f9324ad
5 changed files with 38 additions and 16 deletions
+2
View File
@@ -111,6 +111,8 @@ Version 1.0.7 (in progress in the dev branch)
* velocityFromAngle and velocityFromRotation added with examples created.
* Fixed the RandomDataGenerator.sow method so if you give in the same seed you'll now get the same results (thanks Hsaka)
* World.randomX/Y now works with negative World.bounds values.
* Added killOnComplete parameter to Animation.play. Really useful in situations where you want a Sprite to animate once then kill itself on complete, like an explosion effect.
* TODO: look at Sprite.crop (http://www.html5gamedevs.com/topic/1617-error-in-spritecrop/)