When you meet the system design, you can analyze it, the system involves the key modules, how the modules are related, and then through the UML to draw the relationship between these modules, and finally start programming. Do not start programming at a glance, so late will be very troublesome, now shooting games, through the UML modeling example:
first of all, 3D shooting games generally The system is divided into three sub-modules: Shooting module, interface module and scene module. The shooting module includes the particle module, the interface module includes the initial interface, the control Panel, the user management and the level setting, the scene module includes the Solar Halo module, the tree module, the building module and the ground rendering module. The organic combination of these three subsystems constitutes a 3D shooting game.
650) this.width=650; "title=" 1111.png "src=" http://s3.51cto.com/wyfs02/M00/57/84/wKiom1ScuVKC8JfYAACsQ_K_ Pbw757.jpg "alt=" Wkiom1scuvkc8jfyaacsq_k_pbw757.jpg "/>
The game scene class diagram We are designed as follows:
650) this.width=650; "title=" 222.png "src=" http://s3.51cto.com/wyfs02/M00/57/84/ Wkiom1scubzqyowtaaecyezuujc104.jpg "alt=" Wkiom1scubzqyowtaaecyezuujc104.jpg "/>
The architecture package diagram of the game architecture is designed as follows:
650) this.width=650; "title=" 333.png "src=" Http://s3.51cto.com/wyfs02/M02/57/82/wKioL1ScutLxe50PAAFuZvEl_ Gc008.jpg "alt=" Wkiol1scutlxe50paafuzvel_gc008.jpg "/>
Game shooting of the Swimlane design diagram:
650) this.width=650; "title=" 444.png "src=" http://s3.51cto.com/wyfs02/M02/57/84/ Wkiom1scunpcv7b3aaiq00hnqnw387.jpg "alt=" Wkiom1scunpcv7b3aaiq00hnqnw387.jpg "/>
The overall architecture of the 3D shooting game, and use rational rose modeling tools to design the game's various module class views.
By designing the results we achieve:
650) this.width=650; "title=" 555.jpg "src=" http://s3.51cto.com/wyfs02/M00/57/82/ Wkiol1scvcwcerxyaacz0jr1hys224.jpg "alt=" Wkiol1scvcwcerxyaacz0jr1hys224.jpg "/>
Everyone in the design of the use of UML modeling tools, so that the early work, although more, the later effect will be better.
This article is from the "Kaiyukan mobile" blog, so be sure to keep this source http://jxwgame.blog.51cto.com/943299/1596121
Using UML to build the frame of shooting game