mirror of
https://github.com/wassname/phaser.git
synced 2026-08-13 12:30:11 +08:00
Particle Emitter in and working. Nice and fast, and a lot more flexible than before.
This commit is contained in:
@@ -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
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user