Add basic map editor, change map system

This commit is contained in:
Anuken
2017-12-17 23:51:55 -05:00
parent 1b3d964b83
commit 1a8fdda421
34 changed files with 1237 additions and 465 deletions

View File

@@ -42,11 +42,10 @@ public class Pathfind{
if(Vars.world.raycastWorld(enemy.x, enemy.y, target.worldx(), target.worldy()) != null){
if(enemy.node > 1)
enemy.node = enemy.node - 1;
enemy.idletime = 0;
}else{
//must be blocked by a playermade block
//must be blocked by a playermade block, do nothing
}
enemy.idletime = 0;
}
//-1 is only possible here if both pathfindings failed, which should NOT happen