Browse Source

Update and add GamePanel

main
Berkan Sarp 2 years ago
parent
commit
c9c6148b99
  1. 2
      src/main/java/GamePanel.java
  2. 15
      src/main/java/MenuPanel.java
  3. BIN
      target/classes/Main.class
  4. 1
      target/classes/java/build-project.sh
  5. 1
      target/classes/main/java/build-project.sh

2
src/main/java/GamePanel.java

@ -0,0 +1,2 @@
public class GamePanel {
}

15
src/main/java/MenuPanel.java

@ -1,2 +1,15 @@
public class MenuPanel {
import javax.swing.*;
import java.awt.*;
public class MenuPanel extends JPanel {
MenuPanel() {
this.addKeyListener(new MenuPanel.AL());
this.setBackground(Color.BLACK);
this.setFocusable(true);
this.setPreferredSize(GamePanel.SCREEN);
}
protected void paintComponent(Graphics g) {
super.paintComponent(g);
draw(g);
} }

BIN
target/classes/Main.class

1
target/classes/java/build-project.sh

@ -0,0 +1 @@
#!/usr/bin/bash

1
target/classes/main/java/build-project.sh

@ -0,0 +1 @@
#!/usr/bin/bash
Loading…
Cancel
Save