C# Class Supernova.Particles2D.Particle2D

Show file Open project: jasonmitchell/supernova Class Usage Examples

Public Methods

Method Description
Initialize ( Microsoft.Xna.Framework.Graphics.Texture2D particleTexture, Vector2 emitPosition, Vector2 initialVelocity, Microsoft.Xna.Framework.Color particleColor, float particleLifespan, float totalMilliseconds ) : void

Private Methods

Method Description
Affect ( Vector2 &attraction ) : void
Draw ( SpriteBatch spriteBatch ) : void
Update ( double totalMilliseconds ) : void

Method Details

Initialize() public method

public Initialize ( Microsoft.Xna.Framework.Graphics.Texture2D particleTexture, Vector2 emitPosition, Vector2 initialVelocity, Microsoft.Xna.Framework.Color particleColor, float particleLifespan, float totalMilliseconds ) : void
particleTexture Microsoft.Xna.Framework.Graphics.Texture2D
emitPosition Microsoft.Xna.Framework.Vector2
initialVelocity Microsoft.Xna.Framework.Vector2
particleColor Microsoft.Xna.Framework.Color
particleLifespan float
totalMilliseconds float
return void