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.setColor(oldColor);
|
||||||
g.setFont(oldFont);
|
g.setFont(oldFont);
|
||||||
if (isPaused || isDialogue) {
|
if (isPaused || isDialogue) {
|
||||||
// set player frame to 0 to prevent frame from changing when player moves
|
// set player frame to 7 to prevent frame from changing when player moves
|
||||||
playerFrame = 0;
|
playerFrame = 7;
|
||||||
Graphics2D g2d = (Graphics2D)(g);
|
Graphics2D g2d = (Graphics2D)(g);
|
||||||
// remove extraneous details from game when paused
|
// remove extraneous details from game when paused
|
||||||
g2d.setPaint(Color.white);
|
g2d.setPaint(Color.white);
|
||||||
|
|
|
@ -108,7 +108,7 @@ public class Player extends GenericSprite {
|
||||||
// calls parent
|
// calls parent
|
||||||
|
|
||||||
public boolean canUpdate(double x, double y) throws UnsupportedAudioFileException, LineUnavailableException, IOException {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
boolean canUpdate = true;
|
boolean canUpdate = true;
|
||||||
|
|
Loading…
Reference in New Issue