updated groundY for the new sprite
This commit is contained in:
parent
d1841f0b3a
commit
41f1d820e1
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ public class update {
|
||||||
}
|
}
|
||||||
public static double getGroundY(Game m) {
|
public static double getGroundY(Game m) {
|
||||||
if (m.level == 3) {
|
if (m.level == 3) {
|
||||||
if (m.playerX > 290 && m.playerX < 572) { return 338; } else { return 366; }
|
if (m.playerX > 290 && m.playerX < 572) { return 338; } else { return 370; }
|
||||||
} else {
|
} else {
|
||||||
return m.windowHeight-m.playerSizeY;
|
return m.windowHeight-m.playerSizeY;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue