Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main.Entity.spawner;
- import main.Level;
- import main.Entity.particle.Particle;
- import main.Entity.spawner.Spawner.Type;
- public class ParticleSpawner extends Spawner {
- private int life;
- public ParticleSpawner(int x, int y, int life, int amount, Level level) {
- super(x, y, Type.PARTICLE, amount, level);
- this.life = life;
- for (int i = 0; i < amount; i++) {
- level.add(new Particle(x, y, 50));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement