Improved floodfill / Fixed resource use bug / Fixed editor turret draw

This commit is contained in:
Anuken
2018-07-17 23:20:05 -04:00
parent d4b2cad94e
commit be9ea33aa4
8 changed files with 105 additions and 22 deletions

View File

@@ -19,6 +19,8 @@ public class Sector{
public transient Texture texture;
/**Goal of this sector-- what needs to be accomplished to unlock it.*/
public transient Goal goal = new WaveGoal(30);
/**Sector size; if more than 1, the coordinates are the bottom left corner.*/
public int size = 1;
public SaveSlot getSave(){
return control.getSaves().getByID(saveID);

View File

@@ -16,6 +16,7 @@ import static io.anuke.mindustry.Vars.*;
public class Sectors{
private static final int sectorImageSize = 16;
private static final float sectorLargeChance = 0.1f;
private GridMap<Sector> grid = new GridMap<>();