Loads of bugfixes, gameplay tweaks

This commit is contained in:
Anuken
2018-06-22 19:14:50 -04:00
parent 57d5628750
commit 74878b5cb1
38 changed files with 748 additions and 568 deletions

View File

@@ -169,6 +169,9 @@ public abstract class InputHandler extends InputAdapter{
/**Returns the tile at the specified MOUSE coordinates.*/
Tile tileAt(float x, float y){
Vector2 vec = Graphics.world(x, y);
if(isPlacing()){
vec.sub(recipe.result.offset(), recipe.result.offset());
}
return world.tileWorld(vec.x, vec.y);
}