C# 클래스 flxSharp.flxSharp.FlxParticle

This is a simple particle class that extends the default behavior of FlxSprite to have slightly more specialized behavior common to many game scenarios. You can override and extend this class just like you would FlxSprite. While FlxEmitter used to work with just any old sprite, it now requires a FlxParticle based class.
상속: FlxSprite
파일 보기 프로젝트 열기: jlorek/flxSharp

공개 메소드들

메소드 설명
FlxParticle ( ) : System

Instantiate a new particle. Like FlxSprite, all meaningful creation happens during loadGraphic() or makeGraphic() or whatever.

onEmit ( ) : void

Triggered whenever this object is launched by a FlxEmitter. You can override this to add custom behavior like a sound or AI or something.

update ( ) : void

The particle's main update logic. Basically it checks to see if it should be dead yet, and then has some special bounce behavior if there is some gravity on it.

메소드 상세

FlxParticle() 공개 메소드

Instantiate a new particle. Like FlxSprite, all meaningful creation happens during loadGraphic() or makeGraphic() or whatever.
public FlxParticle ( ) : System
리턴 System

onEmit() 공개 메소드

Triggered whenever this object is launched by a FlxEmitter. You can override this to add custom behavior like a sound or AI or something.
public onEmit ( ) : void
리턴 void

update() 공개 메소드

The particle's main update logic. Basically it checks to see if it should be dead yet, and then has some special bounce behavior if there is some gravity on it.
public update ( ) : void
리턴 void