The quality of people’s life is improving day by day. High levels of pressure followed. There is an urgent need for new and effective ways to relieve people’s pressure. The design is in line with social needs, Java push box game can let people in leisure, experience the fun of the game. It has the characteristics of simple operation and easy to use.
The gameplay of the box pushing game is very simple — control the character around obstacles to reach the destination. This graduation project is based on Java language. The game map is made into a general level design, the level is realized by two-dimensional array, the value range is set in the two-dimensional array to represent different objects, and the game picture initialization state is realized by using the traversal calculation method of two-dimensional array to load corresponding pictures. At the same time, through the initialization of a number of different two-dimensional arrays to achieve the game map level design, clever and simple method, effectively solve the problem of picture layout. Make full use of class and method calls to achieve game level initialization. Use the method of reading the key value to determine the game character to move, stop, arrive at the destination. The soothing music and interesting steps are sure to arouse many people’s interest. As a game with a long history, it can also cause people’s memories and resonance.