Information display method and device, electronic equipment, readable storage medium and program product
By displaying the virtual interactive scene screen and calculating the target threat level in a multiplayer online competitive tactic game, determining and displaying a safer target route, the problem of inaccurate safe routes when players return to a safe position is solved, and the security of the character and the player's control accuracy are improved.
Patent Information
- Application Number
- CN202510022763.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-06
- Publication Date
- 2025-04-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In multiplayer online competitive tactical games, when players need to control the game characters to return to a safe position, they are often attacked by enemies due to inaccurate safety routes, resulting in insufficient security.
By displaying the virtual interaction scene screen, the target threat degree of each position within the target range is obtained, the target route is determined based on these threat degrees, and the target area and target route are displayed in the virtual interaction scene screen to guide the current character to follow a safer path.
Improves the security of the current character, avoids enemy attacks through more accurate target paths, and enhances the player's control accuracy and sense of security.
Smart Images

Figure CN119792919A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an information display method, device, electronic device, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology, people's leisure and entertainment methods have changed a lot, and many online activities have emerged, such as multiplayer online battle arena (MOBA). Players in multiplayer online battle arena are divided into two teams, and a single player can only control one game character in one team, and the operation of any player affects the outcome of the game.
[0003] In traditional information display methods, when a player needs to control a game character to return to a safe location, the player often relies on the player's experience to select a corresponding safe route. However, the safe route is usually vulnerable to attacks by enemy game characters, and there is a problem of inaccurate safe routes. Summary of the invention
[0004] The embodiments of the present application provide an information display method, device, electronic device, and computer-readable storage medium, which can provide a more accurate target path to improve the safety of the current character.
[0005] In a first aspect, the present application provides an information display method, comprising:
[0006] Displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes the current character;
[0007] Obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point;
[0008] Determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0009] The target area is displayed in the virtual interactive scene screen, and the target route is displayed in the target area.
[0010] In one embodiment, obtaining the target threat level of each position point within the target range in the virtual interactive scene screen includes:
[0011] Obtaining a first threat level for each position point within a target range in the virtual interactive scene screen; the first threat level indicates the importance of the position point to the current character;
[0012] Obtaining a second threat level for each position point within a target range in the virtual interactive scene screen; the second threat level is negatively correlated with a distance between the position point and a target enemy character;
[0013] For each location point, a target threat level of the location point is obtained according to the first threat level and the second threat level of the location point.
[0014] In one embodiment, obtaining the second threat level of each position point within the target range in the virtual interactive scene screen includes:
[0015] For each position point, obtain the distance between the position point and each candidate enemy character;
[0016] Determining a target enemy character from among the candidate enemy characters based on the distances corresponding to the candidate enemy characters;
[0017] A second threat level of the position point is determined according to a distance between the position point and the target enemy character.
[0018] In one embodiment, the method further comprises:
[0019] Obtaining a third threat level of each position point within a target range in the virtual interactive scene screen; the third threat level represents a probability of an enemy character appearing at the position point;
[0020] The step of obtaining, for each location point, a target threat level of the location point according to the first threat level and the second threat level of the location point comprises:
[0021] For each location point, a target threat level of the location point is obtained according to the first threat level, the second threat level and the third threat level of the location point.
[0022] In one embodiment, determining the target route based on the target threat level of each location point within the target range includes:
[0023] Determining a target position point based on the target threat degree of each position point within the target range; the target threat degree of the target position point is less than a threat degree threshold;
[0024] A route is planned from the current position of the current character to the target position to obtain a target route.
[0025] In one embodiment, the current character has at least one attribute value of a survival attribute; and obtaining the target threat level of each position point within the target range in the virtual interactive scene screen includes:
[0026] When the attribute value is lower than the attribute threshold, the target threat degree of each position point within the target range in the virtual interactive scene screen is obtained.
[0027] In a second aspect, the present application also provides an information display device, comprising:
[0028] A display module, used to display a virtual interactive scene screen, wherein the virtual interactive scene screen includes a current character;
[0029] A target threat degree acquisition module is used to obtain the target threat degree of each position point within the target range in the virtual interactive scene screen; the target threat degree indicates the unsafe degree of the current character at the position point;
[0030] A target path determination module, used to determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0031] The display module is also used to display the target area in the virtual interactive scene screen, and display the target route in the target area.
[0032] In a third aspect, the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0033] Displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes the current character;
[0034] Obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point;
[0035] Determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0036] The target area is displayed in the virtual interactive scene screen, and the target route is displayed in the target area.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0038] Displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes the current character;
[0039] Obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point;
[0040] Determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0041] The target area is displayed in the virtual interactive scene screen, and the target route is displayed in the target area.
[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0043] Displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes the current character;
[0044] Obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point;
[0045] Determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0046] The target area is displayed in the virtual interactive scene screen, and the target route is displayed in the target area.
[0047] The above-mentioned information display method, device, electronic device, computer-readable storage medium and computer program product display a virtual interactive scene screen, which includes the current character, and obtains the target threat level of each position point within the target range in the virtual interactive scene screen, and the target threat level indicates the degree of unsafety of the current character when it is at the position point; then, based on the target threat level of each position point within the target range, the target route can be accurately determined, and the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state, and the target area is displayed in the virtual interactive scene screen, and the more accurate target route is displayed in the target area, so that the user can intuitively obtain the target route from the target area to control the current character to travel along the target path, thereby improving the safety of the current character. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0049] Figure 1 is a flow chart of an information display method in one embodiment;
[0050] Figure 2 A schematic diagram of a virtual interactive scene screen in one embodiment;
[0051] Figure 3 is a structural block diagram of an information display device in an embodiment;
[0052] Figure 4 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0054] In one embodiment, Figure 1As shown, an information display method is provided. This embodiment uses the method applied to an electronic device as an example for illustration. The electronic device can be a terminal or a server. It can be understood that the method can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. Among them, the terminal can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted device can be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc. The server can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0055] In this embodiment, the information display method includes the following steps:
[0056] Step S102, displaying a virtual interaction scene screen, wherein the virtual interaction scene screen includes the current character.
[0057] Among them, the virtual interaction scene screen, that is, the screen corresponding to the virtual interaction scene, is a scene screen for virtual characters to perform activities or interactive actions when the virtual interaction application is running. The virtual interaction scene can be a simulation environment of the real world, a semi-simulated and semi-fictitious virtual environment, or a purely fictitious virtual environment. The virtual interaction scene can be any one of a two-dimensional virtual interaction scene, a 2.5-dimensional virtual interaction scene, and a three-dimensional virtual interaction scene, and this application is not limited to this. For example, the virtual interaction scene can specifically be a mobile game scene, a terminal game scene, augmented reality, virtual reality (vitrualreality, VR) or a virtual character interaction scene screen in mixed reality (Mixreality, MR), etc., but is not limited to this. The user can control the virtual character to move or perform interactive actions in the virtual interaction scene.
[0058] A virtual character is an active object in a virtual interactive scene. The active object may specifically be a virtual image that is used to represent a user-controllable virtual image. The virtual image is not limited to a virtual person, a virtual animal, or an animated character, etc. For example, the virtual image may be a person, an animal, or a plant displayed in a virtual interactive scene. A virtual interactive scene may include multiple virtual characters, each of which has its own shape and volume in the virtual interactive scene and occupies a portion of the space in the virtual scene. Optionally, the virtual character may be an object controlled by a user through a virtual interactive application operation, or a virtual character controlled by an artificial intelligence operation, or a non-player character set in a virtual interactive scene, etc., which is not limited in this application. Both the current character and the interactive character are virtual characters. The virtual interactive scene includes at least two party characters, and each party character includes at least one virtual character. For example, the virtual interactive scene includes a first party character and a second party character, each of which includes 5 virtual characters, and the first party character and the second party character are enemies of each other. The first party and the second party refer to the teams interacting in the virtual interactive scene.
[0059] Optionally, the virtual interactive scene screen also includes a simulated map. The simulated map refers to a thumbnail display map corresponding to the scene map in the virtual interactive scene.
[0060] Optionally, a virtual interactive application may be run on the terminal, and the user logs in to the virtual interactive application through a user ID to load a virtual interactive scene on the virtual interactive application, and display the virtual interactive scene screen after the virtual interactive scene is loaded. During the loading of the virtual interactive scene, the terminal displays a simulated map on the virtual interactive application.
[0061] Optionally, after the user logs in to the virtual interaction application through the user identification, the virtual interaction control can be triggered to enter the virtual interaction team formation interface. The virtual interaction team includes the first party and the second party. After completing the virtual interaction team formation, enter the role selection interface. The terminal displays the candidate virtual characters on the role selection interface, and the terminal responds to the user's selection operation on the candidate virtual characters, and sets the virtual character selected by the selection operation as the current role used by the user. After both the first party and the second party complete the virtual character selection operation, switch from the role selection interface to the virtual interaction scene screen.
[0062] Step S104, obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point.
[0063] The target range is a preset range that includes the current character in the virtual interactive scene. For example, the target range can be a circular range centered at the current position of the current character and consisting of 50 pixels or other values. For another example, the target range can be a rectangular area or other preset shape area that includes the current character. Optionally, the target range can be a range corresponding to a simulated map.
[0064] The position point may be a pixel point within the target range, or an area block composed of at least two pixel points within the target range. For example, the electronic device divides the target range of the virtual interactive scene screen into n*n area blocks, where n is a positive integer greater than 1.
[0065] The target threat level indicates the unsafe degree of the current character when at the position point, and the unsafe degree is positively correlated with the target threat level. For example, if there is an enemy character near the position point, the unsafe degree of the current character is high when at the position point, and it may be attacked by the enemy character, and the target threat level of the position point is high. For another example, if there is no enemy character near the position point, and there is a friendly character, the unsafe degree of the current character is low when at the position point, and the target threat level of the position point is low. For another example, if the position point is in a blind spot, there is a medium probability that an enemy character will appear at the position point, and the unsafe degree of the current character is medium when at the position point, and the target threat level of the position point is medium.
[0066] Optionally, the current character has an attribute value of at least one survival attribute; obtaining the target threat level of each position point within the target range in the virtual interactive scene screen, including: when the attribute value is lower than the attribute threshold, obtaining the target threat level of each position point within the target range in the virtual interactive scene screen.
[0067] Among them, survival attributes refer to the physiological attributes of the current character to achieve survival in the virtual interactive scene. For example, survival attributes may include hunger, cold, health, temperature, or resistance, but are not limited to these. The attribute value represents the energy that the current character has under the survival attribute, which can also be called life value. The attribute value can be displayed in the form of numerical values, tables, progress bars or icons, but are not limited to these.
[0068] Specifically, the user logs in to the application on the electronic device through the user identification, and displays the virtual interaction scene and the current role on the electronic device; determines at least one survival attribute corresponding to the current role in the virtual interaction scene, and the attribute value corresponding to the survival attribute. Then, the electronic device can display at least one survival attribute corresponding to the current role and the corresponding attribute value in the virtual interaction scene. The attribute threshold can be set as needed, such as 50% or 30%.
[0069] Optionally, when in a virtual interactive scene, the electronic device monitors the survival attributes corresponding to the current character in the virtual interactive scene periodically or in real time, and detects the attribute values corresponding to each survival attribute.
[0070] Optionally, when the attribute value is lower than the attribute threshold, it indicates that the current character is in an unsafe state, and the target threat degree of each position point within the target range in the virtual interactive scene screen is obtained to put the current character in a safe state.
[0071] Step S106, determining a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state.
[0072] The target route is the action trajectory planned for the current character to enter a safe state. The target route can be the shortest route or the route with the lowest sum of target threat levels, and can avoid dangerous areas and inaccessible areas for the current character. Dangerous areas include areas close to enemy characters, and inaccessible areas for the current character include areas that the current character cannot pass when using skills or not using skills, such as inaccessible walls.
[0073] Optionally, based on the target threat level of each position point within the target range, a target route is determined, including: determining the target position point based on the target threat level of each position point within the target range; the target threat level of the target position point is less than a threat level threshold; and planning a route from the current position point of the current character to the target position point to obtain the target route.
[0074] The threat level threshold can be set as needed. The area where the target location is located is a low-risk area.
[0075] Optionally, the electronic device determines the position point with the lowest target threat level from each position point as the target position point. Optionally, the electronic device determines the position point with the second lowest target threat level from each position point as the target position point. Optionally, the electronic device may also determine the target position point in other ways, which are not limited here.
[0076] Optionally, the electronic device plans a route from the current position of the current character to the target position based on an A* algorithm (A-star Algorithm, A* search algorithm) or other graph path algorithms to obtain a target route.
[0077] Optionally, the electronic device determines an intermediate position point between the current position point and the target position point; the current position point, each intermediate position point and the target position point are connected in series to obtain a target route. The sum of the target threat levels of each intermediate position point is the lowest, and the target threat levels of the current position point and the target position point are determined, then a target route with the lowest sum of target threat levels can be determined, so that the current character is least threatened when traveling along the target path. The intermediate position point can be the position point with the lowest target threat level between adjacent position points.
[0078] Step S108, displaying the target area in the virtual interactive scene screen, and displaying the target route in the target area.
[0079] Among them, the target area is an area set in the virtual interactive scene screen. Optionally, the size and position of the target area can be set as needed. For example, the target area is set in the lower right corner of the virtual interactive scene screen. The target area can be a fixed area in the virtual interactive scene screen, or it can be a movable floating window area in the virtual interactive scene screen. The movable floating window area can be displayed on the top layer of the virtual interactive scene.
[0080] Optionally, the target route is displayed in the target area at a scheduled time or in real time.
[0081] Optionally, if the current character is in a safe state, the target path is not displayed. If the current character has at least one survival attribute with a value higher than the attribute threshold, the target path is not displayed.
[0082] The above-mentioned information display method displays a virtual interactive scene screen, which includes the current character, and obtains the target threat level of each position point within the target range in the virtual interactive scene screen, and the target threat level indicates the degree of unsafety of the current character when it is at the position point; then, based on the target threat level of each position point within the target range, the target route can be accurately determined, and the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state, and the target area is displayed in the virtual interactive scene screen, and the more accurate target route is displayed in the target area, so that the user can intuitively obtain the target route from the target area to control the current character to travel along the target path, thereby improving the safety of the current character.
[0083] The above information display method can be applied to a virtual interaction assistant application (apk program), through which the target route that makes the current character safer is determined in the virtual interaction scene screen by the virtual interaction assistant application, and the target route is displayed in the target area of the virtual interaction scene screen.
[0084] In one embodiment, obtaining a target threat level for each position point within a target range in a virtual interactive scene screen includes: obtaining a first threat level for each position point within the target range in the virtual interactive scene screen; the first threat level indicates the importance of the position point to the current character; obtaining a second threat level for each position point within the target range in the virtual interactive scene screen; the second threat level is negatively correlated with the distance between the position point and the target enemy character; for each position point, obtaining the target threat level of the position point based on the first threat level and the second threat level of the position point.
[0085] The first threat level of the location point can be set as needed. Developers can set the first threat level of the location point according to the importance of each location point in the virtual interactive scene screen. The importance of the location point to the current character includes the threat level of the location point and the access status of the location point to the current character. The access status includes passable or impassable (non-passable). For example, areas such as rivers and dragon pits are convenient for travel, and enemy characters are also likely to be ambushed. The first threat level of the location points in these areas is low. The first threat level is higher for the location points that are inaccessible to the current character. The first threat level is lower for the location points that the current character does not use energy saving or can pass through using skills.
[0086] Optionally, the electronic device normalizes the first threat level and the second threat level respectively to obtain a normalized first threat level and a normalized second threat level; for each location point, the target threat level of the location point is obtained based on the normalized first threat level and the normalized second threat level of the location point.
[0087] For example, the normalized first threat level is between 0 and 1, and a first threat level of 0 indicates that the initial threat of the location point is the lowest, and a first threat level of 1 indicates that the initial threat of the location point is the highest or is inaccessible. Optionally, a virtual interactive image is obtained from the virtual interactive scene screen; the virtual interactive image is parsed to obtain the passable area and the inaccessible area in the virtual interactive image. The passable area and the inaccessible area can be marked with different labels, such as different colors.
[0088] Optionally, the second threat level of each position point within the target range in the virtual interactive scene screen is obtained, including: for each position point, obtaining the distance between the position point and each candidate enemy character; based on the distance corresponding to each candidate enemy character, determining the target enemy character from each candidate enemy character; and determining the second threat level of the position point according to the distance between the position point and the target enemy character.
[0089] Optionally, a virtual interaction image is obtained from the virtual interaction scene screen; the virtual interaction image is parsed to obtain characters appearing in the virtual interaction image; when there are candidate enemy characters among the characters appearing in the virtual interaction image, for each position point, the distance between the position point and each candidate enemy character is obtained.
[0090] Among them, the virtual interaction image is a frame of image obtained in the virtual interaction scene screen. The electronic device can obtain the virtual interaction image in real time or at a fixed time. Optionally, the terminal takes a screenshot of the virtual interaction scene screen in real time to obtain the virtual interaction image. Optionally, after the terminal renders each frame of the virtual interaction scene screen, it obtains the rendered virtual interaction image. The terminal can also obtain the virtual interaction image in other ways, which are not limited here.
[0091] Optionally, the electronic device performs target detection on the virtual interactive image through a target detection model to obtain characters appearing in the virtual interactive image, where the characters appearing in the virtual interactive image include at least the current character. The characters appearing in the virtual interactive image may also include at least one of a friendly character and an enemy character.
[0092] If there are candidate enemy characters in the virtual interactive scene screen, for each position point, the distance between the position point and each candidate enemy character is obtained; from the distances corresponding to each candidate enemy character, the candidate enemy character with the shortest distance is determined as the target enemy character.
[0093] The second threat level is negatively correlated with the distance corresponding to the target enemy character. That is, the closer the target enemy character is to the position point, the greater the second threat level of the position point. Optionally, the electronic device uses the reciprocal of the distance between the position point and the target enemy character as the second threat level of the position point.
[0094] Optionally, for each location point, the first threat level and the second threat level of the location point are added to obtain the target threat level of the location point. Optionally, for each location point, the first threat level and the second threat level of the location point are averaged to obtain the target threat level of the location point. Optionally, for each location point, the first threat level and the second threat level of the location point are weighted summed to obtain the target threat level of the location point. Optionally, the electronic device can also determine the target threat level of the location point in other ways, which are not limited here. The target threat level is between 0 and 1.
[0095] Optionally, the above method also includes: obtaining a third threat level for each location point within the target range in the virtual interactive scene screen; the third threat level represents the probability of an enemy character appearing at the location point; for each location point, obtaining a target threat level for the location point based on the first threat level and the second threat level of the location point, including: for each location point, obtaining the target threat level of the location point based on the first threat level, the second threat level and the third threat level of the location point.
[0096] It is understandable that there may be blind spots in the virtual interactive scene, such as bushes, or some areas may be temporarily blind due to enemy skills. If the current character enters these blind spots, he may be ambushed and be in an extremely unsafe state. Therefore, the probability of enemy characters appearing at various positions within the target range in the virtual interactive scene can be used to calculate a more accurate target threat level.
[0097] Optionally, the developer can set the third threat level of the location point according to the probability of the enemy character appearing at each location point in the virtual interactive scene screen. Optionally, the electronic device determines the probability of the enemy character appearing at each location point within the target range in the virtual interactive scene screen through machine learning, and determines the third threat level based on the probability. The third threat level is positively correlated with the probability.
[0098] Optionally, for each location point, the first threat level, the second threat level and the third threat level of the location point are added to obtain the target threat level of the location point. Optionally, for each location point, the first threat level, the second threat level and the third threat level of the location point are averaged to obtain the target threat level of the location point. Optionally, for each location point, the first threat level, the second threat level and the third threat level of the location point are weighted summed to obtain the target threat level of the location point. Optionally, the electronic device can also determine the target threat level of the location point in other ways, which are not limited here. The target threat level is between 0 and 1.
[0099] In this embodiment, the electronic device obtains a first threat level for each position point within a target range in a virtual interactive scene screen, where the first threat level indicates the importance of the position point to the current character; obtains a second threat level for each position point within the target range in the virtual interactive scene screen, where the second threat level is negatively correlated with the distance between the position point and the target enemy character; based on the first threat level and the second threat level of the position point, the target threat level of the position point can be accurately obtained.
[0100] Furthermore, for each location point, the distance between the location point and each candidate enemy character is obtained, and based on the distances corresponding to each candidate enemy character, the target enemy character is determined from each candidate enemy character. According to the distance between the location point and the target enemy character, the second threat level of the location point can be accurately determined.
[0101] Furthermore, a third threat degree of each position point within the target range in the virtual interactive scene screen is obtained. The third threat degree represents the probability of an enemy character appearing at the position point. The target threat degree of the position point can be more accurately determined based on the first threat degree, the second threat degree and the third threat degree.
[0102] In one embodiment, Figure 2 As shown, the terminal displays a virtual interactive scene screen, and the virtual interactive scene includes a target area, a current character and an interactive character. The interactive character includes a friendly interactive character and an enemy interactive character. If the current character has at least one survival attribute with an attribute value lower than an attribute threshold, a target route is obtained, and the target route will not have impassable roadblocks, will not have obvious enemy characters, and the possibility of an ambush by an enemy character is minimized; the target route is displayed in the target area of the virtual interactive scene screen, and the user can control the current character to move along the target route to keep the current character in a safe state.
[0103] In one embodiment, an information display method is also provided, which is applied to an electronic device, and the information display method comprises the following steps:
[0104] Step A1, displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes a current character; the current character has an attribute value of at least one survival attribute.
[0105] Step A2, when the attribute value is lower than the attribute threshold, obtain the first threat level of each position point within the target range in the virtual interactive scene screen; the first threat level indicates the importance of the position point to the current character.
[0106] Step A3, for each position point, obtain the distance between the position point and each candidate enemy character; based on the distances corresponding to each candidate enemy character, determine the target enemy character from each candidate enemy character; according to the distance between the position point and the target enemy character, determine the second threat level of the position point; the second threat level is negatively correlated with the distance between the position point and the target enemy character.
[0107] Step A4, obtaining the third threat level of each position point within the target range in the virtual interactive scene screen; the third threat level represents the probability of an enemy character appearing at the position point.
[0108] Step A5, for each location point, according to the first threat level, the second threat level and the third threat level of the location point, obtain the target threat level of the location point; the target threat level indicates the unsafe degree of the current character when at the location point.
[0109] Step A6, determining the target position point based on the target threat level of each position point within the target range; the target threat level of the target position point is less than the threat level threshold.
[0110] Step A7, planning a route from the current position of the current character to the target position to obtain a target route; the target route is used to instruct the current character to move along the target route so that the current character is in a safe state.
[0111] Step A8: displaying the target area in the virtual interactive scene screen, and displaying the target route in the target area.
[0112] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0113] Based on the same inventive concept, the embodiment of the present application also provides an information display device for implementing the information display method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more information display device embodiments provided below can refer to the limitations on the information display method above, and will not be repeated here.
[0114] In an exemplary embodiment, Figure 3 As shown, an information display device is provided, including: a display module 302, a target threat level obtaining module 304 and a target path determining module 306, wherein:
[0115] A display module 302 is used to display a virtual interactive scene screen, which includes the current character;
[0116] The target threat degree acquisition module 304 is used to obtain the target threat degree of each position point within the target range in the virtual interactive scene screen; the target threat degree indicates the unsafe degree of the current character at the position point;
[0117] The target path determination module 306 is used to determine the target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state;
[0118] The display module 302 is further used to display the target area in the virtual interactive scene screen, and to display the target route in the target area.
[0119] The above-mentioned information display device displays a virtual interactive scene screen, which includes the current character, and obtains the target threat level of each position point within the target range in the virtual interactive scene screen, and the target threat level indicates the degree of unsafety of the current character when it is at the position point; then, based on the target threat level of each position point within the target range, the target route can be accurately determined, and the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state, and the target area is displayed in the virtual interactive scene screen, and the more accurate target route is displayed in the target area, so that the user can intuitively obtain the target route from the target area to control the current character to travel along the target path, thereby improving the safety of the current character.
[0120] In one embodiment, the target threat level acquisition module 304 is also used to obtain the first threat level of each position point within the target range in the virtual interactive scene screen; the first threat level indicates the importance of the position point to the current character; obtain the second threat level of each position point within the target range in the virtual interactive scene screen; the second threat level is negatively correlated with the distance between the position point and the target enemy character; for each position point, the target threat level of the position point is obtained based on the first threat level and the second threat level of the position point.
[0121] In one embodiment, the target threat level acquisition module 304 is also used to obtain, for each location point, the distance between the location point and each candidate enemy character; determine the target enemy character from each candidate enemy character based on the distance corresponding to each candidate enemy character; and determine the second threat level of the location point based on the distance between the location point and the target enemy character.
[0122] In one embodiment, the target threat level acquisition module 304 is also used to obtain the third threat level of each location point within the target range in the virtual interactive scene screen; the third threat level represents the probability of an enemy character appearing at the location point; for each location point, the target threat level of the location point is obtained based on the first threat level, the second threat level and the third threat level of the location point.
[0123] In one embodiment, the target path determination module 306 is also used to determine the target location point based on the target threat level of each location point within the target range; the target threat level of the target location point is less than the threat level threshold; and a route is planned from the current location point of the current character to the target location point to obtain the target route.
[0124] In one embodiment, the current character has an attribute value of at least one survival attribute; the target threat degree acquisition module 304 is also used to obtain the target threat degree of each position point within the target range in the virtual interactive scene screen when the attribute value is lower than the attribute threshold.
[0125] Each module in the above information display device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in an electronic device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0126] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 4As shown. The electronic device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and an external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, an information display method is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.
[0127] Those skilled in the art will understand that Figure 4 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0130] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0131] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0132] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0133] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0134] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An information display method, characterized in that: The method comprises: Displaying a virtual interactive scene screen, wherein the virtual interactive scene screen includes the current character; Obtaining the target threat level of each position point within the target range in the virtual interactive scene screen; the target threat level indicates the unsafe degree of the current character at the position point; Determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state; The target area is displayed in the virtual interactive scene screen, and the target route is displayed in the target area.
2. The method according to claim 1, characterized in that The step of obtaining the target threat level of each position point within the target range in the virtual interactive scene screen includes: Obtaining a first threat level for each position point within a target range in the virtual interactive scene screen; the first threat level indicates the importance of the position point to the current character; Obtaining a second threat level for each position point within a target range in the virtual interactive scene screen; the second threat level is negatively correlated with a distance between the position point and a target enemy character; For each location point, a target threat level of the location point is obtained according to the first threat level and the second threat level of the location point.
3. The method according to claim 2, characterized in that The step of obtaining the second threat level of each position point within the target range in the virtual interactive scene screen includes: For each position point, obtain the distance between the position point and each candidate enemy character; Determining a target enemy character from among the candidate enemy characters based on the distances corresponding to the candidate enemy characters; A second threat level of the position point is determined according to a distance between the position point and the target enemy character.
4. The method according to claim 2, characterized in that The method further comprises: Obtaining a third threat level of each position point within a target range in the virtual interactive scene screen; the third threat level represents a probability of an enemy character appearing at the position point; The step of obtaining, for each location point, a target threat level of the location point according to the first threat level and the second threat level of the location point comprises: For each location point, a target threat level of the location point is obtained according to the first threat level, the second threat level and the third threat level of the location point.
5. The method according to any one of claims 1 to 4, characterized in that: Determining the target route based on the target threat level of each position point within the target range includes: Determining a target position point based on the target threat degree of each position point within the target range; the target threat degree of the target position point is less than a threat degree threshold; A route is planned from the current position of the current character to the target position to obtain a target route.
6. The method according to any one of claims 1 to 4, characterized in that: The current character has at least one attribute value of a survival attribute; and obtaining the target threat level of each position point within the target range in the virtual interactive scene screen includes: When the attribute value is lower than the attribute threshold, the target threat degree of each position point within the target range in the virtual interactive scene screen is obtained.
7. An information display device, characterized in that: The device comprises: A display module, used to display a virtual interactive scene screen, wherein the virtual interactive scene screen includes a current character; A target threat degree acquisition module is used to obtain the target threat degree of each position point within the target range in the virtual interactive scene screen; the target threat degree indicates the unsafe degree of the current character at the position point; A target path determination module, used to determine a target route based on the target threat level of each position point within the target range; the target route is used to instruct the current character to travel along the target route so that the current character is in a safe state; The display module is also used to display the target area in the virtual interactive scene screen, and display the target route in the target area.
8. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.