I was surprised yesterday that the csdn password was leaked. Today I came up to change the password and thought I hadn't written it on it for a long time.ArticleSo I decided to spend 30 minutes on it,
I have written some tips on the recently developed server background system for your reference:
I. Do not rush to code the server system before writing it. Please use paper to draw the entire frame for purchase. I would like to spend a few more days and draw a frame chart as detailed as possible.
In addition, if you want to think more about these things, you need to make up immediately.
2. coding starts. For the framework map you used earlier, the modules to be reused are organized in different categories and related derived functions are reserved for specific classes.
3. Try to use standard API encoding. Use less MFC or DLL, Lib, and OCX that are encapsulated by others and do not understand the principle, because once there is a bug, you will find the real reason.
4. Use as few skills as possible for the encoding language. If not necessary, some so-called skills may harm you, And the encoding style should be as concise and annotated as possible.
5. Generally, it is recommended that you have your own style in the dialog box frequently used by the system, such as "Press", "list", and "edit box.
6. Try to be human-friendly. On the interface that needs to communicate with users, add more tips and relevant AI judgment.
7. Database and communication protocol encryption must be completed. Do not learn csdn, save the password in plaintext, or transmit the password in MSN in plaintext.
8. Perform reinforcement tests as much as possible. For example, simulate thousands of users to connect to and enter the game at the same time, view CPU usage, and release memory.
9. In the demo version, we invite actual users to perform real online game tests, provide corresponding rewards, collect all feedback from actual users, and analyze and modify them carefully.
10. Provide the customer with effective communication with relevant players and listen to their voices after a period of time. If possible, try to satisfy their requirements.
In 30 minutes, it's almost enough. I am very busy and I don't know what to write. I hope I can help some new players, and I am very happy to hear from veterans and experts, continue working...