A method and device for parallel execution of multiple roles and multiple tasks in a round-based game application
By generating executable task sequences through real-time acquisition and conflict judgment, the problem of slow execution of multiple characters and tasks in traditional turn-based competitive applications is solved, enabling parallel execution of multiple tasks, improving the competitive pace and user experience.
Patent Information
- Application Number
- CN202510343396.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-21
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-03-21
AI Technical Summary
Traditional turn-based competitive applications often feature slow-paced multi-character, multi-task execution, resulting in long user wait times and negatively impacting the user experience.
By acquiring the action queue of the current round in real time, determining task conflicts, generating an executable task sequence, and executing multiple tasks simultaneously without conflicts.
It enables the parallel execution of multiple roles and tasks in the same round, improving the pace of the game and enhancing the user experience.
Smart Images

Figure CN120154908B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure generally relates to the technical field of round-based competition application, and particularly relates to a method and device for parallel execution of multiple roles and multiple tasks in a round-based competition application. BACKGROUND
[0002] Round-based competition is an ancient and classic type of competition, which has a wide range of applications in the field of electronic sports. Traditional round-based competition applications usually adopt a strict sequential action mechanism, i.e., after a role completes the action content, the next role can start the action. Although this mechanism is strategic, it has problems such as slow rhythm and long user waiting time, which seriously affects the user experience. SUMMARY
[0003] In view of the above defects or deficiencies in the prior art, it is desirable to provide a method and device for parallel execution of multiple roles and multiple tasks in a round-based competition application, which can execute multiple roles and multiple tasks in the same round in parallel, effectively improve the competition rhythm, and improve the user experience.
[0004] In a first aspect, the embodiments of the present application provide a method for parallel execution of multiple roles and multiple tasks in a round-based competition application, comprising:
[0005] obtaining an action queue to be acted in a current round in real time; the action queue comprises at least one first action role to be acted, an action sequence of the at least one first action role, and at least one first action task to be executed by each first action role;
[0006] determining whether at least one first action task conflicts with at least one second action task being executed in sequence according to the action sequence until any first action task conflicts with the second action task, to obtain an executable first action task sequence; the second action task is executed by a second action role, and the action sequence of the second action role is prior to the first action role;
[0007] simultaneously executing each first action task in the executable first action task sequence in the process of continuing to execute the second action task.
[0008] In some embodiments, the conflict includes role conflict, and the determining whether at least one first action task conflicts with at least one second action task being executed in sequence comprises:
[0009] obtaining at least one second target role corresponding to at least one second action task;
[0010] In any of the second target roles being the same as any of the first action roles, determining that the first action task and the second action task conflict.
[0011] In some embodiments, the conflict further includes an execution result conflict, and the method further includes:
[0012] In at least one of the second target roles being different from at least one of the first action roles, obtaining at least one first target role corresponding to at least one of the first action tasks;
[0013] In the second target role being the same as the first target role, respectively obtaining a first action task parameter corresponding to the first action task and a second action task parameter corresponding to the second action task;
[0014] In a fusion result of the first action task parameter and the second action task parameter exceeding a preset range, determining that the first action task and the second action task conflict.
[0015] In some embodiments, the method further includes:
[0016] Obtaining a second number of the second action tasks currently being executed and a first number of the first action tasks in the executable first action task sequence;
[0017] In a sum of the first number and the second number being greater than a preset number, obtaining an executable task number;
[0018] According to an action order of the first action roles, determining the executable first action task sequence based on the executable task number.
[0019] In some embodiments, the simultaneously executing each of the first action tasks in the executable first action task sequence includes:
[0020] Obtaining a start hand animation, a release animation, and a retreat animation corresponding to each of the first action tasks in the executable first action task sequence;
[0021] In the execution of the second action task, for each of the first action tasks, sequentially executing the start hand animation, the release animation, and the retreat animation.
[0022] In some embodiments, the simultaneously executing each of the first action tasks in the executable first action task sequence further includes:
[0023] obtaining a priority of each of the first action tasks; the priority comprises an attribute priority of the action task relative to the first action role and a sequence priority of the first action role in the action queue;
[0024] when at least one of the first action tasks has the attribute priority, sequentially displaying the at least one first action task having the attribute priority according to the sequence priority.
[0025] In some embodiments, further comprising:
[0026] updating the speed configuration data corresponding to each role based on the action task in response to the end of execution of any action task;
[0027] updating the action queue to be executed in the current round based on the speed configuration data corresponding to each role.
[0028] In a second aspect, the embodiments of the present application provide a parallel execution device for multiple roles and multiple tasks in a round-based competitive application, comprising:
[0029] an action queue module, configured to obtain an action queue to be executed in a current round in real time; the action queue comprises at least one first action role to be executed, an action sequence of the first action role, and at least one first action task to be executed by the first action role;
[0030] a conflict detection module, configured to sequentially determine whether at least one first action task conflicts with at least one second action task being executed according to the action sequence until any first action task is determined to conflict with the second action task, to obtain an executable first action task sequence; the second action task is executed by a second action role, and the action sequence of the second action role is prior to that of the first action role;
[0031] a parallel execution module, configured to execute each first action task in the executable first action task sequence simultaneously in the process of continuing to execute the second action task.
[0032] In a third aspect, the embodiments of the present application provide an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the program to implement the method described in the embodiments of the present application.
[0033] In a fourth aspect, the embodiments of the present application provide a computer readable storage medium, which stores a computer program, and the program is executed by a processor to implement the method described in the embodiments of the present application.
[0034] In a fifth aspect, an embodiment of the present application provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the method described in the embodiments of the present application.
[0035] The method and device for parallel execution of multiple roles and multiple tasks in the round-based competitive application provided by the embodiments of the present application can obtain a first action task sequence that does not conflict with at least one second action task in execution by performing conflict judgment on the action queue of the current round to be acted and the second action task in current execution, and simultaneously execute each first action task in the executable first action task sequence in the process of continuing to execute the second action task, thereby achieving the purpose of parallel execution of action tasks in the case of no conflict, enabling multiple action tasks in the same round to be executed simultaneously without waiting in the case of no conflict, thereby greatly improving the speed of round execution, improving the execution rhythm of the round-based competitive application on the basis of ensuring the consistency and fairness of the execution of competitive tasks, and improving user experience.
[0036] Additional aspects and advantages of the application will be set forth in part in the description that follows, and in part will become apparent to those skilled in the art upon examination of the following and / or can be learned by practice of the application. BRIEF DESCRIPTION OF DRAWINGS
[0037] Other features, objects, and advantages of the application will become more apparent from the following detailed description of non-limiting embodiments thereof, when read in conjunction with the accompanying drawings:
[0038] Figure 1 An implementation environment architecture diagram of a method for parallel execution of multiple roles and multiple tasks in a round-based competitive application provided by an embodiment of the present application is shown;
[0039] Figure 2 A flowchart of a method for parallel execution of multiple roles and multiple tasks in a round-based competitive application provided by an embodiment of the present application is shown;
[0040] Figure 3 A flowchart of a method for parallel execution of multiple roles and multiple tasks in a round-based competitive application provided by another embodiment of the present application is shown;
[0041] Figure 4 A flowchart of a method for parallel execution of multiple roles and multiple tasks in a round-based competitive application provided by still another embodiment of the present application is shown;
[0042] Figure 5 A flowchart of a method for parallel execution of multiple roles and multiple tasks in a round-based competitive application provided by still another embodiment of the present application is shown;
[0043] Figure 6This paper shows a block diagram of a parallel execution device for multiple roles and multiple tasks in a turn-based competitive application according to an embodiment of this application;
[0044] Figure 7 A block diagram of a multi-role, multi-task parallel execution device for a turn-based competitive application, according to another embodiment of this application, is shown.
[0045] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device or server according to embodiments of this application is shown. Detailed Implementation
[0046] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0047] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0048] It should be noted that this application may display prompt interfaces, pop-ups, or output voice prompts before and during the collection of user data. These prompt interfaces, pop-ups, or voice prompts are used to inform the user that their data is being collected. This ensures that the application only begins the steps for collecting user data after receiving confirmation from the user regarding the prompt interface or pop-up; otherwise (i.e., without user confirmation), the steps for collecting user data end, meaning no user data is collected. In other words, all user data collected in this application is collected with the user's consent and authorization, and the collection, use, and processing of related user data must comply with the relevant laws, regulations, and standards of the relevant countries and regions.
[0049] For the specific implementation environment of the multi-role, multi-task parallel execution method proposed in this application for turn-based competitive applications, please refer to [link to relevant documentation]. Figure 1 . Figure 1 The diagram illustrates the implementation environment architecture of the parallel execution method for multiple roles and tasks in a turn-based competitive application provided in this embodiment of the application.
[0050] like Figure 1 As shown, the implementation environment architecture includes at least one terminal device 101 and a server 102.
[0051] The terminal device 101 is a client for installing and running a turn-based game application. The turn-based game application world is a virtual world displayed (or provided) when the terminal is running. The turn-based game application world can be a simulated world of the real world, a semi-simulated and semi-fictional world, or a purely fictional world. The virtual world can be any one or a combination of two or more of a two-dimensional virtual world, a 2.5-dimensional virtual world, a three-dimensional virtual world, and a multi-dimensional virtual world that can be realized, which is not limited in the present application. Optionally, the turn-based game application world is also used for virtual battles between at least two virtual characters, and has virtual resources available for use by at least two virtual characters in the turn-based game application world.
[0052] It should be further noted that in the embodiments of the present application, the turn-based game application can be a stand-alone application program, or a subprogram in other application programs, such as a subprogram in an educational application program, for example, a reward level of teaching achievements, which is not limited in the present application. Preferably, the turn-based game application is a turn-based game.
[0053] The terminal device 101 is a terminal used by a user, and the user uses the first terminal 101 to control the action of at least one virtual character in the turn-based game application. The action mode includes but is not limited to attacking other virtual characters, replacing other virtual characters, controlling other virtual characters, assisting other virtual characters, etc. The virtual character can be a virtual person or a virtual thing, such as a simulated person object, a chess piece, a teaching aid, etc.
[0054] When the user competes with the application program, for example, the turn-based game application is a single-player game, an interesting learning game (including but not limited to basic science learning, popular science learning, etc.), a strategy game (including but not limited to a classic random strategy game and a quantum random strategy game), etc., the user competes with a preset scheme of the server, which can include one terminal device 101. When the user competes with another user, for example, the turn-based game application is a two-player game (such as a chess game, a chess game, a chess game, etc.), which can include two terminal devices 101. When the user competes with multiple users, for example, the turn-based game application is a multi-player game, which can include multiple terminal devices 101.
[0055] The server 102 is used to receive the control request (such as a request to control the virtual character to perform an action task in the current turn) sent by the terminal device 101, execute the request result (such as the execution of the parallel execution method of multiple characters and multiple tasks in the turn-based game application proposed in the present application to determine the display content of the execution of the first action task and the second action task), and send the rendering content to the terminal device 101 to make the terminal device 101 execute the rendering content to show the action effect to the user.
[0056] The terminal device 101 can be at least one of a smart phone, a smart watch, a smart television, a tablet computer, an electronic book reader, an MP3 player, an MP4 player, a laptop computer, a desktop computer, a smart machine (for example, a humanoid machine), and a user-wearing device. Among them, the user-wearing device can be a VR (Virtual Reality) device (for example, a VR glasses) that provides a virtual simulation world; and can also be a Mecha for competition, etc. The server 102 can be a stand-alone physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms.
[0057] The terminal device 101 and the server 102 are connected directly or indirectly through wired or wireless communication. Optionally, the wireless network or wired network uses standard communication technology and / or protocol. The network is usually the Internet, and can also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a private network or any combination of virtual private networks.
[0058] The method for parallel execution of multiple roles and multiple tasks in a round-based competition application provided in the present application can be implemented by a device for parallel execution of multiple roles and multiple tasks in a round-based competition application, which can be installed on a terminal device or a server.
[0059] In order to further illustrate the technical solutions provided in the embodiments of the present application, the following will be described in detail in combination with the drawings and specific embodiments. Although the method operation instruction steps are provided in the embodiments of the present application as shown in the following embodiments or drawings, more or fewer operation instruction steps can be included in the method based on conventional or non-creative labor. The execution order of the steps is not limited to the execution order provided in the embodiments of the present application in the logical sense. The method can be executed in sequence or in parallel during actual processing or device execution according to the method sequence shown in the embodiments or drawings.
[0060] Please refer to Figure 2 , Figure 2 A flowchart of a method for parallel execution of multiple roles and multiple tasks in a round-based competition application provided in an embodiment of the present application is shown. As shown in FIG. 1, the method for parallel execution of multiple roles and multiple tasks in a round-based competition application provided in the embodiment of the present application includes the following steps.Figure 2 The method comprises:
[0061] In step 201, a current round action queue is acquired in real time.
[0062] The action queue comprises at least one first action role to be acted, an action sequence of the at least one first action role, and at least one first action task to be executed by each first action role.
[0063] It should be noted that the current round is a round in a competitive scene in a round-based competitive application, for example, a round in a battle scene in a round-based game. Exemplarily, it can be the first round after a virtual role enters the competitive scene, or other rounds in the competition process, which are not limited in the present application. In the round-based competitive application, the action refers to an action mode in which at least two parties participating in the competition perform action tasks according to a round sequence. Unlike the instant action mode, the round-based competitive application pays more attention to the sequence in the action process. Optionally, a complete round in the round-based competitive application refers to that the action tasks set by the at least two parties participating in the competition are performed by turns.
[0064] In a feasible embodiment, the action task can be different according to the implementation scene of the round-based competitive application. Exemplarily, in a chess game, the action task can be a placement task or a replacement task, such as a placement task of adding or moving chess pieces, and a replacement task of “eating” chess pieces; in an interesting learning game, the action task can be a learned practice task, such as an operation task of performing an operation mode, a deformation task of word deformation, a graph splitting task in geometric analysis, etc.; in a strategy game, the action task can be a strategy task, such as in a quantum prisoner’s dilemma, two players share an entangled state, and select a “cooperation” strategy by quantum operation coordination.
[0065] When the round-based competitive application is a round-based game, the action task can further comprise a battle task such as attack, defense, attribute promotion, position replacement, etc., which is determined according to the virtual scene of the round-based game, and is not limited in the present application.
[0066] Exemplarily, a complete round in the round-based game can refer to that at least two virtual roles controlled by at least two parties participating in the game perform a battle task once respectively; or a complete round can refer to that at least two virtual roles controlled by at least two parties participating in the game perform a battle task by turns until at least one virtual role controlled by one party fails or escapes, etc.
[0067] In an example, in a turn-based game application, a current turn action queue is obtained in real time, the queue can include at least one virtual character in the game scene that has an action capability, i.e., a first action character to be acted upon. The action capability means that the first action character is not dead, not escaped, or not replaced, etc.
[0068] In an example, the action sequence of the at least one first action character is determined based on a speed value of each first action character in the current turn, i.e., the at least one first action character to be executed in the current turn is arranged in descending order of the speed value, and the action sequence of the at least one action character is obtained.
[0069] Optionally, the speed value of the first action character can be determined based on a basic speed of the action character and an additional speed, etc. The additional speed includes, but is not limited to, an additional speed (e.g., a speed gain) given by other characters in a previous turn or the current turn, or an additional speed (e.g., a priority execution instruction) given by the user through a speed control instruction, etc., which is not limited in the present application.
[0070] In an example, the at least one first action task to be executed by the first action character is a skill to be released determined based on a user input or a preset control instruction before the start of the current turn. The user input control instruction can be generated based on a skill control triggered by the user during a turn gap between the current turn and a previous turn, or can be generated based on a battle shortcut control triggered by the user at any time before the current turn, e.g., an automatic battle, etc. The preset control instruction means a battle instruction sequence set in advance for an NPC character in a turn-based game, or an action rule preset by the user for an automatic battle, etc. The present application does not limit the way of obtaining the first battle task.
[0071] In step 202, whether the at least one first action task conflicts with at least one second action task being executed is determined in sequence according to the action sequence, until it is determined that any first action task conflicts with a second action task, and a first action task sequence that can be executed is obtained.
[0072] The second action task is executed by a second action character, and the action sequence of the second action character is prior to that of the first action character.
[0073] It should be noted that in the embodiments of the present application, the action task conflict refers to at least two action tasks cannot be executed simultaneously. Optionally, in the embodiments of the present application, the conflict can include role conflict, execution result conflict, and other conflicts that cannot be executed simultaneously due to the competition rules. Exemplarily, the role conflict can be the conflict between the role executing the action task and the role being executed by the action task, and the execution result conflict can be that the execution result of the second action task that should be executed first can cause the first action task later to fail to produce execution effect. Optionally, the action task command rule can be set by the user independently, and the conflict between the action tasks can also be set by the user independently, which is not limited in the present application.
[0074] It should also be noted that the second action task is the action task currently being executed. The formation manner of the second action task is not limited in the present application. Exemplarily, when the round-based competition application is a round-based game, the second battle task in execution can be formed by directly executing the battle task corresponding to the first action role in the action queue after entering the round, or can be at least one second battle task combined by at least one first battle task recognized as not conflicting and the second battle task currently being executed during the execution of other battle tasks.
[0075] Specifically, at least one second action task currently being executed is acquired, and in the action order, the first first action task to be executed is acquired. It is judged whether the first first action task conflicts with any of the second action tasks. If the first first action task conflicts with any of the second action tasks, the judgment is ended, and the first first action task is executed after the execution of the second action task ends. If the first first action task does not conflict with all the second action tasks, the first first action task is stored in the executable first action task sequence, the second first action task is acquired, and it is continued to judge whether the second first action task conflicts with any of the second action tasks. If the second first action task conflicts with any of the second action tasks, the judgment is ended to execute step 203. If the second first action task does not conflict with all the second action tasks, the second first action task is stored in the executable first action task sequence, the third first action task is acquired, and it is continued to judge whether the third first action task conflicts with any of the second action tasks. In this way, each first action task in the acquired action queue is traversed, or any first action task is recognized to conflict with any second action task, and the executable first action task sequence is obtained.
[0076] Step 203, in the process of continuing to execute the second action task, each first action task in the executable first action task sequence is executed simultaneously.
[0077] That is, after determining the executable first action task sequence composed of at least one first action task that does not conflict with the second action task, each first action task in the executable first action task sequence can be executed directly in the second action task execution process.
[0078] Optionally, after completing the aforementioned traversal of the action queue, the complete executable first action task sequence can be obtained, and then each first action task in the executable first action task sequence can be executed; or when it is detected that there is a first action task to be executed in the executable first action task sequence, the first action task can be executed immediately.
[0079] Therefore, the parallel execution method of multiple roles and multiple tasks in the round-based competitive application proposed in the embodiments of the present application can obtain a first action task sequence that does not conflict with at least one second action task in execution by performing conflict judgment on the action queue to be acted in the current round and the second action task in execution, and simultaneously execute each first action task in the executable first action task sequence in the process of continuing to execute the second action task, thereby achieving the purpose of parallel execution of action tasks in the case of no conflict, enabling multiple action tasks in the same round to be executed simultaneously without conflict, without waiting, thereby greatly improving the speed of round execution, improving the execution rhythm of the round-based competitive application on the basis of ensuring the consistency and fairness of the execution of the competitive tasks, and improving the user experience.
[0080] In a feasible embodiment, the conflict includes a role conflict. Specifically, the judgment of whether the at least one first action task conflicts with the at least one second action task in execution in turn includes: obtaining at least one second target role corresponding to the at least one second action task, and determining that the first action task and the second action task conflict when any second target role and any action role are the same role.
[0081] That is, the target role data of each second action task is obtained, including but not limited to the role name, the role ID, the role position, and the identity identifier for identifying the role identity in the current competition scene. In some embodiments, the second action task can include multiple target roles, for example, when the turn-based competition application is a turn-based game, the second action task is a group attack battle task. Similarly, the role data of each first action role in the current action queue is obtained. Then, the first action role in the current action queue to be judged for conflict is matched with the target role data of the second target role respectively. If the matching is successful, that is, the role data of the first action role is the same as the role data of a second target role, it is considered that the second target role and the first action role are the same role, and the second target role corresponding to the second action task being executed is the first action role to be acted. At this time, the first action task and the second action task have role conflict. If the matching is not successful, that is, the role data of the first action role is not the same as the role data of any second target role, it is considered that the second target role corresponding to the second action task being executed is not the same role as the first action role to be acted, and the second target role corresponding to the second action task being executed is not the first action role to be acted. At this time, the first action task does not conflict with any second action task.
[0082] Therefore, by judging the role conflict of the action role, the first action role of the action conflict can be effectively identified, so that it cannot be executed in parallel, and the consistency and watchability of the second action task being executed can be effectively guaranteed. That is, the bearing party of the action task can wait for the execution result of the action task according to the execution order of the turn-based competition application, so as to ensure that the attributes, states, etc. are consistent with the conventional turn-based competition application when executed later, avoid affecting the actual effect of the turn-based competition, and make the target role of the second action task maintain the state affected by the action task, ensure that the display content of the second action task can be completely presented, and guarantee the visual experience of the user.
[0083] In a feasible embodiment, the conflict further includes an execution result conflict. Specifically, when the first action role and the second target role do not conflict, at least one first target role corresponding to at least one first action task is further obtained, and when the second target role and the first target role are identified as the same role, the first action task parameter and the second action task parameter corresponding to the first action task and the second action task are obtained respectively. When the fusion result of the first action task parameter and the second action task parameter exceeds a preset range, it is determined that the first action task and the second action task conflict.
[0084] It should be noted that the action task parameters include the attribute type and attribute value corresponding to the action task. For example, when the turn-based game application is a turn-based game, the attribute type and attribute value corresponding to the action task can be the attribute type and attribute value corresponding to the battle task, such as attack-attack value, critical-critical value, blood-amount of blood, etc. The game or character type can be set according to the game or character type, and the present application is not limited.
[0085] That is, after determining that there is no role conflict between the first action role of the first action task and the second target role of the second action task, the present application further determines whether the simultaneous implementation of the two action tasks that should be sequentially implemented for the same role will have a conflict effect on the target role.
[0086] Specifically, the role data of at least one first target role corresponding to at least one first action task is obtained, and it is identified whether the role data of the second target role is consistent with the role data of the first target role. When the second target role and the first target role are the same role, the attribute type and attribute value corresponding to the first action task of the first action task and the attribute type and attribute value corresponding to the second action task of the second action task are obtained respectively, the attribute type and attribute value corresponding to the first action task are analyzed for conflict with the attribute type and attribute value corresponding to the second action task, and it is determined whether the fusion result of the attribute type and attribute value corresponding to the first action task and the attribute type and attribute value corresponding to the second action task exceeds a preset range. If it exceeds the preset range, it is determined that there is an execution result conflict between the first action task and the second action task, that is, it is determined that the first action task and the second action task conflict. If it does not exceed the preset range, it is determined that there is no execution result conflict between the first action task and the second action task, that is, it is determined that the first action task and the second action task do not conflict.
[0087] Optionally, the preset range can be determined according to the life value range of the target role (the first target role and the second target role are the same). For example, when the turn-based game application is a turn-based game, the preset range is less than or equal to the current life value of the target role, that is, the target role still survives after simultaneously or sequentially bearing the first action task and the second action task, that is, it will not die during the action task execution process, causing problems such as being unable to determine the cause of death (whether due to the first action role or the second action role), or being unable to determine the trigger timing of the execution of the death animation.
[0088] Preferably, the preset range can be the initial state before the first action task and the second action task start, that is, if the fusion result of the attribute type and attribute value corresponding to the first action task and the attribute type and attribute value corresponding to the second action task is that the target role remains in the initial state, it is determined that the first action task and the second action task do not conflict.
[0089] In one embodiment, when the turn-based game application is a turn-based game, the first action role is a first character, the second action role is a second character, the first action task is a first attack task, and the second action task is a second attack task. Figure 3 As shown, first, the related information of the first attack task corresponding to the first character is obtained, then the related information of the second attack task corresponding to the second character is obtained, and then it is determined whether the second target character corresponding to the second attack task and the first character are the same character. If yes, it is determined that the first attack task and the second attack task conflict, and the first attack task waits for at least one of the second attack tasks currently being executed to be executed. If no, it is further determined whether the first target character corresponding to the first attack task and the second target character corresponding to the second attack task are the same character. If yes, it is further determined whether the target character can return to the initial state when the target character is attacked again. If yes, it is determined that the first attack task and the second attack task do not conflict and can be executed. If no, it is determined that the first attack task and the second attack task conflict, and the first attack task waits for at least one of the second attack tasks currently being executed to be executed. If no, it is determined that the first attack task and the second attack task do not conflict and can be executed.
[0090] Thus, by performing the execution result conflict judgment on the action characters, the application can effectively avoid the abnormality of action settlement or animation display that is prone to exist in the parallel execution process, effectively improve the consistency and fairness in the parallel execution in the turn-based game application, and at the same time ensure the display of the visual effect of the game application and the game experience of the user.
[0091] In one feasible embodiment, in order to further ensure the reliability of the parallel execution of multiple characters and multiple tasks, especially the reliability of image rendering, the application further limits the number of characters in parallel execution.
[0092] Specifically, the second number of the second action tasks currently being executed and the first number of the first action tasks in the executable first action task sequence are obtained. When the sum of the first number and the second number is greater than a preset number, the executable task number is obtained. According to the action order of the first character, the executable first action task sequence is determined based on the executable task number.
[0093] That is, the second number of the second action task in the current execution is obtained respectively, and the number of the first action task which can be executed without conflict with the second action task is determined, and then the sum of the first number and the second number is calculated, that is, the number of action tasks actually executed in parallel if the executable first action task is executed, and then it is judged whether the sum of the first number and the second number is greater than the preset number, if greater, it is determined that the total amount of the second action task in execution and the executable first action task is greater than the maximum number of action tasks executed in parallel to ensure the visual effect, at this time, the executable task number is obtained, that is, the difference between the preset number and the second number, and then the executable first action task sequence is determined based on the executable task number according to the action order of the first action role.
[0094] Therefore, the embodiment of the application can further improve the reliability and experience of the round-based competitive application of multi-role and multi-task parallel execution, and improve the user's competitive experience by limiting the number of roles executed in parallel.
[0095] In a feasible embodiment, it further includes: in response to the end of execution of any action task, updating the speed configuration data corresponding to each role based on the action task, and updating the action queue to be acted in the current round based on the speed configuration data of the role.
[0096] That is, after the execution of the second action task or the first action task executed in parallel ends, the speed configuration data corresponding to each role is updated according to the execution result, including but not limited to updating the speed value of the next round for the role of the executed action task, updating the speed value of the current round for the role of the unexecuted action task (the first action role in the action queue), etc. Then, for the current round, the action queue to be acted in the current round is updated.
[0097] It should be understood that in some game scenarios, the first executed battle task may be to increase the additional speed for other roles of the same camp, or to reduce the additional speed for other roles of the enemy camp, etc. Based on this, after the battle task of the second action role is executed, it is easy to affect the action order of the action queue of the current round. In order to ensure that the results of parallel execution of the round-based game are consistent with the results of sequential execution, the action order of the action queue needs to be updated immediately after each battle task ends, so as to improve the user's game experience.
[0098] In a feasible embodiment, in some game scenarios, the speed configuration data is changed by a special state, for example, only adjusting any action role to the next action role without changing the attribute value of the role.
[0099] In a feasible embodiment, in some game scenarios, updating the speed value of the character who has executed the battle task for the next round includes updating the speed value of the character who has executed the battle task by using a preset speed decay curve.
[0100] Specifically, in some game scenarios, the character speed value has no upper limit, and the embodiments of the application reduce the benefits brought by the character speed by using a nonlinear decay curve, for example, actual speed = base speed x log(1 + additional speed). In addition, the application further introduces a speed penalty mechanism, for example, before executing the battle task at the beginning of each round, identifying the first action character of the current round, and if the number of times any action character acts as the first action character is greater than a preset action number, gradually reducing the speed value of the character according to a preset rule. Thus, by introducing the speed decay rule, the application can effectively avoid the over-dominance of high-speed characters in the turn-based competitive application.
[0101] In a specific embodiment, when the turn-based competitive application is a turn-based game, as shown in Figure 4 the action queue to be acted in the current round is obtained, it is queried whether there is a special state in the first action character, if there is, the action order in the action queue is adjusted based on the special state, if not, the additional speed corresponding to each character is obtained, and the real-time speed value of each character in the current round is determined, whether the action order of the action queue needs to be adjusted is judged based on the real-time speed value, if yes, the action queue is adjusted and the step of obtaining the action queue to be acted in the current round is returned, if not, it is judged whether the second action character reaches a preset number, if not, the currently executable first battle task is executed, if yes, at least one second battle task execution is waited to end.
[0102] Thus, the application can effectively coordinate the action order between the parallel execution and the sequential execution of multiple characters and multiple tasks in the turn-based competitive application, realize the parallel execution of non-conflicting battle tasks on the basis of ensuring the consistency of the action order of the parallel battle and the sequential execution, improve the competitive rhythm of the turn-based competitive application, and improve the competitive experience of the user.
[0103] In a feasible embodiment, simultaneously executing each first battle task in the executable first battle task sequence includes: obtaining the start-up animation, the release animation, and the recovery animation corresponding to each first action task in the executable first action task sequence, and sequentially executing the start-up animation, the release animation, and the recovery animation for the first action task in the process of executing the second action task.
[0104] It should be noted that in some game scenarios, the starting animation includes the action role standing in place before the move, sprinting to the target role position point, and other pre-release move effect animations, and the ending animation includes the action role's ending action, the gradual disappearance of the skill special effect, the action role returning to the original position, and other post-release move effect animations.
[0105] That is, in the embodiment of the present application, in order to improve the competitive rhythm and guarantee the user's viewing experience of the game, the multiple parallel executed battle tasks are distinguished, and the corresponding starting animation, release animation and ending animation are executed in sequence for each first action task in the execution process, so that the first action task executed in parallel can be clearly displayed.
[0106] Preferably, the priority of each first action task is obtained respectively, and the priority includes the attribute priority of the action task relative to the first action role and the order priority of the first action role in the action queue. When at least one first action task has an attribute priority, the at least one action task with the attribute priority is displayed in sequence according to the order priority.
[0107] It should be noted that in some game scenarios, the attribute priority of the action task relative to the first action role can be determined according to the attribute characteristics of the action task, including but not limited to action tasks with special identification, such as combat skills consuming more energy or special skills with specific display effects, etc., which are not limited by the present application.
[0108] Optionally, in some game scenarios, the priority includes multiple levels. When the attribute priority corresponding to the first action task is the highest, the first action task is shot locked and other action tasks in execution are covered with a black mask. That is, when there is a battle task with the highest priority among the multiple battle tasks executed in parallel, the battle task is provided with a focused display effect by means of shot locking and covering other battle tasks, which facilitates the user to view the battle effect.
[0109] Optionally, the first battle task with higher priority can also be displayed by displaying the battle task name through UI text, displaying the role static sketch or dynamic Spine animation performance, etc., which is not limited by the present application.
[0110] In one specific embodiment, when the turn-based competitive application is a turn-based game, such as Figure 5As shown, the action sequence to be executed in parallel is obtained, it is judged whether the parallel execution reaches the upper limit of the role, if yes, the action sequence is returned, for example, the action sequence is re-determined according to the number of executable tasks, if no, it is judged whether the role to be executed is in an abnormal state, if yes, for example, the role is attacked to death or replaced by other roles, etc., the action queue is returned to be re-obtained, if no, the target role of the battle task to be executed is obtained, and the moving time of the action role to reach the position point of the target role is calculated, the start-up animation of the action role is executed, for example, the role is rendered to sprint to the position point of the target role, the release animation of the action role is executed, it is judged in real time whether the release animation of the battle task is executed completely, if not, the execution is continued, for example, the role has skills such as continuous attack, etc., which can continuously execute the release animation of multiple skills, if yes, the action role is executed. The action role is executed, and it is determined that the battle task is executed completely.
[0111] Therefore, in the application embodiment, the competition details can be fully displayed to the user in the parallel execution process of multiple roles and multiple tasks in the round-based competition, the special effects of the action task with attribute priority are displayed to the user in the case of ensuring the simultaneous execution of the action tasks, and the competition experience of the user is improved.
[0112] It should be noted that although the operations of the method of the application are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all of the shown operations must be performed to achieve the desired result.
[0113] Further reference Figure 6 , Figure 6 A block diagram of a parallel execution device for multiple roles and multiple tasks in a round-based competition application is shown.
[0114] As Figure 6 shown, the parallel execution device for multiple roles and multiple tasks in the round-based competition application 10 comprises:
[0115] An action queue module 11, configured to obtain an action queue to be acted in a current round in real time; the action queue comprises at least one first action role to be acted, an action order of the first action role, and a first action task to be executed by the first action role;
[0116] A conflict detection module 12, configured to judge in sequence whether at least one first action task conflicts with at least one second action task being executed according to the action order until it is determined that any first action task conflicts with the second action task, and a first action task sequence executable is obtained; the second action task is executed by a second action role, and the action order of the second action role is prior to that of the first action role;
[0117] The parallel execution module 13 is configured to execute each of the first action tasks in the executable first action task sequence simultaneously while continuing to execute the second action task.
[0118] The action queue module 11 (AQM), the conflict detection module 12 (CDM), and the parallel execution module 13 (PEM) are configured to manage and update the action sequence of the role, analyze potential conflicts between the actions of the role, and coordinate and execute the simultaneous actions of multiple roles, respectively.
[0119] In some embodiments, the conflict includes a role conflict, and the conflict detection module 12 is further configured to:
[0120] Obtain at least one second target role corresponding to the at least one second action task;
[0121] When any of the second target roles and any of the first action roles are the same role, determine that the first action task and the second action task conflict.
[0122] In some embodiments, the conflict further includes an execution result conflict, and the conflict detection module 12 is further configured to:
[0123] When at least one of the second target roles and at least one of the first action roles are not the same role, obtain at least one first target role corresponding to the at least one first action task;
[0124] When the second target role and the first target role are the same role, respectively obtain first action task parameters and second action task parameters corresponding to the first action task and the second action task;
[0125] When the fusion result of the first action task parameters and the second action task parameters exceeds a preset range, determine that the first action task and the second action task conflict.
[0126] In some embodiments, the parallel execution module 13 is further configured to:
[0127] Obtain a second number of the second action tasks currently being executed and a first number of the first action tasks in the executable first action task sequence;
[0128] When the sum of the first number and the second number is greater than a preset number, obtain an executable task number.
[0129] According to the action sequence of the first action role, at least one first action task executable is determined based on the number of executable tasks.
[0130] In some embodiments, as shown in FIG. 1, the parallel execution device 10 for multiple roles and multiple tasks in the round-based competitive application further comprises a visual rendering module 14, Figure 7
[0131] The visual rendering module 14 is configured to obtain a starting animation, a releasing animation and a finishing animation corresponding to each first action task in the sequence of executable first action tasks.
[0132] During the execution of the second action task, for each first action task, the starting animation, the releasing animation and the finishing animation are executed in sequence.
[0133] In some embodiments, the visual rendering module 14 is further configured to:
[0134] obtain a priority of each first action task, wherein the priority comprises an attribute priority of the action task relative to the first action role and a sequence priority of the first action role in the action queue;
[0135] When at least one first action task has the attribute priority, at least one first action task with the attribute priority is displayed in sequence according to the sequence priority.
[0136] In some embodiments, as shown in FIG. 1, the parallel execution device 10 for multiple roles and multiple tasks in the round-based competitive application further comprises a balance adjustment module 15, Figure 7 The balance adjustment module 15 is configured to update the speed configuration data corresponding to each role based on the action task in response to the end of any action task execution.
[0137] Based on the speed configuration data corresponding to each role, the action queue to be acted in the current round is updated.
[0138] It should be understood that the modules or modules described in the parallel execution device 10 for multiple roles and multiple tasks in the round-based competitive application are described with reference to the accompanying drawings and the detailed description.
[0139] Figure 2 The various steps in the described methods correspond. Thus, the operations and features described above for the methods also apply to the multi-role, multi-task parallel execution apparatus 10 and the modules contained therein in turn-round competition application, which will not be described here. The multi-role, multi-task parallel execution apparatus 10 in turn-round competition application can be pre- implemented in the browser or other security applications of the electronic device, or can be loaded into the browser or security applications thereof of the electronic device through downloading or the like. The corresponding modules in the multi-role, multi-task parallel execution apparatus 10 in turn-round competition application can cooperate with the modules in the electronic device to realize the schemes of the embodiments of the present application.
[0140] In the above detailed description, several modules or units are mentioned, and such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into a plurality of modules or units.
[0141] The following refers to the structure of a computer system of an electronic device or server suitable for implementing the embodiments of the present application, Figure 8 , Figure 8 The structure of a computer system of an electronic device or server suitable for implementing the embodiments of the present application is shown,
[0142] As shown in Figure 8 , the computer system includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 802 or programs loaded from a storage section 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for operation instructions of the system are also stored. The CPU 801, the ROM 802, and the RAM 803 are connected to each other through a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0143] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a display such as a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as necessary. A removable recording medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc. is attached to the drive 810 as necessary, so that a computer program read therefrom is installed into the storage section 808 as necessary.
[0144] In particular, according to the embodiments of the present application, the above reference flowchartFigure 2 The described processes can be implemented as computer software programs. For example, embodiments of the present application include a computer program product which includes a computer program tangibly embodied on a computer readable medium, the computer program including program code for executing methods illustrated by the flowcharts. In such embodiments, the computer program includes program code for executing methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication section 809 and / or installed from the removable media 811. When the computer program is executed by the central processing unit (CPU) 801, the above-described functions defined in the system of the present application are executed.
[0145] It should be noted that the computer readable medium shown in the present application can be a computer readable signal medium or a computer readable storage medium or any combination thereof. The computer readable storage medium may, for example, be, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present application, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device. In the present application, the computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated data signal can take many forms, including but not limited to, an electromagnetic signal, an optical signal or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that can transmit, propagate or transport program for use by or in connection with an instruction execution system, apparatus or device. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to, wireless, wire, optical cable, RF or the like, or any suitable combination thereof.
[0146] The computer program product of the present application can be a computer program including a plurality of program instructions that control at least one processor in a special-purpose computer system to implement the embodiments of the present application. Alternatively, the computer program product can be a computer program including a plurality of program instructions that control at least one processor in a general-purpose computer system to implement or to execute selectively implemented embodiments of the present application. The instructions can include: instructions enabling the general-purpose computer system to implement the embodiments of the present application; and / or instructions enabling the general-purpose computer system to execute selectively implemented embodiments of the present application.
[0147] The units or modules described in the embodiments of the present application can be implemented by software or by hardware. The described units or modules can also be arranged in a processor, for example, a processor can be described as: a processor includes an action queue module, a conflict detection module, and a parallel execution module. In some cases, the names of these units or modules do not constitute a limitation on the units or modules themselves, for example, the action queue module can also be described as: "real-time obtaining an action queue to be acted in a current round; the action queue includes at least one first action role to be acted, an action order of the first action role, and a first action task to be executed by the first action role".
[0148] As another aspect, the present application also provides a computer readable storage medium, which can be included in the electronic device described in the above embodiments, or can exist separately without being assembled into the electronic device. The computer readable storage medium stores one or more programs, and when the programs are used by one or more processors to implement the parallel execution method of multiple roles and multiple tasks in the round-based competitive application described in the present application.
[0149] The above description is merely preferred embodiments of the present application and a description of the principles of the technology used. Those skilled in the art should understand that the disclosed scope of the present application is not limited to the technical solutions formed by the specific combinations of the above technical features, and should also cover other technical solutions formed by any combinations of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features can be replaced with similar technical features disclosed in the present application (but not limited to) to form technical solutions.
Claims
1. A method for parallel execution of multiple roles and tasks in a turn-based competitive application, characterized in that, include: The action queue for the current round is obtained in real time; the action queue includes at least one first action role to be acted, the action order of at least one first action role, and at least one first action task to be performed by each first action role; According to the action sequence, it is determined whether at least one first action task conflicts with at least one second action task currently being executed, until it is determined that any first action task conflicts with a second action task, thus obtaining an executable sequence of first action tasks; the second action task is executed by a second action role, and the action order of the second action role takes precedence over the first action role; action task conflict means that at least two action tasks cannot be executed simultaneously, the conflict includes role conflict and execution result conflict, role conflict is a conflict between the role executing the action task and the role being executed the action task, and execution result conflict is that the execution result of the second action task that should have been executed first causes the subsequent first action task to fail to produce an execution effect; While continuing to execute the second action task, each of the first action tasks in the executable first action task sequence is executed simultaneously.
2. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 1, characterized in that, The conflict includes role conflict, and the step of sequentially determining whether at least one first action task conflicts with at least one currently executing second action task includes: Acquire at least one second target character corresponding to at least one second action task; If any second target role is the same as any first action role, the first action task and the second action task are determined to be in conflict.
3. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 2, characterized in that, The conflict also includes execution result conflicts, and the method further includes: When at least one second target role is not the same as at least one first action role, acquire at least one first target role corresponding to at least one first action task; When the second target role is identified as the same role as the first target role, the first action task parameters and the second action task parameters corresponding to the first action task and the second action task are obtained respectively. If the fusion result of the first action task parameters and the second action task parameters exceeds a preset range, it is determined that the first action task and the second action task are in conflict.
4. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 1, characterized in that, Also includes: Obtain the second number of the second action tasks currently being executed and the first number of the first action tasks in the executable first action task sequence; When the sum of the first quantity and the second quantity is greater than a preset quantity, the number of executable tasks is obtained; The sequence of executable first action tasks is determined based on the number of executable tasks, according to the action order of the first action role.
5. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 1, characterized in that, The simultaneous execution of each of the first action tasks in the executable first action task sequence includes: Obtain the starting animation, release animation, and finishing animation corresponding to each first action task in the executable first action task sequence; During the execution of the second action task, for each of the first action tasks, the starting animation, the release animation, and the finishing animation are executed sequentially.
6. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 5, characterized in that, The simultaneous execution of each of the first action tasks in the executable first action task sequence further includes: Obtain the priority of each of the first action tasks; the priority includes the attribute priority of the action task relative to the first action role and the order priority of the first action role in the action queue; When at least one of the first action tasks has the attribute priority, at least one of the first action tasks having the attribute priority is displayed in sequence according to the order priority.
7. The method for parallel execution of multiple roles and tasks in a turn-based competitive application according to claim 1, characterized in that, Also includes: In response to the completion of any action task, update the speed configuration data corresponding to each role based on the action task; Based on the speed configuration data corresponding to each character, update the action queue for the current round.
8. A parallel execution device for multiple characters and tasks in a turn-based competitive application, characterized in that, include: The action queue module is used to obtain the action queue of the current round in real time; the action queue includes at least one first action role to be acted, the action order of the first action role, and at least one first action task to be executed by the first action role; The conflict detection module is used to sequentially determine whether at least one first action task conflicts with at least one currently executing second action task according to the action order, until it is determined that any first action task conflicts with a second action task, thus obtaining an executable sequence of first action tasks; the second action task is executed by a second action role, and the action order of the second action role takes precedence over the first action role; action task conflict means that at least two action tasks cannot be executed simultaneously, and the conflict includes role conflict and execution result conflict. Role conflict is a conflict between the role executing the action task and the role whose action task is being executed, and execution result conflict is a conflict in which the execution result of the second action task that should have been executed first causes the subsequent first action task to fail to produce an execution effect; A parallel execution module is configured to simultaneously execute each of the first action tasks in the executable first action task sequence while continuing to execute the second action task.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, this program implements a method for parallel execution of multiple roles and tasks in a turn-based competitive application as described in any one of claims 1-7.
10. A computer program product, comprising a computer program, characterized in that, When executed by a processor, the computer program implements a method for parallel execution of multiple roles and tasks in a turn-based competitive application as described in any one of claims 1-7.
Citation Information
Patent Citations
Apparatus and method for simultaneous turn-based play board game
CN101743042A
Method, device and equipment for sorting confrontation skills of virtual characters
CN116099193A