Differences between the C ++ background and pure C background for role-playing large-scale online games

Source: Internet
Author: User

For some reason, I use C ++ as the backgroundProgramStudio switched to a studio that uses pure C language as the game background,

 

Both sets of background programs can be claimed as the mature background architecture of China in role-playing games .. I have clearly understood the C ++ architecture because I have been reading it for two months.Code.

 

This pure C language is used by several well-known online game companies in China.

 

Then I realized the difference between object-oriented and structured language ....

 

 

Object-oriented design focuses more on objects. The relationship between objects is to abstract all entities in the game into entities. Processes the message relationships between entities.

 

But pureC LanguageBecause there is no object concept, it is dominated by message streams, taking messages as the trend, with hundreds of structs serving as the message carrier, and using many functions to process messages.

 

Self-perception C ++ may be more compatible with the actual object concept, but the C language pays more attention to message processing.

 

I think that unless you are a top-level architecture design master of C ++, the C ++ background will feel very heavy and tired...

 

But the pure C language made me feel his ease and ease. Clarity of thinking. It is okay to process messages step by step.

 

Therefore, the C language will be used for a long time. For background game development.

 

 

MoreArticle, Welcome to http://blog.csdn.net/wallwind

Copyright statement: You can reprint it at will. When you reprint it, be sure to indicate the original source and author information.

 

 

 

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.