Added loading dialogs for saving

This commit is contained in:
Anuken
2017-08-08 12:20:26 -04:00
parent 6ce2f0ef25
commit eabdc3d27d
10 changed files with 71 additions and 19 deletions

View File

@@ -53,6 +53,10 @@ public class AndroidInput extends InputAdapter{
Tile tile = selected();
player.breaktime += Mathf.delta();
if(player.breaktime >= tile.block().breaktime){
if(tile.block().drops != null){
Inventory.addItem(tile.block().drops.item, tile.block().drops.amount);
}
Effects.effect("break", tile.worldx(), tile.worldy());
Effects.shake(3f, 1f);
tile.setBlock(Blocks.air);

View File

@@ -86,6 +86,10 @@ public class Input{
Tile tile = cursor;
player.breaktime += Mathf.delta();
if(player.breaktime >= tile.block().breaktime){
if(tile.block().drops != null){
Inventory.addItem(tile.block().drops.item, tile.block().drops.amount);
}
Effects.effect("break", tile.worldx(), tile.worldy());
Effects.shake(3f, 1f);
tile.setBlock(Blocks.air);