Change ceiling height, default player frame
parent
46d7fa2dfe
commit
7595603e54
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue