Phaser. Particles

new Particles(game)

Phaser.Particles is the Particle Manager for the game. It is called during the game update loop and in turn updates any Emitters attached to it.

Parameters:
Name Type Description
game Phaser.Game

A reference to the currently running game.

Source - particles/Particles.js, line 14

Classes

Arcade

Members

emitters :object

Internal emitters store.

Source - particles/Particles.js, line 24

game :Phaser.Game

A reference to the currently running Game.

Source - particles/Particles.js, line 19

ID :number

-

Source - particles/Particles.js, line 30

Methods

add(emitter) → {Phaser.Emitter}

Adds a new Particle Emitter to the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

The emitter to be added to the particle manager.

Returns:
Phaser.Emitter -

The emitter that was added.

Source - particles/Particles.js, line 36

remove(emitter)

Removes an existing Particle Emitter from the Particle Manager.

Parameters:
Name Type Description
emitter Phaser.Emitter

The emitter to remove.

Source - particles/Particles.js, line 50

<internal> update()

Called by the core game loop. Updates all Emitters who have their exists value set to true.

Internal:
  • This member is internal (protected) and may be modified or removed in the future.
Source - particles/Particles.js, line 61
Phaser Copyright © 2012-2015 Photon Storm Ltd.
Documentation generated by JSDoc 3.3.2 on Thu Feb 18 2016 14:41:03 GMT+0000 (GMT Standard Time) using the DocStrap template.

快捷菜单

注意:只有登录才能全文翻译,每个新用户赠送300会员币。
赚取方法:文章评论+1000,分享网站截图给站长+3000,另充10元+100万会员币
支持一下记得截图给站长!

VIP限时免费阅读!登录可得1万币尽情中文阅读!


记得CTRL+D收藏!
站长微信:
支持自学php网
如有问题,记得强刷一下.

  • emitters :object - 属性
  • game :Phaser.Game - 属性
  • ID :number - 属性
  • add(emitter) → {Phaser.Emitter} - 方法
  • remove(emitter) - 方法
  • update() - 方法