progress
This commit is contained in:
@@ -217,6 +217,10 @@ public class Renderer implements ApplicationListener{
|
|||||||
Draw.draw(Layer.effect + 0.001f, bloom::render);
|
Draw.draw(Layer.effect + 0.001f, bloom::render);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Draw.draw(Layer.plans, overlays::drawBottom);
|
||||||
|
Draw.draw(Layer.overlayUI, overlays::drawTop);
|
||||||
|
Draw.draw(Layer.space, this::drawLanding);
|
||||||
|
|
||||||
blocks.drawBlocks();
|
blocks.drawBlocks();
|
||||||
|
|
||||||
Groups.draw.draw(Drawc::draw);
|
Groups.draw.draw(Drawc::draw);
|
||||||
@@ -224,8 +228,8 @@ public class Renderer implements ApplicationListener{
|
|||||||
Draw.reset();
|
Draw.reset();
|
||||||
Draw.flush();
|
Draw.flush();
|
||||||
Draw.sort(false);
|
Draw.sort(false);
|
||||||
/*
|
|
||||||
|
|
||||||
|
/*
|
||||||
blocks.drawBlocks(Layer.block);
|
blocks.drawBlocks(Layer.block);
|
||||||
if(state.rules.drawFog){
|
if(state.rules.drawFog){
|
||||||
blocks.drawFog();
|
blocks.drawFog();
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
package mindustry.entities.def;
|
package mindustry.entities.def;
|
||||||
|
|
||||||
|
import arc.graphics.g2d.*;
|
||||||
import arc.math.*;
|
import arc.math.*;
|
||||||
import arc.util.*;
|
import arc.util.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
@@ -109,6 +110,8 @@ abstract class BulletComp implements Timedc, Damagec, Hitboxc, Teamc, Posc, Draw
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(){
|
public void draw(){
|
||||||
|
Draw.z(Layer.bullet);
|
||||||
|
|
||||||
type.draw(this);
|
type.draw(this);
|
||||||
//TODO refactor
|
//TODO refactor
|
||||||
renderer.lights.add(x(), y(), 16f, Pal.powerLight, 0.3f);
|
renderer.lights.add(x(), y(), 16f, Pal.powerLight, 0.3f);
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
package mindustry.entities.def;
|
package mindustry.entities.def;
|
||||||
|
|
||||||
import arc.graphics.*;
|
import arc.graphics.*;
|
||||||
|
import arc.graphics.g2d.*;
|
||||||
import mindustry.annotations.Annotations.*;
|
import mindustry.annotations.Annotations.*;
|
||||||
import mindustry.entities.*;
|
import mindustry.entities.*;
|
||||||
import mindustry.gen.*;
|
import mindustry.gen.*;
|
||||||
|
import mindustry.graphics.*;
|
||||||
|
|
||||||
@EntityDef(value = {Effectc.class, Childc.class}, pooled = true)
|
@EntityDef(value = {Effectc.class, Childc.class}, pooled = true)
|
||||||
@Component
|
@Component
|
||||||
@@ -14,6 +16,7 @@ abstract class EffectComp implements Posc, Drawc, Timedc, Rotc, Childc{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void draw(){
|
public void draw(){
|
||||||
|
Draw.z(Layer.effect);
|
||||||
effect.render(id(), color, time(), rotation(), x(), y(), data);
|
effect.render(id(), color, time(), rotation(), x(), y(), data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=fc9a0ba82bb8e6c3a1640b57622b1ed6a1c1f9fe
|
archash=3c3c7f6d70e98d51d96412763d3c3a0724ca6751
|
||||||
|
|||||||
Reference in New Issue
Block a user