NOTE: EZFX2D comes with factory settings that will be loaded upon startup. You can create your first effect by adjusting the properties on the Effect Settings tab. In order to obtain the desired effect you must understand how each of the properties will affect the particle emitter.
Declare variable for an effect emitter
EZFX.EZFX2D.ParticleEmitter2D myEmitter;
In the LoadContent function of your game class load the settings and content as shown below:
myEmitter = new EZFX.EZFX2D.ParticleEmitter2D(Content.Load<EZFX.EZFX2D.ParticleSettings>(".\\ParticleSettingsFolder\\ParticleSettingsName"), 3, Shared.Content);
In the Update function of the game class add the following line:
myEmitter.Update(gametime);
In the Draw function of the game class add the following lines:
spriteBatch.Begin(SpriteBlendMode.Additive);
myEmitter.spriteBatch.Draw(ref spriteBatch);
spriteBatch.End();
To Add particles to the screen call the following line within the scope of the game classes Update function as shown below:
myEmitter.AddParticles(new Vector2(100, 100));
Download the source files for the EZFX2D Sample project http://www.LucidVisionGames.com/Downloads/EZFX2DSample.zip from LucidVisionGames.com