Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (newHighScore) {
- g.setColor(Color.red);
- g.fillRect(85, 140, 350, 190);
- g.setColor(Color.red);
- g.setFont(new Font("Comic Sans", Font.BOLD, 60));
- g.drawString("Game Over", 99, 201);
- g.setColor(Color.black);
- g.setFont(new Font("Comic Sans", Font.BOLD, 60));
- g.drawString("Game Over", 100, 200);
- g.setColor(Color.red);
- g.setFont(new Font("Comic Sans", Font.BOLD, 40));
- g.drawString("Your Score: " + score2, 20 + 99, 201 + 50);
- g.setColor(Color.black);
- g.setFont(new Font("Comic Sans", Font.BOLD, 40));
- g.drawString("Your Score: " + score2, 20 + 100, 200 + 50);
- g.setColor(Color.red);
- g.setFont(new Font("Comic Sans", Font.BOLD, 40));
- g.drawString("High Score: " + hScore, 20 + 99, 201 + 100);
- g.setColor(Color.black);
- g.setFont(new Font("Comic Sans", Font.BOLD, 40));
- g.drawString("High Score: " + hScore, 20 + 100, 200 + 100);
- g.setColor(Color.black);
- g.setFont(new Font("Comic Sans", Font.BOLD, test1));
- g.drawString("Congratulations!!", 99 - 70, 201 + 200);
- g.setColor(Color.red);
- g.setFont(new Font("Comic Sans", Font.BOLD, test1));
- g.drawString("Congratulations!!", 100 - 70, 200 + 200);
- g.setColor(Color.black);
- g.setFont(new Font("Comic Sans", Font.BOLD, test1));
- g.drawString("New High Score!", 99 - 60, 201 + 260);
- g.setColor(Color.red);
- g.setFont(new Font("Comic Sans", Font.BOLD, test1));
- g.drawString("New High Score!", 100 - 60, 200 + 260);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement