C# Class Drought.Graphics.Particles.Projectile

This class demonstrates how to combine several different particle systems to build up a more sophisticated composite effect. It implements a rocket projectile, which arcs up into the sky using a ParticleEmitter to leave a steady stream of trail particles behind it. After a while it explodes, creating a sudden burst of explosion and smoke particles.
Datei anzeigen Open project: kiniry-teaching/UCD

Public Methods

Method Description
Projectile ( ParticleSystem explosionParticles, ParticleSystem explosionSmokeParticles, ParticleSystem projectileTrailParticles, MovableEntity origin, MovableEntity aTarget ) : System

Constructs a new projectile.

Update ( GameTime gameTime ) : bool

Updates the projectile.

Method Details

Projectile() public method

Constructs a new projectile.
public Projectile ( ParticleSystem explosionParticles, ParticleSystem explosionSmokeParticles, ParticleSystem projectileTrailParticles, MovableEntity origin, MovableEntity aTarget ) : System
explosionParticles ParticleSystem
explosionSmokeParticles ParticleSystem
projectileTrailParticles ParticleSystem
origin Drought.Entity.MovableEntity
aTarget Drought.Entity.MovableEntity
return System

Update() public method

Updates the projectile.
public Update ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
return bool