Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spriteBatch = new SpriteBatch(GraphicsDevice);
- Particle.spriteBatch = spriteBatch;
- Particle.graphics = graphics;
- sprite = Content.Load<Texture2D>("circle");
- font = Content.Load<SpriteFont>("SpriteFont1");
- emitter = new Emitter[10];
- Color[] yellowRed = new Color[] { new Color(0.8f, 0.8f, 0.3f, 0.5f), new Color(0.8f, 0.3f, 0.3f, 0.5f) };
- Emitter.ParticleCreationData creationData = new Emitter.ParticleCreationData(50, new ParticleData(yellowRed, new Particle.Property(5, 5, -0.2f, 0), new Particle.Property(0, 0, 0, 0), new Particle.Property(50, 0, 10, 0), new Particle.Property(0, 0, 30, 0), sprite, false, 10000));
- for (int i = 0; i < 10; i++)
- {
- emitter[i] = new Emitter(new Vector2(400, 100 + i * 20), new Emitter.ParticleCreationData[] { creationData });
- }
Advertisement
Add Comment
Please, Sign In to add comment