Game method and device based on live interface and game live interaction system

文档序号:1079921 发布日期:2020-10-20 浏览:15次 中文

阅读说明:本技术 基于直播界面的游戏方法及装置、游戏直播互动系统 (Game method and device based on live interface and game live interaction system ) 是由 梁波 朱延臻 陈钢 尹会生 吴淞 刘明敏 于 2020-07-03 设计创作,主要内容包括:本申请提供基于直播界面的游戏方法及装置、游戏直播互动系统,其中所述基于直播界面的游戏方法,应用于直播服务器,包括:接收直播终端发送的连接指令,其中,所述连接指令包括直播间标识、参与者标识,参与者角色标识;根据所述直播间标识确定对应的目标角色标识和目标游戏服务器标识;根据所述参与者标识、所述参与者角色标识和所述目标角色标识生成连接信息,并将所述连接信息发送至目标游戏服务器。(The application provides a game method and device based on a live interface and a game live interaction system, wherein the game method based on the live interface is applied to a live server and comprises the following steps: receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; and generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to a target game server.)

1. A game method based on a live interface is applied to a live server and comprises the following steps:

receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier;

determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier;

and generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to a target game server.

2. A live interface-based gaming method as defined in claim 1, the method further comprising:

receiving a reward instruction sent by the live broadcast terminal, wherein the reward instruction comprises a live broadcast room identifier, a virtual property identifier corresponding to a reward virtual property, and a participant role identifier;

determining a corresponding target game server identifier according to the live broadcast room identifier, and determining an operation instruction and an instruction parameter according to the virtual prop identifier;

and generating an interaction data packet according to the participant role identification, the operation instruction and the instruction parameter, and sending the interaction data packet to a target game server.

3. A game method based on a live interface is applied to a game server and comprises the following steps:

receiving connection information sent by a live broadcast server;

analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information;

determining a target game client according to the target role identification, and sending the participant identification and the participant role identification to the target game client;

and under the condition that the received response instruction returned by the target game client is an agreement instruction, generating a participant role corresponding to the participant role identifier in the game scene where the target role corresponding to the target role identifier is located.

4. A live interface-based gaming method as defined in claim 3, the method further comprising:

receiving an interactive data packet sent by the live broadcast server;

analyzing the interactive data packet to obtain participant role identification, operation instructions and instruction parameters in the interactive data packet;

and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result.

5. The live interface-based gaming method of claim 4, wherein the method further comprises:

under the condition that the operation instruction is a movement instruction, determining the position distance between the participant role and the target role according to the position information of the participant role and the position information of the target role;

and when the position distance is greater than or equal to a preset threshold value, the movement instruction fails.

6. A live interface-based gaming method as defined in claim 3, the method further comprising:

and in the case that a preset exit condition is reached, exiting the participant role.

7. The live interface-based game method of claim 6, wherein the preset exit conditions include:

the target character exits the game;

the participant character exits the game; or

The game duration of the participant role reaches a preset game duration.

8. The live interface-based gaming method of claim 4, wherein prior to executing the operational instructions on the participant character in accordance with the instruction parameters and generating corresponding operational results, the method further comprises:

analyzing the interactive data packet to obtain a protocol number in the interactive data packet;

and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result under the condition that the protocol number is consistent with a preset standard protocol number.

9. The live interface-based gaming method of claim 4, wherein after executing the operational instructions on the participant character according to the instruction parameters and generating corresponding operational results, the method further comprises:

and rendering and generating a corresponding game picture according to the operation result, and transmitting the game picture to the target game client.

10. The live interface-based gaming method of claim 4, wherein after executing the operational instructions on the participant character according to the instruction parameters and generating corresponding operational results, the method further comprises:

and sending the operation result to the target game client so that the target game client generates a corresponding game picture according to the operation result in a rendering mode.

11. A game device based on a live interface, configured to a live server, comprising:

the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a connection instruction sent by a live broadcast terminal, and the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier;

the first determination module is configured to determine corresponding target role identification and target game server identification according to the live broadcast room identification;

a first sending module configured to generate connection information according to the participant identifier, the participant character identifier, and the target character identifier, and send the connection information to a target game server.

12. A game device based on a live interface, configured to a game server, comprising:

the third receiving module is configured to receive the connection information sent by the live broadcast server;

the first analysis module is configured to analyze the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information;

the third sending module is configured to determine a target game client according to the target role identifier and send the participant identifier and the participant role identifier to the target game client;

and the generating module is configured to generate a participant role corresponding to the participant role identifier in a game scene where the target role corresponding to the target role identifier is located, when the response instruction returned by the target game client is an agreement instruction.

13. A game live broadcast interaction system is characterized by comprising a live broadcast server, a game server and a game client, wherein the live broadcast server and the game client are respectively in communication connection with the game server;

the live broadcast server is configured to receive a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to the game server;

the game server is configured to receive the connection information sent by the live broadcast server; analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information; determining a game client according to the target role identification, and sending the participant identification and the participant role identification to the game client;

the game client is configured to display the received participant identification and the participant role identification, receive a response instruction and return the response instruction to the game server;

the game server is further configured to generate a participant character corresponding to the participant character identifier in a game scene where a target character corresponding to the target character identifier is located, when the response instruction returned by the target game client is an agreement instruction.

14. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any of claims 1-2 or 3-10 when executing the instructions.

15. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1-2 or 3-10.

Technical Field

The present application relates to the field of internet technologies, and in particular, to a live interface-based game method and apparatus, a live game interaction system, a computing device, and a computer-readable storage medium.

Background

With the development of internet technology, the live broadcast industry is rapidly developed, more and more live broadcast platforms come out, and the game live broadcast occupies an important position in the live broadcast platform.

In the existing live game, live broadcast audiences can only watch the main broadcast to play games, if the live broadcast audiences want to participate in the games, the game clients need to be downloaded, account numbers are registered, and game roles are created, but the game clients are larger and larger due to the development of game technology and more exquisite game pictures, so that when a plurality of users are attracted by the games to want to participate in the games, the users are abandoned due to complicated downloading, registering and other operations, and the users are lost.

Therefore, how to solve the above problems becomes a problem to be solved urgently by the skilled person.

Disclosure of Invention

In view of this, embodiments of the present application provide a game method and apparatus based on a live interface, a game live interaction system, a computing device, and a computer-readable storage medium, so as to solve technical defects in the prior art.

According to a first aspect of the embodiments of the present application, there is provided a game method based on a live interface, applied to a live server, including:

receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier;

determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier;

and generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to a target game server.

Optionally, the method further includes:

receiving a reward instruction sent by the live broadcast terminal, wherein the reward instruction comprises a live broadcast room identifier, a virtual property identifier corresponding to a reward virtual property, and a participant role identifier;

determining a corresponding target game server identifier according to the live broadcast room identifier, and determining an operation instruction and an instruction parameter according to the virtual prop identifier;

and generating an interaction data packet according to the participant role identification, the operation instruction and the instruction parameter, and sending the interaction data packet to a target game server.

According to a second aspect of the embodiments of the present application, there is provided a game method based on a live interface, applied to a game server, including:

receiving connection information sent by a live broadcast server;

analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information;

determining a target game client according to the target role identification, and sending the participant identification and the participant role identification to the target game client;

and under the condition that the received response instruction returned by the target game client is an agreement instruction, generating a participant role corresponding to the participant role identifier in the game scene where the target role corresponding to the target role identifier is located.

Optionally, the method further includes:

receiving an interactive data packet sent by the live broadcast server;

analyzing the interactive data packet to obtain participant role identification, operation instructions and instruction parameters in the interactive data packet;

and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result.

Optionally, the method further includes:

under the condition that the operation instruction is a movement instruction, determining the position distance between the participant role and the target role according to the position information of the participant role and the position information of the target role;

and when the position distance is greater than or equal to a preset threshold value, the movement instruction fails.

Optionally, the method further includes:

and in the case that a preset exit condition is reached, exiting the participant role.

Optionally, the preset exit condition includes:

the target character exits the game;

the participant character exits the game; or

The game duration of the participant role reaches a preset game duration.

Optionally, before executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result, the method further includes:

analyzing the interactive data packet to obtain a protocol number in the interactive data packet;

and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result under the condition that the protocol number is consistent with a preset standard protocol number.

Optionally, after the operation instruction is executed on the participant role according to the instruction parameter and a corresponding operation result is generated, the method further includes:

and rendering and generating a corresponding game picture according to the operation result, and transmitting the game picture to the target game client.

Optionally, after the operation instruction is executed on the participant role according to the instruction parameter and a corresponding operation result is generated, the method further includes:

and sending the operation result to the target game client so that the target game client generates a corresponding game picture according to the operation result in a rendering mode.

According to a third aspect of the embodiments of the present application, there is provided a game device based on a live interface, configured in a live server, including:

the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is configured to receive a connection instruction sent by a live broadcast terminal, and the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier;

the first determination module is configured to determine corresponding target role identification and target game server identification according to the live broadcast room identification;

a first sending module configured to generate connection information according to the participant identifier, the participant character identifier, and the target character identifier, and send the connection information to a target game server.

According to a fourth aspect of the embodiments of the present application, there is provided a game device based on a live interface, configured in a game server, including:

the third receiving module is configured to receive the connection information sent by the live broadcast server;

the first analysis module is configured to analyze the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information;

the third sending module is configured to determine a target game client according to the target role identifier and send the participant identifier and the participant role identifier to the target game client;

and the generating module is configured to generate a participant role corresponding to the participant role identifier in a game scene where the target role corresponding to the target role identifier is located, when the response instruction returned by the target game client is an agreement instruction.

According to a fifth aspect of the embodiments of the present application, a game live broadcast interactive system is provided, which includes a live broadcast server, a game server, and a game client, where the live broadcast server and the game client are respectively in communication connection with the game server;

the live broadcast server is configured to receive a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to the game server;

the game server is configured to receive the connection information sent by the live broadcast server; analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information; determining a game client according to the target role identification, and sending the participant identification and the participant role identification to the game client;

the game client is configured to display the received participant identification and the participant role identification, receive a response instruction and return the response instruction to the game server;

the game server is further configured to generate a participant character corresponding to the participant character identifier in a game scene where a target character corresponding to the target character identifier is located, when the response instruction returned by the target game client is an agreement instruction.

According to a sixth aspect of embodiments of the present application, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the live interface-based gaming method when executing the instructions.

According to a seventh aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the live interface-based gaming method.

The game method based on the live broadcast interface is applied to a live broadcast server, and comprises the steps of receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; and generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to a target game server. Therefore, live broadcast audiences can directly initiate a game connection instruction in a live broadcast room without downloading a game client and without a game account number, and connection with a game server is established.

Secondly, the participant role created in the game is controlled by the method for enjoying the props for the participant role, so that live viewers can participate in the game without game accounts, the enjoyment of the game is realized, the game is favorably updated, and live users are converted into game users.

Drawings

FIG. 1 is a block diagram of a computing device provided by an embodiment of the present application;

FIG. 2 is a flow chart of a live interface-based game method provided by an embodiment of the present application;

FIG. 3 is a flow chart of a live interface-based gaming method according to another embodiment of the present application;

fig. 4 is a schematic application scene diagram of a game live broadcast interaction system provided in an embodiment of the present application;

FIG. 5 is a schematic structural diagram of a game device based on a live interface according to an embodiment of the present application;

fig. 6 is a schematic structural diagram of a game device based on a live interface according to another embodiment of the present application.

Detailed Description

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.

The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.

It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.

First, the noun terms to which one or more embodiments of the present invention relate are explained.

Participant identification: identification of live spectators participating in the game.

Participant role identification: identification of the in-game character selected by the participant.

And (3) target role identification: the game host plays the identification of the character in the game.

In the present application, a game method and apparatus based on a live interface, a game live interaction system, a computing device, and a computer-readable storage medium are provided, and details are described in the following embodiments one by one.

FIG. 1 shows a block diagram of a computing device 100 according to an embodiment of the present application. The components of the computing device 100 include, but are not limited to, memory 110 and processor 120. The processor 120 is coupled to the memory 110 via a bus 130 and a database 150 is used to store data.

Computing device 100 also includes access device 140, access device 140 enabling computing device 100 to communicate via one or more networks 160. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. Access device 140 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.

In one embodiment of the present application, the above-mentioned components of the computing device 100 and other components not shown in fig. 1 may also be connected to each other, for example, by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 1 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.

Computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), a mobile phone (e.g., smartphone), a wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 100 may also be a mobile or stationary server.

Wherein the processor 120 may execute the steps in the live interface-based gaming method shown in fig. 2. Fig. 2 is a flowchart illustrating a live interface-based game method applied to a live server according to an embodiment of the present application, including steps 202 to 206.

Step 202: receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier.

The connection instruction is an instruction which is initiated by a live audience and is connected with the game server, the live audience is a participant, and the participant can establish connection with the game server through the connection instruction.

The live broadcast room identification is an identification which can uniquely determine the live broadcast room, the participant identification is an identification of live broadcast audiences in a live broadcast server, and the participant role identification is an identification corresponding to a game role selected by the participant in a game.

In the embodiment provided by the application, taking a live broadcast audience A to participate in a live broadcast game as an example, the live broadcast audience A initiates a connection instruction in a live broadcast room, and a live broadcast terminal where the live broadcast room is located sends the connection instruction to a live broadcast server, wherein the connection instruction comprises a live broadcast room identifier "ZB 001", a participant identifier "A", and a participant role identifier "G001".

Step 204: and determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier.

The target role identification is the role identification corresponding to the role controlled by the anchor in the game played in the live broadcast room, and the target game server identification is the game server identification corresponding to the game.

And determining the target role identification corresponding to the role controlled by the anchor and the target game server identification corresponding to the game in the current live game according to the live broadcast room identification.

In the embodiment provided by the present application, following the above example, it is determined that the target character identifier of the anchor in the live game is "Z001" and the target game server identifier is "S001" according to the live broadcast room identifier "ZB 001".

Step 206: and generating connection information according to the participant identification, the participant role identification and the target role identification, and sending the connection information to a target game server.

The target game server is a game server corresponding to the target game server identification, and the target game server can be uniquely determined according to the target game server identification.

And in the live broadcast server, packaging the participant identification, the participant role identification and the target role identification to generate connection information, and sending the connection information to the target game server.

In the embodiment provided by the application, the above example is used, the participant identifier "a", the participant character identifier "G001", and the target character identifier "Z001" are packaged to generate the connection information, and the connection information is sent to the game server corresponding to the target game server identifier "S001".

Optionally, the method further includes step S2082 to step S2086.

S2082, receiving a reward instruction sent by the live broadcast terminal, wherein the reward instruction comprises a live broadcast room identifier, a virtual item identifier corresponding to a reward virtual item, and a participant role identifier.

After a corresponding participant role is created for a participant in a game, the participant controls the participant role through a reward gift, the participant generates a reward instruction by clicking a gift control of a live broadcast room and clicking a reward button, and the live broadcast terminal sends the reward instruction to a live broadcast server.

And the live broadcast server receives the reward instruction and acquires a live broadcast room identifier, a virtual prop identifier and a participant role identifier in the reward instruction.

In the embodiment provided by the application, following the above example, a corresponding participant character has been created for the participant in the game, the participant character identifier is "G001", the participant controls the participant character by way of enjoying the gift, receives the enjoyment instruction, and acquires the live broadcast room identifier "ZB 001", the virtual item identifier "Y0002", and the participant character identifier "G001" in the enjoyment instruction.

S2084, determining a corresponding target game server identifier according to the live broadcast room identifier, and determining an operation instruction and an instruction parameter according to the virtual item identifier.

Determining an operation instruction and an instruction parameter corresponding to the virtual prop according to the virtual prop identifier, wherein if the virtual gift corresponding to the virtual prop identifier "Y0002" is "big power pill", the corresponding operation instruction is "adding blood", and the instruction parameter is "500 points"; the virtual gift corresponding to the virtual property identifier "Y0004" is an "explosion order", the corresponding operation is "blood reduction", the instruction parameter is "300 points", the virtual gift corresponding to the virtual property identifier "Y0012" is a "pass token", the corresponding operation is "forward", and the instruction parameter is "3 meters".

In the embodiment provided by the application, the above example is used, the corresponding target game server identifier is determined to be "S001" according to the live broadcast room identifier "ZB 001", the corresponding operation instruction is determined to be "bleeding" according to the virtual item identifier "Y0002", and the instruction parameter is "500 points".

S2086, generating an interaction data packet according to the participant role identification, the operation instruction and the instruction parameter, and sending the interaction data packet to a target game server.

In the embodiment provided by the application, the participant character identifier "G001", the operation instruction "blood adding" and the instruction parameter "500 points" are packaged to generate the interactive data packet, and the interactive data packet is sent to the target game server.

The game method based on the live broadcast interface is applied to a live broadcast server and comprises the steps of receiving a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; and generating connection information according to the participant identification, the participant role identification and the target role identification, sending the connection information to a target game server, and sending a connection instruction through a live broadcast server, so that live broadcast audiences can initiate a game connection instruction in a live broadcast room under the conditions of not downloading a game client and having no game account, and the enthusiasm of the live broadcast audiences in participating the game is improved.

Processor 120 may also perform steps in the live interface-based gaming method of fig. 3. Fig. 3 is a flowchart illustrating a live interface-based game method applied to a game server according to an embodiment of the present application, including steps 302 to 308.

Step 302: and receiving the connection information sent by the live broadcast server.

In the embodiment provided by the application, taking a live-broadcast audience A participating in a live-broadcast game as an example, the game server receives connection information sent by the live-broadcast server.

Step 304: analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information.

In the embodiment provided by the present application, the connection information is analyzed to obtain the participant identifier "a", the participant role identifier "G001", and the target role identifier "Z001" in the connection information, following the above example.

Step 306: and determining a target game client according to the target role identification, and sending the participant identification and the participant role identification to the target game client.

The game client runs in the anchor terminal, and the anchor plays games through the anchor terminal and carries out real-time live broadcast on the games through a live broadcast room running in the same way as the anchor terminal. The anchor terminal can be a computer, a mobile phone, a tablet personal computer and other equipment, for example, the anchor plays games in the computer through a game client of the game A and live broadcasts the game playing process through a live broadcast room of the live broadcast platform B, or the anchor plays games in the mobile phone through a game client of the game M and live broadcasts the game playing process through a live broadcast room of the live broadcast platform N.

The game server is connected with a plurality of game clients, each game client corresponds to one game account, each game account corresponds to one role identification, and the corresponding game account can be determined according to the target role identification so as to determine the corresponding target game client.

After determining a target game client, sending the participant identification and the participant role identification to the target game client.

In the embodiment provided by the present application, following the above example, the participant identification "a" and the participant character identification "G001" are sent to the target game client.

Step 308: and under the condition that the received response instruction returned by the target game client is an agreement instruction, generating a participant role corresponding to the participant role identifier in the game scene where the target role corresponding to the target role identifier is located.

Waiting for the target game client to return a response instruction, and under the condition that the received response instruction is the approval instruction, indicating that the anchor approves the application, and generating a participation role corresponding to the participant role identifier in a game scene where the target role corresponding to the target role identifier is located, so that participants (live audience) can participate in the game.

In practical application, the participant role can be a teammate of the target role, and the participant role and the target role form a team task together; the participant role can also be an opponent of the target role, and the participant role and the target role play in a mutual pairing mode; the participant character may also be an affiliate of the target character, such as a pet, a summons animal, etc. for which the participant character is the target character.

In the embodiment provided by the present application, following the above example, when the response instruction received by the game server is an agreement, the game scene in which the target character is located is "scene 1", and the participant character "warrior" corresponding to the participant character identifier "G001" is generated in "scene 1".

Optionally, the method further includes steps S3102 to S3106:

s3102, receiving the interactive data packet sent by the live broadcast server.

After the participant role is created, the participant role is controlled by receiving an interactive data packet sent by a live broadcast server.

In the embodiment provided by the application, taking the role identifier of the participant as "G001" as an example, the interactive data packet sent by the live broadcast server is received.

S3104, analyzing the interactive data packet to obtain the participant role identification, the operation instruction and the instruction parameter in the interactive data packet.

In the embodiment provided by the application, the above example is used, and the received interactive data packet is analyzed to obtain the participant role identifier "G001", the operation instruction "blood adding" and the instruction parameter "500 point" in the interactive data packet.

Optionally, the method further includes: analyzing the interactive data packet to obtain a protocol number in the interactive data packet; and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result under the condition that the protocol number is consistent with a preset standard protocol number.

And the interactive data packet also comprises a protocol number, the protocol number is used for determining whether the interactive data packet is legal or not, and if the protocol number is consistent with a preset standard protocol number, the interactive data packet is determined to be legal, and the data in the interactive data packet is approved, the operation of executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result is executed.

S3106, executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result.

And executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result, namely after the operation instruction and the instruction parameter are obtained, executing corresponding operation on the participant role and obtaining a corresponding result. If the operation instruction is 'blood adding' and the instruction parameter is '500 points', executing the operation of adding 500 points on the participant role, and increasing the blood volume of the participant role by 500 points as the operation result; or if the operation instruction is 'forward' and the instruction parameter is '3 meters', the operation of advancing by 3 meters is executed on the participant role, and the operation result is that the participant role advances by 3 meters.

In the embodiment provided by the application, following the above example, the operation of adding blood is performed on the participant character "fighter" according to the instruction parameter "500 points", and the operation result that the blood volume of the corresponding fighter is increased by 500 points is generated.

Optionally, the method further includes: under the condition that the operation instruction is a movement instruction, determining the position distance between the participant role and the target role according to the position information of the participant role and the position information of the target role; and when the position distance is greater than or equal to a preset threshold value, the movement instruction fails.

Because the participant does not have an account number in the game, the participation in the game through live broadcast of the game is based on the premise that the target role agrees to experience the game, and therefore the distance between the participant role and the target role cannot be larger than a preset threshold value. I.e. a certain distance is maintained between the participant character and the target character.

In the embodiment provided by the application, following the above example, if the preset threshold is 8 meters, it is indicated that the distance between the participant character and the target character needs to be less than or equal to 8 meters, at this time, the received movement instruction is "forward", the instruction parameter is "5 meters", the participant character is controlled to execute the corresponding movement operation, the distance between the participant character and the target character is determined in real time according to the coordinate of the participant character and the coordinate of the target character, and when the distance between the participant character and the target character reaches 8 meters, the participant character cannot move forward any more.

Optionally, the method further includes: and in the case that a preset exit condition is reached, exiting the participant role.

In practical applications, the participant character can only experience the game temporarily, and needs to quit when a preset quit condition is reached.

Optionally, the preset exit condition includes: the target character exits the game, the participant character exits the game or the game time of the participant character reaches the preset game time.

Specifically, in practical applications, when a target character actively exits the game, a participant character associated with the target character exits the game; or the participant character actively quits the game; or the participant role participates in the game through a time-limited game prop, the service time of the time-limited prop is the preset game time, and the participant role is quitted under the condition that the game time of the participant reaches the preset game time.

In a specific embodiment provided by the application, a participant character is generated through a time-limited prop, the limited time is 5 minutes, and the participant character is quitted by counting the game time of the participant character when the game time reaches 5 minutes.

Optionally, the method further includes: and rendering and generating a corresponding game picture according to the operation result, and transmitting the game picture to the target game client.

In practical applications, the game played by the anchor may be a cloud game, and game pictures of the cloud game are all generated in the game server, so that the game server generates a corresponding game picture according to the rendering of the operation result, and sends the game picture to the game client in a streaming media manner.

In a specific embodiment provided by the present application, the game server performs an operation of adding blood to a participant character "fighter" according to an instruction parameter "500 points", generates an operation result that the blood volume of the corresponding fighter increases by 500 points, renders and generates a corresponding game screen in the game server, and sends the game screen to the target game client in the form of streaming media.

Optionally, the method further includes: and sending the operation result to the target game client so that the target game client generates a corresponding game picture according to the operation result in a rendering mode.

In practical applications, the game played by the anchor may not be a cloud game, that is, the game screen is generated by rendering in the game client, and the game server needs to send the operation result to the target game client, so that the target game client generates the corresponding game screen by rendering according to the operation result.

The game method based on the live broadcast interface is applied to a game server and receives connection information sent by the live broadcast server; analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information; determining a target game client according to the target role identification, and sending the participant identification and the participant role identification to the target game client; and under the condition that the received response instruction returned by the target game client is an agreement instruction, generating a participant role corresponding to the participant role identifier in the game scene where the target role corresponding to the target role identifier is located, so that participants (live audience) can experience the game without downloading the game client and registering an account, the enthusiasm of the participants in participating the game is improved, the game is favorably updated, and a live user is converted into a game user.

Secondly, the participants control the participants to play games in a manner of watching gifts without downloading game clients, and therefore the method is convenient and fast and improves the game experience of the participants.

Fig. 4 is a schematic view of an application scene of the live game interaction system according to an embodiment of the present application, where the live game interaction system includes a live server 404, a game server 406, and a game client 4082, where the live server 404 and the game client 4082 are respectively in communication connection with the game server 406;

the live broadcast server 404 is configured to receive a connection instruction sent by the live broadcast terminal 402, where the connection instruction includes a live broadcast room identifier, a participant identifier, and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; generating connection information according to the participant identifier, the participant character identifier, and the target character identifier, and sending the connection information to the game server 406;

the game server 406 is configured to receive the connection information sent by the live broadcast server 404; analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information; determining a game client according to the target role identifier, and sending the participant identifier and the participant role identifier to the game client 4082;

the game client 4082, configured to display the received participant identification and the participant character identification, receive a response instruction, and return the response instruction to the game server 406;

in practical application, the game client runs in the anchor terminal, when receiving the participant identifier and the participant role identifier, a connection prompt is generated in the game client, and the anchor can select the agreement button to send an agreement instruction or the rejection button to send a rejection instruction.

In one embodiment provided by the present application, the game client receives a participant character identifier "G001", determines that the participant character corresponding to the participant character identifier is "fighter", and displays in the game client that "is the live audience 'a' who wants to play with you using 'fighter', agrees? ". The anchor can click the agreement control to return an agreement instruction, and can click the rejection control to return a rejection instruction.

The game server 406 is further configured to, when receiving that the response instruction returned by the target game client is an agreement instruction, generate a participant character corresponding to the participant character identifier in a game scene in which a target character corresponding to the target character identifier is located.

Optionally, the live broadcast server 404 is further configured to receive an appreciation instruction sent by the live broadcast terminal, where the appreciation instruction includes a live broadcast room identifier, a virtual item identifier corresponding to an appreciation virtual item, and a participant role identifier; determining a corresponding target game server identifier according to the live broadcast room identifier, and determining an operation instruction and an instruction parameter according to the virtual prop identifier; generating an interaction data packet according to the participant role identifier, the operation instruction and the instruction parameter, and sending the interaction data packet to a game server 406;

the game server 406 is further configured to receive the interaction data packet sent by the live broadcast server 404; analyzing the interactive data packet to obtain participant role identification, operation instructions and instruction parameters in the interactive data packet; and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result.

Optionally, the game server 406 is further configured to, in a case that the operation instruction is a movement instruction, determine a position distance between the participant character and the target character according to the position information of the participant character and the position information of the target character; and when the position distance is greater than or equal to a preset threshold value, the movement instruction fails.

Optionally, the game server 406 is further configured to quit the participant character if a preset quit condition is reached, where the preset quit condition includes: and the target role exits the game, and the participant role exits the game or the game time of the participant role reaches the preset game time.

Optionally, the game server 406 is further configured to parse the interactive data packet to obtain a protocol number in the interactive data packet; and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result under the condition that the protocol number is consistent with a preset standard protocol number.

Optionally, the game server 406 is further configured to generate a corresponding game screen according to the rendering of the operation result, and transmit the game screen to the game client 4082.

Optionally, the game server 406 is further configured to send the operation result to the target game client;

the game client 4082 is further configured to generate a corresponding game screen according to the rendering of the operation result.

The live broadcast interactive system of game that this application embodiment provided, live broadcast spectator can directly launch the game connection request to the anchor in the live broadcast room at live broadcast terminal, after the anchor agrees to insert, need not to install the recreation client, also need not to establish under the condition of game account, can experience the game through participant's role, can organize the team game with the target role of anchor control, also can fight with the target role of anchor control, also can be as the pet of the target role of anchor control, experience the enjoyment of game from many angles, be favorable to changing live broadcast spectator into game user, it has obvious effect to the game to pull newly.

Corresponding to the above embodiment of the game method based on the live interface applied to the live server, the present application further provides an embodiment of a game device based on the live interface configured in the live server, and fig. 5 shows a schematic structural diagram of the game device based on the live interface according to an embodiment of the present application. As shown in fig. 5, the apparatus includes:

a first receiving module 502 configured to receive a connection instruction sent by a live broadcast terminal, where the connection instruction includes a live broadcast room identifier, a participant identifier, and a participant role identifier;

a first determining module 504 configured to determine a corresponding target character identifier and a target game server identifier according to the live broadcast room identifier;

a first sending module 506 configured to generate connection information according to the participant identifier, the participant character identifier, and the target character identifier, and send the connection information to a target game server.

Optionally, the apparatus further comprises:

the second receiving module is configured to receive an appreciation instruction sent by the live broadcast terminal, wherein the appreciation instruction comprises a live broadcast room identifier, a virtual item identifier corresponding to an appreciation virtual item, and a participant role identifier;

the second determining module is configured to determine a corresponding target game server identifier according to the live broadcast room identifier, and determine an operation instruction and an instruction parameter according to the virtual item identifier;

and the second sending module is configured to generate an interaction data packet according to the participant role identification, the operation instruction and the instruction parameter, and send the interaction data packet to a target game server.

The game device based on the live broadcast interface is configured on a live broadcast server, and receives a connection instruction sent by a live broadcast terminal, wherein the connection instruction comprises a live broadcast room identifier, a participant identifier and a participant role identifier; determining a corresponding target role identifier and a target game server identifier according to the live broadcast room identifier; and generating connection information according to the participant identification, the participant role identification and the target role identification, sending the connection information to a target game server, and sending a connection instruction through a live broadcast server, so that live broadcast audiences can initiate a game connection instruction in a live broadcast room under the conditions of not downloading a game client and having no game account, and the enthusiasm of the live broadcast audiences in participating the game is improved.

Corresponding to the above embodiment of the game method based on the live interface applied to the game server, the present application further provides an embodiment of a game device based on the live interface configured on the game server, and fig. 6 shows a schematic structural diagram of a game device based on the live interface according to another embodiment of the present application. As shown in fig. 6, the apparatus includes:

a third receiving module 602 configured to receive connection information sent by a live broadcast server;

a first parsing module 604, configured to parse the connection information to obtain a participant identifier, a participant role identifier, and a target role identifier in the connection information;

a third sending module 606, configured to determine a target game client according to the target role identifier, and send the participant identifier and the participant role identifier to the target game client;

the generating module 608 is configured to, when the response instruction returned by the target game client is an agreement instruction, generate a participant character corresponding to the participant character identifier in a game scene in which the target character corresponding to the target character identifier is located.

Optionally, the apparatus further comprises:

the fourth receiving module is configured to receive the interactive data packet sent by the live broadcast server;

the second analysis module is configured to analyze the interactive data packet to obtain a participant role identifier, an operation instruction and an instruction parameter in the interactive data packet;

and the execution module is configured to execute the operation instruction on the participant role according to the instruction parameter and generate a corresponding operation result.

Optionally, the apparatus further comprises:

the distance measurement module is configured to determine a position distance between the participant role and the target role according to the position information of the participant role and the position information of the target role under the condition that the operation instruction is a movement instruction; and when the position distance is greater than or equal to a preset threshold value, the movement instruction fails.

Optionally, the apparatus further comprises:

an exit module configured to exit the participant role if a preset exit condition is reached.

Optionally, the preset exit condition includes:

the target character exits the game;

the participant character exits the game; or

The game duration of the participant role reaches a preset game duration.

Optionally, the apparatus further comprises:

the third analysis module is configured to analyze the interactive data packet to obtain a protocol number in the interactive data packet; and executing the operation instruction on the participant role according to the instruction parameter and generating a corresponding operation result under the condition that the protocol number is consistent with a preset standard protocol number.

Optionally, the apparatus further comprises:

and the rendering transmission module is configured to generate a corresponding game picture according to the rendering of the operation result and transmit the game picture to the target game client.

Optionally, the apparatus further comprises:

and the fourth sending module is configured to send the operation result to the target game client so that the target game client generates a corresponding game picture according to the operation result in a rendering manner.

The game device based on the live broadcast interface is configured on a game server and receives connection information sent by the live broadcast server; analyzing the connection information to obtain a participant identifier, a participant role identifier and a target role identifier in the connection information; determining a target game client according to the target role identification, and sending the participant identification and the participant role identification to the target game client; and under the condition that the received response instruction returned by the target game client is an agreement instruction, generating a participant role corresponding to the participant role identifier in the game scene where the target role corresponding to the target role identifier is located, so that participants (live audience) can experience the game without downloading the game client and registering an account, the enthusiasm of the participants in participating the game is improved, the game is favorably updated, and a live user is converted into a game user.

Secondly, the participants control the participants to play games in a manner of watching gifts without downloading game clients, and therefore the method is convenient and fast and improves the game experience of the participants.

An embodiment of the present application further provides a computing device, which includes a memory, a processor, and computer instructions stored on the memory and executable on the processor, where the processor implements the steps of the live interface-based game method when executing the instructions.

An embodiment of the present application also provides a computer readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the live interface-based game method as described above.

The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium and the technical solution of the game method based on the live interface belong to the same concept, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the game method based on the live interface.

The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.

The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

21页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:数据处理的方法、装置、云游戏引擎及计算机存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类