Sokoban GameFrame

import javax.swing.JFrame;
public class GameFrame extends JFrame {
GamePanel gp;//property;
//construction method;
public GameFrame(){ 
this.setSize(500,500);//window size, 500 pixels;
this.setTitle(" Push the box");//Window title;
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//Close
        gp=new GamePanel();//Create a new drawing board
        this.add(gp);
this.setVisible(true); //display
}


}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325705106&siteId=291194637