|
|
@ -1,5 +1,7 @@ |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.event.KeyAdapter; |
|
|
|
import java.awt.event.KeyEvent; |
|
|
|
|
|
|
|
public class MenuPanel extends JPanel { |
|
|
|
MenuPanel() { |
|
|
@ -22,4 +24,14 @@ public class MenuPanel extends JPanel { |
|
|
|
g.setFont(new Font("Consolas", Font.PLAIN, 10)); |
|
|
|
g.drawString("Created by Hells Gamers", 450, 450); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
public class AL extends KeyAdapter { |
|
|
|
|
|
|
|
public void keyPressed(KeyEvent e) { |
|
|
|
if (e.getKeyCode() == KeyEvent.VK_ENTER) { |
|
|
|
GameFrame gameFrame = new GameFrame(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |