added credits so I can publish 0.0.4a
This commit is contained in:
parent
79c4678315
commit
75945b5907
1 changed files with 14 additions and 3 deletions
|
|
@ -136,6 +136,12 @@ public class update {
|
||||||
m.currentPlayerLocation = "observatoryZX311";
|
m.currentPlayerLocation = "observatoryZX311";
|
||||||
m.playerX = m.playerSizeX;
|
m.playerX = m.playerSizeX;
|
||||||
}
|
}
|
||||||
|
} else if (m.currentPlayerLocation.equals("credits")) { // these two lines are basically responsible for the ping poing of the player when he reaches the window border on the credits scene lol
|
||||||
|
if (m.playerX < 0) {
|
||||||
|
m.playerXVelocity = 20;
|
||||||
|
} else if (m.playerX > m.windowWidth-m.playerSizeX) {
|
||||||
|
m.playerXVelocity = -20;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// triggers render
|
// triggers render
|
||||||
|
|
@ -313,14 +319,19 @@ public class update {
|
||||||
g.setColor(new Color(20, 20, 20));
|
g.setColor(new Color(20, 20, 20));
|
||||||
g.fillRect(0, 0, m.windowWidth, 340+128);
|
g.fillRect(0, 0, m.windowWidth, 340+128);
|
||||||
if (m.playerX > 75) {
|
if (m.playerX > 75) {
|
||||||
g.drawImage(m.doorObservatory, 10, 340, 50, 128, m);
|
g.drawImage(m.doorObservatory, 0, 340, 50, 128, m);
|
||||||
|
if (m.playerX > m.windowWidth) {
|
||||||
|
m.playerX = -25;
|
||||||
|
m.currentPlayerLocation = "credits";
|
||||||
|
m.level = 4;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
g.setColor(Color.black);
|
g.setColor(Color.black);
|
||||||
g.fillRect(10, 340, 50, 127);
|
g.fillRect(0, 340, 50, 127);
|
||||||
g.setColor(Color.WHITE);
|
g.setColor(Color.WHITE);
|
||||||
g.setFont(m.caveat.deriveFont(Font.BOLD, 30f));
|
g.setFont(m.caveat.deriveFont(Font.BOLD, 30f));
|
||||||
g.drawString("Keep walking to the left thru the door to leave.", 180, m.windowHeight-35);
|
g.drawString("Keep walking to the left thru the door to leave.", 180, m.windowHeight-35);
|
||||||
if (m.playerX < 0) {
|
if (m.playerX < -m.playerSizeX) {
|
||||||
m.playerX = 320;
|
m.playerX = 320;
|
||||||
m.currentPlayerLocation = "observatoryZX311";
|
m.currentPlayerLocation = "observatoryZX311";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue