package com.idk.game.entity.particle;

import com.idk.game.entity.Entity;
import com.idk.game.graphics.Sprite;
import java.util.ArrayList;
import java.util.List;


public class Particle extends Entity
{
    private List<Particle> particles = new ArrayList<>();
    private Sprite sprite; // Might move this into entity class...
    
    private int life;
    
    public Particle( int x, int y, int life )
    {
        this.x = x;
        this.y = y;
        this.life = life;
        
        sprite = Sprite.particle_normal;
        
        particles.add( this );
    }
    
    public Particle( int x, int y, int life, int amount )
    {
        this( x, y, life );
        for( int i = 0; i < amount - 1; i++ )
        {
            particles.add( new Particle( x, y, life ) );
        }
    }
}
@@ -67,16 +67,53 @@
 Entity;%0A
+import com.idk.game.graphics.Screen;%0A
 import c
@@ -697,24 +697,33 @@
  y, life );%0A
+        %0A
         for(
@@ -839,9 +839,126 @@
 %7D%0A    %7D%0A
+    %0A    public void update()%0A    %7B%0A        %0A    %7D%0A    %0A    public void render( Screen screen )%0A    %7B%0A        %0A    %7D%0A
 %7D

Particle man