Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/rc' into Adrian
Browse files Browse the repository at this point in the history
  • Loading branch information
reihoron committed Jun 13, 2024
2 parents fe3cd0f + 0a53535 commit c300912
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
6 changes: 2 additions & 4 deletions Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ private void movement() {
}

private void jump() {
if (Greenfoot.isKeyDown("Space") && getOneObjectAtOffset((getImage().getHeight() / 2), (getImage().getHeight() / 2) + 1, Brick.class) != null) {
if (Greenfoot.isKeyDown("Space") && getOneObjectAtOffset(0, (getImage().getHeight() / 2) + 1, Brick.class) != null) {
jumpActs = 30;
} else if (Greenfoot.isKeyDown("Space") && getOneObjectAtOffset(-(getImage().getHeight() / 2), (getImage().getHeight() / 2) + 1, Brick.class) != null) {
jumpActs = 30;
}
}
if (jumpActs > 15) {
setLocation(getX(), getY() - 8);
}
Expand Down
20 changes: 10 additions & 10 deletions levels/1.csv
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@
17,6,1
16,6,1
15,6,1
3,10,10
4,10,10
6,10,10
7,10,10
11,10,10
12,10,10
3,10,11
4,10,11
6,10,11
7,10,11
11,10,11
12,10,11
15,7,1
15,8,1
18,2,1
Expand Down Expand Up @@ -100,8 +100,8 @@
23,8,1
28,2,1
29,2,1
30,10,10
31,10,10
30,10,11
31,10,11
29,3,1
29,4,1
29,5,1
Expand All @@ -113,8 +113,8 @@
32,10,1
32,9,1
32,8,1
33,10,10
34,10,10
33,10,11
34,10,11
35,10,1
35,9,1
35,8,1

0 comments on commit c300912

Please sign in to comment.