Browse Source

Update add Graphics

main
Berkan Sarp 2 years ago
parent
commit
17e6618a7c
  1. 3
      src/main/java/GamePanel.java
  2. 10
      src/main/java/MenuPanel.java

3
src/main/java/GamePanel.java

@ -1,2 +1,3 @@
import java.awt.*;
public class GamePanel {
}

10
src/main/java/MenuPanel.java

@ -13,3 +13,13 @@ public class MenuPanel extends JPanel {
super.paintComponent(g);
draw(g);
}
public void draw(Graphics g) {
g.setColor(Color.WHITE);
g.setFont(new Font("Consolas", Font.BOLD, 70));
g.drawString("GAME MENU", 330, 100);
g.setFont(new Font("Consolas", Font.BOLD, 30));
g.drawString("Press 'ENTER' to start the game", 265, 200);
g.setFont(new Font("Consolas", Font.PLAIN, 10));
g.drawString("Created by Hells Gamers", 450, 450);
}
Loading…
Cancel
Save