Wechat Mini Game Battle system

< H2 > problem source < / H2 >

recently Wechat Mini Game is very popular in moments; as an engineer, you can"t be left behind; start research; don"t use the development engine to develop; just the original set

< H2 > problem points < / H2 >

play Wechat; just for fission; see that many Mini Game have a war system; that is, invite friends; then An invites Bash B to join the game; A"s mobile phone will also provide all kinds of information about Synchronize B players; both sides can get information from Synchronize; check Mini Game"s API; and see socket; but can"t understand it; whether this needs a server in the end; player A needs to operate it; send it to the server through socket. Then the server sends it to B"s mobile phone?

< H2 > questions < / H2 >

ask the forum god to be able to solve the transmission process in the middle; it"s better to have a picture of the kind ~

.

first understand the principle of socket. How the socket client and server interact


check it out for yourself ~

Menu