public void generateParticles(){
        if (ParticleSystem.enabled)
            for(int i = 0; i < 4 * intensity; ++i)
                try {
                    ParticleSystem.addParticle(newParticle());
                } catch (IllegalArgumentException e) {
                    e.printStackTrace();
                }
    }