public void setTilePixel(Sprite sprite, int x, int y){
		int xa = 0, ya = 0,n=0;
		//if(x > 0 && y > -32 && x < GameWindow.WIDTH+1 && y < GameWindow.HEIGHT+1)
			for(int hrzt = 0; hrzt < sprite.SIZE; hrzt++){
				for(int vtc = 0; vtc < sprite.SIZE; vtc++){
					xa =  (hrzt + x);
					ya =  (vtc + y);
				if(xa < width && xa > 0)
					if (xa + ya * width<width*height && xa + ya * width > 0){
						if(sprite.pixels[hrzt + vtc * sprite.SIZE] != 0xff000000 && sprite.pixels[hrzt + vtc * sprite.SIZE] != 0){
							rGameScreen.tilePixels[xa + ya * width] = sprite.pixels[hrzt + vtc * sprite.SIZE];
						}
					}
					n++;
				}
			}
		
		//System.out.println(n+" nnnnnnnn");
	}