Java Tile Array Issue
I am creating a 2D TileMap.I am using integers to determine tile type. I wanted to turn every grass tile(4) that neighbours at least one ocean tile(3) in to sand(1). public void geography() { for(int x=0; x<width; x++) { //Iterates through array for(int y=0; y<height; y++) { int counter = sametile(x,y,1,3); // uses a method… Read More Java Tile Array Issue