C# Class Source.Graphics.ParticleEmitter

Make an emitter if you want a continous stream of particles from some location (which can move) If you just want one spew of particles, use the method World.MakeParticles. This will probably be overwritten eventually
Datei anzeigen Open project: HarkerGameDev/TheGame Class Usage Examples

Public Properties

Property Type Description
AngVel float
AngVelVar float
EmitterLocation Vector2
Enabled bool
LiveTime float
LiveTimeVar float
Red float
RedVar float
Size float
SizeVar float
VelVarX float
VelX float

Private Properties

Property Type Description
MakeParticle Particle

Public Methods

Method Description
Draw ( SpriteBatch spriteBatch ) : void
ParticleEmitter ( List textures, Vector2 location, float particlesPerSec ) : System
Update ( float deltaTime ) : void

Private Methods

Method Description
MakeParticle ( ) : Particle

Method Details

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

ParticleEmitter() public method

public ParticleEmitter ( List textures, Vector2 location, float particlesPerSec ) : System
textures List
location Vector2
particlesPerSec float
return System

Update() public method

public Update ( float deltaTime ) : void
deltaTime float
return void

Property Details

AngVel public_oe property

public float AngVel
return float

AngVelVar public_oe property

public float AngVelVar
return float

EmitterLocation public_oe property

public Vector2 EmitterLocation
return Vector2

Enabled public_oe property

public bool Enabled
return bool

LiveTime public_oe property

public float LiveTime
return float

LiveTimeVar public_oe property

public float LiveTimeVar
return float

Red public_oe property

public float Red
return float

RedVar public_oe property

public float RedVar
return float

Size public_oe property

public float Size
return float

SizeVar public_oe property

public float SizeVar
return float

VelVarX public_oe property

public float VelVarX
return float

VelX public_oe property

public float VelX
return float