public ParticleRenderer(String name, int number, int maxLife, Texture texture) {
        super("particleRenderer:"+name);
        this.particles = new ArrayList<Particle>(number);

        Random r = new Random();

        for (int i = 0; i<number;i++){
            particles.add(new Particle(new Vector2f(10,10),1 + r.nextInt(maxLife),texture));
        }
    }