Skip to content
Snippets Groups Projects
Commit 20f4e386 authored by Ahmed Loui Al Koasmh's avatar Ahmed Loui Al Koasmh
Browse files

Made End Game Display edits

parent be0424cf
No related branches found
No related tags found
No related merge requests found
......@@ -33,28 +33,33 @@ public class EndGameDisplay extends JPanel{
JLabel lblSnakeRevamped = new JLabel("GAME OVER");
lblSnakeRevamped.setForeground(new Color(255, 0, 0));
lblSnakeRevamped.setFont(new Font("GOST Common", Font.BOLD, 87));
lblSnakeRevamped.setBounds(200, 125, 501, 151);
lblSnakeRevamped.setBounds(220, 200, 501, 151);
lblSnakeRevamped.setSize(lblSnakeRevamped.getPreferredSize());
this.add(lblSnakeRevamped);
JButton btnPlayAgain = new JButton("Main Menu");
btnPlayAgain.setFont(new Font("Tahoma", Font.PLAIN, 32));
btnPlayAgain.setBounds(211, 297, 202, 79);
btnPlayAgain.addActionListener(new ActionListener() {
JButton btnEndGame = new JButton("Main Menu");
btnEndGame.setFont(new Font("Tahoma", Font.PLAIN, 32));
btnEndGame.setBounds(236, 297, 202, 79);
btnEndGame.setBackground(new Color(145,139,139));
btnEndGame.setForeground(Color.WHITE);
btnEndGame.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
goMenu = true;
}
});
this.add(btnPlayAgain);
this.add(btnEndGame);
JButton btnEndGame = new JButton("Play Again!");
btnEndGame.setFont(new Font("Tahoma", Font.PLAIN, 32));
btnEndGame.setBounds(443, 297, 202, 79);
btnEndGame.addActionListener(new ActionListener() {
JButton btnPlayAgain = new JButton("Play Again!");
btnPlayAgain.setFont(new Font("Tahoma", Font.PLAIN, 32));
btnPlayAgain.setBounds(468, 297, 202, 79);
btnPlayAgain.setBackground(new Color(145,139,139));
btnPlayAgain.setForeground(Color.WHITE);
btnPlayAgain.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
playAgain = true;
}
});
this.add(btnEndGame);
this.add(btnPlayAgain);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment