Initial reconstructor impl

This commit is contained in:
Anuken
2020-05-23 18:49:28 -04:00
parent d8ee862125
commit 46bc2207ff
69 changed files with 1000 additions and 968 deletions

View File

@@ -960,7 +960,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
}
}
class PlaceLine{
static class PlaceLine{
public int x, y, rotation;
public boolean last;
}

View File

@@ -139,17 +139,12 @@ public class MobileInput extends InputHandler implements GestureListener{
r1.setSize(req.block.size * tilesize);
r1.setCenter(other.worldx() + req.block.offset(), other.worldy() + req.block.offset());
if(r2.overlaps(r1)){
return req;
}
}else{
r1.setSize(other.block().size * tilesize);
r1.setCenter(other.worldx() + other.block().offset(), other.worldy() + other.block().offset());
if(r2.overlaps(r1)){
return req;
}
}
if(r2.overlaps(r1)) return req;
}
return null;
}

View File

@@ -105,7 +105,7 @@ public class Placement{
found = true;
break;
}
closed.add(Point2.pack((int)next.x, (int)next.y));
closed.add(Point2.pack(next.x, next.y));
for(Point2 point : Geometry.d4){
int newx = next.x + point.x, newy = next.y + point.y;
Tile child = world.tile(newx, newy);