Better conveyor physics / Performance test maps / Unit inventory begin

This commit is contained in:
Anuken
2018-04-09 20:25:08 -04:00
parent 6967093689
commit 5b11875a5a
17 changed files with 59 additions and 26 deletions

View File

@@ -43,7 +43,7 @@ public abstract class InputHandler extends InputAdapter{
}
public boolean cursorNear(){
return Vector2.dst(player.x, player.y, getBlockX() * tilesize, getBlockY() * tilesize) <= placerange;
return Vector2.dst(player.x, player.y, getBlockX() * tilesize, getBlockY() * tilesize) <= placerange || debug;
}
public boolean tryPlaceBlock(int x, int y, boolean sound){

View File

@@ -109,7 +109,7 @@ public enum PlaceMode{
}
},
areaDelete{
int maxlen = 20;
int maxlen = debug ? 999999: 20;
int tilex;
int tiley;
int endx;