Advertisement
Guest User

ParticleSpawner

a guest
Sep 10th, 2013
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. package main.Entity.spawner;
  2.  
  3. import main.Level;
  4. import main.Entity.particle.Particle;
  5. import main.Entity.spawner.Spawner.Type;
  6.  
  7. public class ParticleSpawner extends Spawner {
  8.  
  9. private int life;
  10.  
  11. public ParticleSpawner(int x, int y, int life, int amount, Level level) {
  12. super(x, y, Type.PARTICLE, amount, level);
  13. this.life = life;
  14. for (int i = 0; i < amount; i++) {
  15. level.add(new Particle(x, y, 50));
  16. }
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement