diff --git a/README.md b/README.md index 2d7f7aea..3a515079 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,10 @@ Version 1.0.2 * Added 'collideWorldBounds' to Emitter.makeParticles function. * Added Emitter.angularDrag * Changed Emitter.bounce from a number to a Point, so now set its x/y properties to control different amounts of bounce per axis. - +* Fixed a bug in the AnimationManager where useNumericIndex was always set to true +* Added in lots of Particle examples +* Added in the start of a Breakout game +* Added in the start of a Platformer game Version 1.0.1 diff --git a/examples/games/breakout.php b/examples/games/breakout.php new file mode 100644 index 00000000..d1a1df8e --- /dev/null +++ b/examples/games/breakout.php @@ -0,0 +1,91 @@ + + + + + diff --git a/phaser-logo-small.png b/phaser-logo-small.png new file mode 100644 index 00000000..a37a23af Binary files /dev/null and b/phaser-logo-small.png differ diff --git a/src/Phaser.js b/src/Phaser.js index a8f0dcf9..c2073c68 100644 --- a/src/Phaser.js +++ b/src/Phaser.js @@ -3,7 +3,7 @@ */ var Phaser = Phaser || { - VERSION: '1.0.1', + VERSION: '1.0.2', GAMES: [], AUTO: 0, CANVAS: 1, diff --git a/src/animation/AnimationManager.js b/src/animation/AnimationManager.js index 4d51cb3b..3b120838 100644 --- a/src/animation/AnimationManager.js +++ b/src/animation/AnimationManager.js @@ -59,8 +59,9 @@ Phaser.AnimationManager.prototype = { frames = frames || null; frameRate = frameRate || 60; - loop = loop || false; - useNumericIndex = useNumericIndex || true; + + if (typeof loop == 'undefined') { loop = false; } + if (typeof useNumericIndex == 'undefined') { useNumericIndex = true; } if (this._frameData == null) { @@ -111,6 +112,8 @@ Phaser.AnimationManager.prototype = { */ validateFrames: function (frames, useNumericIndex) { + if (typeof useNumericIndex == 'undefined') { useNumericIndex = true; } + for (var i = 0; i < frames.length; i++) { if (useNumericIndex == true) diff --git a/src/animation/Parser.js b/src/animation/Parser.js index 38b1a4d6..fafe3cb9 100644 --- a/src/animation/Parser.js +++ b/src/animation/Parser.js @@ -164,6 +164,7 @@ Phaser.Animation.Parser = { for (var key in frames) { + console.log(key); var uuid = game.rnd.uuid(); newFrame = data.addFrame(new Phaser.Animation.Frame(