Change ceiling height, default player frame

master
John 2022-06-20 12:41:58 -04:00
parent 46d7fa2dfe
commit 7595603e54
2 changed files with 3 additions and 3 deletions

View File

@ -263,8 +263,8 @@ public class GamePanel extends JPanel implements Runnable, KeyListener, Serializ
g.setColor(oldColor);
g.setFont(oldFont);
if (isPaused || isDialogue) {
// set player frame to 0 to prevent frame from changing when player moves
playerFrame = 0;
// set player frame to 7 to prevent frame from changing when player moves
playerFrame = 7;
Graphics2D g2d = (Graphics2D)(g);
// remove extraneous details from game when paused
g2d.setPaint(Color.white);

View File

@ -108,7 +108,7 @@ public class Player extends GenericSprite {
// calls parent
public boolean canUpdate(double x, double y) throws UnsupportedAudioFileException, LineUnavailableException, IOException {
if(this.y+y<=-HEIGHT){
if(this.y+y<=-(HEIGHT+Tile.length*2)){
return false;
}
boolean canUpdate = true;