3D Battle Network Game C + + framework based on C/s architecture _02 system Design (overall design, overview design)

Source: Internet
Author: User

This series of blog mainly on the background of the game to introduce 3D PvP Network game Common Development technology and C + + advanced programming skills, with this knowledge, you can develop small and medium-sized game projects or 3D industrial simulation projects.

The author will be divided into the following three sections to introduce to you (daily update):

1, the realization of the basic communication framework, including the game needs analysis, design and development environment and the construction of communication framework;

2, the implementation of the network underlying operations, including the creation of thread pool, serialization network packets, etc.;

3, actual combat drills, to achieve similar to the CS counter-Strike 3D Battle Network game;

Technical points: C + + Object oriented thinking, network programming, QT interface Development, QT control knowledge, boost smart pointers, STL algorithm, STL, container, boost network library, OpenGL coordinate transformation, OpenGL load 3D model, MD2 model loading, MDL model loading

Well, let's start today's learning journey, the overall design and overview design of the system Design section.

First, design ideas

(1) Ideas:

Will from the game basic flow, Function module division, the client overall design, the System package diagram structure, server side function division, the client function divides six parts to carry on the game system design, here hoped that everybody can be familiar with the UML package diagram use method.

(2) Package diagrams Introduction:

In the modeling mechanism of UML, the organization of the model is implemented by the package. A package organizes the various models that are built to form modules for various functions or uses, and can control the visibility of elements in the package and describe the dependencies between packages. In this way, the implementation of the system model can grasp the structure of the system at the high level. Package diagrams is an important modeling tool for maintaining and describing the overall structure of the system, showing the dependencies between the modules and modules by describing the relationships between packages and packages.

(3) function of package diagram

Package diagrams can describe the requirements, the design of the high-level overview, package diagram through the rational planning of their own functional response system, the structure of the system to logically modular decomposition; package diagrams is ultimately the way to organize the source code.

second, the overall design of the game

(1) Game Flowchart:

(2) Function module diagram:

(3) Client overall design:

Three, game summary design

(1) System Package diagram:

(2) server-side package diagram:

(3) client package diagram:

Welcome everyone to learn to communicate, if there is insufficient to criticize correct, reproduced please indicate the source, thank you for your support. If you also like my blog can continue to follow me, let us grow together and progress together.

Life is wonderful. Remove impurities, leaving the search for the poor pole of programming pure pursuit.

3D Battle Network game C + + frame _02 system design based on C/s architecture (overall design, outline design)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.