Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.80 KB | None | 0 0
  1.            if (newHighScore) {
  2.             g.setColor(Color.red);
  3.             g.fillRect(85, 140, 350, 190);
  4.             g.setColor(Color.red);
  5.             g.setFont(new Font("Comic Sans", Font.BOLD, 60));
  6.             g.drawString("Game Over", 99, 201);
  7.             g.setColor(Color.black);
  8.             g.setFont(new Font("Comic Sans", Font.BOLD, 60));
  9.             g.drawString("Game Over", 100, 200);
  10.             g.setColor(Color.red);
  11.             g.setFont(new Font("Comic Sans", Font.BOLD, 40));
  12.             g.drawString("Your Score: " + score2, 20 + 99, 201 + 50);
  13.             g.setColor(Color.black);
  14.             g.setFont(new Font("Comic Sans", Font.BOLD, 40));
  15.             g.drawString("Your Score: " + score2, 20 + 100, 200 + 50);
  16.             g.setColor(Color.red);
  17.             g.setFont(new Font("Comic Sans", Font.BOLD, 40));
  18.             g.drawString("High Score: " + hScore, 20 + 99, 201 + 100);
  19.             g.setColor(Color.black);
  20.             g.setFont(new Font("Comic Sans", Font.BOLD, 40));
  21.             g.drawString("High Score: " + hScore, 20 + 100, 200 + 100);
  22.                 g.setColor(Color.black);
  23.                 g.setFont(new Font("Comic Sans", Font.BOLD, test1));
  24.                 g.drawString("Congratulations!!", 99 - 70, 201 + 200);
  25.                 g.setColor(Color.red);
  26.                 g.setFont(new Font("Comic Sans", Font.BOLD, test1));
  27.                 g.drawString("Congratulations!!", 100 - 70, 200 + 200);
  28.                 g.setColor(Color.black);
  29.                 g.setFont(new Font("Comic Sans", Font.BOLD, test1));
  30.                 g.drawString("New High Score!", 99 - 60, 201 + 260);
  31.                 g.setColor(Color.red);
  32.                 g.setFont(new Font("Comic Sans", Font.BOLD, test1));
  33.                 g.drawString("New High Score!", 100 - 60, 200 + 260);
  34.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement