Exemple #1
0
        public ParticleStarSheet(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;

            InitiliazeParticleVertices();
        }
        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();
        }
Exemple #3
0
        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();
        }