Added loading dialogs for saving
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user