Unit spawn instruction

This commit is contained in:
Anuken
2022-02-08 13:20:55 -05:00
parent 38c0284bbe
commit ec8952ed46
8 changed files with 103 additions and 7 deletions

View File

@@ -384,6 +384,7 @@ public class UnitAssembler extends PayloadBlock{
var plan = plan();
//draw the unit construction as outline
//TODO flashes when no gallium
Draw.draw(Layer.blockBuilding, () -> {
Draw.color(Pal.accent, warmup);
@@ -420,6 +421,9 @@ public class UnitAssembler extends PayloadBlock{
Drawf.buildBeam(px, py, spawn.x, spawn.y, plan.unit.hitSize/2f);
}
//fill square in middle
Fill.square(spawn.x, spawn.y, plan.unit.hitSize/2f);
Draw.reset();
Draw.z(Layer.buildBeam);