JAVA贪吃蛇源代码 SnakeGame.javapackage SnakeGame;import javax.swing.*;public class SnakeGamepublic static void main( String args )JDialog.setDefaultLookAndFeelDecorated( true );GameFrame temp = new GameFrame();Snake.javapackage SnakeGame;import java.awt.*;import java.util.*;class Snake extends LinkedListpublic int snakeDirection = 2;public int snakeReDirection = 4;public Snake()this.add( new Point( 3, 3 ) );this.add( new Point( 4, 3 ) );this.