1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-22 13:57:46 +03:00
This commit is contained in:
Anuken 2020-04-23 11:06:58 -04:00
parent 71e8c088a6
commit c6e4bf1fa4
2 changed files with 12 additions and 5 deletions

View File

@ -115,12 +115,19 @@ public class UnitType extends UnlockableContent{
//region drawing //region drawing
public void draw(Unitc unit){ public void draw(Unitc unit){
//TODO set Z for these things if(unit.isFlying()){
Draw.z(Layer.darkness);
drawShadow(unit);
}
Draw.z(Mathf.lerp(Layer.groundUnit, Layer.flyingUnit, unit.elevation()));
if(unit instanceof Legsc){
drawLegs((Legsc)unit);
}
drawShadow(unit);
drawOcclusion(unit); drawOcclusion(unit);
if(unit instanceof Legsc) drawLegs((Legsc)unit);
drawEngine(unit); drawEngine(unit);
drawBody(unit); drawBody(unit);
drawWeapons(unit); drawWeapons(unit);

View File

@ -1,3 +1,3 @@
org.gradle.daemon=true org.gradle.daemon=true
org.gradle.jvmargs=-Xms256m -Xmx1024m org.gradle.jvmargs=-Xms256m -Xmx1024m
archash=3c3c7f6d70e98d51d96412763d3c3a0724ca6751 archash=704ec7111c02545ef1ea7b73b72d815a7bc85147