-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathm.java
More file actions
21 lines (21 loc) · 844 Bytes
/
Copy pathm.java
File metadata and controls
21 lines (21 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package snake;
import javax.swing.*;
import java.awt.*;
class m extends JFrame{
static int scx = 1920, scy = 1080, dx = 800, dy = 800;
static int sizeOfObjects = 10;
static boolean started = false;
static JFrame jf = new JFrame("Snake!");
static JLayeredPane jl = new JLayeredPane();
static pellet p = new pellet();
static s s = new s(p);
public static void main(String[] arguments){
jf.setSize(dx, dy);
jf.setDefaultCloseOperation(EXIT_ON_CLOSE);
jf.setContentPane(jl);
jf.setBackground(Color.BLACK);
jf.add(s);
jf.add(p);
jf.setVisible(true);
}
}