Basic map shading

This commit is contained in:
Anuken
2019-01-16 20:37:43 -05:00
parent 4344af1f02
commit 6d50a747e3
12 changed files with 66 additions and 23 deletions

View File

@@ -88,14 +88,7 @@ public class Blocks implements ContentList{
blockpart = new BlockPart();
spawn = new Block("spawn"){
public void drawShadow(Tile tile){}
public void draw(Tile tile){
Draw.color(Color.SCARLET);
Lines.circle(tile.worldx(), tile.worldy(), 4f +Mathf.absin(Time.time(), 6f, 6f));
Draw.color();
}
};
//Registers build blocks from size 1-6

View File

@@ -2,17 +2,17 @@ package io.anuke.mindustry.content;
import io.anuke.mindustry.game.ContentList;
import io.anuke.mindustry.game.Rules;
import io.anuke.mindustry.maps.generators.BasicGenerator;
import io.anuke.mindustry.maps.generators.MapGenerator;
import io.anuke.mindustry.type.ItemStack;
import io.anuke.mindustry.type.Zone;
public class Zones implements ContentList{
public Zone wasteland;
public Zone groundZero;
@Override
public void load(){
wasteland = new Zone("wasteland", new BasicGenerator(256, 256, Items.copper)){{
groundZero = new Zone("groundZero", new MapGenerator("groundZero")){{
deployCost = ItemStack.with(Items.copper, 100);
startingItems = ItemStack.with(Items.copper, 50);
alwaysUnlocked = true;