public PowerUp(int type, int x, int y){
		
		this.type = type;
		this.x = x;
		this.y = y;
		
		ImageIcon i = new ImageIcon(this.getClass().getResource(extraLife));
		extraLifeImage = i.getImage();
		ImageIcon i2 = new ImageIcon(this.getClass().getResource(machineGun));
		machineGunImage = i2.getImage();
		ImageIcon i3 = new ImageIcon(this.getClass().getResource(shotGun));
		shotGunImage = i3.getImage();
		ImageIcon i4 = new ImageIcon(this.getClass().getResource(laserGun));
		laserGunImage = i4.getImage();
		ImageIcon i5 = new ImageIcon(this.getClass().getResource(aBomb));
		aBombImage = i5.getImage();
		
		if ( type == 1){
			imageHeight = extraLifeImage.getHeight(null);
			imageWidth = extraLifeImage.getWidth(null);
		}
		if ( type == 2){
			imageHeight = shotGunImage.getHeight(null);
			imageWidth = shotGunImage.getWidth(null);
		}
		if ( type == 3){
			imageHeight = machineGunImage.getHeight(null);
			imageWidth = machineGunImage.getWidth(null);
		}
		if ( type == 4){
			imageHeight = laserGunImage.getHeight(null);
			imageWidth = laserGunImage.getWidth(null);
		}
		if ( type == 5){
			imageHeight = aBombImage.getHeight(null);
			imageWidth = aBombImage.getWidth(null);
		}
		
		currentframe = 0;
		spriteTimer = System.nanoTime();
		spriteDelay = 30000;
		
		dead = false;
		
	}