Fixed boulder sprites
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 224 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 358 B After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 389 B After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 253 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 709 B After Width: | Height: | Size: 711 B |
|
Before Width: | Height: | Size: 1.2 MiB After Width: | Height: | Size: 1.2 MiB |
|
Before Width: | Height: | Size: 254 KiB After Width: | Height: | Size: 254 KiB |
|
Before Width: | Height: | Size: 276 KiB After Width: | Height: | Size: 276 KiB |
|
Before Width: | Height: | Size: 133 KiB After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 401 KiB After Width: | Height: | Size: 402 KiB |
|
Before Width: | Height: | Size: 295 KiB After Width: | Height: | Size: 295 KiB |
|
Before Width: | Height: | Size: 278 KiB After Width: | Height: | Size: 278 KiB |
@@ -384,7 +384,7 @@ public class Blocks implements ContentList{
|
|||||||
|
|
||||||
darkMetal = new StaticWall("dark-metal");
|
darkMetal = new StaticWall("dark-metal");
|
||||||
|
|
||||||
pebbles = new OverlayFloor("pebbles");
|
pebbles = new DoubleOverlayFloor("pebbles");
|
||||||
|
|
||||||
tendrils = new OverlayFloor("tendrils");
|
tendrils = new OverlayFloor("tendrils");
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class Zones implements ContentList{
|
|||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
|
|
||||||
groundZero = new Zone("groundZero", new MapGenerator("groundZero", 1).decor(new Decoration(Blocks.snow, Blocks.snowrock, 0.01))){{
|
groundZero = new Zone("groundZero", new MapGenerator("groundZero", 1)){{
|
||||||
baseLaunchCost = ItemStack.with(Items.copper, -100);
|
baseLaunchCost = ItemStack.with(Items.copper, -100);
|
||||||
startingItems = ItemStack.list(Items.copper, 100);
|
startingItems = ItemStack.list(Items.copper, 100);
|
||||||
alwaysUnlocked = true;
|
alwaysUnlocked = true;
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ public class MapGenerator extends Generator{
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
decor(new Decoration(Blocks.snow, Blocks.snowrock, 0.01), new Decoration(Blocks.ignarock, Blocks.pebbles, 0.03f));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(Loadout loadout){
|
public void init(Loadout loadout){
|
||||||
this.loadout = loadout;
|
this.loadout = loadout;
|
||||||
@@ -126,7 +130,9 @@ public class MapGenerator extends Generator{
|
|||||||
|
|
||||||
if(tile.block() == Blocks.air && !(decor.wall instanceof Floor) && tile.floor() == decor.floor && Mathf.chance(decor.chance)){
|
if(tile.block() == Blocks.air && !(decor.wall instanceof Floor) && tile.floor() == decor.floor && Mathf.chance(decor.chance)){
|
||||||
tile.setBlock(decor.wall);
|
tile.setBlock(decor.wall);
|
||||||
}else if(tile.floor() == decor.floor && decor.wall instanceof Floor && Mathf.chance(decor.chance)){
|
}else if(tile.floor() == decor.floor && decor.wall.isOverlay() && Mathf.chance(decor.chance)){
|
||||||
|
tile.setOverlay(decor.wall);
|
||||||
|
}else if(tile.floor() == decor.floor && decor.wall.isFloor() && !decor.wall.isOverlay() && Mathf.chance(decor.chance)){
|
||||||
tile.setFloor((Floor)decor.wall);
|
tile.setFloor((Floor)decor.wall);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
package io.anuke.mindustry.world.blocks;
|
||||||
|
|
||||||
|
import io.anuke.arc.graphics.g2d.Draw;
|
||||||
|
import io.anuke.arc.math.Mathf;
|
||||||
|
import io.anuke.mindustry.world.Tile;
|
||||||
|
|
||||||
|
public class DoubleOverlayFloor extends OverlayFloor{
|
||||||
|
|
||||||
|
public DoubleOverlayFloor(String name){
|
||||||
|
super(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void draw(Tile tile){
|
||||||
|
Draw.colorl(0.4f);
|
||||||
|
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy() - 0.75f);
|
||||||
|
Draw.color();
|
||||||
|
Draw.rect(variantRegions[Mathf.randomSeed(tile.pos(), 0, Math.max(0, variantRegions.length - 1))], tile.worldx(), tile.worldy());
|
||||||
|
}
|
||||||
|
}
|
||||||