private void saveTiles ( FileWriting file , int widthInTile , int step , int s ) throws IOException { for ( int tx = 0 ; tx < widthInTile ; tx ++ ) { for ( int ty = 0 ; ty < map . getInTileHeight ( ) ; ty ++ ) { final Tile tile = map . getTile ( tx + s * step , ty ) ; if ( tile != null ) { saveTile ( file , tile ) ; } } } }
Save the active tiles .