Fixed major quadtree resize bug

This commit is contained in:
Anuken 2017-05-03 21:32:01 -04:00
parent 88bebc8b99
commit b992a09c3c
4 changed files with 4 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -50,7 +50,7 @@ public class Control extends RendererModule{
public void init(){
Musics.shuffleAll();
Entities.initPhysics(0, 0, pixsize, pixsize);
Entities.initPhysics();
Entities.setCollider(tilesize, (x, y)->{
return World.solid(x, y);

View File

@ -58,7 +58,7 @@ public class GameState{
Enemy enemy = null;
if(wave%5 == 0 & pos <= wave/5){
if(wave%5 == 0 & pos < wave/5){
enemy = new BossEnemy(point);
}else if(wave > 3 && pos < amount/2){
enemy = new FastEnemy(point);

View File

@ -59,6 +59,8 @@ public class World{
}
}
Entities.resizeTree(0, 0, pixsize, pixsize);
Generator.generate(id);
Pathfind.reset();