Changed to use new effects system

This commit is contained in:
Anuken
2017-11-18 20:40:04 -05:00
parent abb6cb9e9f
commit 858791de3b
36 changed files with 678 additions and 504 deletions
+3 -2
View File
@@ -6,6 +6,7 @@ import com.badlogic.gdx.ai.pfa.indexed.IndexedAStarPathFinder;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.utils.Array;
import io.anuke.mindustry.Fx;
import io.anuke.mindustry.Vars;
import io.anuke.mindustry.entities.enemies.Enemy;
import io.anuke.mindustry.world.Tile;
@@ -85,9 +86,9 @@ public class Pathfind{
}
if(Vars.debug)
if(Vars.debug && Vars.showPaths)
for(Tile tile : path){
Effects.effect("ind", tile.worldx(), tile.worldy());
Effects.effect(Fx.ind, tile.worldx(), tile.worldy());
}
}