Introduction - If you have any usage issues, please Google them yourself
Now there is a simple game interface framework, and the current program can control the main character "triangle" and "round" on the main interface by ujhk keys. The structure of the project is as follows: Scene.java is the main class, which implements the display of the interface and the response to keyboard control. The Role class is the parent class of the game role, which defines the way of up and down movement and the way to display the role. The Circle class is a circular role that has inherited the Role class and has all the methods in the Role class. The Triangle class is a triangle role that has inherited the Role class and has all the methods in the Role class. It is now required to extend the new role: such as a small man, a small car, and so on, that is, by inheriting the Role class, rewriting all the methods of the class, and creating the class objects in the Scene with new to control the new role!