Implemented block breaking on Android

This commit is contained in:
Anuken
2018-05-31 16:27:30 -04:00
parent 24e7d755eb
commit 13b0c8880d
10 changed files with 569 additions and 411 deletions
@@ -30,7 +30,7 @@ public class Units {
Units.getNearby(rect, unit -> {
if(value[0]) return;
if(unit.hitbox.getRect(unit.x, unit.y).overlaps(rect)){
if(!unit.isFlying() && unit.hitbox.getRect(unit.x, unit.y).overlaps(rect)){
value[0] = true;
}
});