mirror of
https://github.com/wassname/phaser.git
synced 2026-06-30 16:40:20 +08:00
* 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
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
var Phaser = Phaser || {
|
||||
|
||||
VERSION: '1.0.1',
|
||||
VERSION: '1.0.2',
|
||||
GAMES: [],
|
||||
AUTO: 0,
|
||||
CANVAS: 1,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user