//Copy Tile object data to the background array private void copyTiletoBackground(Tile sourceTile, byte x_pos, byte y_pos) { for (int y = 0; y < 8; y++) { for (int x = 0; x < 8; x++) { backArray[x_pos + x, y_pos + y] = (byte)sourceTile.getPixel(x, y); } } }