Particle Emitter in and working. Nice and fast, and a lot more flexible than before.

This commit is contained in:
Richard Davey
2013-09-10 01:26:50 +01:00
parent 2ba6b4ff67
commit 5d3fe891cd
11 changed files with 681 additions and 2 deletions
+6
View File
@@ -255,6 +255,12 @@ Phaser.Game.prototype = {
*/
debug: null,
/**
* The Particle Manager
* @type {Phaser.Particles}
*/
particles: null,
/**
* Initialize engine sub modules and start the game.
* @param parent {string} ID of parent Dom element.
+5 -2
View File
@@ -450,7 +450,10 @@ Phaser.Group.prototype = {
*/
getFirstExists: function (state) {
state = state || true;
if (typeof state !== 'boolean')
{
state = true;
}
if (this._container.first._iNext)
{
@@ -458,7 +461,7 @@ Phaser.Group.prototype = {
do
{
if (currentNode.exists == state)
if (currentNode.exists === state)
{
return currentNode;
}