/** * 游戏主界面 */ public class NormalGame extends Canvas implements Runnable{ private Image image; //背景图片 private int imgX,imgY; //背景图片的坐标 private int[][] snake = new int[200][2]; //存储贪吃蛇节点坐标的二维数组0-X,1-Y private int snakeL; //蛇的长度 Random random = new Random();