The opening frame synchronization Battle City

Recently wrote before I rewrite Tencent game online Battle engine (hereinafter referred to as MGOBE) Tankedaizhan. Because of the limited time, every day from work to engage in leisure time, but also the first to write a frame synchronization, and therefore encountered many problems, and therefore learned a lot. (I do not understand this framework can look at me briefly before and why I use this framework: surprise !!! gospel individual game developers are coming! )

At present main function is to match the system and smooth movement of the frame synchronization, feel the effect can be, but there are still many places need to be optimized.

Due to inability to upload videos, you want to see the video effect can be public concern No. "Should the breeze" Find recent article to see a frame synchronization.

Matching system: including licensed games, access openid so on. Matching set 15 seconds timeout will be prompted to re-match, or cancel the match.

Frame synchronous mobile: smoothing movement, a variety of test methods. Tried dead reckoning prediction and smoothing algorithm does not know, or for other reasons, in short, is not satisfactory, the final interpolation algorithm used.

This article today, mainly to explain, preparatory work MGOBE framework, the configuration of the environment.

  1. Open the product page https://cloud.tencent.com/product/mgobe, click immediately into the console .
    file
  2. Click on the left [Game Overview] menu, then add the games, fill in basic information about the game.
    file
  3. Click Next, enter the service opening page, click OK, that is created.
    file
  4. After creating, displaying basic information. Where the game id, key games and domain name are our future needs
    file

All right. Today understand the basic overview of MGOBE framework, the next, they begin to explain in detail the matching system.

Guess you like

Origin www.cnblogs.com/starry-skys/p/11980423.html