Removed sound assets / Fixed text wrap / Proper screen clear

This commit is contained in:
Anuken
2018-07-19 11:06:10 -04:00
parent 091f591ffb
commit 56fc40a64d
40 changed files with 28 additions and 33 deletions

View File

@@ -164,9 +164,7 @@ public abstract class InputHandler extends InputAdapter{
return false;
}
/**
* Handles tile tap events that are not platform specific.
*/
/**Handles tile tap events that are not platform specific.*/
boolean tileTapped(Tile tile){
tile = tile.target();

View File

@@ -443,9 +443,7 @@ public class MobileInput extends InputHandler implements GestureListener{
//call tap events
if(pointer == 0 && !selecting && mode == none){
if(!tileTapped(cursor.target()) && !tryTapPlayer(worldx, worldy)){
tryBeginMine(cursor);
}
tryTapPlayer(worldx, worldy);
}
return false;
@@ -567,6 +565,8 @@ public class MobileInput extends InputHandler implements GestureListener{
//add to selection queue if it's a valid BREAK position
cursor = cursor.target();
selection.add(new PlaceRequest(cursor.worldx(), cursor.worldy()));
}else if(!tileTapped(cursor.target()) && !canTapPlayer(worldx, worldy)){
tryBeginMine(cursor);
}else{ //else, try and carry units
if(player.getCarry() != null){
player.dropCarry(); //drop off unit