StartGame

package com.he.gui.snake;

import javax.swing.*;

//游戏的主启动类
public class StartGame {
public static void main(String[] args) {
JFrame frame = new JFrame();

    frame.setBounds(10,10,900,720);
    frame.setResizable(false);//窗口大小不可改变

    frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
    //正常的游戏界面都应该在面板上面
    frame.add(new GamePanel2());
    frame.setVisible(true);
}

}

posted @ 2023-07-19 03:20  和某人  阅读(79)  评论(0)    收藏  举报