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.
Afficher le fichier Open project: kiniry-teaching/UCD

Méthodes publiques

Méthode 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 méthode

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
Résultat System

Update() public méthode

Updates the projectile.
public Update ( GameTime gameTime ) : bool
gameTime Microsoft.Xna.Framework.GameTime
Résultat bool