@amasad/

Java Pacman

Java Swing

No description

fork
loading
Files
  • Main.java
  • images
  • Board$TAdapter.class
  • Board.class
  • Board.java
  • Main.class
  • Pacman.class
  • nohup.out

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4012063733922975","path":"Main.java","file":{"path":"Main.java","content":{"asEncoding":{"base64":"aW1wb3J0IGphdmEuYXd0LkV2ZW50UXVldWU7CmltcG9ydCBqYXZheC5zd2luZy5KRnJhbWU7CgpwdWJsaWMgY2xhc3MgTWFpbiB7CiAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewoKICAgICAgRXZlbnRRdWV1ZS5pbnZva2VMYXRlcigoKSAtPiB7CiAgICAgICAgICAgIFBhY21hbiBleCA9IG5ldyBQYWNtYW4oKTsKICAgICAgICAgICAgZXguc2V0VmlzaWJsZSh0cnVlKTsKICAgICAgICB9KTsKICB9Cn0KCmNsYXNzIFBhY21hbiBleHRlbmRzIEpGcmFtZSB7CgogICAgcHVibGljIFBhY21hbigpIHsKICAgICAgICAKICAgICAgICBpbml0VUkoKTsKICAgIH0KICAgIAogICAgcHJpdmF0ZSB2b2lkIGluaXRVSSgpIHsKICAgICAgICAKICAgICAgICBhZGQobmV3IEJvYXJkKCkpOwogICAgICAgIAogICAgICAgIHNldFRpdGxlKCJQYWNtYW4iKTsKICAgICAgICBzZXREZWZhdWx0Q2xvc2VPcGVyYXRpb24oRVhJVF9PTl9DTE9TRSk7CiAgICAgICAgc2V0U2l6ZSgzODAsIDQyMCk7CiAgICAgICAgc2V0TG9jYXRpb25SZWxhdGl2ZVRvKG51bGwpOwogICAgfQoKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCiAgCiAgICB9Cn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import java.awt.EventQueue;
import javax.swing.JFrame;

public class Main {
  public static void main(String[] args) {

      EventQueue.invokeLater(() -> {
            Pacman ex = new Pacman();
            ex.setVisible(true);
        });
  }
}

class Pacman extends JFrame {

    public Pacman() {
        
        initUI();
    }
    
    private void initUI() {
        
        add(new Board());
        
        setTitle("Pacman");
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setSize(380, 420);
        setLocationRelativeTo(null);
    }

    public static void main(String[] args) {

  
    }
}