mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-01 10:24:25 +07:00
Minimap liquid shadow
This commit is contained in:
parent
fdfc43ce72
commit
44677d3697
@ -1,7 +1,6 @@
|
||||
package mindustry.ai.types;
|
||||
|
||||
import arc.math.*;
|
||||
import arc.util.*;
|
||||
import mindustry.*;
|
||||
import mindustry.entities.*;
|
||||
import mindustry.entities.units.*;
|
||||
@ -23,7 +22,6 @@ public class FlyingFollowAI extends FlyingAI{
|
||||
|
||||
if(shouldFaceTarget()){
|
||||
unit.lookAt(target);
|
||||
Log.info("lookAt target = @", target);
|
||||
}else if(following != null){
|
||||
unit.lookAt(following);
|
||||
}
|
||||
|
@ -226,6 +226,8 @@ public class MinimapRenderer{
|
||||
|
||||
if(tile.block() == Blocks.air && tile.y < world.height() - 1 && world.tile(tile.x, tile.y + 1).block().solid){
|
||||
color.mul(0.7f);
|
||||
}else if(tile.floor().isLiquid && (tile.y >= world.height() - 1 || !world.tile(tile.x, tile.y + 1).floor().isLiquid)){
|
||||
color.mul(0.84f, 0.84f, 0.9f, 1f);
|
||||
}
|
||||
|
||||
return color.rgba();
|
||||
|
Loading…
Reference in New Issue
Block a user