source: 2010/23/sijoseha/alpha/Effects/Explosion.cs @ 10337

Revision 833, 1.3 KB checked in by sijoseha, 10 years ago (diff)

Building up.
We have something on the screen already!

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using Microsoft.Xna.Framework;
5using Microsoft.Xna.Framework.Audio;
6using Microsoft.Xna.Framework.Content;
7using Microsoft.Xna.Framework.GamerServices;
8using Microsoft.Xna.Framework.Graphics;
9using Microsoft.Xna.Framework.Input;
10using Microsoft.Xna.Framework.Media;
11using Microsoft.Xna.Framework.Net;
12using Microsoft.Xna.Framework.Storage;
13
14namespace Effects
15{
16    class Explosion : ParticleSystem
17    {
18
19        public Explosion(ParticleGame game)
20            : base(game)
21        {
22
23        }
24
25        protected override void InitializeParticles()
26        {
27            textureName = "Glow2";
28            innerTextureName = "Glow";
29            outerTextureName = "Glow2";
30
31            textureType = TextureType.Dual;
32
33            minLifetime = 0.5f;
34            maxLifetime = 1.0f;
35
36            minScale = 0.5f;
37            maxScale = 1.0f;
38
39            minVelocity = 20;
40            maxVelocity = 40;
41
42            rotation = 0.0f;
43            rotationSpeed = MathHelper.PiOver4;
44
45            maxAmountOfParticles = 6;
46        }
47
48        protected override void InitializeParticle(Particle p, Vector2 position)
49        {
50            base.InitializeParticle(p, position);
51        }
52    }
53}
Note: See TracBrowser for help on using the repository browser.