This commit is contained in:
Anuken
2020-01-02 14:08:41 -05:00
parent af9be8584e
commit cb76e80836
5 changed files with 8 additions and 5 deletions

View File

@@ -439,10 +439,12 @@ public class MobileInput extends InputHandler implements GestureListener{
@Override
public boolean touchDown(int screenX, int screenY, int pointer, KeyCode button){
if(state.is(State.menu) || player.isDead()) return false;
if(state.is(State.menu)) return false;
down = true;
if(player.isDead()) return false;
//get tile on cursor
Tile cursor = tileAt(screenX, screenY);