Skip to content

Commit

Permalink
allow going up
Browse files Browse the repository at this point in the history
  • Loading branch information
SquidPony committed Mar 12, 2018
1 parent 2e9f648 commit 8db79cf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,10 @@ public void move(Direction dir) {
}

private void doMovement(int x, int y) {
if (y < 0) {
pressedUp = true;
y = 0;
}
// if (y < 0) {
// pressedUp = true;
// y = 0;
// }

Coord target = player.location.translate(x, y);
// if (target.equals(player.location)){
Expand Down Expand Up @@ -282,7 +282,7 @@ public void fall() {

player.stats.get(Stat.HUNGER).tick();

pressedUp = false;
// pressedUp = false;
update(scrollOffsetY + 1);
}

Expand Down

0 comments on commit 8db79cf

Please sign in to comment.