CN106606865B - Method and system for data intercommunication in game, terminal and server thereof - Google Patents

Method and system for data intercommunication in game, terminal and server thereof Download PDF

Info

Publication number
CN106606865B
CN106606865B CN201510706949.8A CN201510706949A CN106606865B CN 106606865 B CN106606865 B CN 106606865B CN 201510706949 A CN201510706949 A CN 201510706949A CN 106606865 B CN106606865 B CN 106606865B
Authority
CN
China
Prior art keywords
server
computer
mobile terminal
terminal
mobile
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510706949.8A
Other languages
Chinese (zh)
Other versions
CN106606865A (en
Inventor
吴月
吴伟聪
龙昌麟
李启均
龚超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201510706949.8A priority Critical patent/CN106606865B/en
Publication of CN106606865A publication Critical patent/CN106606865A/en
Application granted granted Critical
Publication of CN106606865B publication Critical patent/CN106606865B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/10Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
    • A63F2300/1025Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals details of the interface with the game device, e.g. USB version detection
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/40Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of platform network
    • A63F2300/402Communication between platforms, i.e. physical link to protocol
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/57Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
    • A63F2300/572Communication between players during game play of non game information, e.g. e-mail, chat, file transfer, streaming of audio and streaming of video
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method and a system for data intercommunication in games of a computer terminal and a mobile terminal, wherein the method comprises the following steps: establishing an incidence relation between a computer server and a mobile server; when a user logs in a computer terminal through a game account and establishes connection with a computer server, judging whether the mobile terminal establishes connection with the mobile server through the same game account; if the mobile terminal is not connected with the mobile terminal server, the computer server sends game data to the computer terminal; if the mobile terminal is connected with the mobile terminal server, the mobile terminal server is disconnected from the communication connection with the mobile terminal, and the computer server sends game data to the computer terminal. Meanwhile, the invention also provides a system for realizing the data intercommunication in the game of the method.

Description

Method and system for data intercommunication in game, terminal and server thereof
Technical Field
The invention relates to a data intercommunication method of a computer terminal and a mobile terminal, in particular to a data intercommunication method in games of the computer terminal and the mobile terminal; the invention also relates to a system for implementing the method.
Background
Currently, mobile games are more popular, and more players are available. Most of the existing games can be operated at a computer terminal and also can be operated at a mobile phone terminal. However, the existing computer-end game and the existing mobile phone-end game are two independent games during battle, and cannot be communicated with each other. When the player logs in at the computer end, the connection between the computer end and the server is established, the server sends the game data to the computer end, and the computer end and the server carry out data intercommunication. When the mobile terminal logs in, the mobile terminal establishes connection with the server, the server sends the game data to the mobile terminal, and the mobile terminal and the server perform data intercommunication. Because the computer end and the mobile end are connected with the server independently and request data independently, when the computer end plays games, if the mobile end logs in, the game data between the computer end and the server cannot be transmitted to the mobile end immediately, and at the moment, the mobile end needs to be connected with the server again to perform data intercommunication.
Such as: when the player plays games at the computer, the player needs to leave the computer if the player needs to go out in an emergency. If the player happens to be in team fighting, the team is required to be stopped and the fighting cannot be continued, so that the game experience of the player is influenced. Even if the mobile terminal logs in at this time, the original combat data cannot be transferred to the mobile terminal, and only the team can be regrouped to restart a new combat.
In addition, because the combat at the mobile phone end can not be communicated with the game data at the computer end, the chat and skill control can not be carried out at the same time, and the experience of the player in the game operation is influenced. Such as: when the player fights at the computer, the chat conversation with teammates or other players cannot be transmitted to the mobile terminal in real time. When the mobile terminal logs in, the mobile terminal cannot continue the chat originally at the computer terminal. Meanwhile, when the fighting skill control is carried out on the computer end, because the fighting data cannot be transmitted to the mobile end in time, the game cannot be taken over when the mobile end logs in, and the skill control is carried out at the same time, so that only new fighting can be restarted.
On the other hand, when the mobile terminal initially registers, the mobile terminal performs a battle. When the mobile terminal has a fault or other reasons and the player needs to log in the computer terminal, the team formation can be carried out again only at the computer terminal to start a new battle. If the battle at the mobile terminal is not finished, only the original battle can be finished at the moment, and the original battle data cannot be managed by the computer terminal. Thus, the player experience is severely affected.
Disclosure of Invention
The invention provides a method and a system for data intercommunication in games of a computer terminal and a mobile terminal, aiming at overcoming the defects of the prior art.
The invention is realized by the following technical scheme: a method for data intercommunication in games of a computer terminal and a mobile terminal comprises the following steps:
establishing an incidence relation between a computer server and a mobile server; and the computer terminal performs data interaction with the computer server when logging in; when the mobile terminal logs in, data interaction is carried out between the mobile terminal and the computer server through the mobile terminal server;
when a user logs in a computer terminal through a game account and establishes connection with a computer server, judging whether the mobile terminal establishes connection with the mobile server through the same game account;
if the mobile terminal is not connected with the mobile terminal server, the computer server sends game data to the computer terminal;
if the mobile terminal is connected with the mobile terminal server, the mobile terminal server is disconnected from the communication connection with the mobile terminal, and the computer server sends game data to the computer terminal.
Compared with the prior art, the method and the system adopt the computer-side server and the mobile-side server which are respectively used for data intercommunication with the computer terminal and the mobile terminal. And, the computer server and the mobile server are associated. When the mobile terminal logs in firstly, the mobile terminal forwards game data through the mobile terminal server, so that the mobile terminal and the computer server perform data intercommunication. When the computer terminal logs in, the connection with the computer server is established, at the moment, the computer server is disconnected with the mobile terminal through the mobile server, and then the game data stored in the computer server by the original mobile terminal is directly sent to the computer terminal, so that the computer terminal can take over the game of the original mobile terminal. Therefore, even when the mobile terminal is in battle, the computer-side server can send the battle data to the computer terminal, so that the player can continue the original unfinished battle without forming a team again at the computer terminal. Therefore, the invention enables the data intercommunication between the computer end and the mobile phone end, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the players keep the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
As a further improvement of the present invention, when a user logs in at a computer terminal through a game account and establishes a connection to the computer server, the method further comprises:
judging whether other computer terminals establish connection with the computer terminal server through the same game account number;
if the other computer terminals are not connected with the computer server, the computer server sends game data to the computer terminals;
if the other computer terminals are connected with the computer terminal server, the computer terminal server is disconnected from the communication connection with the other computer terminals, and the computer terminal server sends game data to the computer terminals. The invention further detects other computer terminals, so that a plurality of computer terminals can be prevented from logging in by using the same game account number at the same time.
As a further improvement of the present invention, the step of establishing an association relationship between the computer server and the mobile server specifically includes:
establishing a global association table, recording and storing the association relationship between the computer server and the mobile server, and storing the association relationship in an HTTP server;
when a computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
The invention further uses the HTTP server to store the association relationship between the computer server and the mobile server, thereby facilitating the connection of the corresponding server when the computer server or the mobile server is started.
As a further improvement of the present invention, the step of determining whether the mobile terminal establishes a connection with the mobile terminal server through the same game account specifically includes:
the computer server accesses the mobile server, and judges whether the mobile terminal is connected with the mobile server through the game account number or not through the mobile server;
the mobile terminal server feeds back the judgment result to the computer terminal server.
As a further improvement of the present invention, the step of sending the game data to the computer terminal by the computer server specifically includes:
judging whether the user fights at the computer terminal, if so, allowing the user to enter a fighting protection period by the computer-side server, and taking over fighting actions by the AI system; if not, the computer server sends login information to the computer terminal;
the computer end server checks whether the user is in a battle protection period, if so, the computer end server sends battle field data to the computer terminal, and the computer terminal recovers the battle field according to the received field data and sends a battle control request to the computer end server; if not, directly completing the login.
Furthermore, the invention can effectively solve the defect that the player can not carry out real-time operation when the mobile terminal is switched into the computer terminal by using the AI system (intelligent system) to take over the battle. When the player logs in at the computer terminal, the player continues to play the game at the computer terminal.
The present invention also provides another embodiment: a method for data intercommunication in games of a computer terminal and a mobile terminal comprises the following steps:
establishing an incidence relation between a computer server and a mobile server; and the computer terminal performs data interaction with the computer server when logging in; when the mobile terminal logs in, data interaction is carried out between the mobile terminal and a computer server through a mobile server;
when a user logs in a mobile terminal through a game account and establishes connection with a mobile terminal server, judging whether a computer terminal establishes connection with the computer terminal server through the same game account;
if the computer terminal is not connected with the computer server, the computer server sends game data to the mobile server, and the game data is forwarded to the mobile terminal by the mobile server;
if the computer terminal is connected with the computer server, the computer server is disconnected from the communication connection with the computer terminal, and sends the game data to the mobile server, and then the mobile server forwards the game data to the mobile terminal.
Compared with the prior art, the method and the system adopt the computer-side server and the mobile-side server which are respectively used for data intercommunication with the computer terminal and the mobile terminal. And, the computer server and the mobile server are associated. When the computer terminal logs in first, the computer terminal and the computer server perform data intercommunication. When the mobile terminal logs in, the connection with the mobile terminal server is established, at the moment, the computer terminal server is disconnected with the computer terminal, and then the game data stored in the computer terminal server by the original computer terminal is directly forwarded to the mobile terminal through the mobile terminal server, so that the mobile terminal can take over the game of the original computer terminal. Therefore, even when the computer terminal is in battle, the computer server can send the battle data to the mobile terminal, so that the player can continue the original unfinished battle without being used for re-team formation at the mobile terminal. Therefore, the invention enables the data intercommunication between the computer end and the mobile phone end, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the players keep the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
As a further improvement of the present invention, when a user logs in a mobile terminal through a game account and establishes a connection to the mobile terminal server, the method further includes:
judging whether other mobile terminals establish connection with the mobile terminal server through the same game account;
if the other mobile terminals are not connected with the mobile terminal server, the computer server sends data to the mobile terminal server, and the data are forwarded to the mobile terminal by the mobile terminal server;
if the other mobile terminals are connected with the mobile terminal server, the mobile terminal server disconnects the communication connection with the other mobile terminals, and the mobile terminal server sends the game data to the mobile terminals.
The invention further detects other mobile terminals, so that a plurality of mobile terminals can be prevented from logging in by using the same game account number at the same time.
As a further improvement of the present invention, the step of establishing an association relationship between the computer server and the mobile server specifically includes:
establishing a global association table, recording and storing the association relation between the computer server and the mobile server, and storing the association relation in an HTTP server;
when a computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
The global association table is stored through the HTTP server, so that the corresponding server can be conveniently and quickly searched when the computer server and the mobile server are started, and the association relationship is quickly established.
As a further improvement of the present invention, the step of determining whether the computer terminal establishes a connection with the computer server through the same game account specifically includes:
the mobile terminal server accesses the computer server and judges whether the computer terminal is connected with the computer server through the game account number at the moment through the computer server;
and the computer server feeds back the judgment result to the mobile server.
As a further improvement of the present invention, the step of disconnecting the communication connection with the computer terminal by the computer server, sending the game data to the mobile server, and forwarding the game data to the mobile terminal by the mobile server specifically includes:
judging whether the user fights at the computer terminal, if so, allowing the user to enter a fighting protection period by the computer-side server, and taking over fighting actions by the AI system; if not, the computer server sends the login information to the mobile server, and the mobile server forwards the login information to the mobile terminal;
the computer end server checks whether the user is in a combat protection period, if so, the computer end server sends the combat field data to the mobile end server and forwards the combat field data to the mobile terminal, and the mobile terminal recovers the combat field according to the received field data, sends a combat control request to the mobile end server and forwards the combat control request to the computer end server; if not, directly completing the login.
Further by using the AI system, players can be helped to take over the game when they switch devices. When the player logs in at the mobile terminal, the player continues playing the game.
The invention also provides a data intercommunication system in the computer end and mobile end games, which comprises a computer end server end, a computer terminal, a mobile end server end and a mobile terminal;
the computer end server end includes:
the login information receiving module is used for receiving login request information of the computer terminal;
the mobile terminal comprises a judging request module, a judging module and a judging module, wherein the judging request module is used for sending request information to a mobile terminal server end and requesting the mobile terminal server end to judge whether the mobile terminal establishes connection with the mobile terminal server end by using a game account number which is the same as that of a computer terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the mobile terminal server; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, sending a disconnection request to the mobile terminal server, requesting the mobile terminal server to disconnect the communication connection with the mobile terminal, and sending game data to the computer terminal;
the computer terminal comprises:
the login request module is used for sending login request information to the server side of the computer side;
the data receiving module is used for receiving game data information sent by the server side of the computer side;
the mobile terminal server terminal includes:
the judgment request receiving module is used for receiving the judgment request information of the server side of the computer side and judging whether the mobile terminal uses the game account number which is the same as that of the computer terminal;
the judgment result sending module is used for sending the judgment result of the judgment request module to a computer server;
and the disconnection request receiving and processing module is used for receiving disconnection request information of the server side of the computer side and disconnecting the communication connection with the mobile terminal.
Compared with the prior art, the login request information of the computer terminal is received at the server side of the computer terminal, and whether the same account number is logged in the mobile terminal or not is judged correspondingly. If yes, the connection of the mobile terminal is disconnected, the game data are sent to the computer terminal, and the computer terminal takes over the game. If the mobile terminal is not logged in, the computer terminal can directly log in to start a new game to play a new battle.
As a further improvement of the present invention, the computer server further includes: the login judging module is used for judging whether other computer terminals are connected with the computer end server end through the same game account number or not when a user logs in the computer terminal through the game account number and establishes connection with the computer end server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other computer terminals are not connected with the computer server, the login judgment result processing module sends game data to the computer terminals; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
Furthermore, the login judgment module can judge whether other computer terminals adopt the same account number for login, so that the condition that two computer terminals login at the same time can be prevented.
As a further improvement of the invention, the system also comprises an HTTP server end; the HTTP server end is used for recording and storing the association relationship between the computer end server end and the mobile end server end through the global association table;
when the computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server terminal is started, downloading a global association table from the HTTP server terminal, searching a computer terminal server terminal corresponding to the mobile terminal server terminal through the global association table, and establishing connection.
As a further improvement of the present invention, the computer server further includes:
the combat judging module is used for judging whether a user fights at the computer terminal when the computer server sends game data to the computer terminal;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal;
the combat period judging module is used for judging whether the user is in a combat protection period;
the combat period judgment result processing module is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the computer terminal; otherwise, directly completing login;
and the combat control request receiving and processing module is used for receiving the combat control request of the computer terminal and transferring the combat control right to the computer terminal.
The computer terminal further comprises:
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the computer-side server.
The invention also provides a computer server, comprising:
the login information receiving module is used for receiving login request information of the computer terminal;
the mobile terminal comprises a judging request module, a judging module and a judging module, wherein the judging request module is used for sending request information to a mobile terminal server end and requesting the mobile terminal server end to judge whether the mobile terminal establishes connection with the mobile terminal server end by using a game account number which is the same as that of a computer terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the mobile terminal server; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, a disconnection request is sent to the mobile terminal server, the mobile terminal server is requested to be disconnected from the communication connection with the mobile terminal, and game data are sent to the computer terminal.
As a further improvement of the invention, the system further comprises a login judgment module, which is used for judging whether other computer terminals establish connection with the computer end server end through the same game account number when a user logs in at the computer terminal through the game account number and establishes connection with the computer end server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other computer terminals are not connected with the computer server, the login judgment result processing module sends game data to the computer terminals; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
As a further improvement of the invention, the system also comprises a combat judgment module used for judging whether a user fights at the computer terminal when the server side at the computer terminal sends game data to the computer terminal;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal;
the combat period judging module is used for judging whether the user is in a combat protection period;
the combat period judgment result processing module is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the computer terminal; otherwise, directly completing login;
and the combat control request receiving and processing module is used for receiving the combat control request of the computer terminal and transferring the combat control right to the computer terminal.
The invention also provides a computer terminal of the game system, which comprises a login request module, a login request module and a server side, wherein the login request module is used for sending login request information to the server side of the computer side;
the data receiving module is used for receiving game data information sent by the server side of the computer side;
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the computer-side server.
The invention also provides another system for data intercommunication between the computer terminal and the mobile terminal in games, which comprises a computer end server end, a computer terminal, a mobile end server end and a mobile terminal;
the mobile terminal server terminal includes:
the login information receiving module is used for receiving login request information of the mobile terminal;
the judging request module is used for sending request information to a computer server and requesting the computer server to judge whether the computer terminal establishes connection with the computer server by using a game account number which is the same as that of the mobile terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the server side of the computer side; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, sending a disconnection request to the computer server, requesting the computer server to disconnect the communication connection with the computer terminal, and requesting game data to the computer server;
the game data receiving module is used for receiving game data of the server side of the computer side;
the game data sending module is used for forwarding the game data of the game data receiving module to the mobile terminal;
the mobile terminal includes:
the login request module is used for sending login request information to the mobile terminal server;
the data receiving module is used for receiving game data information sent by the mobile terminal server;
the computer end server end includes:
the judgment request receiving module is used for receiving the judgment request information of the mobile terminal server and judging whether the computer terminal uses the same game account number as the mobile terminal;
a judgment result sending module, configured to send the judgment result of the judgment request module to the mobile terminal server;
the disconnection request receiving and processing module is used for receiving disconnection request information of the mobile terminal server and disconnecting the communication connection with the computer terminal;
and the data sending module is used for sending the game data to the mobile terminal server according to the data request of the mobile terminal server.
Compared with the prior art, the login request information of the mobile terminal is received at the mobile terminal server side, and the computer terminal server side correspondingly judges whether the same account number is logged in the computer terminal. If yes, the connection of the mobile terminal is disconnected, the game data are sent to the mobile terminal, and the mobile terminal takes over the game. If the computer terminal is not logged in, the mobile terminal can directly log in to start a new game to play a new battle. Therefore, when the computer terminal carries out battle, the original battle can be continued from the mobile terminal without re-formation.
As a further improvement of the present invention, the mobile terminal server further includes:
the login judging module is used for judging whether other mobile terminals establish connection with the mobile terminal server end through the same game account number or not when a user logs in the mobile terminal through the game account number and establishes connection with the mobile terminal server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other mobile terminals are not connected with the mobile terminal server, sending a game data request to the computer terminal server; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
As a further improvement of the invention, the system also comprises an HTTP server end; the HTTP server end is used for recording and storing the association relationship between the computer end server end and the mobile end server end through the global association table;
when the computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server terminal is started, downloading a global association table from the HTTP server terminal, searching a computer terminal server terminal corresponding to the mobile terminal server terminal through the global association table, and establishing connection.
As a further improvement of the present invention, the computer server further comprises:
the combat judging module is used for judging whether a user fights at the computer terminal when the computer server sends game data to the mobile server;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the mobile server;
the combat period judging module is used for judging whether the user is in a combat protection period;
the combat period judgment result processing module is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the mobile end server end; otherwise, sending login information to the mobile terminal server; the mobile terminal server side sends the received battle field data to the mobile terminal through the data sending module;
the combat control request receiving and processing module is used for receiving a combat control request of the computer terminal and transferring a combat control right to the mobile terminal through the mobile terminal server;
the mobile terminal further includes:
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the mobile terminal server and sending the combat control request to the computer terminal server from the mobile terminal server.
The invention also provides a mobile terminal server terminal of the game system, which comprises:
the login information receiving module is used for receiving login request information of the mobile terminal;
the judging request module is used for sending request information to a computer server and requesting the computer server to judge whether the computer terminal establishes connection with the computer server by using a game account number which is the same as that of the mobile terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the server side of the computer side; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, sending a disconnection request to the computer server, requesting the computer server to disconnect the communication connection with the computer terminal, and requesting game data to the computer server;
the game data receiving module is used for receiving game data of the server side of the computer side;
and the game data sending module is used for forwarding the game data of the game data receiving module to the mobile terminal.
As a further improvement of the invention, the method also comprises the following steps:
the login judging module is used for judging whether other mobile terminals establish connection with the mobile terminal server end through the same game account number or not when a user logs in the mobile terminal through the game account number and establishes connection with the mobile terminal server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other mobile terminals are not connected with the mobile terminal server, sending a game data request to the computer terminal server; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
The present invention also provides a mobile terminal of a game system, comprising:
the login request module is used for sending login request information to the mobile terminal server;
the data receiving module is used for receiving game data information sent by the mobile terminal server;
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the mobile terminal server and sending the combat control request to the computer terminal server from the mobile terminal server.
As a further improvement of the invention, the method also comprises the following steps:
the battle analysis module is used for analyzing the received battle protocol data;
and the combat logic module is used for sequentially executing the combat protocol in a queue form, and the combat animation is played by taking the round as a unit.
As a further improvement of the invention, the mobile terminal further comprises an area division display module, which is used for dividing the display screen of the mobile terminal into: a combat zone, a chat zone, and a functional operations zone.
For a better understanding and practice, the invention is described in detail below with reference to the accompanying drawings.
Drawings
FIG. 1 is a flowchart of the method steps for data communication between a computer terminal and a mobile terminal in a game according to embodiment 1.
Fig. 2 is a flowchart of the implementation steps for establishing the association relationship between the computer server and the mobile server.
FIG. 3 is a flowchart illustrating steps of a method for data communication between a computer terminal and a mobile terminal in a game according to embodiment 2.
Fig. 4 is a flowchart illustrating a step of sending game data to a computer terminal by the server at the computer end according to the embodiment 2.
FIG. 5 is a schematic diagram of the connection of the data communication system in the computer-end and mobile-end games according to the present invention.
FIG. 6 is a schematic diagram of the internal connection of the data communication system between the computer terminal and the mobile terminal.
FIG. 7 is a schematic diagram of the connection of internal modules of the computer server.
FIG. 8 is a schematic diagram of the connection of internal modules of the computer terminal.
FIG. 9 is a flowchart illustrating the steps of the method for data communication between a computer terminal and a mobile terminal in a game according to embodiment 3.
FIG. 10 is a flowchart of an implementation procedure for establishing association between a computer server and a mobile server.
FIG. 11 is a flowchart illustrating steps of a method for data communication between a computer terminal and a mobile terminal in a game according to embodiment 4.
FIG. 12 is a flowchart illustrating steps of the mobile terminal for sending game data by the server at the computer side according to the present invention.
FIG. 13 is a schematic diagram of the system connection for the game data intercommunication between the computer terminal and the mobile terminal in this embodiment 4.
FIG. 14 is a schematic diagram of the connection of system modules for data communication between a computer terminal and a mobile terminal in a game according to this embodiment 4.
Fig. 15 is a screen area display effect diagram of the mobile terminal.
Detailed Description
Example 1
The invention aims to solve the problem that the data intercommunication between the computer terminal and the mobile terminal cannot be realized by a player in the game process. For example, when a player logs in at a mobile terminal, the mobile terminal establishes a connection with a mobile server, and game data of the mobile terminal is forwarded to a computer server through the mobile server, so that data intercommunication between the mobile terminal and the computer server is realized. When a player fights at the mobile terminal, if the mobile terminal has a card machine or other faults, the player may need to log in by using the computer terminal, and if the mobile terminal directly quits, the original fighting data cannot be reserved, and the player cannot continue to participate in the original fighting.
Therefore, in view of this situation, the embodiment 1 provides a solution, and the following description is made specifically for the method of data intercommunication in the game between the computer terminal and the mobile terminal.
Please refer to fig. 1, which is a flowchart illustrating a method for data communication between a computer terminal and a mobile terminal in a game according to the present invention. The invention provides a method for data intercommunication between a computer terminal and a mobile terminal game, which comprises the following steps:
s11: and establishing an incidence relation between the computer server and the mobile server.
Please refer to fig. 2, which is a flowchart illustrating steps of establishing an association relationship between a computer server and a mobile server. When a computer server and a mobile server are established, the method specifically comprises the following steps:
s111: and establishing a global association table, recording and storing the association relation between the computer server and the mobile server, and storing the association relation in the HTTP server.
S112: when the computer end server is started, downloading a global association table from the HTTP server, searching a mobile end server corresponding to the computer end server through the global association table, and establishing connection.
S113: and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
S12: when a user logs in at a computer terminal through a game account and establishes connection with the computer server, whether the mobile terminal establishes connection with the mobile server through the same game account is judged.
Specifically, the step of judging whether the mobile terminal establishes a connection with the mobile terminal server through the same game account specifically includes the following steps:
s121: the computer server accesses the mobile server, and judges whether the mobile terminal is connected with the mobile server through the game account number or not through the mobile server;
s122: the mobile terminal server feeds back the judgment result to the computer terminal server. At this time, the mobile server does not store the game data, and is used for forwarding the game data of the computer server to the mobile terminal, and the mobile terminal realizes data interaction with the computer server through the mobile server.
S13: if the mobile terminal is not connected with the mobile terminal server, the computer server sends game data to the computer terminal; if the condition that other mobile terminals log in is not found, the computer terminal logs in for the first time at the moment, and the computer terminal directly requests the computer server to send game data to perform normal login.
S14: if the mobile terminal is connected with the mobile terminal server, the mobile terminal server is disconnected from the communication connection with the mobile terminal, and the computer server sends game data to the computer terminal. If other mobile terminals log in, the fact that the player logs in through the mobile terminal is indicated, the computer server stores the game data of the original mobile terminal, the computer server sends the game data to the computer terminal, and the computer terminal takes over the game data of the original mobile terminal and continues to play the original game.
In this embodiment 1, a computer server and a mobile server are adopted, and are respectively used for data intercommunication with a computer terminal and a mobile terminal. And, the computer server and the mobile server are associated. When the mobile terminal logs in firstly, the mobile terminal forwards game data through the mobile terminal server, so that the mobile terminal and the computer server perform data intercommunication. When the computer terminal logs in, the connection with the computer server is established, at the moment, the computer server is disconnected with the mobile terminal through the mobile server, and then the game data stored in the computer server by the original mobile terminal is directly sent to the computer terminal, so that the computer terminal can take over the game of the original mobile terminal. Therefore, even when the mobile terminal is in battle, the computer-side server can send the battle data to the computer terminal, so that the player can continue the original unfinished battle without forming a team again at the computer terminal. Therefore, compared with the prior art, the invention enables the data intercommunication between the computer end and the mobile phone end, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the player keeps the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
Example 2
The invention aims to solve the problem that the data intercommunication between the computer terminal and the mobile terminal can not be realized by a player in the game process, for example, when the player logs in the mobile terminal, the mobile terminal is connected with the mobile terminal server, and the game data of the mobile terminal is forwarded to the computer terminal server through the mobile terminal server, so that the data intercommunication between the mobile terminal and the computer terminal server is realized. If the player uses the computer terminal to log in when the mobile terminal is in battle, if the mobile terminal is stuck with a card or has other faults, the original battle data cannot be reserved if the mobile terminal is directly logged out, and the player cannot continue to participate in the original battle. Meanwhile, when the computer terminal is used for logging in, whether other computer terminals use the same game account number for logging in needs to be judged, and the situation that a computer server cannot accurately send game data to the corresponding computer terminal is prevented. Therefore, in view of this situation, the present embodiment 2 provides a solution, and the following description is made specifically for the method of data intercommunication between the computer terminal and the mobile terminal game.
In order to prevent multiple computer terminals from logging in using the same game account at the same time, in this embodiment, on the basis of implementation 1, a judgment of a connection situation between another computer terminal and the computer server is added when a user logs in at the computer terminal through the game account and establishes a connection to the computer server.
Specifically, please refer to fig. 3, which is a flowchart illustrating a method for data communication between a computer terminal and a mobile terminal in a game according to an embodiment of the present invention.
The data intercommunication method in the games of the computer terminal and the mobile terminal provided by the embodiment comprises the following steps:
s21: establishing an incidence relation between a computer server and a mobile server;
s22: when a user logs in a computer terminal through a game account and establishes connection with a computer server, judging whether the mobile terminal establishes connection with the mobile server through the same game account; if not, go to step S24; if yes, go to step S23;
s23: the mobile terminal server disconnects the communication connection with the mobile terminal;
s24: judging whether other computer terminals establish connection with the computer terminal server through the same game account number;
s25: if the other computer terminals are not connected with the computer server, the computer server sends game data to the computer terminals;
s26: if the other computer terminals are connected with the computer terminal server, the computer terminal server is disconnected from the communication connection with the other computer terminals, and the computer terminal server sends game data to the computer terminals.
Please refer to fig. 4, which is a flowchart illustrating a step of the server at the computer end of the present embodiment sending game data to the computer terminal.
Further, in this embodiment, the step of sending the game data to the computer terminal by the computer server specifically includes:
s251: judging whether the user fights at the computer terminal at the moment;
s252: if yes, the computer end server enables the user to enter a battle protection period, and the AI system takes over the battle action; step S254 is executed;
s253: if not, the computer server sends login information to the computer terminal;
s254: the computer end server checks whether the user is in a battle protection period;
s255: if so, the computer end server sends the battle field data to the computer terminal, the computer terminal recovers the battle field according to the received field data and sends a battle control request to the computer end server;
s256: if not, directly completing the login.
In this embodiment 2, a computer server and a mobile server are adopted, and are respectively used for data intercommunication with a computer terminal and a mobile terminal. And, the computer server and the mobile server are associated. When the mobile terminal logs in firstly, the mobile terminal forwards game data through the mobile terminal server, so that the mobile terminal and the computer server perform data intercommunication. When the computer terminal logs in, the connection with the computer server is established, at the moment, the computer server is disconnected with the mobile terminal through the mobile server, and then the game data stored in the computer server by the original mobile terminal is directly sent to the computer terminal, so that the computer terminal can take over the game of the original mobile terminal. Therefore, even when the mobile terminal is in battle, the computer-side server can send the battle data to the computer terminal, so that the player can continue the original unfinished battle without forming a team again at the computer terminal.
Meanwhile, other computer terminals are further detected, so that a plurality of computer terminals can be prevented from logging in by using the same game account number at the same time.
And furthermore, an AI system (intelligent system) is used for taking over the battle, so that the defect that the player cannot perform real-time operation when the mobile terminal is switched to the computer terminal can be effectively overcome. When the player logs in at the computer terminal, the player continues to play the game at the computer terminal.
Therefore, compared with the prior art, the invention enables the data intercommunication between the computer end and the mobile phone end, including combat data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the player keeps the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
Please refer to fig. 5, which is a schematic connection diagram of the data communication system in the game between the computer end and the mobile end of the embodiment 2.
Correspondingly, in order to implement the data intercommunication method between the computer terminal and the mobile terminal provided in this embodiment, the invention further provides a data intercommunication system in computer-end and mobile-end games, which includes a computer-end server end 10, a computer terminal 20, a mobile-end server end 30, a mobile terminal 40 and an HTTP server end 50.
The HTTP server 50 is configured to record and store an association relationship between the computer server and the mobile server through a global association table;
when the computer server 10 is started, downloading a global association table from the HTTP server 50, searching for a mobile server corresponding to the computer server through the global association table, and establishing a connection;
when the mobile terminal server 30 is started, the global association table is downloaded from the HTTP server 50, and a computer terminal server corresponding to the mobile terminal server is searched through the global association table, and a connection is established.
Specifically, please refer to fig. 6 and fig. 7, which are a schematic diagram of an internal connection of the data communication system between the computer terminal and the mobile terminal and a schematic diagram of an internal module connection of the server side at the computer terminal, respectively.
The computer server 10 includes: a login information receiving module 101, a judgment request module 102, a judgment result receiving processing module 103, a login judgment module 104, a login judgment result processing module 105, a battle judgment module 106, a battle judgment result processing module 107, a battle period judgment module 108, a battle period judgment result processing module 109, and a battle control request receiving processing module 110.
The login information receiving module 101 is used for receiving login request information of a computer terminal;
the judgment request module 102 is configured to send a request message to a mobile terminal server, and request the mobile terminal server to judge whether the mobile terminal establishes a connection with the mobile terminal server by using a game account that is the same as that of a computer terminal;
the judgment result receiving and processing module 103 is configured to receive a judgment result of the mobile terminal server; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, sending a disconnection request to the mobile terminal server, requesting the mobile terminal server to disconnect the communication connection with the mobile terminal, and sending game data to the computer terminal;
the login judgment module 104 is configured to judge whether other computer terminals establish connection with the computer terminal server end through the same game account number when a user logs in at the computer terminal through the game account number and establishes connection with the computer terminal server end;
the login judgment result processing module 105 is configured to receive a judgment result of the login judgment module, and send game data to the computer terminal if the other computer terminals are not connected to the computer server; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
The combat judging module 106 is configured to judge whether a user performs combat at a computer terminal when the server side of the computer terminal sends game data to the computer terminal;
the battle judgment result processing module 107 is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal;
the combat period judging module 108 is configured to judge whether the user is in a combat protection period;
the combat period judgment result processing module 109 is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the computer terminal; otherwise, directly completing login;
the fighting control request receiving and processing module 110 is configured to receive a fighting control request from a computer terminal, and transfer a fighting control right to the computer terminal.
Please refer to fig. 6 and fig. 8, which are a schematic diagram of an internal connection of the computer terminal and the mobile terminal data interworking system and a schematic diagram of an internal module connection of the computer terminal, respectively.
The computer terminal 20 includes: a login request module 201, a data receiving module 202, a field data recovery module 203 and a combat control request module 204.
The login request module 201 is configured to send login request information to a server at a computer end;
the data receiving module 202 is configured to receive game data information sent by a server at a computer end;
the field data recovery module 203 is used for recovering the battle field according to the received field data;
the battle control request module 204 is configured to send a battle control request to the computer server.
Referring to fig. 6, the mobile server 30 includes: a judgment request receiving module 301, a judgment result transmitting module 302 and a disconnection request receiving processing module 303.
The judgment request receiving module 301 is configured to receive judgment request information from a server at a computer end, and judge whether the mobile terminal uses a game account that is the same as that of the computer terminal;
the judgment result sending module 302 is configured to send the judgment result of the judgment request module to a computer server;
the disconnection request receiving and processing module 303 is configured to receive disconnection request information from the server at the computer end, and disconnect a communication connection with the mobile terminal.
The following describes the working process of the data communication system in the computer-end and mobile-end games specifically:
firstly, when a computer server or a mobile server is started, downloading a global association table from an HTTP server, searching for the mobile server corresponding to the computer server according to the corresponding relationship of the global association table, or searching for the computer server corresponding to the mobile server, and establishing the association relationship.
At this time, the player logs in through the computer terminal. Specifically, the login request module 201 first sends login request information to the server of the computer.
The login information receiving module 101 of the computer server 10 receives login request information of a computer terminal, and sends the request information to the mobile server through the judgment request module 102, requesting the mobile server to judge whether the mobile terminal establishes a connection with the mobile server by using the same game account number as the computer terminal.
The mobile terminal server receives the judgment request information of the computer terminal server through the judgment request receiving module 301, and judges whether the mobile terminal uses the same game account number as the computer terminal. Then, the judgment result of the judgment request module is sent to the server side of the computer side through the judgment result sending module 302.
The computer server receives the judgment result of the mobile server through the judgment result receiving and processing module 103; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, a disconnection request is sent to the mobile terminal server, the mobile terminal server is requested to be disconnected from the communication connection with the mobile terminal, and game data are sent to the computer terminal.
The mobile terminal server receives the disconnection request information from the computer server through the disconnection request receiving processing module 303, and disconnects the communication connection with the mobile terminal.
Then, when the user logs in at the computer terminal through the game account number and establishes a connection to the computer server through the login determination module 104, the computer server determines whether other computer terminals establish a connection with the computer server through the same game account number.
Receiving the judgment result of the login judgment module through the login judgment result processing module 105, and if the other computer terminals are not connected with the computer terminal server, sending game data to the computer terminals; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
The computer terminal receives the game data information sent by the server side of the computer side through the data receiving module 202.
Further, when the server side at the computer side sends game data to the computer terminal, the combat judging module 106 judges whether the user performs combat at the computer terminal; the fighting judgment result processing module 107 receives the judgment result of the fighting judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal.
Then, the combat period judging module 108 judges whether the user is in a combat protection period; the fighting period judgment result processing module 109 is used for receiving the judgment result of the fighting period judgment module, and if the user is in a fighting protection period, the computer end server end sends fighting field data to the computer terminal; otherwise, the login is directly completed.
At this time, the field data recovery module 203 of the computer terminal recovers the battle field according to the received field data, and is configured to send a battle control request to the computer server through the battle control request module 204.
The computer server receives the combat control request from the computer terminal through the combat control request receiving and processing module 110, and transfers the combat control right to the computer terminal.
Compared with the prior art, the login request information of the computer terminal is received at the server side of the computer terminal, and whether the same account number is logged in the mobile terminal or not is judged correspondingly. If yes, the connection of the mobile terminal is disconnected, the game data are sent to the computer terminal, and the computer terminal takes over the game. If the mobile terminal is not logged in, the computer terminal can directly log in to start a new game to play a new battle. Furthermore, when the mobile terminal is in battle, the computer terminal can receive game data of the server end of the computer end and recover the battle field, so that the mobile terminal can be added into the original game without being grouped to participate in new battle.
Example 3
When the player plays games at the computer, the player needs to leave the computer if the player needs to go out in an emergency. If the player happens to be in team fighting, the team is required to be stopped and the fighting cannot be continued, so that the game experience of the player is influenced. Therefore, when the game is registered by the mobile terminal, the game data of the computer terminal needs to be transmitted to the mobile terminal, and the mobile terminal plays the original game. Therefore, the invention provides an implementation scheme correspondingly, which is used for taking over the game of the computer terminal by the mobile terminal and continuing to play the original game.
Specifically, please refer to fig. 9, which is a flowchart illustrating a method for data communication between a computer terminal and a mobile terminal in a game according to the present embodiment. The embodiment provides a method for data intercommunication between a computer terminal and a mobile terminal in a game, which comprises the following steps:
s31: establishing an incidence relation between a computer server and a mobile server;
please refer to fig. 10, which is a flowchart illustrating steps of establishing an association relationship between a computer server and a mobile server. When a computer server and a mobile server are established, the method specifically comprises the following steps:
s311: establishing a global association table, recording and storing the association relation between the computer server and the mobile server, and storing the association relation in an HTTP server;
s312: when a computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
s313: and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
S32: when a user logs in a mobile terminal through a game account and establishes connection with a mobile terminal server, judging whether a computer terminal establishes connection with the computer terminal server through the same game account;
specifically, the step of determining whether the computer terminal establishes a connection with the computer server through the same game account number specifically includes:
s321: the mobile terminal server accesses the computer server and judges whether the computer terminal is connected with the computer server through the game account number at the moment through the computer server;
s322: and the computer server feeds back the judgment result to the mobile server.
S33: if the computer terminal is not connected with the computer server, the computer server sends game data to the mobile server, and the game data is forwarded to the mobile terminal by the mobile server;
s34: if the computer terminal is connected with the computer server, the computer server is disconnected from the communication connection with the computer terminal, and sends the game data to the mobile server, and then the mobile server forwards the game data to the mobile terminal.
In this embodiment 3, a computer server and a mobile server are adopted, and are respectively used for data intercommunication with a computer terminal and a mobile terminal. And, the computer server and the mobile server are associated. When the computer terminal logs in first, the computer terminal and the computer server perform data intercommunication. When the mobile terminal logs in, the connection with the mobile terminal server is established, at the moment, the computer terminal server is disconnected with the computer terminal, and then the game data stored in the computer terminal server by the original computer terminal is directly forwarded to the mobile terminal through the mobile terminal server, so that the mobile terminal can take over the game of the original computer terminal. Therefore, even when the computer terminal is in battle, the computer server can send the battle data to the mobile terminal, so that the player can continue the original unfinished battle without being used for re-team formation at the mobile terminal. Therefore, compared with the prior art, the invention enables the data intercommunication between the computer end and the mobile phone end, including battle data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the player keeps the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
Example 4
When the player plays games at the computer, the player needs to leave the computer if the player needs to go out in an emergency. If the player happens to be in team fighting, the team is required to be stopped and the fighting cannot be continued, so that the game experience of the player is influenced. Therefore, when the game is registered by the mobile terminal, the game data of the computer terminal needs to be transmitted to the mobile terminal, and the mobile terminal plays the original game. Meanwhile, when the mobile terminal is used for logging in, whether other mobile terminals use the same game account number for logging in needs to be judged, and the situation that a computer server cannot accurately send game data to the corresponding computer terminal is prevented.
The invention correspondingly provides an implementation scheme for taking over the game of the computer terminal by the mobile terminal and continuing to play the original game. Meanwhile, in order to prevent multiple mobile terminals from logging in by using the same game account at the same time, in this embodiment, on the basis of implementation 3, a judgment of a connection situation between another mobile terminal and the mobile terminal server is added when a user logs in at the mobile terminal through the game account and establishes a connection to the mobile terminal server.
Specifically, please refer to fig. 11, which is a flowchart illustrating a method for data communication between a computer terminal and a mobile terminal in a game according to the present embodiment.
The data intercommunication method in the games of the computer terminal and the mobile terminal provided by the embodiment comprises the following steps:
s41: establishing an incidence relation between a computer server and a mobile server;
s42: when a user logs in a mobile terminal through a game account and establishes connection with a mobile terminal server, judging whether a computer terminal establishes connection with the computer terminal server through the same game account; if not, go to step S44; if yes, go to step S43;
s43: the mobile terminal server disconnects the communication connection with the mobile terminal;
s44: judging whether other mobile terminals establish connection with the mobile terminal server through the same game account;
s45: if the other mobile terminals are not connected with the computer server, the computer server sends data to the mobile server, and the data are forwarded to the mobile terminals by the mobile server;
s46: if the other mobile terminals are connected with the computer server, the mobile server is disconnected from the other mobile terminals, and the mobile server sends the game data to the mobile terminals.
Further, please refer to fig. 12, which is a flowchart illustrating a step of the mobile terminal for sending game data by the computer server according to the present invention.
The method comprises the following steps that the computer end server is disconnected from the communication connection with the computer terminal, game data are sent to the mobile end server, and then the game data are forwarded to the mobile terminal by the mobile end server, and specifically comprises the following steps:
s451: judging whether the user fights at the computer terminal at the moment;
s452: if yes, the computer end server enables the user to enter a battle protection period, and the AI system takes over the battle action;
s453: if not, the computer server sends the login information to the mobile server, and the mobile server forwards the login information to the mobile terminal;
s454: the computer end server checks whether the user is in a battle protection period;
s455: if so, the computer server sends the battle field data to the mobile server, and the mobile server forwards the battle field data to the mobile terminal, and the mobile terminal recovers the battle field according to the received field data, sends a battle control request to the mobile server, and forwards the battle control request to the computer server;
specifically, all combat resources of the computer server are converted into the mobile terminal, so that the size of the mobile terminal installation package is greatly increased, and therefore, in order to reduce the size of the mobile phone installation package, the mobile terminal installation package is simplified at present.
Such as: and extracting the infrequent summoning animal combat resources from the installation package, and independently packaging and placing the resources on an HTTP download server. After logging in, the player prompts the player to download the fighting resource expansion package, and selectively downloads the fighting resource expansion package; in the fighting process, whether the calling animal fighting resources exist is detected when the calling animal is initialized, and if not, the alternative resources are used.
S456: if not, directly completing the login.
In this embodiment 4, a computer server and a mobile server are adopted, and are respectively used for data intercommunication with a computer terminal and a mobile terminal. And, the computer server and the mobile server are associated. When the computer terminal logs in first, the computer terminal and the computer server perform data intercommunication. When the mobile terminal logs in, the connection with the mobile terminal server is established, at the moment, the computer terminal server is disconnected with the computer terminal, and then the game data stored in the computer terminal server by the original computer terminal is directly forwarded to the mobile terminal through the mobile terminal server, so that the mobile terminal can take over the game of the original computer terminal. Therefore, even when the computer terminal is in battle, the computer server can send the battle data to the mobile terminal, so that the player can continue the original unfinished battle without being used for re-team formation at the mobile terminal.
Meanwhile, other computer terminals are further detected, so that a plurality of computer terminals can be prevented from logging in by using the same game account number at the same time.
And furthermore, an AI system (intelligent system) is used for taking over the battle, so that the defect that the player cannot perform real-time operation when the mobile terminal is switched to the computer terminal can be effectively overcome. When the player logs in at the computer terminal, the player continues to play the game at the computer terminal.
Therefore, compared with the prior art, the invention enables the data intercommunication between the computer end and the mobile phone end, including battle data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the player keeps the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection.
Please refer to fig. 13, which is a schematic diagram of the system connection for the game data intercommunication between the computer terminal and the mobile terminal in this embodiment. The system for data intercommunication between computer terminal and mobile terminal in game of this embodiment includes a computer server 60, a computer terminal 70, a mobile server 80, a mobile terminal 90 and an HTTP server 50;
the HTTP server 50 is configured to record and store an association relationship between the computer server and the mobile server through a global association table;
when the computer server is started, downloading a global association table from the HTTP server 50, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
when the mobile terminal server is started, the global association table is downloaded from the HTTP server 50, and the computer terminal server corresponding to the mobile terminal server is searched through the global association table, and a connection is established.
Please refer to fig. 14, which is a schematic diagram illustrating the connection of the system modules for data communication between the computer terminal and the mobile terminal in the game of the embodiment.
The mobile server 80 includes: a login information receiving module 801, a judgment request module 802, a judgment result receiving and processing module 803, a game data receiving module 804, a game data transmitting module 805, a login judgment module 806, a login judgment result processing module 807 and a combat control request forwarding module 808;
the login information receiving module 801 is configured to receive login request information of the mobile terminal;
the judgment request module 802 is configured to send a request message to a computer server, and request the computer server to judge whether the computer terminal establishes a connection with the computer server by using a game account that is the same as that of the mobile terminal;
the judgment result receiving and processing module 803 is used for receiving the judgment result of the server side of the computer side; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, sending a disconnection request to the computer server, requesting the computer server to disconnect the communication connection with the computer terminal, and requesting game data to the computer server;
the game data receiving module 804 is used for receiving game data of a server side at a computer side;
the game data sending module 805 is configured to forward the game data of the game data receiving module to the mobile terminal.
The login determining module 806 is configured to determine, when a user logs in a mobile terminal through a game account and establishes a connection to the mobile terminal server, whether other mobile terminals establish a connection with the mobile terminal server through the same game account;
the login judgment result processing module 807 is configured to receive the judgment result of the login judgment module, and send a game data request to the server of the computer terminal if other mobile terminals are not connected to the server of the mobile terminal; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
The combat control request forwarding module 808 is configured to forward the combat control request of the mobile terminal to the computer server.
The computer end server end includes: a judgment request receiving module 601, a judgment result transmitting module 602, a disconnection request receiving processing module 603, a data transmitting module 604, a battle judging module 605, a battle judging result processing module 606, a battle period judging module 607, a battle period judging result processing module 608 and a battle control request receiving processing module 609.
The judgment request receiving module 601 is configured to receive judgment request information from the mobile terminal server, and judge whether the computer terminal uses the same game account as the mobile terminal;
a judgment result sending module 602, configured to send a judgment result of the judgment request module to the mobile terminal server;
a disconnection request receiving processing module 603, configured to receive disconnection request information from the mobile server, and disconnect a communication connection with the computer terminal;
the data sending module 604 is configured to send game data to the mobile server according to a data request of the mobile server.
A battle judging module 605, configured to judge whether a user fights at a computer terminal when the computer server sends game data to the mobile server;
a battle judgment result processing module 606 for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the mobile server;
a battle period judging module 607 for judging whether the user is in a battle protection period;
a fighting period judgment result processing module 608, configured to receive the judgment result of the fighting period judgment module, and if the user is in a fighting protection period, the computer server sends the fighting field data to the mobile server; otherwise, sending login information to the mobile terminal server; the mobile terminal server side sends the received battle field data to the mobile terminal through the data sending module;
the battle control request receiving and processing module 609 is configured to receive a battle control request from the computer terminal, and transfer a battle control right to the mobile terminal through the mobile terminal server.
The mobile terminal 90 includes:
a login request module 901, configured to send login request information to the mobile server;
a data receiving module 902, configured to receive game data information sent by a mobile server;
a field data recovery module 903, configured to recover a battle field according to the received field data;
a battle control request module 904, configured to send a battle control request to the mobile server, and send the battle control request to the computer server.
A battle analysis module 905 for analyzing the received battle protocol data;
and the fighting logic module 906 is used for sequentially executing the fighting protocols in a queue form, and the fighting animation is played in turn.
The following describes the working process of the data communication system in the computer-end and mobile-end games specifically:
firstly, a mobile terminal sends login request information to a mobile terminal server through the login request module 901;
the mobile terminal server 80 receives the login request information of the mobile terminal through the login information receiving module 801, and at this time, sends the request information to the computer server through the judgment request module 802, and requests the computer server to judge whether the computer terminal establishes a connection with the computer server by using the same game account as the mobile terminal.
Meanwhile, when the user logs in the mobile terminal through the game account and establishes a connection to the mobile terminal server, the login determination module 806 determines whether other mobile terminals establish a connection with the mobile terminal server through the same game account; the login judgment result processing module 807 receives the judgment result of the login judgment module, and sends a game data request to the server of the computer terminal if other mobile terminals are not connected with the server of the mobile terminal; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
The computer server receives the judgment request information of the mobile server through the judgment request receiving module 601, and judges whether the computer terminal uses the same game account number as the mobile terminal; meanwhile, the judgment result of the judgment request module is sent to the mobile terminal server side through the judgment result sending module 602.
The mobile terminal server receives the judgment result of the computer terminal server through the judgment result receiving and processing module 80; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, a disconnection request is sent to the computer server, the computer server is requested to disconnect the communication connection with the computer terminal, and the game data is requested to the computer server.
The computer server receives the disconnection request information of the mobile server through the disconnection request receiving and processing module 603, disconnects the communication with the computer terminal, and sends game data to the mobile server through the data sending module 604 according to the data request of the mobile server.
Specifically, the computer server determines whether the user is fighting at the computer terminal when the computer server sends the game data to the mobile server through the combat determination module 605. Receiving the judgment result of the fighting judgment module through the fighting judgment result processing module 606; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the mobile server. Meanwhile, the battle period judging module 607 judges whether the user is in the battle protection period; receiving the judgment result of the battle period judgment module through the battle period judgment result processing module 608, and if the user is in a battle protection period, sending the battle field data to the mobile terminal server by the computer terminal server; otherwise, sending login information to the mobile terminal server; and the mobile terminal server side sends the received battle field data to the mobile terminal through the data sending module.
The mobile server receives the game data from the computer server through the game data receiving module 804. Then, the game data of the game data receiving module is forwarded to the mobile terminal through the game data sending module 805.
The mobile terminal receives the game data information sent by the mobile terminal server through the data receiving module 902, and recovers the battle scene according to the received scene data through the scene data recovery module 903. And then sends a combat control request to the mobile terminal server through the combat control request module 904, and the combat control request is sent to the computer terminal server from the mobile terminal server.
Meanwhile, the received combat protocol data is analyzed through a combat analysis module 905; the combat protocol is sequentially executed in the form of a queue through the combat logic module 906, and the combat animation is played in units of rounds.
The mobile terminal server forwards the combat control request of the mobile terminal to the computer terminal server through the combat control request forwarding module 808.
The computer server receives the combat control request from the computer terminal through the combat control request receiving and processing module 609, and transfers the combat control right to the mobile terminal through the mobile server.
Furthermore, the mobile terminal of the mobile phone and the computer terminal need different formats when loading the animation resources. Therefore, in order to enable the mobile phone terminal and the computer terminal to share one set of battle resources, the resource conversion module is used for converting the format of the animation resources into a format suitable for the mobile terminal. And in the conversion, the format conversion is completed before the mobile terminal is packaged and manufactured.
The following describes a specific implementation method flow of the resource conversion module. In this embodiment, the computer terminal and the mobile terminal share the same set of battle resources, the computer terminal uses an animation resource in a TCP (titanium Compressed picture) format, and the mobile terminal uses a picture resource in a PNG format, so that the TCP animation of the computer terminal needs to be converted into a PNG picture, and the specific conversion process is as follows:
(1) converting the TCP animation into a PNG picture sequence by using an inverse solution tool;
(2) using a TexturePacker tool to print the PNG picture sequence into a large PNG picture;
(3) in order to reduce the resource size and accelerate the resource reading speed of the mobile terminal, format conversion and compression are carried out on the PNG picture;
in this step, the PNG picture is converted into the PVR format for the mobile terminal of the IOS system, and the PNG picture is converted into the ETC1 format for the mobile terminal of the Android system. The PVR format pictures and the ETC1 format pictures have higher loading speed in the IOS system and the Android system respectively.
(4) The mobile terminal adds a frame updating function to realize the variable-speed playing of the frame event and the animation.
Further, a detailed analyzing step flow of the battle analyzing module is specifically described below. When the player is in battle, the mobile terminal and the computer terminal need to use the same battle protocol to realize the intercommunication of the battle data and carry out battle on the mobile terminal.
Therefore, for the above problems, in this embodiment, the computer terminal and the mobile terminal share the same set of combat protocol, data of the combat protocol is transmitted in the form of hexadecimal strings of binary data thereof, and the mobile terminal implements three functions of unpack _ int, unpack _ string, and unpack _ bit to analyze the combat protocol, which mainly includes the following combat protocols:
(1)WAR_START
the battle start protocol includes information such as tactical stations used by both battles.
(2)WAR_END
And (4) a battle ending protocol, ending and closing the battle.
(3)WAR_TURN
The round ends the protocol.
(4)WAR_ADD
A warrior agreement is added.
(5)WAR_DEL
The warrior protocol is deleted.
(6)WAR_ATTACK_NORMAL
The physical attack protocol is used in cooperation with WAR _ WSTATE, WAR _ STATUS, WAR _ ADDON, WAR _ PERFORM and WAR _ DEL protocols to play blood loss, attack, continuous state and special attack flying effect.
(7)WAR_ATTACK_SERIES
The continuous ATTACK protocol, one or more WAR _ ATTACK _ SERIES protocols are used together with a WAR _ ATTACK _ NORMAL protocol to ATTACK one or more enemies for a plurality of times.
(8)WAR_ATTACK_CONVERG
The co-ATTACK protocol, one or more WAR _ ATTACK _ CONVERG protocols, is used with a WAR _ ATTACK _ NORMAL protocol, and multiple warriors ATTACK an enemy at the same time.
(9)WAR_PROTECT
And protecting the protocol, and preventing the injury for teammates.
(10)WAR_PERFORM
The law agreement releases law attacks and is also used for escaping and attacking special effects.
(11)WAR_WSTATE
The state protocol comprises life state, blood loss value and attack state information, and is used in cooperation with an object attack protocol and a legal attack protocol. (12) WAR _ ADDON
And the continuous state protocol is used for adding continuous states for the warriors and is matched with the physical attack and legal attack protocols.
(13)WAR_STATUS
Blood strip status protocol, showing the percent change of blood strips.
(14)WAR_SUMMON_CATCH
And (5) capturing a summoning agreement.
(15)WAR_CHAT
A chat protocol.
Further, the specific steps of the battle logic module are described in detail below.
The mobile terminal combat protocol is sequentially executed in a queue form, the combat animation is played in turn, and the execution flow of each turn combat protocol is as follows:
firstly, judging whether the current protocol is executed, if so, executing the next protocol, and turning to the first protocol, otherwise, turning to the second protocol;
② the current protocol is WAR _ TURN, TURN
Figure BDA0000831189830000261
③ current protocol is WAR _ END, turn to
Figure BDA0000831189830000262
Fourthly, the current protocol is WAR _ START, a battle scene, two-party array methods and the like are initialized, the next protocol is executed, and the first step is carried out;
fifthly, the current protocol is WAR _ ADD, a fighter is added, the next protocol is executed, and the first protocol is converted;
sixthly, the current protocol is WAR _ WSTATE, a blood volume change digital beating special effect is played, the next protocol is executed, and the first protocol is switched to;
the current protocol is WAR _ STATUS, blood bar change is displayed, the next protocol is executed, and the first protocol is converted;
the current protocol is WAR _ DEL, a fighter is deleted, the next protocol is executed, and the protocol is converted to the first protocol;
ninthly, the current protocol is WAR _ CHAT, CHAT contents are displayed, the next protocol is executed, and the first protocol is converted;
the current protocol of the R (positive) is WAR _ ADDON, a continuous state special effect is added for the warrior, the next protocol is executed, and the first protocol is converted;
Figure BDA0000831189830000263
the current protocol is WAR _ SUMMON _ CATCH, the animation for catching and calling animals is played, the next protocol is executed after the animation is finished, and the first protocol is switched to;
the current protocol is one of WAR _ ATTACK _ NORMAL and WAR _ ATTACK _ SERIES, the WAR _ PROTECT protocol is searched backwards to check whether a protector exists, if yes, the WAR _ PROTECT protocol is set to be executed, and then the execution of the WAR _ PROTECT protocol is switched to
Figure BDA0000831189830000265
Otherwise, turn to
Figure BDA0000831189830000266
Figure BDA0000831189830000267
The person who is struck retreats and protectsThe person moves to the position of the person to be struck and turns
Figure BDA0000831189830000268
Figure BDA0000831189830000269
Searching all WAR _ WSTATE, WAR _ STATUS, WAR _ ADDON and WAR _ PERFORM related to the victim and the protector backwards, acquiring the attacked state, the blood dropping state, the violently attacking state and the continuous state of the victim, setting the related protocols as executed, playing the attacking animation of the attacker, the attacked animation, the attacked special effect and the continuous state of the victim, searching the WAR _ PERFORM protocol backwards at the blood dropping point, checking whether the counter-shake exists or not, if so, playing the counter-shake animation, and executing the next protocol after all the animations are played to rotate to the first step;
Figure BDA00008311898300002610
if the current protocol is the WAR _ PERFORM, playing the escape animation and executing the next protocol, and turning to the first protocol; if the protocol is a special effect on the hit, the protocol is stored as the special effect on the hit of the next hit receiver, the next protocol is executed, and the first step is carried out; if it is a legal attack protocol, transfer to
Figure BDA00008311898300002611
Figure BDA00008311898300002612
Searching all WAR _ WSTATE, WAR _ STATUS, WAR _ ADDON and WAR _ PERFORM related to the victim backwards, acquiring the attacked state, the blood-lost state, the assault state and the continuous state of the victim, setting the related protocols as executed, playing the execution animation, the legal animation and the attacked animation, the attacked special effect and the continuous state of the attacker, searching the WAR _ PERFORM protocol backwards at the blood-lost point, checking whether the counter-shake exists or not, playing the counter-shake animation if the counter-shake exists, executing the next protocol after all the animations are played, and turning to the first step;
Figure BDA0000831189830000271
executing the next round, turning to the first round;
and ending the battle and closing the battle scene.
Please refer to fig. 15, which is a diagram illustrating a display effect of a screen area of a mobile terminal. Further, in order to facilitate the operation experience of the user, the mobile terminal further comprises an area division display module, and when the mobile terminal erects the screen, the area division display module is used for dividing the display screen into: a combat zone, a chat zone, and a functional operations zone.
Compared with the prior art, the login request information of the mobile terminal is received at the mobile terminal server side, and the computer terminal server side correspondingly judges whether the same account number is logged in the computer terminal. If yes, the connection of the computer terminal is disconnected, the game data are sent to the mobile terminal, and the mobile terminal takes over the game. If the computer terminal is not logged in, the mobile terminal can directly log in to start a new game to play a new battle. Thus, the original battle can be continued from the mobile terminal without re-team.
Further, a combat analysis module 905 is arranged on the mobile terminal; the received combat protocol data is analyzed through the combat analyzing module 905, the combat protocol is sequentially executed in a queue form through the combat logic module 906, and combat animations are played in a round unit, so that the combat data are converted more quickly and the animation effect is displayed more smoothly when the mobile terminal plays games.
Therefore, the invention enables the data intercommunication between the computer end and the mobile phone end, including game data intercommunication, animation intercommunication, operation intercommunication, chat intercommunication and the like, the players keep the formation state of the background within a certain time of replacing equipment, and the online is still in the formation before offline after disconnection. Therefore, the problem that the player can continue to carry out the battle mission with other players still operating at the computer end after leaving the computer is solved, and the mission is not influenced by equipment.
The present invention is not limited to the above-described embodiments, and various modifications and variations of the present invention are intended to be included within the scope of the claims and the equivalent technology of the present invention if they do not depart from the spirit and scope of the present invention.

Claims (25)

1. A method for data intercommunication between a computer terminal and a mobile terminal game is characterized in that: the method comprises the following steps:
establishing an incidence relation between a computer server and a mobile server; and the computer terminal performs data interaction with the computer server when logging in; when the mobile terminal logs in, data interaction is carried out between the mobile terminal and a computer server through a mobile server;
when a user logs in a computer terminal through a game account and establishes connection with a computer server, judging whether the mobile terminal establishes connection with the mobile server through the same game account;
if the mobile terminal is not connected with the mobile terminal server, the computer server sends game data to the computer terminal for data interaction;
if the mobile terminal is connected with the mobile terminal server, the mobile terminal server is disconnected from the communication connection with the mobile terminal, and the computer server sends new game data to the computer terminal for data interaction.
2. The method of claim 1, wherein the method comprises: when a user logs in at a computer terminal through a game account and establishes connection to the computer terminal server, the method further comprises the following steps:
judging whether other computer terminals establish connection with the computer terminal server through the same game account number;
if the other computer terminals are not connected with the computer server, the computer server sends game data to the computer terminals;
if the other computer terminals are connected with the computer terminal server, the computer terminal server is disconnected from the communication connection with the other computer terminals, and the computer terminal server sends game data to the computer terminals.
3. The method for data intercommunication between computer-end and mobile-end games according to claim 1 or 2, wherein: the step of establishing an association relationship between the computer server and the mobile server specifically includes:
establishing a global association table, recording and storing the association relationship between the computer server and the mobile server, and storing the association relationship in an HTTP server;
when a computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
4. The method of claim 1, wherein the method comprises: the step of judging whether the mobile terminal establishes a connection with the mobile terminal server through the same game account number specifically includes:
the computer server accesses the mobile server, and judges whether the mobile terminal is connected with the mobile server through the game account number or not through the mobile server;
the mobile terminal server feeds back the judgment result to the computer terminal server.
5. The method of claim 1, wherein the method comprises: the step of sending the game data to the computer terminal by the computer server specifically comprises the following steps:
judging whether the user fights at the computer terminal, if so, allowing the user to enter a fighting protection period by the computer-side server, and taking over fighting actions by the AI system; if not, the computer server sends login information to the computer terminal;
the computer end server checks whether the user is in a battle protection period, if so, the computer end server sends battle field data to the computer terminal, and the computer terminal recovers the battle field according to the received field data and sends a battle control request to the computer end server; if not, directly completing the login.
6. A method for data intercommunication between a computer terminal and a mobile terminal game is characterized in that: the method comprises the following steps:
establishing an incidence relation between a computer server and a mobile server; and the computer terminal performs data interaction with the computer server when logging in; when the mobile terminal logs in, data interaction is carried out between the mobile terminal and a computer server through a mobile server;
when a user logs in a mobile terminal through a game account and establishes connection with a mobile terminal server, judging whether a computer terminal establishes connection with the computer terminal server through the same game account;
if the computer terminal is not connected with the computer server, the computer server sends game data to the mobile server, and the game data is forwarded to the mobile terminal by the mobile server;
if the computer terminal is connected with the computer server, the computer server is disconnected from the communication connection with the computer terminal, and sends the game data to the mobile server, and then the mobile server forwards the game data to the mobile terminal.
7. The method of claim 6, wherein the method comprises: when a user logs in at a mobile terminal through a game account and establishes connection to the mobile terminal server, the method further comprises the following steps:
judging whether other mobile terminals establish connection with the mobile terminal server through the same game account;
if the other mobile terminals are not connected with the mobile terminal server, the computer server sends data to the mobile terminal server, and the data are forwarded to the mobile terminal by the mobile terminal server;
if the other mobile terminals are connected with the mobile terminal server, the mobile terminal server disconnects the communication connection with the other mobile terminals, and the mobile terminal server sends the game data to the mobile terminals.
8. The method for data intercommunication between computer-end and mobile-end games as claimed in claim 6 or 7, wherein: the step of establishing an association relationship between the computer server and the mobile server specifically includes:
establishing a global association table, recording and storing the association relationship between the computer server and the mobile server, and storing the association relationship in an HTTP server;
when a computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server is started, downloading a global association table from the HTTP server, searching a computer terminal server corresponding to the mobile terminal server through the global association table, and establishing connection.
9. The method of claim 6, wherein the method comprises: the step of judging whether the computer terminal establishes a connection with the computer terminal server through the same game account number specifically includes:
the mobile terminal server accesses the computer server and judges whether the computer terminal is connected with the computer server through the game account number at the moment through the computer server;
and the computer server feeds back the judgment result to the mobile server.
10. The method of claim 6, wherein the method comprises: the method comprises the following steps that the computer end server is disconnected from the communication connection with the computer terminal, game data are sent to the mobile end server, and then the game data are forwarded to the mobile terminal by the mobile end server, and specifically comprises the following steps:
judging whether the user fights at the computer terminal, if so, allowing the user to enter a fighting protection period by the computer-side server, and taking over fighting actions by the AI system; if not, the computer server sends the login information to the mobile server, and the mobile server forwards the login information to the mobile terminal;
the computer end server checks whether the user is in a combat protection period, if so, the computer end server sends the combat field data to the mobile end server and forwards the combat field data to the mobile terminal, and the mobile terminal recovers the combat field according to the received field data, sends a combat control request to the mobile end server and forwards the combat control request to the computer end server; if not, directly completing the login.
11. A data intercommunication system in computer end and mobile end games is characterized in that: the system comprises a computer server, a computer terminal, a mobile server and a mobile terminal;
the computer end server end includes:
the login information receiving module is used for receiving login request information of the computer terminal;
the mobile terminal comprises a judging request module, a judging module and a judging module, wherein the judging request module is used for sending request information to a mobile terminal server end and requesting the mobile terminal server end to judge whether the mobile terminal establishes connection with the mobile terminal server end by using a game account number which is the same as that of a computer terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the mobile terminal server; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, sending a disconnection request to the mobile terminal server, requesting the mobile terminal server to disconnect the communication connection with the mobile terminal, and sending game data to the computer terminal;
the computer terminal comprises:
the login request module is used for sending login request information to the server side of the computer side;
the data receiving module is used for receiving game data information sent by the server side of the computer side;
the mobile terminal server terminal includes:
the judgment request receiving module is used for receiving the judgment request information of the server side of the computer side and judging whether the mobile terminal uses the game account number which is the same as that of the computer terminal;
the judgment result sending module is used for sending the judgment result of the judgment request module to a computer server;
and the disconnection request receiving and processing module is used for receiving disconnection request information of the server side of the computer side and disconnecting the communication connection with the mobile terminal.
12. The system of claim 11, wherein the data communication between the computer and the mobile terminal is as follows: the computer end server end further comprises: the login judging module is used for judging whether other computer terminals are connected with the computer end server end through the same game account number or not when a user logs in the computer terminal through the game account number and establishes connection with the computer end server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other computer terminals are not connected with the computer server, the login judgment result processing module sends game data to the computer terminals; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
13. The system for data intercommunication between computer-end and mobile-end games as claimed in claim 11 or 12, wherein: the system also comprises an HTTP server end; the HTTP server end is used for recording and storing the association relationship between the computer end server end and the mobile end server end through the global association table;
when the computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server terminal is started, downloading a global association table from the HTTP server terminal, searching a computer terminal server terminal corresponding to the mobile terminal server terminal through the global association table, and establishing connection.
14. The system of claim 11, wherein the data communication between the computer and the mobile terminal is as follows: the computer end server end further comprises:
the combat judging module is used for judging whether a user fights at the computer terminal when the computer server sends game data to the computer terminal;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal;
the combat period judging module is used for judging whether the user is in a combat protection period;
the combat period judgment result processing module is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the computer terminal; otherwise, directly completing login;
the fighting control request receiving and processing module is used for receiving a fighting control request of the computer terminal and transferring a fighting control right to the computer terminal;
the computer terminal further comprises:
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the computer-side server.
15. A computer server of a game system is characterized in that: the method comprises the following steps:
the login information receiving module is used for receiving login request information of the computer terminal;
the mobile terminal comprises a judging request module, a judging module and a judging module, wherein the judging request module is used for sending request information to a mobile terminal server end and requesting the mobile terminal server end to judge whether the mobile terminal establishes connection with the mobile terminal server end by using a game account number which is the same as that of a computer terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the mobile terminal server; when the mobile terminal is not connected with the mobile terminal server, game data are sent to the computer terminal; when the mobile terminal is connected with the mobile terminal server, a disconnection request is sent to the mobile terminal server, the mobile terminal server is requested to be disconnected from the communication connection with the mobile terminal, and game data are sent to the computer terminal.
16. The computer-side server of the game system of claim 15, wherein: also comprises
The login judging module is used for judging whether other computer terminals are connected with the computer end server end through the same game account number or not when a user logs in the computer terminal through the game account number and establishes connection with the computer end server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other computer terminals are not connected with the computer server, the login judgment result processing module sends game data to the computer terminals; if the other computer terminals are connected with the computer server, the communication connection with the other computer terminals is disconnected, and the game data are sent to the computer terminals.
17. The computer-side server of the game system of claim 16, wherein: also comprises
The combat judging module is used for judging whether a user fights at the computer terminal when the computer server sends game data to the computer terminal;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the computer terminal;
the combat period judging module is used for judging whether the user is in a combat protection period;
the fighting period judgment result processing module is used for receiving the judgment result of the fighting period judgment module, and if the user is in a fighting protection period, the computer end server sends fighting field data to the computer terminal; otherwise, directly completing login;
and the combat control request receiving and processing module is used for receiving the combat control request of the computer terminal and transferring the combat control right to the computer terminal.
18. A data intercommunication system between computer terminal and mobile terminal game is characterized in that: the system comprises a computer server, a computer terminal, a mobile server and a mobile terminal;
the mobile terminal server terminal includes:
the login information receiving module is used for receiving login request information of the mobile terminal;
the judging request module is used for sending request information to a computer server and requesting the computer server to judge whether the computer terminal establishes connection with the computer server by using a game account number which is the same as that of the mobile terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the server side of the computer side; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, sending a disconnection request to the computer server, requesting the computer server to disconnect the communication connection with the computer terminal, and requesting game data to the computer server;
the game data receiving module is used for receiving game data of the server side of the computer side;
and the game data sending module is used for forwarding the game data of the game data receiving module to the mobile terminal.
The mobile terminal includes:
the login request module is used for sending login request information to the mobile terminal server;
the data receiving module is used for receiving game data information sent by the mobile terminal server;
the computer end server end includes:
the judgment request receiving module is used for receiving the judgment request information of the mobile terminal server and judging whether the computer terminal uses the same game account number as the mobile terminal;
a judgment result sending module, configured to send the judgment result of the judgment request module to the mobile terminal server;
the disconnection request receiving and processing module is used for receiving disconnection request information of the mobile terminal server and disconnecting the communication connection with the computer terminal;
and the data sending module is used for sending the game data to the mobile terminal server according to the data request of the mobile terminal server.
19. The system of claim 18, wherein the data communication between the computer and the mobile terminal is as follows: the mobile terminal server further comprises:
the login judging module is used for judging whether other mobile terminals establish connection with the mobile terminal server end through the same game account number or not when a user logs in the mobile terminal through the game account number and establishes connection with the mobile terminal server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other mobile terminals are not connected with the mobile terminal server, sending a game data request to the computer terminal server; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
20. The system for data communication between computer-end and mobile-end games according to claim 18 or 19, wherein: the system also comprises an HTTP server end; the HTTP server end is used for recording and storing the association relationship between the computer end server end and the mobile end server end through the global association table;
when the computer server is started, downloading a global association table from the HTTP server, searching a mobile server corresponding to the computer server through the global association table, and establishing connection;
and when the mobile terminal server terminal is started, downloading a global association table from the HTTP server terminal, searching a computer terminal server terminal corresponding to the mobile terminal server terminal through the global association table, and establishing connection.
21. The system of claim 20, wherein the data communication between the computer and the mobile terminal is as follows: the computer end server end further comprises:
the combat judging module is used for judging whether a user fights at the computer terminal when the computer server sends game data to the mobile server;
the battle judgment result processing module is used for receiving the judgment result of the battle judgment module; if the user fights at the computer terminal, the computer server end enables the user to enter a fighting protection period and takes over fighting actions by the AI system; otherwise, the computer server sends the login information to the mobile server;
the combat period judging module is used for judging whether the user is in a combat protection period;
the combat period judgment result processing module is used for receiving the judgment result of the combat period judgment module, and if the user is in a combat protection period, the computer end server end sends combat field data to the mobile end server end; otherwise, sending login information to the mobile terminal server; the mobile terminal server side sends the received battle field data to the mobile terminal through the data sending module;
the combat control request receiving and processing module is used for receiving a combat control request of the computer terminal and transferring a combat control right to the mobile terminal through the mobile terminal server;
the mobile terminal further includes:
the field data recovery module is used for recovering a battle field according to the received field data;
and the combat control request module is used for sending a combat control request to the mobile terminal server and sending the combat control request to the computer terminal server from the mobile terminal server.
22. A mobile terminal server of a game system is characterized in that: the method comprises the following steps:
the login information receiving module is used for receiving login request information of the mobile terminal;
the judging request module is used for sending request information to a computer server and requesting the computer server to judge whether the computer terminal establishes connection with the computer server by using a game account number which is the same as that of the mobile terminal;
the judgment result receiving and processing module is used for receiving the judgment result of the server side of the computer side; when the computer terminal is not connected with the computer server, the game data request is sent to the computer server; if the computer terminal is connected with the computer server, sending a disconnection request to the computer server, requesting the computer server to disconnect the communication connection with the computer terminal, and requesting game data to the computer server;
the game data receiving module is used for receiving game data of the server side of the computer side;
and the game data sending module is used for forwarding the game data of the game data receiving module to the mobile terminal.
23. The mobile server of the game system according to claim 22, wherein: further comprising:
the login judging module is used for judging whether other mobile terminals establish connection with the mobile terminal server end through the same game account number when a user logs in the mobile terminal through the game account number and establishes connection with the mobile terminal server end;
the login judgment result processing module is used for receiving the judgment result of the login judgment module, and if other mobile terminals are not connected with the mobile terminal server, sending a game data request to the computer terminal server; if the other mobile terminals are connected with the mobile terminal server, the communication connection with the other mobile terminals is disconnected, and the game data request is sent to the computer server.
24. A mobile terminal of a game system, characterized by: the method comprises the following steps:
the login request module is used for sending login request information to the mobile terminal server;
the data receiving module is used for receiving game data information sent by the mobile terminal server;
the field data recovery module is used for recovering a battle field according to the received field data;
the combat control request module is used for sending a combat control request to the mobile terminal server and sending the combat control request to the computer terminal server from the mobile terminal server;
the battle analysis module is used for analyzing the received battle protocol data;
and the combat logic module is used for sequentially executing the combat protocol in a queue form, and the combat animation is played by taking the round as a unit.
25. A mobile terminal for a gaming system according to claim 24, wherein: also comprises a region division display module which is used for displaying the region division,
the method is used for dividing a display screen of the mobile terminal into: a combat zone, a chat zone, and a functional operations zone.
CN201510706949.8A 2015-10-27 2015-10-27 Method and system for data intercommunication in game, terminal and server thereof Active CN106606865B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510706949.8A CN106606865B (en) 2015-10-27 2015-10-27 Method and system for data intercommunication in game, terminal and server thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510706949.8A CN106606865B (en) 2015-10-27 2015-10-27 Method and system for data intercommunication in game, terminal and server thereof

Publications (2)

Publication Number Publication Date
CN106606865A CN106606865A (en) 2017-05-03
CN106606865B true CN106606865B (en) 2020-01-03

Family

ID=58615478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510706949.8A Active CN106606865B (en) 2015-10-27 2015-10-27 Method and system for data intercommunication in game, terminal and server thereof

Country Status (1)

Country Link
CN (1) CN106606865B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108132812A (en) * 2017-12-21 2018-06-08 维沃移动通信有限公司 A kind of method of data synchronization, mobile terminal and server
US10249140B1 (en) * 2018-05-10 2019-04-02 Huuuge Global Ltd. System and method for playing online game
CN109529357A (en) * 2018-11-21 2019-03-29 北京像素软件科技股份有限公司 Troop's data processing method and device
CN111282267B (en) * 2020-02-11 2021-08-20 腾讯科技(深圳)有限公司 Information processing method, information processing apparatus, information processing medium, and electronic device
CN111228811B (en) * 2020-02-13 2021-08-10 腾讯科技(深圳)有限公司 Virtual object control method, device, equipment and medium
CN112433870A (en) * 2020-12-01 2021-03-02 网易(杭州)网络有限公司 Data calling method and device, computer readable storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863061A (en) * 2005-09-28 2006-11-15 华为技术有限公司 Method of automatically recovering of mobile terminal on internet game interrupting and system thereof
CN104657203A (en) * 2013-11-21 2015-05-27 腾讯科技(深圳)有限公司 Task execution method, device and system
CN104717542A (en) * 2015-03-26 2015-06-17 海信集团有限公司 Method, device and system for obtaining synchronization information of intelligent television
CN104765793A (en) * 2015-03-24 2015-07-08 广东欧珀移动通信有限公司 Software recommending method and server

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4001896B2 (en) * 2005-11-30 2007-10-31 株式会社コナミデジタルエンタテインメント Game system, server and terminal
JP5782147B2 (en) * 2014-02-18 2015-09-24 グリー株式会社 Incentive granting method, incentive granting server, and incentive granting program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863061A (en) * 2005-09-28 2006-11-15 华为技术有限公司 Method of automatically recovering of mobile terminal on internet game interrupting and system thereof
CN104657203A (en) * 2013-11-21 2015-05-27 腾讯科技(深圳)有限公司 Task execution method, device and system
CN104765793A (en) * 2015-03-24 2015-07-08 广东欧珀移动通信有限公司 Software recommending method and server
CN104717542A (en) * 2015-03-26 2015-06-17 海信集团有限公司 Method, device and system for obtaining synchronization information of intelligent television

Also Published As

Publication number Publication date
CN106606865A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN106606865B (en) Method and system for data intercommunication in game, terminal and server thereof
KR102325311B1 (en) Method and apparatus for synchronously displaying game content, and storage medium
CN107404514A (en) Data processing method and device
US9873044B2 (en) Method for controlling server device, server device, computer-readable recording medium and game system
WO2020155951A1 (en) Attribute value recovery method and device, storage medium, and electronic device
CN111298430A (en) Virtual item control method and device, storage medium and electronic device
CN108310771A (en) The execution method and apparatus of task, storage medium, electronic device
CN108540450B (en) Data transmitting and receiving method and device
CN108144303A (en) Exchange method and device, storage medium and electronic device between account number of playing
CN107911374A (en) Method of data synchronization and device, storage medium and electronic device
CN110841277B (en) Control method and device of virtual operation object based on touch screen and storage medium
CN104009969B (en) A kind of means of communication of network game system
WO2017086821A1 (en) Method for determining cheating and match outcome in video games via recording player screens
CN108295470B (en) Virtual application control method and device, storage medium and electronic device
CN103581197B (en) Cross-server realizes the method and system of team's data processing
CN108261762A (en) Method of data synchronization and device, storage medium and electronic device
CN111355990A (en) Video acquisition method and device, computer readable storage medium and electronic equipment
CN112107856B (en) Hit feedback method and device, storage medium and electronic equipment
CN105577794B (en) A kind of operation method of compound single innings of match network model
CN110507988A (en) A kind of game broken string Auto-reconnect method and system
CN104778085A (en) Method and device for processing game fight of hand-tour
CN111359207A (en) Operation method and device of virtual prop, storage medium and electronic device
WO2014035004A1 (en) Method and system for switching to game artificial intelligence when communication error occurs in online mobile game
CN113559506B (en) Automatic testing method and device for frame synchronization and readable storage medium
WO2023226565A1 (en) Virtual character tracing method and apparatus, storage medium, device and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant