public void render(Graphics g){
		g.setColor(Color.black);
		if(lightx >= 0){
			g.fillRect(0, 0, lightx, Game.cam.height);
		}
		if(lighty >= 0){
			g.fillRect(lightx, 0, imageWidth, lighty+5);
		}
		
		if(lighty+imageHeight <= Game.cam.height){
			g.fillRect(lightx, lighty+imageHeight-5, imageWidth, Game.cam.height-lighty+imageHeight);
		}
		
		if(lightx+imageWidth <= Game.cam.width){
			g.fillRect(lightx+imageWidth, 0, Game.cam.width-(lightx+imageWidth), Game.cam.height);
		}
		
		
		g.drawImage(Game.loadedResources.lightImage, lightx, lighty, width, height,0,0,200,200);
	}