-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoseScreen.pde
43 lines (39 loc) · 1.04 KB
/
LoseScreen.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
class LoseScreen extends Level {
LoseScreen() {
super();
}
void update() {
pushMatrix();
background(0);
textSize(50);
textFont(stamp50);
textAlign(CENTER);
fill(255);
text("YOU LOST.", width/2, 200);
text("Press TAB to return to menu.", width/2, height-200);
text("You killed " + emusKilled + " emus.", width/2, 500);
// High score stuff that was not completed.
/*
rectMode(CENTER);
fill(150);
rect(960, 540, 400, 500);
fill(255);
text("SCORE: " + killed, width/2, 300);
fill(0);
textAlign(CENTER);
textSize(50);
textSize(20);
text("High Scores", 960, 330);
text("Enter your name: " + name, 960, 360);
for (int i = 0; i < scores.getRowCount(); i++) {
if (scores.getRowCount() > 0) {
text(scores.getString(i, 4), width/2 - 60, 430 + i*40);
text(scores.getInt(i, 1), width/2 + 60, 430 + i*40);
}
}
text("Press ENTER to submit.", width/2, 900);
text("RIGHT CLICK to restart.", width/2, 950);
*/
popMatrix();
}
}