Guiding method and device in ball game, electronic equipment and storage medium
By displaying real-time pressure information and a dynamic passing network for opponents in ball games, the system addresses users' multi-layered decision-making needs, improves passing effectiveness, and reduces game duration and device load.
Patent Information
- Application Number
- CN202611304568.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-25
- Publication Date
- 2026-11-24
AI Technical Summary
In ball games, existing passing assistance and guidance methods cannot meet users' multi-layered real-time decision-making needs, resulting in low passing effectiveness, increased game duration, and increased device load.
By acquiring opponent objects within a preset perception range, dynamic visualization information is displayed based on the relative situation of the opponent objects, representing the real-time pressure value of the controlled virtual objects, and searching for teammate objects starting from the controlled virtual objects to display a dynamic passing network, including passing paths and their success rates.
It visualizes pressure information and passing paths, helping users make optimal passing decisions, improve passing effectiveness, reduce game duration, and lower device load.
Smart Images

Figure CN123148651A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer processing technology, and more specifically to guidance methods, devices, electronic devices, and storage media in ball games. Background Technology
[0002] In ball-based video games, when users control a virtual ball-carrying object to attack, they often need to face multi-layered real-time decision-making requirements such as "Is it safe now? Where can I move or pass the ball? What is the best action at this moment?"
[0003] Currently, in related technologies, ball games display several passing direction arrows around the player holding the ball during the guidance process, indicating which directions the player can pass the ball in.
[0004] However, in the aforementioned technologies, simply displaying the passing direction arrow cannot solve the multi-layered decision-making needs that users need to face during the passing process, which can easily lead to low passing efficiency, resulting in too many invalid operations in the game, increasing the game time, and causing excessive device load. Summary of the Invention
[0005] In view of this, this application provides a guidance method for ball games to solve the problem of excessive device load.
[0006] In a first aspect, this application provides a guidance method for a ball game, which provides a graphical user interface via a terminal, the graphical user interface displaying at least a portion of a virtual scene, the virtual scene including at least one controlled virtual object, the method comprising: In response to the controlled virtual object being a ball-holding object, at least one opponent object within a preset perception range is obtained based on the controlled virtual object; Based on the relative posture of each adversary object towards the controlled virtual object, dynamic visualization information is displayed; wherein, the dynamic visualization information is used to characterize the real-time pressure value experienced by the controlled virtual object; Search for teammate objects starting from the controlled virtual object and display a dynamic passing network; the dynamic passing network includes at least one passing path and the success rate corresponding to each passing path; wherein the passing path starts from the controlled virtual object and includes at least one teammate object.
[0007] Secondly, this application provides a guidance device for ball games, which provides a graphical user interface via a terminal. The graphical user interface displays at least a portion of a virtual scene, the virtual scene including at least one controlled virtual object. The device includes: The opponent perception module is used to, in response to the controlled virtual object being a ball-holding object, obtain at least one opponent object within a preset perception range based on the controlled virtual object; An information display module is used to display dynamic visualization information based on the relative posture of each of the opposing objects towards the controlled virtual object; wherein, the dynamic visualization information is used to characterize the real-time pressure value experienced by the controlled virtual object; A network display module is used to search for teammate objects starting from the controlled virtual object and display a dynamic passing network; the dynamic passing network includes at least one passing path and the success rate corresponding to each passing path; wherein the passing path starts from the controlled virtual object and includes at least one teammate object.
[0008] Thirdly, this application provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the guidance method in a ball game as described in the first aspect or any corresponding embodiment.
[0009] Fourthly, this application provides a computer-readable storage medium storing computer instructions for causing a computer to execute the guidance method in a ball game according to the first aspect or any corresponding embodiment described above.
[0010] Fifthly, this application provides a computer program product, including computer instructions for causing a computer to execute the guidance method in a ball game according to the first aspect or any corresponding embodiment described above.
[0011] The guidance method in ball games provided in this application embodiment, when the controlled virtual object is the ball-holding object, acquires opponent objects within a preset perception range. Based on the relative posture of the opponent objects, it displays dynamic visualization information to represent the real-time pressure value experienced by the controlled virtual object, thus achieving a visual display of pressure information. Furthermore, it searches for teammate objects starting from the controlled virtual object and displays a dynamic passing network. This dynamic passing network includes at least one passing path, achieving a visual display of passing path guidance. The dynamic passing network also includes the success rate corresponding to each passing path, achieving a visual display of passing effects. In other words, within the same graphical user interface, the pressure reflected by the dynamic visualization information is displayed. The value indicates whether the current situation is safe; the passing path represents the currently selectable passing method for the ball-holding object; and the success rate allows the user to promptly select the optimal passing path from various options, satisfying the user's multi-layered real-time decision-making needs during ball game matches. This improves passing effectiveness, enabling users to make more effective operations for the current match, and also helps reduce match duration, thereby reducing device load. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in the specific embodiments or related technologies of this application, the drawings used in the description of the specific embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram illustrating an application scenario according to an embodiment of this application; Figure 2 This is a schematic flowchart of a first method for guiding a ball game according to an embodiment of this application; Figure 3 An exemplary diagram of a graphical user interface is shown; Figure 4 This is a second flowchart illustrating a guiding method in a ball game according to an embodiment of this application; Figure 5 This is a second flowchart illustrating a guiding method in a ball game according to an embodiment of this application; Figure 6 This is a structural block diagram of a guiding device in a ball game according to an embodiment of this application; Figure 7 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0015] It should be noted that the information (including but not limited to user input information, such as information entered by the user into input boxes), data (including but not limited to data used for analysis, stored data, and displayed data, such as context code, all code of the current project, the service pressure corresponding to operations performed on all code of the current project, and the code development status of the current project), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of related data must comply with relevant laws, regulations, and standards. For example, the context code, operations performed on all code of the current project, the corresponding service pressure, and the code development status involved in this application were all obtained with full authorization.
[0016] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0017] Before providing a detailed description of the embodiments of this application, some of the nouns and terms involved in the embodiments of this application will be explained.
[0018] As one optional application scenario in the embodiments of this application, such as Figure 1 As shown, the system may include at least one terminal device and at least one server. Figure 1 The system is illustrated in the example, which includes a computer 101, a mobile terminal 102, and a server 103, and the terminal devices such as the computer 101 and the mobile terminal 102 are connected to the server 103 through a network 110.
[0019] Specifically, the terminal device can be a smartphone, tablet, laptop, PDA, desktop computer, game console, smart TV, smart wearable device, in-vehicle terminal, VR (Virtual Reality) device, AR (Augmented Reality) device, etc. Server 103 can be a standalone physical server, a server cluster, a distributed system, or a cloud server providing cloud services. Network 110 can be a wired or wireless network, examples of which include, but are not limited to, the Internet, corporate intranet, local area network, wide area network, mobile communication network, and combinations thereof.
[0020] For example, an application is installed on the terminal device. This application can be an application that needs to be downloaded and installed, or an application that can be used immediately upon clicking.
[0021] For example, the aforementioned application can be any ball-related application capable of providing a virtual scene for users to immerse themselves in and manipulate controlled virtual objects within that virtual scene. For instance, the ball-related application could be a soccer application, a basketball application, a volleyball application, etc. Optionally, the form and corresponding functions of the controlled virtual objects provided by different applications may vary, and these can be pre-configured according to actual needs; this embodiment of the application does not limit this.
[0022] Optionally, the terminal device runs a client of the aforementioned application. The virtual scene described above is a scene displayed (or provided) by the client of an application (such as a game application) when it runs on the terminal device. This virtual scene refers to a created environment for controlled objects to perform activities (such as gaming), such as virtual houses, virtual islands, virtual maps, and virtual buildings. The virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional environment, or a purely fictional environment. Optionally, the virtual scene can be a two-dimensional virtual environment, a 2.5-dimensional virtual environment, or a three-dimensional virtual environment, etc., and this application embodiment does not limit this.
[0023] The aforementioned controlled virtual object is a virtual character controlled by a user account within an application. For example, the controlled virtual object can be a game character controlled by a user account (i.e., a game account) within a game application. Optionally, the controlled virtual object can be a human figure, an animal, a cartoon character, or other forms; this application embodiment does not limit this. Optionally, the controlled virtual object can be displayed in three-dimensional or two-dimensional form; this application embodiment does not limit this. Optionally, when the virtual environment is a three-dimensional virtual environment, the controlled virtual object is a three-dimensional model created based on animation skeletal technology. For example, each controlled virtual object has its own shape and volume in the three-dimensional virtual environment, occupying a portion of the space in the three-dimensional virtual environment.
[0024] For example, different users have different controlled virtual objects. For example, a game application is installed in the terminal device. Users log in to the game account through the client to enter the game. In the game, each user has multiple controllable virtual objects, and each user can only control one controllable virtual object at a time. The virtual object currently controlled by the user is the controlled virtual object.
[0025] In some ball games, the game displays several passing direction arrows around the player holding the ball during the guidance process, indicating which directions the player can pass the ball. However, simply displaying passing direction arrows in this technology cannot address the multi-layered decision-making needs that users face during the passing process. This can easily lead to low passing efficiency, resulting in too many ineffective actions during the game, increasing game duration, and causing excessive device load.
[0026] Furthermore, to address the issue of excessive ineffective actions during matches, leading to longer match durations and excessive device load, this embodiment of the application, when the controlled virtual object is the ball-holding object, acquires opponent objects within a preset perception range. Based on the relative posture of the opponent objects, displays dynamic visualization information to represent the real-time pressure value experienced by the controlled virtual object, thus achieving a visual display of pressure information. Additionally, it searches for teammate objects starting from the controlled virtual object and displays a dynamic passing network. This dynamic passing network includes at least one passing path, achieving a visual display of passing path guidance. The dynamic passing network also includes the success rate corresponding to each passing path, achieving a visual display of passing effect. In other words, within the same graphical user interface, the pressure reflected by the dynamic visualization information is displayed. The value indicates whether the current situation is safe, the passing path represents the ball-holding object's current passable methods, and the success rate allows the user to promptly select the optimal passing path from various options, satisfying the user's multi-layered real-time decision-making needs during ball games. This improves passing effectiveness, enabling users to make more effective actions for the current match, and also helps reduce match duration, thereby reducing device load.
[0027] According to an embodiment of this application, a guidance method embodiment for ball games is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0028] This embodiment provides a guidance method for ball games, which can be used in the aforementioned mobile terminal and / or server (hereinafter referred to as electronic device). Figure 2 This is a flowchart of a guidance method in a ball game according to an embodiment of this application, such as... Figure 2 As shown, the process includes the following steps: Step S201: In response to the controlled virtual object being a ball-holding object, at least one opponent object within a preset perception range is obtained based on the controlled virtual object.
[0029] For example, in this embodiment of the application, the electronic device provides a graphical user interface (GUI) through a terminal. This GUI displays at least a portion of a virtual scene, which includes at least one controllable virtual object. The GUI is a visual interactive interface used to display the game screen to the user and receive user actions. Optionally, in ball games, the user has multiple controllable virtual objects, and the user can only control one controllable virtual object at a time; the virtual object currently controlled by the user is the controlled virtual object. Optionally, user actions are actions initiated by the user through an input device (such as a gamepad, keyboard, touchscreen, etc.). Optionally, in ball games, user actions include, but are not limited to, at least one of the following: passing, shooting, spiking, dunking, etc.
[0030] In this embodiment, the electronic device, in response to the controlled virtual object being a ball-holding object, acquires at least one opponent object within a preset perception range based on the controlled virtual object. Here, the ball-holding object refers to the object currently having control of the ball. For example, the ball-holding object refers to an object in a dynamic dribbling state, or an object in a static ball-holding state.
[0031] Optionally, the preset perception range refers to a first region centered on the controlled virtual object. This first region can be circular, rhomboid, hexagonal, octagonal, etc. Optionally, the size parameter (such as radius) of the preset perception range can be any value, and this size parameter can be flexibly set and adjusted according to actual conditions.
[0032] Alternatively, an adversary object refers to an object that is on a different side from the controlled virtual object.
[0033] Step S202: Based on the relative situation of each adversary object against the controlled virtual object, display dynamic visualization information.
[0034] In this embodiment, after acquiring the aforementioned adversary objects, the electronic device displays dynamic visualization information based on the relative posture of each adversary object towards the controlled virtual object. The dynamic visualization information characterizes the real-time pressure value experienced by the controlled virtual object. Specifically, the real-time pressure value characterizes the degree of defensive threat experienced by the controlled virtual object at the current moment.
[0035] Optionally, the relative situation is used to characterize the motion state relationship between the adversary object and the controlled virtual object. For example, the relative situation includes, but is not limited to, at least one of the following: a first distance between the adversary object and the controlled virtual object, and the approach speed of the adversary object relative to the controlled virtual object.
[0036] In one possible implementation, the electronic device acquires a first pressure component from each adversary object based on a first distance; further, based on the first pressure components of each adversary object, it acquires a real-time pressure value experienced by the controlled virtual object, and then displays dynamic visualization information based on this real-time pressure value. The first pressure component is positively correlated with the first distance, meaning the greater the first distance, the greater the malicious pressure component. Optionally, the electronic device accumulates or averages the first pressure components of each adversary object to obtain the real-time pressure value.
[0037] In another possible implementation, the electronic device acquires the second pressure component of each opponent object based on the approach speed; further, based on the second pressure component of each opponent object, it acquires the real-time pressure value experienced by the controlled virtual object, and then displays dynamic visualization information based on the real-time pressure value. The second pressure component is positively correlated with the approach speed, i.e., the greater the approach speed, the greater the second pressure component. Optionally, the electronic device accumulates or averages the second pressure components of each opponent object to obtain the real-time pressure value.
[0038] In another possible implementation, the electronic device displays dynamic visual information based on a first distance and approach speed, as detailed below, without further explanation.
[0039] Optionally, the dynamic visualization information includes dynamic labels and / or real-time stress values.
[0040] In one possible implementation, the dynamic visualization information includes dynamic indicators. Optionally, the display parameters of the dynamic indicators are associated with real-time pressure values. Exemplarily, the display parameters include display area and / or color parameters.
[0041] In another possible implementation, the dynamic visualization information includes real-time pressure values, i.e., the electronic device directly displays the real-time pressure values.
[0042] For example, the dynamic visualization information changes as the controlled virtual object moves. Optionally, as the controlled virtual object moves, the opponent object within the preset perception range of the controlled virtual object also changes, thereby changing the real-time pressure value; further, the electronic device updates the dynamic visualization information based on the real-time pressure value change.
[0043] It should be noted that the dynamic visualization information changes as the controlled virtual object moves. By updating the dynamic visualization information in real time, the displayed content is kept consistent with the current game state. This helps to avoid users making decisions that are not in line with the current game situation due to information lag, increases the probability of users making effective operations, and minimizes the game time.
[0044] It should also be noted that during the process of dynamic visualization, the dynamic visualization information changes continuously with the real-time pressure value. For example, the dynamic visualization information includes dynamic icons, and the color parameters of the dynamic icons gradually change with the real-time pressure value; another example is that the dynamic visualization information includes real-time pressure values, and the dynamic visualization information changes continuously with the real-time pressure value rather than jumping around.
[0045] Step S203: Starting from the controlled virtual object, search for teammate objects and display the dynamic passing network.
[0046] In this embodiment, the electronic device, in response to the controlled virtual object being a ball-holding object, searches for teammate objects starting from the controlled virtual object and displays a dynamic passing network. Exemplarily, the dynamic passing network includes at least one passing path and the success rate corresponding to each passing path. The passing path starts from the controlled virtual object and includes at least one teammate object.
[0047] Alternatively, a teammate object refers to an object that is in the same faction as the controlled virtual object.
[0048] Optionally, a dynamic passing network refers to a tree or mesh topology with a controlled virtual object as the root node, teammate objects as child nodes, and passing paths as edges.
[0049] Optionally, a passing path refers to a complete transmission chain starting from the ball-carrying object and reaching a teammate object through one or more consecutive passes. For example, passing paths include direct passing paths (one hop, i.e., from the ball-carrying object to the teammate object) and multi-hop passing paths (two or more hops, i.e., from the ball-carrying object to at least one intermediate teammate to the final teammate). That is, each passing path starts with a controlled virtual object and ends with a teammate object (the final teammate), and may pass through zero or more teammate objects in between.
[0050] Optionally, the teammate objects in the search process can be teammate objects within a preset target range, or teammate objects in the global graphical user interface.
[0051] In one possible implementation, when acquiring the dynamic passing network, the electronic device acquires teammate objects within a preset target range; further, starting from the controlled virtual object, it searches for teammate objects within the preset perception range, acquires at least one passing path and the success rate corresponding to each passing path, and then displays the dynamic passing network. Optionally, the preset target range refers to a second area centered on the controlled virtual object. This second area can be circular, rhomboid, hexagonal, octagonal, etc. Optionally, the size parameter (such as radius) of the preset target range can be any value, and this size parameter can be flexibly set and adjusted according to actual conditions. Optionally, the preset target range and the aforementioned preset perception range can be the same or different.
[0052] In another possible implementation, the electronic device acquires teammate objects of controlled virtual objects in the global graphical user interface; further, starting from the controlled virtual objects, it searches for teammate objects globally, acquires at least one passing path and the success rate corresponding to each passing path, and then displays the dynamic passing network.
[0053] Optionally, the success rate corresponding to the passing path can be displayed directly or indirectly.
[0054] In one possible implementation, the electronic device overlays and displays the success rate corresponding to the passing path on the passing path.
[0055] In another possible implementation, the electronic device obtains the display information of the passing path based on the success rate corresponding to the passing path, and then renders and displays the passing path based on the display information. Optionally, the display information includes, but is not limited to, at least one of the following: the width parameter of the passing path and the display parameters of the sub-paths. A sub-path refers to a path composed of two adjacent objects within the passing path, and the display parameters of the sub-path include color parameters and / or shape parameters. Optionally, the objects included in the passing path can also be referred to as passing nodes in the passing path. A passing node can be a starting point, i.e., a controlled virtual object; it can also be an ending point, i.e., the final teammate; or it can be any intermediate object.
[0056] For example, the dynamic passing network changes as the controlled virtual object moves. Optionally, as the controlled virtual object moves, the electronic device re-searches for teammate objects and updates the dynamic passing network as the controlled virtual object's position changes.
[0057] It should be noted that the dynamic passing network changes as the controlled virtual object moves. By updating the dynamic passing network in real time, it ensures that the displayed passing paths and success rates always reflect the current game situation, avoiding users choosing passing paths with lower success rates due to information lag. This increases the probability of users making effective actions and minimizes game duration.
[0058] The guidance method in ball games provided in this embodiment, when the controlled virtual object is the ball-holding object, acquires opponent objects within a preset perception range. Based on the relative posture of the opponent objects, it displays dynamic visualization information to represent the real-time pressure value experienced by the controlled virtual object, thus achieving a visual display of pressure information. Furthermore, it searches for teammate objects starting from the controlled virtual object and displays a dynamic passing network. This dynamic passing network includes at least one passing path, achieving a visual display of passing path guidance. The dynamic passing network also includes the success rate corresponding to each passing path, achieving a visual display of passing effect. In other words, within the same graphical user interface, the pressure reflected by the dynamic visualization information is displayed. The value indicates whether the current situation is safe; the passing path represents the currently selectable passing methods for the ball-holding object; and the success rate allows the user to promptly select the optimal passing path from various options, satisfying the user's multi-layered real-time decision-making needs during ball game matches. This improves passing effect, enabling users to make more effective operations for the current match, and also helps reduce match duration, thereby reducing device load.
[0059] In an exemplary embodiment, step S202 includes: Step S2021: Obtain the first distance and approach speed of each opponent object relative to the controlled virtual object.
[0060] In this embodiment of the application, the relative situation includes a first distance and an approach speed. After acquiring the aforementioned adversary objects, the electronic device acquires the first distance and approach speed of each adversary object relative to the controlled virtual object.
[0061] Optionally, the first distance refers to the straight-line spatial distance between the adversary object and the controlled virtual object. For example, the electronic device obtains the first distance based on the position information of the adversary object and the position information of the controlled virtual object.
[0062] Optionally, the approach speed refers to the velocity component of the opponent object moving towards the controlled virtual object. For example, the electronic device acquires the movement speed of the opponent object and then projects that movement speed onto the direction of the target line as the approach speed. Here, the target line direction refers to the direction in which the opponent object points in a straight line towards the controlled virtual object.
[0063] Step S2022: Based on the first distance, obtain the first pressure component of each opponent object.
[0064] In this embodiment, after obtaining the first distance, the electronic device obtains a first pressure component for each adversary object based on the first distance. The first pressure component is positively correlated with the first distance. For example, a larger first distance indicates greater defensive pressure exerted by the adversary object on the controlled virtual object, and consequently, a larger first pressure component.
[0065] Step S2023: Based on the approach speed, obtain the second pressure component of each opponent object.
[0066] In this embodiment, after obtaining the approach speed, the electronic device obtains a second pressure component for each adversary object based on the approach speed. The second pressure component is positively correlated with the approach speed. For example, a higher approach speed indicates greater defensive pressure exerted by the adversary object on the controlled virtual object, and consequently, a larger second pressure component.
[0067] Step S2024: Display dynamic visualization information based on the first pressure component and the second pressure component of each opponent object.
[0068] In this embodiment of the application, after acquiring the first pressure component and the second pressure component, the electronic device displays dynamic visualization information based on the first pressure component and the second pressure component of each opponent object.
[0069] Optionally, the electronic device accumulates the first pressure component and the second pressure component of each opponent object to obtain a real-time pressure value, and then displays dynamic visualization information based on the real-time pressure value; or, the electronic device averages the first pressure component of each opponent object to obtain a first parameter, averages the second pressure component of each opponent object to obtain a second parameter, and then uses the sum of the first parameter and the second parameter as the real-time pressure value, and displays dynamic visualization information based on the real-time pressure value.
[0070] Optionally, the dynamic visualization information includes, but is not limited to, at least one of the following: dynamic markers and directional guidance markers. Dynamic markers refer to graphic elements displayed centered on the controlled virtual object, used to characterize the magnitude of real-time pressure values through visual attributes (such as display area, color, etc.); directional guidance markers refer to graphic elements displayed in various sub-regions surrounding the controlled virtual object, used to characterize the safety level of the corresponding passing direction during the passing process.
[0071] In one possible implementation, the dynamic visualization information includes a dynamic identifier centered on the controlled virtual object. Specifically, step S2024 includes: Step S2024a1: Based on the first pressure component and the second pressure component of each opponent object, obtain the real-time pressure value of the controlled virtual object.
[0072] Step S2024a2: Display dynamic indicators based on real-time pressure values.
[0073] For example, the display area of the dynamic sign is positively correlated with the real-time pressure value; and / or, the color parameter of the dynamic sign is positively correlated with the real-time pressure value. The color parameter is used to characterize the similarity between the color of the dynamic sign and a preset warning color.
[0074] For example, the preset warning color can be any color, and the preset warning color can be flexibly set and adjusted according to the actual situation, such as red, orange, etc.
[0075] For example, such as Figure 3 As shown, the dynamic indicator is dynamic aperture 31.
[0076] In another possible implementation, the dynamic visualization information includes directional guidance markers, and the surrounding area of the controlled virtual object includes multiple sub-regions. Optionally, the surrounding area refers to a third region centered on the controlled virtual object. This third region can be circular, rhomboid, hexagonal, octagonal, etc. Optionally, the surrounding size parameter (such as radius) can be any value, and this size parameter can be flexibly set and adjusted according to actual conditions. For example, the surrounding area is circular, and the sub-regions are sector-shaped. Optionally, the surrounding area can be the same as or different from the aforementioned preset perception range. Specifically, step S2024 includes: Step S2024b1: Based on the first pressure component and the second pressure component of each opponent object contained in the sub-region, obtain the directional pressure value of each sub-region.
[0077] Optionally, for any one of the multiple sub-regions, the electronic device accumulates the first pressure component and the second pressure component of each opponent object to obtain the directional pressure value of that sub-region; or, the electronic device averages the first pressure component of each opponent object to obtain a third parameter, averages the second pressure component of each opponent object to obtain a fourth parameter, and then uses the sum of the third parameter and the fourth parameter as the directional pressure value of that sub-region.
[0078] Step S2024b2: Based on the directional pressure value of the sub-region, display the corresponding directional guidance indicator.
[0079] For example, directional guidance markers are used to characterize the safety level of a sub-area during a pass.
[0080] In one possible implementation, the width parameter of the directional guidance mark is negatively correlated with the directional pressure value. For example, the larger the directional pressure value, the lower the safety level of the sub-area during the pass, and thus the thinner the directional guidance mark; conversely, the smaller the directional pressure value, the higher the safety level of the sub-area during the pass, and thus the thicker the directional guidance mark.
[0081] In another possible implementation, the directional guidance marker includes a first guidance marker and a second guidance marker. For example, when the directional pressure value is less than a first preset threshold, the electronic device displays the first guidance marker in the corresponding sub-region. The first guidance marker indicates that a pass or movement can be made in the direction of the corresponding sub-region. For example, when the directional pressure value is greater than a second preset threshold, the second guidance marker is displayed in the corresponding sub-region. The second guidance marker indicates that the direction of the corresponding sub-region is blocked.
[0082] Optionally, the first preset threshold can be any value, and can be flexibly set and adjusted according to the actual situation.
[0083] Optionally, the second preset threshold can be any value, and can be flexibly set and adjusted according to the actual situation.
[0084] The guidance method in ball games provided in this embodiment includes the relative situation of the distance and approach speed between the opponent and the ball holder. A first pressure component is obtained based on the distance, and a second pressure component is obtained based on the approach speed. The distance pressure component reflects the degree of threat of the opponent in space, and the speed pressure component reflects the degree of threat of the opponent's dynamic approach. The combination of the distance pressure component and the speed pressure component can more comprehensively characterize the defensive pressure on the ball holder, thereby improving the accuracy of the obtained real-time pressure value.
[0085] In addition, the dynamic visualization information consists of dynamic icons centered on controlled virtual objects. The display area and / or color parameters of these dynamic icons are associated with real-time stress values. The visual changes of these dynamic icons can intuitively reflect the changing trends of real-time stress values, which helps users react more quickly and thus reduces the overall game duration.
[0086] In addition, the dynamic visualization information includes directional guidance indicators, and displays the corresponding directional guidance indicators based on the directional pressure value of each sub-region. Since different directions around the ball-carrying object may experience different defensive pressures, by dividing the surrounding area into multiple sub-regions and calculating the directional pressure value separately, users can be provided with more granular information on the degree of directional safety.
[0087] In addition, sub-areas with directional pressure values less than a first preset threshold display a first guidance indicator (safe direction), while sub-areas with directional pressure values greater than a second preset threshold display a second guidance indicator (blocked direction). Setting two independent preset thresholds controls the triggering conditions for safe and blocked directions respectively. A certain hysteresis interval can be left between the first and second preset thresholds, which helps to avoid frequent jumps in the directional safety status near the threshold, improving the stability and usability of the guidance indicators. Through the distribution of the two types of indicators, while ensuring the cleanliness of the interface, users can quickly identify which directions are available for passing or moving, and which directions have been blocked by the opponent, which helps users react more quickly.
[0088] In an exemplary embodiment, step S203 includes: Step S2031: Starting from the controlled virtual object, search for teammate objects to obtain candidate objects that allow passing the ball.
[0089] In this embodiment of the application, in response to the controlled virtual object being the ball-holding object, the electronic device searches for teammate objects starting from the controlled virtual object to obtain candidate objects that allow passing the ball.
[0090] Optionally, the candidate object can be a teammate object within the aforementioned preset target range, or it can be a teammate object in the global graphical user interface.
[0091] Step S2032: Obtain the passing success rate of the passing object relative to the candidate object.
[0092] In this embodiment of the application, after obtaining the aforementioned candidate objects, the electronic device obtains the passing success rate of the passing object to the candidate objects.
[0093] Optionally, the passing success rate refers to the probability that the passing target successfully passes the ball to the candidate target. For example, the passing success rate of the passing target can also be understood as the receiving success rate of the candidate target. Here, the passing target includes controlled virtual objects but excludes teammates at the end of the pass.
[0094] Specifically, step S2032 includes: Step S2032a: Obtain the first passing component based on the second distance between the passing object and the candidate object.
[0095] For example, the first pass component is negatively correlated with the second distance. For instance, the larger the second distance, the lower the probability that the passing object will successfully pass the ball to the candidate object, and thus the smaller the first pass component; conversely, the smaller the second distance, the higher the probability that the passing object will successfully pass the ball to the candidate object, and thus the larger the first pass component.
[0096] Step S2032b: Obtain the second pass component based on the number of opposing objects between the pass object and the candidate object.
[0097] For example, the second pass weight is negatively correlated with the number of passes. For instance, a higher number of passes means a lower probability that the passer will successfully pass the ball to the candidate, and thus a lower second pass weight; conversely, a lower number of passes means a higher probability that the passer will successfully pass the ball to the candidate, and thus a higher second pass weight.
[0098] Step S2032c: Obtain the third passing component based on the angle between the moving direction and the passing direction of the candidate object.
[0099] For example, the third pass component is negatively correlated with the angle of the pass. For instance, the larger the angle, the lower the probability that the passer will successfully pass the ball to the candidate, and thus the lower the third pass component; conversely, the smaller the angle, the higher the probability that the passer will successfully pass the ball to the candidate, and thus the higher the third pass component.
[0100] Optionally, the passing direction refers to the direction from the passing object to the candidate object in a straight line.
[0101] Step S2032d: Obtain the passing success rate based on the first passing component, the second passing component, and the third passing component.
[0102] For example, the electronic device sums and normalizes the first pass component, the second pass component, and the third pass component to obtain the pass success rate.
[0103] Step S2033: In response to the passing success rate being greater than the third preset threshold, search for teammate objects starting from the candidate object. Repeat the process from the step of obtaining the candidate object that allows passing until the number of passing nodes reaches the preset threshold and generate candidate paths.
[0104] In this embodiment, the electronic device, in response to a passing success rate greater than a third preset threshold, searches for teammate objects starting from candidate objects. This process is repeated from the step of obtaining candidate objects that allow passing, until the number of passing nodes reaches a preset threshold, thus generating a candidate path. In this candidate path, one object (including controlled virtual objects, intermediate objects, and end teammates) corresponds to one passing node.
[0105] It should be noted that when generating candidate paths, after the first search, the passing object is a controlled virtual object, and the receiving object is the candidate object found in the search; in subsequent searches, the passing object is the candidate object obtained in the previous search, and the receiving object is the candidate object obtained in the current search.
[0106] For example, in response to a passing success rate less than or equal to a third threshold, the electronic device performs pruning, stopping subsequent search operations. Furthermore, since the last candidate obtained during the search for this candidate path cannot pass the ball to any teammate, it is determined that the candidate obtained from the aforementioned search operation cannot form a passing path with the controlled object.
[0107] Optionally, the third preset threshold can be any value, and can be flexibly set and adjusted according to the actual situation.
[0108] Optionally, the preset threshold value can be any value, and the preset threshold value can be flexibly set and adjusted according to the actual situation.
[0109] Step S2034: Based on the passing success rate of the teammate objects included in the candidate path, obtain the total success rate of the candidate path.
[0110] For example, the electronic device multiplies the pass success rates of the teammate objects included in the candidate path to obtain the total success rate of the candidate path.
[0111] Step S2035: The candidate paths with a total success rate greater than the fourth preset threshold are determined as passing paths.
[0112] For example, the fourth threshold can be any value, and the fourth preset threshold can be flexibly set and adjusted according to the actual situation.
[0113] Step S2036: Based on the total success rate and individual pass success rates corresponding to the pass path, display the pass path and its corresponding success rate.
[0114] Specifically, step S2036 above includes: Step S2036a: Obtain the width parameter of the passing path based on the total success rate corresponding to the passing path.
[0115] Optionally, the width parameter is used to characterize the thickness of the passing path displayed in the graphical user interface. For example, the width parameter is positively correlated with the overall success rate. For instance, the higher the overall success rate, the larger the width parameter, i.e., the thicker the passing path, to highlight the high success rate of the passing path; conversely, the lower the overall success rate, the smaller the width parameter, i.e., the narrower the passing path, to avoid visual interference for the user with low-success-rate passing paths.
[0116] Optionally, the specific value of the width parameter can be dynamically adjusted according to the display resolution and the number of passing paths. For example, the width parameter can be between 1 pixel and 10 pixels. The higher the overall success rate, the larger the value of the width parameter.
[0117] Step S2036b: Based on the passing success rate, obtain the display parameters of the sub-path. The display parameters include color parameters and / or shape parameters. A sub-path refers to a path within the passing path consisting of two adjacent objects (including controlled virtual objects, end teammates, and middle teammates).
[0118] For example, a color parameter refers to a numerical value used to characterize the color displayed on a sub-path. For instance, the higher the success rate, the closer the sub-path color represented by the color parameter is to a safe color (such as green); the lower the success rate, the closer the sub-path color represented by the color parameter is to a warning color (such as red).
[0119] For example, the shape parameter refers to a numerical value used to characterize the line type of a sub-path. Optionally, the shape parameter includes, but is not limited to, at least one of the following: such as a solid line, a dashed line, a dotted line, etc. For example, if the success rate is higher than a first target value, the shape parameter represents a solid line to highlight sub-paths with high success rates; if the success rate is lower than a second target value, the shape parameter represents a dotted line to avoid visual interference to the user from sub-paths with low success rates; if the success rate is between the first and second target values, the shape parameter represents a dashed line.
[0120] Optionally, the first target value can be any value, and it can be flexibly set and adjusted according to the actual situation.
[0121] Optionally, the second target value can be any value, and can be flexibly set and adjusted according to the actual situation.
[0122] Step S2036c: Display the passing path based on the width parameter and various display parameters.
[0123] For example, the electronic device displays the passing path based on the width parameter and various display parameters.
[0124] In step S2036d, based on the passing path, the overall success rate and the success rate of each pass are marked and displayed.
[0125] For example, the electronic device overlays or embeds the total success rate and individual pass success rates in the passing path; or, the electronic device displays the total success rate around the passing path and the corresponding pass success rates around the sub-paths.
[0126] For example, such as Figure 3As shown, the controlled virtual object 30 corresponds to passing paths 32 and 33. The overall success rate of passing path 32 is higher than that of passing path 33, meaning the width of passing path 32 is greater than the width of passing path 33. Furthermore, within passing path 32, the passing success rates of sub-paths 34 and 35 are higher than the first target value, displayed as solid lines; the passing success rate of sub-path 36 is lower than the first target value but higher than the second target value, displayed as dashed lines. And within passing path 33, the passing success rates of all sub-paths are lower than the second target value, displayed as dotted lines.
[0127] For example, such as Figure 3 As shown, the overall success rate is displayed around the passing path, and the passing success rate is overlaid in the sub-paths.
[0128] The guidance method in ball games provided in this embodiment searches for teammate objects step by step, starting with the ball-holding object. It prunes paths based on a passing success rate threshold until the number of passing nodes reaches a preset threshold, generating candidate paths. Then, candidate paths with a total success rate greater than a fourth preset threshold are identified as passing paths and displayed. By setting a third preset threshold as the pruning condition for step-by-step searching, low-success-rate passing edges are eliminated in real-time during path search, effectively reducing the computational load of subsequent path combinations and avoiding the performance overhead of exhaustive search. Furthermore, by setting a fourth preset threshold to filter the total success rate of candidate paths, it ensures that the final displayed passing paths all have high feasibility, avoiding displaying too many low-value paths and causing screen information overload, thus reducing device display overhead.
[0129] Furthermore, the first passing component is obtained based on the distance between the passing target and the candidate target, the second passing component is obtained based on the number of opposing targets between the passing target and the candidate target, and the third passing component is obtained based on the angle between the candidate target's movement direction and the passing direction. The passing success rate is then calculated by combining these three components. In other words, the passing success rate takes into account three dimensions: spatial distance, defensive interference, and receiving status. This allows for a more accurate reflection of the feasibility of passing in a real game and improves the accuracy of the passing success rate calculation. Moreover, the introduction of the receiving angle component (the third passing component) takes into account the degree of matching between the receiving player's running direction and the passing direction, further improving the accuracy of the passing success rate calculation.
[0130] In addition, the width parameter of the passing path is obtained based on the overall success rate, and the color and / or shape parameters of the sub-path are obtained based on the passing success rate. By associating the path width with the overall success rate, users can intuitively identify the entire link with the highest overall success rate. By associating the color and / or shape of the sub-path with the passing success rate on one side, users can simultaneously locate the weak links in the path, thereby comprehensively considering the feasibility of the entire path and the passing risk of the sub-path when making passing decisions.
[0131] This embodiment provides a guidance method for ball games, which can be used in the aforementioned mobile terminal and / or server (hereinafter referred to as electronic device). Figure 4 This is a flowchart of a guidance method in a ball game according to an embodiment of this application, such as... Figure 4 As shown, the process includes the following steps: Step S401: In response to the controlled virtual object being a ball-holding object, based on the controlled virtual object, obtain at least one opponent object within a preset perception range.
[0132] Step S402: Based on the relative situation of each adversary object against the controlled virtual object, display dynamic visualization information.
[0133] Step S403: Starting from the controlled virtual object, search for teammate objects and display the dynamic passing network.
[0134] The above steps S401-403 and Figure 2 Steps S201-203 in the embodiment are similar; see details below. Figure 2 Examples are not described in detail here.
[0135] Step S404: Obtain the scoring probability of the teammate at the end of the passing path.
[0136] In this embodiment of the application, the scoring probability of the teammate at the end of the passing path is obtained when acquiring the passing path. Here, the teammate at the end of the passing path refers to the teammate object located at the end of the passing path. For example, the passing path starts with a controlled virtual object and ends with the teammate at the end of the passing path; the teammate at the end of the passing path is the last teammate object to receive the ball.
[0137] Optionally, the scoring probability refers to the success rate of a teammate at the end of the passing path receiving the ball and completing a scoring operation. For example, if the ball game is a soccer game, the scoring operation is a shooting operation; if the ball game is a basketball game, the scoring operation is a volleyball operation; if the ball game is a volleyball game, the scoring operation is a spike operation.
[0138] Specifically, step S404 includes: Step S4041: Obtain the third distance between the teammate at the end and the scoring point.
[0139] For example, the third distance is the straight-line distance between the teammate at the end of the third distance and the scoring point. Optionally, the third distance is negatively correlated with the scoring probability. For example, the larger the third distance, the lower the probability of completing the scoring operation, and thus the lower the scoring probability; conversely, the smaller the third distance, the higher the probability of completing the scoring operation, and thus the higher the scoring probability.
[0140] Step S4042: Obtain the opponent's defensive parameters.
[0141] For example, the defense parameter is used to characterize the number of opposing objects around the end teammate.
[0142] Optionally, the area surrounding the end teammate refers to a fourth region centered on the end teammate. This fourth region can be circular, rhomboid, hexagonal, octagonal, etc. Optionally, the size parameter (such as radius) of the fourth region can be any value, and this size parameter can be flexibly set and adjusted according to actual conditions.
[0143] Optionally, the defense parameter is positively correlated with the number of opponent objects, and negatively correlated with the probability of scoring. For example, the more opponent objects there are, the larger the defense parameter, which means the lower the probability of completing the scoring operation, and thus the lower the probability of scoring; conversely, the fewer opponent objects there are, the smaller the defense parameter, which means the higher the probability of completing the scoring operation, and thus the higher the probability of scoring.
[0144] For example, if the ball game is a football game, when obtaining the scoring probability, the electronic device obtains the defensive parameters based on the goalkeeper's position, the aforementioned third distance, defensive parameters, and the shooting angle predicted by the AI model through the game's built-in AI model.
[0145] Step S4043: Based on the third distance and defensive parameters, obtain the scoring probability.
[0146] In one possible implementation, the electronic device obtains the scoring probability based on a third distance and defense parameters, combined with a preset calculation formula or calculation logic.
[0147] In another possible implementation, the electronic device uses the game's built-in AI model to predict the probability of scoring based on third distance and defensive parameters.
[0148] Step S405: In response to the scoring probability meeting the first preset condition, a first prompt message is displayed; wherein, the first prompt message is used to prompt the teammate at the control end to perform a scoring operation.
[0149] In this embodiment, after obtaining the scoring probability, the electronic device displays a first prompt message in response to the scoring probability meeting a first preset condition. The first prompt message is used to prompt a teammate at the control end to perform a scoring operation.
[0150] Optionally, the first preset condition includes a score probability greater than a seventh preset threshold. The seventh preset threshold can be any value and can be flexibly set and adjusted according to actual conditions. Optionally, to avoid visual interference caused by frequent display of prompts, the first preset condition also includes meeting a cooling-off period. The cooling-off period refers to the minimum time interval between two consecutive displays of the first prompt.
[0151] Optionally, the first prompt information includes the scoring operation and the scoring probability, and the first prompt information is displayed near the teammate at the end. For example, such as... Figure 3 As shown, for the teammate at the end of the passing path 32, the first prompt message 37 is displayed near that teammate.
[0152] Step S406: For teammate objects, obtain the passing success rate when each teammate object is used as a passing object.
[0153] In this embodiment, for the teammate object of the end teammate, the electronic device obtains the passing success rate when each teammate object is used as the passing object. The method for obtaining the passing success rate is as described above and will not be repeated here.
[0154] Step S407: Select teammates with a pass success rate greater than the fifth preset threshold as target objects and display the second prompt message.
[0155] In this embodiment, after obtaining the aforementioned pass success rate, the electronic device identifies teammates with pass success rates greater than a fifth preset threshold as target objects and displays a second prompt message. This second prompt message is used to prompt control of the target object to pass the ball.
[0156] In one possible implementation, the display of the prompt message is canceled in response to the display duration of the prompt message reaching a sixth preset threshold. In another possible implementation, the display of the prompt message is canceled in response to the object corresponding to the prompt message performing a target operation. The prompt message may include a first prompt message or a second prompt message.
[0157] Optionally, the sixth preset threshold can be any value, and can be flexibly set and adjusted according to the actual situation.
[0158] The guidance method in ball games provided in this embodiment obtains the scoring probability of the teammate at the end of the passing path, and displays a first prompt when the scoring probability meets a first preset condition, prompting the user to control the teammate at the end to perform a scoring operation in a timely manner. The scoring probability reflects the possibility that the teammate at the end will complete a scoring operation after receiving the ball. Through the first prompt, the user can quickly locate the teammate with the most scoring value on the field without calculation or thinking, and thus prioritize the passing path pointing to the teammate among multiple optional passing paths, enabling the user to make effective operations as soon as possible, thereby reducing the game time.
[0159] In addition, the scoring probability is obtained by comprehensively considering the third distance between the teammate at the end and the scoring point, the ball's movement angle, and the opponent's defensive parameters. Since the scoring probability takes into account three dimensions of factors, namely the distance from the scoring point, the rationality of the passing angle, and the opponent's defensive strength, it can more accurately reflect the actual probability of the teammate at the end completing the scoring operation in a real game, thus improving the accuracy of the scoring probability.
[0160] In addition, the system obtains the passing success rate of each teammate object when they are passed to the target, and displays a second prompt message for teammate objects with a passing success rate greater than a fifth preset threshold as target objects, prompting the user to control the target object to pass the ball in time. By setting a fifth preset threshold to filter teammate objects, the system ensures that the second prompt message is displayed only for target objects with high passing feasibility, which helps to maintain the cleanliness of the graphical user interface and reduces the interference of invalid suggestions to the user.
[0161] In addition, the automatic timeout cancellation mechanism cancels the display of prompts when the display duration reaches the sixth preset threshold, preventing prompts from remaining for a long time and causing interface clutter; the prompts also cancel the display when the object corresponding to the prompt performs the target operation, ensuring that the prompts do not remain after the operation or after the user makes a selection, thus preventing visual interference. This helps ensure that prompts can exit the interface in a timely manner when they are no longer useful, further ensuring the cleanliness of the interface.
[0162] This embodiment provides a guidance method for ball games, which can be used in the aforementioned mobile terminal and / or server (hereinafter referred to as electronic device). Figure 5 This is a flowchart of a guidance method in a ball game according to an embodiment of this application, such as... Figure 5 As shown, the process includes the following steps: Step S501: In response to the team to which the controlled virtual object belongs losing control of the ball, save snapshot information of the current game scene.
[0163] In this embodiment of the application, the electronic device saves snapshot information of the current game scene in response to the team to which the controlled virtual object belongs losing control of the ball.
[0164] Step S502: In the snapshot information, obtain the pass success rate from the erroneous object to each teammate object.
[0165] In this embodiment of the application, after acquiring the aforementioned snapshot information, the electronic device obtains the pass success rate from the erroneous object to each teammate object from the snapshot information. Here, the erroneous object refers to the last player in the team of the controlled virtual object to have possession of the ball before losing control.
[0166] Optionally, the specific methods for obtaining the pass success rate are described above and will not be repeated here.
[0167] Step S503: The teammate with the highest pass success rate is identified as the recommended target.
[0168] In this embodiment of the application, after obtaining the above-mentioned passing success rate, the electronic device determines the teammate with the highest passing success rate as the recommended target.
[0169] Step S504: Based on the error object and the recommended target, display the recommended operation.
[0170] In this embodiment of the application, after obtaining the recommended target, the electronic device displays a recommended operation based on the erroneous object and the recommended target. The recommended operation characterizes the passing path from the erroneous object to the recommended target.
[0171] Step S505: Display the pass success rate based on the recommended operation annotations.
[0172] In this embodiment, after obtaining the recommended target, the electronic device displays the passing success rate based on the recommended operation annotation. Optionally, the electronic device displays the passing success rate within the passing path represented by the advance operation.
[0173] Optionally, recommended actions and passing success rates are displayed in real-time and overlaid on the graphical user interface after the team to which the controlled virtual object belongs loses control of the ball.
[0174] The guidance method in the ball game provided in this embodiment, in response to the team to which the controlled virtual object belongs losing control of the ball, saves snapshot information of the current game scene, obtains the passing success rate of teammates in the snapshot information, determines the teammate with the highest passing success rate as the recommended target, displays the recommended operation and marks the passing success probability. Since the snapshot information saves the complete game state at the moment the mistake occurs, the optimal passing target is recalculated as the recommended target based on the snapshot information, and can generate comparative information such as "what would have happened if the pass had been made to the recommended target at that time". Through the recommended operation, the user can see the better passing paths and passing success rates that existed at the moment of the mistake but were not selected, thereby clarifying the specific reasons for the current mistake and learning the correct decision-making method, improving the user's learning efficiency for the ball game, and can quickly improve the user's proficiency in the ball game, thereby increasing user stickiness.
[0175] This embodiment also provides a guiding device for ball games, which is used to implement the above embodiments and preferred embodiments, and will not be repeated as already described. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0176] This embodiment provides a guidance device for ball games, which provides a graphical user interface (GUI) via a terminal. The GUI displays at least a portion of a virtual scene, and the virtual scene includes at least one controlled virtual object, such as... Figure 6 As shown, it includes: The opponent perception module 601 is used to respond to the controlled virtual object being a ball-holding object, and to obtain at least one opponent object within a preset perception range based on the controlled virtual object; The information display module 602 is used to display dynamic visualization information based on the relative posture of each opponent object towards the controlled virtual object; wherein, the dynamic visualization information is used to characterize the real-time pressure value of the controlled virtual object; The network display module 603 is used to search for teammate objects starting from a controlled virtual object and display a dynamic passing network; the dynamic passing network includes at least one passing path and the success rate corresponding to each passing path; wherein the passing path starts from the controlled virtual object and includes at least one teammate object.
[0177] In some alternative implementations, the information display module 602 includes: The situation acquisition unit is used to acquire the first distance and approach speed of each opponent object relative to the controlled virtual object; wherein, the relative situation includes the first distance and approach speed; The first acquisition unit is used to acquire the first pressure component of each opponent object based on the first distance; wherein the first pressure component is positively correlated with the first distance; The second acquisition unit is used to acquire the second pressure component of each opponent object based on the approach speed; wherein the second pressure component is positively correlated with the approach speed; The information display unit is used to display dynamic visual information based on the first pressure component and the second pressure component of each opponent object.
[0178] In some alternative implementations, the dynamic visualization information includes a dynamic identifier centered on the controlled virtual object; the information display unit is used for: Based on the first and second pressure components of each adversary object, obtain the real-time pressure value of the controlled virtual object; Dynamic indicators are displayed based on real-time pressure values; among them... The display area of the dynamic indicator is positively correlated with the real-time pressure value; and / or The color parameters of the dynamic sign are positively correlated with the real-time pressure value; the color parameters are used to characterize the similarity between the color of the dynamic sign and the preset warning color.
[0179] In some optional implementations, the dynamic visualization information includes directional guidance markers, and the surrounding area of the controlled virtual object includes multiple sub-regions; the information display unit includes: The orientation acquisition sub-unit is used to acquire the orientation pressure value of each sub-region based on the first pressure component and the second pressure component of each opponent object contained in the sub-region. The identification display sub-unit is used to display the corresponding directional guidance identifier based on the directional pressure value of the sub-region; the directional guidance identifier is used to characterize the safety level of the sub-region during the passing process.
[0180] In some alternative implementations, the identification display subunit is used for: When the directional pressure value is less than a first preset threshold, a first guide icon is displayed in the corresponding sub-area; wherein, the first guide icon is used to indicate that the ball can be passed or moved in the direction of the corresponding sub-area; When the directional pressure value exceeds the second preset threshold, a second guide icon is displayed in the corresponding sub-region; wherein, the second guide icon is used to indicate that the direction of the corresponding sub-region is blocked; The directional signage includes a first directional signage and a second directional signage.
[0181] In some alternative implementations, the network display module 603 includes: The object acquisition unit is used to search for teammate objects starting from the controlled virtual object and obtain candidate objects that are allowed to pass the ball. The success rate acquisition unit is used to acquire the success rate of a pass from a passing object to a candidate object. The path generation unit is used to search for teammate objects starting from the candidate object when the passing success rate is greater than the third preset threshold. It repeats the process from the step of obtaining the candidate object that allows passing until the number of passing nodes reaches the preset threshold, thus generating a candidate path. In the candidate path, one object corresponds to one passing node. The overall success rate acquisition unit is used to obtain the overall success rate of the candidate path based on the passing success rate of the teammate objects included in the candidate path; The path determination unit is used to determine candidate paths with a total success rate greater than a fourth preset threshold as passing paths; The path display unit is used to display the passing path and its corresponding success rate based on the total success rate and individual passing success rates of the passing path.
[0182] In some optional implementations, the success rate acquisition unit is used for: The first passing component is obtained based on the second distance between the passing object and the candidate object; wherein the first passing component is negatively correlated with the second distance. The second passing component is obtained based on the number of opposing objects between the passing object and the candidate object; the second passing component is negatively correlated with the number. The third passing component is obtained based on the angle between the candidate's movement direction and the passing direction; the third passing component is negatively correlated with the angle. The pass success rate is obtained based on the first pass component, the second pass component, and the third pass component.
[0183] In some optional implementations, the path display unit is used for: Based on the overall success rate of the passing path, obtain the width parameter of the passing path; Based on the passing success rate, obtain the display parameters of the sub-path, which include color parameters and / or shape parameters; where a sub-path refers to the path in the passing path consisting of two adjacent objects; Display the passing path based on the width parameter and various display parameters; Based on the passing path, the overall success rate and the success rate of each pass are displayed.
[0184] In some alternative embodiments, the apparatus further includes: The probability acquisition module is used to obtain the scoring probability of the teammate at the end of the passing path; The first prompt module is used to display a first prompt message in response to the scoring probability meeting a first preset condition; wherein the first prompt message is used to prompt the teammate at the control end to perform a scoring operation.
[0185] In some alternative implementations, the probability acquisition module is used for: Find the third distance between the teammate at the end and the scoring point; Obtain the opponent's defensive parameters; The scoring probability is obtained based on the third distance and defensive parameters.
[0186] In some alternative embodiments, the apparatus further includes: The aforementioned success rate acquisition module is used to obtain the passing success rate of each teammate object when it is used as the passing object. The second prompt module is used to select teammates with a pass success rate greater than a fifth preset threshold as target objects and display a second prompt message; wherein, the second prompt message is used to prompt the target object to pass the ball.
[0187] In some alternative embodiments, the apparatus further includes: The prompt cancellation module is used to cancel the display of the prompt information in response to the display duration reaching a sixth preset threshold; or, in response to the object corresponding to the prompt information performing a target operation, to cancel the display of the prompt information; wherein the prompt information includes a first prompt information or a second prompt information.
[0188] In some alternative embodiments, the apparatus further includes: The snapshot saving module is used to save snapshot information of the current game scene in response to the team to which the controlled virtual object belongs losing control of the ball; The aforementioned success rate acquisition module is also used to obtain the pass success rate from the erroneous object to each teammate object in the snapshot information; where the erroneous object refers to the last object in the controlled virtual object team to have the ball before losing control of the ball; The target acquisition module is used to identify the teammate with the highest pass success rate as the recommended target; The recommendation display module is used to display recommended actions based on the fault object and the recommended target; wherein, the recommended action is used to represent the passing path from the fault object to the recommended target; The aforementioned progress display module is used to display the pass success rate based on recommended operation annotations.
[0189] The guiding device for ball games provided in this application can execute the guiding method for ball games provided in any embodiment of this application, and has the corresponding functional modules and beneficial effects for executing the method. Further functional descriptions of the various modules and units described above are the same as in the corresponding embodiments described above, and will not be repeated here.
[0190] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0191] The following is a detailed reference. Figure 7 The diagram illustrates a structural schematic suitable for implementing the electronic device described in the embodiments of this application. The electronic device may include a processor (e.g., a central processing unit, graphics processor, etc.) 701, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 702 or a program loaded from memory 708 into random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device. The processor 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0192] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; memory devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic devices to exchange data via wireless or wired communication with other devices. Although Figure 7 Electronic devices with various devices are shown, but it should be understood that it is not required to implement or have all of the devices shown, and more or fewer devices may be implemented or have instead.
[0193] Specifically, according to embodiments of this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from memory 708, or installed from ROM 702. When the computer program is executed by processor 701, it performs the functions defined in the guidance method for a ball game according to embodiments of this application.
[0194] Figure 7 The electronic device shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of this application.
[0195] This application also provides a computer-readable storage medium. The methods described above according to this application can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code downloaded via a network and originally stored on a remote storage medium or a non-transitory machine-readable storage medium and then stored on a local storage medium. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium can be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium can also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code. When the software or computer code is accessed and executed by the computer, processor, or hardware, the guidance method in the ball game shown in the above embodiments is implemented.
[0196] A portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. Those skilled in the art will understand that the forms in which computer program instructions exist in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executing the instructions, or the computer compiling the instructions and then executing the corresponding compiled program, or the computer reading and executing the instructions, or the computer reading and installing the instructions and then executing the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to a computer.
[0197] Although embodiments of this application have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of this application, and all such modifications and variations fall within the scope defined by the appended claims.
Claims
1. A method of guiding in a ball game, characterized in that, The method includes providing a graphical user interface via a terminal, the graphical user interface displaying at least a portion of a virtual scene, the virtual scene including at least one controlled virtual object: In response to the controlled virtual object being a ball-holding object, at least one opponent object within a preset perception range is obtained based on the controlled virtual object; Based on the relative posture of each adversary object towards the controlled virtual object, dynamic visualization information is displayed; wherein, the dynamic visualization information is used to characterize the real-time pressure value experienced by the controlled virtual object; Starting from the controlled virtual object, a teammate object is searched, and a dynamic passing network is displayed. The dynamic passing network includes at least one passing path and the success rate corresponding to each passing path. The passing path starts from the controlled virtual object and includes at least one teammate object.
2. The method of claim 1, wherein, The step of displaying dynamic visualization information based on the relative posture of each of the opposing objects towards the controlled virtual object includes: Obtain a first distance and approach speed of each of the opposing objects relative to the controlled virtual object; wherein, the relative situation includes the first distance and approach speed; Based on the first distance, a first pressure component is obtained for each of the opponent objects; wherein the first pressure component is positively correlated with the first distance; Based on the approach speed, a second pressure component is obtained for each of the opposing objects; wherein the second pressure component is positively correlated with the first distance; The dynamic visualization information is displayed based on the first and second pressure components of each of the aforementioned adversary objects.
3. The method of claim 2, wherein, The dynamic visualization information includes a dynamic identifier centered on the controlled virtual object; The dynamic visualization information, based on the first and second pressure components of each of the opposing objects, includes: Based on the first and second pressure components of each of the opposing objects, the real-time pressure value of the controlled virtual object is obtained. The dynamic indicator is displayed based on the real-time pressure value; wherein... The display area of the dynamic indicator is positively correlated with the real-time pressure value; and / or, The color parameter of the dynamic indicator is positively correlated with the real-time pressure value; wherein, the color parameter is used to characterize the degree of similarity between the color of the dynamic indicator and the preset warning color.
4. The method of claim 2, wherein, The dynamic visualization information includes directional guidance markers, and the surrounding area of the controlled virtual object includes multiple sub-regions; The dynamic visualization information, based on the first and second pressure components of each of the opposing objects, includes: Based on the first pressure component and the second pressure component of each opponent object contained in the sub-region, the directional pressure value of each sub-region is obtained; Based on the directional pressure value of the sub-region, the corresponding directional guidance indicator is displayed; wherein, the directional guidance indicator is used to characterize the safety level of the sub-region during the passing process.
5. The method of claim 4, wherein, The display of the corresponding directional guidance indicator based on the directional pressure value of the sub-region includes: When the directional pressure value is less than a first preset threshold, a first guide icon is displayed in the corresponding sub-region; wherein, the first guide icon is used to indicate that the ball can be passed or moved in the direction of the corresponding sub-region; When the directional pressure value is greater than a second preset threshold, a second guide icon is displayed in the corresponding sub-region; wherein, the second guide icon is used to indicate that the direction of the corresponding sub-region is blocked; The directional guidance identifier includes the first guidance identifier and the second guidance identifier.
6. The method of claim 1, wherein, The step of searching for teammate objects starting from the controlled virtual object and displaying a dynamic passing network includes: Starting from the controlled virtual object, search for the teammate object to obtain candidate objects that are allowed to pass the ball; Get the pass success rate of the passing object to the candidate object; In response to the passing success rate being greater than a third preset threshold, the teammate object is searched starting from the candidate object. The process is repeated from the step of obtaining the candidate object that allows passing until the number of passing nodes reaches a preset threshold, and a candidate path is generated. In the candidate path, one object corresponds to one passing node. Based on the passing success rate of the teammate objects included in the candidate path, obtain the total success rate of the candidate path; Candidate paths with a total success rate greater than a fourth preset threshold are determined as the passing paths; Based on the total success rate and individual pass success rates corresponding to the pass paths, the pass paths and their corresponding success rates are displayed.
7. The method of claim 6, wherein, The process of obtaining the passing success rate of the passing object relative to the candidate object includes: A first passing component is obtained based on the second distance between the passing object and the candidate object; wherein the first passing component is positively correlated with the second distance; A second passing component is obtained based on the number of opposing objects between the passing target and the candidate object; wherein, the second passing component is positively correlated with the number; A third passing component is obtained based on the angle between the candidate's movement direction and the passing direction; wherein, the third passing component is positively correlated with the angle. The passing success rate is obtained based on the first passing component, the second passing component, and the third passing component.
8. The method according to claim 6, characterized in that, The method of displaying the passing path and its corresponding success rate based on the overall success rate and individual passing success rates of the passing path includes: Based on the total success rate corresponding to the passing path, obtain the width parameter of the passing path; Based on the passing success rate, the display parameters of the sub-path are obtained, including color parameters and / or shape parameters; wherein, the sub-path refers to the path composed of two adjacent objects in the passing path; The passing path is displayed based on the width parameter and each of the display parameters; Based on the passing path, the overall success rate and the individual passing success rates are displayed.
9. The method according to claim 1, characterized in that, The method further includes: Obtain the scoring probability of the teammate at the end of the passing path; In response to the scoring probability meeting a first preset condition, a first prompt message is displayed; wherein, the first prompt message is used to prompt the end teammate to perform a scoring operation.
10. The method according to claim 9, characterized in that, The step of obtaining the scoring probability of the teammate at the end of the passing path includes: Obtain the third distance between the teammate at the end and the scoring point; Obtain the ball motion angle between the end teammate and the scoring point; wherein, the ball motion angle is used to characterize the passing angle indicated by the scoring operation; Obtain the defensive parameters of the opponent object; The scoring probability is obtained based on the third distance, the ball's motion angle, and the defensive parameters.
11. The method according to claim 9, characterized in that, The method further includes: For each teammate object, obtain the passing success rate when each teammate object is used as a passing object; Teammates with a pass success rate greater than a fifth preset threshold are selected as target objects, and a second prompt message is displayed; wherein, the second prompt message is used to prompt the target object to pass the ball.
12. The method according to claim 9 or 11, characterized in that, The method further includes: If the display duration of the prompt message reaches a sixth preset threshold, the prompt message will be canceled. or, In response to the target operation performed on the object corresponding to the prompt message, the prompt message is then canceled from display. The prompt information includes either the first prompt information or the second prompt information.
13. The method according to claim 1, characterized in that, The method further includes: In response to the team to which the controlled virtual object belongs losing control of the ball, a snapshot of the current game scene is saved; The pass success rate of the teammate is obtained from the snapshot information; The teammate with the highest pass success rate is identified as the recommended target; Obtain the probability of a successful pass from the erroneous object to the recommended target; wherein, the erroneous object refers to the last person in the team to which the controlled virtual object had possession of the ball before losing control of the ball; Based on the fault object and the recommended target, a recommended operation is displayed; wherein, the recommended operation is used to characterize the passing path from the fault object to the recommended target; The success rate of the pass is displayed based on the recommended operation annotation.
14. A guiding device for a ball game, characterized in that, The device provides a graphical user interface via a terminal, the graphical user interface displaying at least a portion of a virtual scene, the virtual scene including at least one controlled virtual object, the device comprising: The opponent perception module is used to, in response to the controlled virtual object being a ball-holding object, obtain at least one opponent object within a preset perception range based on the controlled virtual object; An information display module is used to display dynamic visualization information based on the relative posture of each of the opposing objects towards the controlled virtual object; wherein, the dynamic visualization information is used to characterize the real-time pressure value experienced by the controlled virtual object; A network display module is used to search for teammate objects starting from the controlled virtual object and display a dynamic passing network. The dynamic passing network includes at least one passing path and the success rate corresponding to each passing path. The passing path starts from the controlled virtual object and includes at least one teammate object.
