Lighting improvements

This commit is contained in:
Anuken
2019-11-10 16:18:47 -05:00
parent 39a0dde1f4
commit 52f592a357
24 changed files with 981 additions and 803 deletions
@@ -48,7 +48,7 @@ public class Blocks implements ContentList{
melter, separator, sporePress, pulverizer, incinerator, coalCentrifuge,
//sandbox
powerVoid, powerSource, itemSource, liquidSource, itemVoid, message,
powerVoid, powerSource, itemSource, liquidSource, itemVoid, message, light,
//defense
scrapWall, scrapWallLarge, scrapWallHuge, scrapWallGigantic, thruster, //ok, these names are getting ridiculous, but at least I don't have humongous walls yet
@@ -736,6 +736,10 @@ public class Blocks implements ContentList{
message = new MessageBlock("message"){{
requirements(Category.effect, ItemStack.with(Items.graphite, 5));
}};
light = new LightBlock("light"){{
requirements(Category.effect, ItemStack.with(Items.graphite, 5));
consumes.power(0.05f);
}};
//endregion
//region defense
+3 -1
View File
@@ -13,7 +13,7 @@ import io.anuke.mindustry.graphics.*;
import io.anuke.mindustry.type.*;
import io.anuke.mindustry.ui.Cicon;
import static io.anuke.mindustry.Vars.tilesize;
import static io.anuke.mindustry.Vars.*;
public class Fx implements ContentList{
public static Effect
@@ -456,6 +456,8 @@ public class Fx implements ContentList{
});
Draw.color();
renderer.lights.add(e.x, e.y, 20f * e.fslope(), Pal.lightFlame, 0.5f);
});
fireSmoke = new Effect(35f, e -> {