private void spawnParticles() {
		double tempXA = (-this.xa + (this.xa < 0 ? Math.random() : -Math.random())) / 4;
		double tempYA = (-this.ya + (this.ya < 0 ? Math.random() : -Math.random())) / 4;
		
		int openingLength = 5;
		int particleLife = (int) (Math.random() * 20 + 10);
		int xo = 0;
		int yo = 0;
		
		if(Math.abs(this.xa) > Math.abs(this.ya)) {
			if(this.xa < 0) {
				xo = this.width;
			}
			tempYA = Math.random() - Math.random();
			yo = (int)(Math.random() * openingLength) + (this.height - openingLength) / 2;
		} else {
			if(this.ya < 0) {
				yo = this.height;
			}
			tempXA = Math.random() - Math.random();
			xo = (int)(Math.random() * openingLength) + (this.width - openingLength) / 2;
		}
		
		if(Config.particles && xa != 0 || ya != 0)
			level.add(new Particle(this.x + xo, this.y + yo, tempXA, tempYA, 0xFF00FF00, particleLife));
	}