0
In my code, I’m making a map in which one pixel for colored x, then the Sprite x will be put in it, example:
int pixelAtual = pixels[xx + (yy * map.getWidth())];
tiles[xx + (yy * WIDTH)] = new Floor_tile(xx*16, yy*16, Tile.TILE_FLOOR);
if(pixelAtual == 0xFF000000)
{
tiles[xx + (yy * WIDTH)] = new Floor_tile(xx*16, yy*16, Tile.TILE_FLOOR);
}
Meanwhile, I want to change the logic of if
and else if
for switch/case
. How would I write the code for this - using the color hexadecimals for verification?
That’s exactly what it was, Brigadier
– Lucca de Paula
For nothing, if it was solved do not forget to mark the answer.
– Maike Oliveira