Example #1
0
 protected override void LoadContent()
 {
     viewMatrix = Matrix.CreateLookAt(new Vector3(0, 0, -200), new Vector3(0, 0, 0), new Vector3(0, 1, 0));
     projectionMatrix = Matrix.CreateOrthographic(GraphicsDevice.Viewport.Width / 5, GraphicsDevice.Viewport.Height / 5, -5000, 5000);
     explosionParticles = new ExplosionParticleSystem(this.Game, Shorewood.Content);
     projectileTrailParticles = new ProjectileTrailParticleSystem(this.Game, Shorewood.Content);
     explosionSmokeParticles = new ExplosionSmokeParticleSystem(this.Game, Shorewood.Content);
     projectileTrailParticles.DrawOrder = 300;
     explosionParticles.DrawOrder = 400;
     explosionSmokeParticles.DrawOrder = 100;
     explosionParticles.Initialize();
     projectileTrailParticles.Initialize();
     explosionSmokeParticles.Initialize();
     projectileTrailParticles.SelfLoad();
     explosionParticles.SelfLoad();
     explosionSmokeParticles.SelfLoad();
     explosionParticles.SetCamera(viewMatrix, projectionMatrix);
     projectileTrailParticles.SetCamera(viewMatrix, projectionMatrix);
     explosionSmokeParticles.SetCamera(viewMatrix, projectionMatrix);
     base.LoadContent();
 }