public ParticleBackground(GraphicsDevice graphicsDevice, Vector3 maxPosition, int maxParticles, Texture2D particleColorsTexture, ParticleSettings particleSettings, Effect particleEffect) { this.maxParticles = maxParticles; this.graphicsDevice = graphicsDevice; this.particleSettings = particleSettings; this.particleEffect = particleEffect; this.particleColorsTexture = particleColorsTexture; this.maxPosition = maxPosition; InitializeParticleVertices(); }
public ParticleExplosion(GraphicsDevice graphicsDevice, Vector3 position, int lifeLeft, int roundTime, int numParticlesPerRound, int maxParticles, Texture2D particleColorsTexture, ParticleSettings particleSettings, Effect particleEffect) { this.position = position; this.lifeLeft = lifeLeft; this.numParticlesPerRound = numParticlesPerRound; this.maxParticles = maxParticles; this.roundTime = roundTime; this.graphicsDevice = graphicsDevice; this.particleSettings = particleSettings; this.particleEffect = particleEffect; this.particleColorsTexture = particleColorsTexture; InitializeParticleVertices(); }