Changeset 819 for 2010/23/sijoseha/alpha/Effects/ParticleSystem.cs
- Timestamp:
- 2010-06-14 14:56:07 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
2010/23/sijoseha/alpha/Effects/ParticleSystem.cs
r803 r819 20 20 private Particle[] particles; 21 21 22 /// <summary> 23 /// There are variables that need to be set by subclasses 24 /// </summary> 22 25 #region Subclass variables 23 26 protected Vector2 position; … … 76 79 protected abstract void InitializeParticles(); 77 80 81 public override void Initialize() 82 { 83 for (int i = 0; i < maxAmountOfParticles; i++) 84 { 85 particles[i] = new Particle(); 86 } 87 base.Initialize(); 88 } 89 78 90 protected override void LoadContent() 79 91 { 92 particles = new Particle[maxAmountOfParticles]; 80 93 if (textureType == TextureType.Single) 81 94 { … … 87 100 outerTexture = game.Content.Load<Texture2D>(outerTextureName.ToString()); 88 101 } 102 89 103 base.LoadContent(); 104 } 105 106 public override void Update(GameTime gameTime) 107 { 108 109 base.Update(gameTime); 90 110 } 91 111 }
Note: See TracChangeset
for help on using the changeset viewer.