Display Method, Device and Electronic Device for Location Information
By using area monitoring logos to display the orientation, distance and height information of the target virtual object in shooting games, the problem of not being able to accurately provide enemy positions in the prior art is solved, and the player's game decisions and experience are improved.
Patent Information
- Application Number
- CN202210862678.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-20
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-07-20
AI Technical Summary
In existing shooting games, the hit logo can only roughly indicate the location of the enemy's virtual characters, and cannot accurately provide the specific location of the enemy, affecting the player's game decisions and experience.
By displaying area monitoring identifiers on the graphical user interface, using multiple area identifiers to display the orientation, distance and height information of the target virtual object, determine the display method of the target area identifier, and accurately provide the location of the virtual object.
Improves players' game decision-making ability and experience in shooting games, and enhances the accuracy of tactical actions through precise position information display.
Smart Images

Figure CN115400429B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of games, and in particular, to a method, device, and electronic device for displaying position information. Background Art
[0002] In shooting games, when a player's virtual character is hit, a hit mark is usually displayed within the player's field of view to prompt the source of the hit, that is, the azimuth of the enemy virtual character that hits the player's virtual character. For example, the position of the enemy virtual character is prompted by displaying an arrow or an arc mark. The hit mark can help the player predict the position of the enemy. However, the above hit mark can only indicate the approximate azimuth of the enemy and cannot accurately provide the specific position of the enemy, which is not conducive to the player's game decision-making and affects the player's game experience. Summary of the Invention
[0003] In view of this, an object of the present invention is to provide a method, device, and electronic device for displaying position information, so as to display the azimuth information, distance information, and height information between virtual objects within a target monitoring range in a game scene through multiple area identifiers of an area monitoring identifier, and further determine the specific position of the virtual object, which is conducive to the player's game decision-making and improves the player's game experience.
[0004] In a first aspect, an embodiment of the present invention provides a method for displaying position information. A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene picture of a game scene and a first virtual object located in the game scene, and the first virtual object is a virtual object controlled by the terminal device. The method includes: displaying an area monitoring identifier on the graphical user interface, where the monitoring area corresponding to the area monitoring identifier is a game scene space area determined according to the current position of the first virtual object and monitoring range parameters, and the area monitoring identifier includes multiple area identifiers, and the area identifier corresponds to a scene area within a target monitoring direction range and a target monitoring distance range in the game scene; determining a target virtual object and obtaining target position information of the target virtual object in the game scene; where the target virtual object is a virtual object other than the first virtual object in the game scene; determining a target area identifier from the multiple area identifiers according to the target position information, where the scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier matches the target position information; determining a display mode of the target area identifier according to the height information in the target position information, and displaying the target area identifier according to the display mode.
[0005] Further, the step of determining the target virtual object includes: determining a candidate virtual object that performs a preset game behavior, and obtaining the azimuth information of the candidate virtual object; when the azimuth information of the candidate virtual object is within the monitoring area, determining the candidate virtual object as the target virtual object.
[0006] Further, the above target position information is the absolute position information of the target virtual object relative to the game scene, and the absolute position information includes at least one of the following information: horizontal position information and height position information; or, the target position information is the relative position information of the target virtual object relative to the first virtual object, where the relative position information includes at least one of the following information: relative distance information, relative azimuth information, and relative height information.
[0007] Further, the step of determining the target area identifier from multiple area identifiers according to the target position information includes: determining the target area identifier from multiple area identifiers according to the horizontal position information in the target position information or, the relative distance information and the relative azimuth information.
[0008] Further, the above multiple area identifiers include a first area identifier; the step of determining the target area identifier from multiple area identifiers according to the horizontal position information in the target position information or, the relative distance information and the relative azimuth information includes: if the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to a first preset distance, determining the first area identifier as the target area identifier.
[0009] Further, the above multiple area identifiers include multiple second area identifiers; the relative directions of each second area identifier and the center point of the first area identifier are different; the step of determining the target area identifier from multiple area identifiers according to the horizontal position information in the target position information or, the relative distance information and the relative azimuth information includes: if the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the first preset distance and less than or equal to a second preset distance, determining the second area identifier as the first candidate area identifier; if the horizontal position information or the relative azimuth information indicates that the azimuth of the target virtual object relative to the first virtual object is a first direction, determining the target area identifier matching the first direction from the first candidate area identifiers.
[0010] Further, the above multiple area identifiers include multiple third area identifiers; the relative directions of each third area identifier and the center point of the first area identifier are different; the step of determining the target area identifier from multiple area identifiers according to the horizontal position information in the target position information or, the relative distance information and the relative azimuth information includes: if the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to a third preset distance, determining the third area identifier as the second candidate area identifier; if the horizontal position information or the relative azimuth information indicates that the azimuth of the target virtual object relative to the first virtual object is a second direction, determining the target area identifier matching the second direction from the second candidate area identifiers.
[0011] Further, the above-mentioned area monitoring identifier is a first circle, the first area identifier among the multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the centers of the first circle and the second circle are in the same position; the second area identifier among the multiple area identifiers is a sector divided by an annular ring between the first circle and the second circle; the third area identifier among the multiple area identifiers is an outer line of the first circle.
[0012] Further, a reference position identifier is set in the area monitoring identifier, and the reference position identifier corresponds to the first virtual object; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying the target area identifier according to the display mode include: determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object.
[0013] Further, the above-mentioned target area identifier is the first area identifier; the reference position identifier is located in the first area identifier; the steps of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode include: if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the edge and transparent inside; if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, displaying a line with the first preset color at the edge of the target area identifier.
[0014] Further, the above target area identifier is the second area identifier; the step of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the outer edge and transparent towards the inside; if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the inner edge and transparent towards the outside.
[0015] Further, the above target area identifier is the third area identifier; the step of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: if the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color.
[0016] Further, the first preset color includes a variety of different preset sub - colors, and different preset sub - colors have different color depths; among them, corresponding to different preset sub - colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different.
[0017] Further, the step of displaying the first position identifier of the target virtual object in the target area identifier includes: if the relationship between the target virtual object and the first virtual object is a non - hostile relationship, determining a target position in the target area identifier that matches the target position information; displaying the first object identifier of the target virtual object at the target position.
[0018] Further, the step of displaying the first object identifier of the target virtual object at the target position includes: determining that the target virtual object is killed, and displaying the second object identifier of the target virtual object at the target position.
[0019] Further, the method further includes: in response to the first virtual object being hit by a second virtual object in the game scene, acquiring the azimuth information and height information of the second virtual object in the game scene; based on the azimuth information and height information, displaying a damage identifier on the graphical user interface; wherein, the damage identifier is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object that is in a hostile relationship with the first virtual object.
[0020] Further, the step of displaying a damage identifier on the graphical user interface based on the orientation information and the height information includes: determining the relative orientation information and the relative height information of the second virtual object relative to the first virtual object according to the orientation information and the height information; determining a specified area identifier that matches the relative orientation information from multiple area identifiers of the area monitoring identifier according to the relative orientation information and the relative height information; determining the display mode of the damage identifier according to the relative height information, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode.
[0021] Further, the damage identifier is a three-dimensional conical identifier; the step of determining the display mode of the damage identifier according to the relative height information and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode includes: if the relative height information is zero, determining that the display mode of the damage identifier is the first display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the first display mode; wherein, the first display mode indicates that the height of the second virtual object relative to the first virtual object is zero; if the relative height information is greater than zero, determining that the display mode of the damage identifier is the second display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the second display mode; wherein, the second display mode indicates that the height of the second virtual object relative to the first virtual object is greater than zero; if the relative height information is less than zero, determining that the display mode of the damage identifier is the third display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the third display mode; wherein, the third display mode indicates that the height of the second virtual object relative to the first virtual object is less than zero.
[0022] Further, the area identifier includes a plurality of second area identifiers and a plurality of third area identifiers; the method further includes: in response to the first virtual object obtaining a specified virtual item, increasing the number of the second area identifiers and the third area identifiers, or increasing the monitoring range parameter; wherein, the number of the second area identifiers is the same as the number of the third area identifiers.
[0023] In a second aspect, an embodiment of the present invention further provides a display device for location information. A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene picture of a game scene and a first virtual object located in the game scene. The first virtual object is a virtual object controlled by the terminal device. The device includes: a region monitoring and display module, configured to display a region monitoring identifier on the graphical user interface. The monitoring region corresponding to the region monitoring identifier is a game scene space region determined according to the current position of the virtual object and a monitoring range parameter. The region monitoring identifier includes a plurality of region identifiers, and the region identifier corresponds to a scene region within a target monitoring direction range and a target monitoring distance range in the game scene; a target location information acquisition module, configured to determine a target virtual object and acquire target location information of the target virtual object in the game scene. Wherein, the target virtual object is a virtual object in the game scene other than the first virtual object; a region identifier determination module, configured to determine a target region identifier from the plurality of region identifiers according to the target location information. Wherein, the scene region within the target monitoring direction range and the target monitoring distance range corresponding to the target region identifier matches the target location information; a region identifier display module, configured to determine a display mode of the target region identifier according to the height information in the target location information, and display the target region identifier according to the display mode.
[0024] In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the location information display method according to any one of the first aspect.
[0025] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the location information display method according to any one of the first aspect.
[0026] The embodiments of the present invention bring the following beneficial effects:
[0027] The present invention provides a method, an apparatus, and an electronic device for displaying location information. A regional monitoring identifier is displayed on a graphical user interface. The regional monitoring identifier includes a plurality of regional identifiers. A target virtual object is determined, and target location information of the target virtual object in a game scene is obtained. A target regional identifier is determined from the plurality of regional identifiers according to the target location information. A display mode of the target regional identifier is determined according to height information in the target location information, and the target regional identifier is displayed according to the display mode. In this way, the location information of virtual objects other than the first virtual object in the game scene is displayed through the target regional identifier among the plurality of regional identifiers, and the distance, azimuth, and height between the virtual object and the first virtual object can be accurately provided, which is beneficial for players to make game decisions based on the distance and azimuth of the virtual object and improves the players' game experience.
[0028] Other features and advantages of the present invention will be set forth in the following description, and in part will be obvious from the description, or may be learned by practice of the present invention. The objectives and other advantages of the present invention are realized and attained by the structure particularly pointed out in the specification, the claims, as well as the drawings.
[0029] To make the above objectives, features, and advantages of the present invention more comprehensible, the following specific preferred embodiments are given, and in conjunction with the accompanying drawings, the detailed description is as follows. Description of the Drawings
[0030] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those skilled in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0031] Figure 1 A schematic diagram of location information display provided by an embodiment of the present invention;
[0032] Figure 2 Another schematic diagram of location information display provided by an embodiment of the present invention;
[0033] Figure 3 A flowchart of a method for displaying location information provided by an embodiment of the present invention;
[0034] Figure 4 A schematic diagram of a regional monitoring identifier provided by an embodiment of the present invention;
[0035] Figure 5 Another schematic diagram of a regional monitoring identifier provided by an embodiment of the present invention;
[0036] Figure 6Another schematic diagram of the area monitoring identifier provided by the embodiment of the present invention;
[0037] Figure 7 Another schematic diagram of the area monitoring identifier provided by the embodiment of the present invention;
[0038] Figure 8 Another schematic diagram of the area monitoring identifier provided by the embodiment of the present invention;
[0039] Figure 9 Another schematic diagram of the area monitoring identifier provided by the embodiment of the present invention;
[0040] Figure 10 Schematic diagram of the structure of a display device for position information provided by the embodiment of the present invention;
[0041] Figure 11 Schematic diagram of the structure of an electronic device provided by the embodiment of the present invention. Detailed implementation manners
[0042] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0043] The position information display method in one of the embodiments of the present disclosure can run on a local terminal device or a server. When the position information display method runs on the server, the position information display method can be implemented and executed based on a cloud interaction system, where the cloud interaction system includes a server and client devices.
[0044] In an optional implementation manner, various cloud applications can run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the entity presenting the game screen are separated. The storage and running of the position information display method are completed on the cloud game server, and the role of the client device is for data reception, transmission, and game screen presentation. For example, the client device can be a display device with data transmission function near the user side, such as a mobile terminal, a television, a computer, a palm computer, etc.; however, the information processing is performed by the cloud game server in the cloud. When playing a game, the player operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the client device through the network, and finally, the client device decodes and outputs the game screen.
[0045] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is used to present game screens. The local terminal device is used to interact with players through a graphical user interface, that is, conventionally, the game program is downloaded and installed on an electronic device and run. The ways for the local terminal device to provide the graphical user interface to players can include various types. For example, it can be rendered and displayed on the display screen of the terminal, or provided to players through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, which includes game screens. The processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0046] Currently, in existing shooting mobile games, the hit prompts are all two-dimensional damage prompts around the aiming crosshair. The main design performance is to use arrows to indicate the source of the hit. As Figure 1 shown in the design solution, when a virtual object of a player is hit by an enemy target within a certain range nearby, a circular arc-shaped red arrow prompt will appear around the aiming crosshair (such as the hit prompt shown in Figure 1 ) The method indicated by the arrow identifies the current position of the target, helping the player to roughly predict the position of the enemy to solve the tactical actions in the next stage.
[0047] However, this type of prompt only has one direction, and it cannot expose the specific distance of the enemy more accurately, nor can it expose the specific spatial position of the enemy. It is not conducive to players making game decisions and affects the players' gaming experience. Based on this, an embodiment of the present invention provides a method, device, and electronic device for displaying position information. This technology can be applied to devices such as mobile phones, tablet computers, and laptop computers.
[0048] To facilitate the understanding of this embodiment, first, a method for displaying position information disclosed in the embodiment of the present invention will be introduced in detail. A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene screen of a game scene and a first virtual object located in the game scene. The first virtual object is a virtual object controlled by the terminal device. The terminal device can be the aforementioned local terminal device or the client device in the aforementioned cloud interaction system. In addition, when the first virtual object holds a virtual shooting tool, the above-mentioned graphical user interface usually also includes a virtual shooting tool located in the game scene. At this time, a crosshair identifier and a region monitoring identifier corresponding to the virtual shooting tool are also displayed above the scene screen; the crosshair identifier and the region monitoring identifier respectively have a specified display position relationship with the virtual shooting tool. At this time, the crosshair identifier is the position where the virtual shooting tool shoots or aims.
[0049] In addition, when the first virtual object is not holding any tool, the above-mentioned graphical user interface usually only includes all or part of the first virtual object. At this time, the scene screen may only display an area monitoring identifier (the area monitoring identifier has a specified display position relationship with the first virtual object), or display a sight identifier and an area monitoring identifier (the area monitoring identifier has a specified display position relationship with the sight identifier corresponding to the first virtual object). At this time, the sight identifier is the position aimed at by the first virtual object. Of course, the sight identifier corresponding to the first virtual object may not be displayed in the above-mentioned graphical user interface. The above-mentioned terminal device may be a touch-screen device such as a mobile phone or a tablet computer, or a non-touch-screen device such as a computer or a laptop. The above-mentioned game scene usually refers to the game scene of a shooting game. The above-mentioned virtual shooting tool may be a virtual gun, a virtual bow and arrow, etc.
[0050] The above-mentioned scene screen usually includes the first virtual object controlled by the player and the virtual shooting tool controlled by the player. It may also only include the virtual shooting tool controlled by the player. Of course, it may also only include the first virtual object controlled by the player. The above-mentioned sight identifier may be a point or an identifier of other shapes. For example, Figure 1 and Figure 2 the sight identifier shown. Additionally, by way of example, as Figure 2 shown, the above-mentioned sight identifier and area monitoring identifier respectively have a specified display position relationship with the virtual shooting tool, and the sight identifier moves with the movement of the virtual shooting tool. Or when the first virtual object is not holding any tool, the sight identifier is the identifier corresponding to the first virtual object, and at this time the sight identifier moves with the movement of the first virtual object. The area monitoring identifier usually shows at the lower position of the sight identifier and also moves with the movement of the first virtual object. Or, the sight identifier may not be displayed in the scene screen, and at this time the area monitoring identifier also moves with the movement of the first virtual object.
[0051] As Figure 3 shown, the method includes:
[0052] Step S302, display an area monitoring identifier on the graphical user interface. The monitoring area corresponding to the area monitoring identifier is the game scene space area determined according to the current position of the first virtual object and the monitoring range parameter. The area monitoring identifier includes a plurality of area identifiers, and the area identifiers correspond to the scene areas within the target monitoring direction range and target monitoring distance range in the game scene;
[0053] The center position of the above-mentioned area monitoring identifier corresponds to the first virtual character. The above-mentioned monitoring range parameter can be parameters such as radius and side length. The above-mentioned game scene space area can be a circular area, a square area, an oval area, etc. For example, the monitoring area corresponding to the above-mentioned area monitoring identifier can be a game scene space area with the current position of the first virtual object as the center and a specified distance as the radius, and this game scene space area corresponds to the area monitoring identifier.
[0054] The above-mentioned area monitoring identifier can be in shapes such as circular and square. The above-mentioned area identifier can also be a circular identifier, a square identifier, a sector identifier, a line identifier, etc. The scene areas corresponding to different area identifiers in the game scene have different target monitoring direction ranges and target monitoring distance ranges. For example, the area identifier located in the central area of the area monitoring identifier corresponds to a scene area with a radius of 10 meters centered on the first virtual object; another example is that the area identifier located in other specified areas of the area monitoring identifier corresponds to a target monitoring direction range that is, based on the first virtual object, in the northeast direction of the first virtual object, and the scene area determined by the target monitoring distance range of 10 - 20 meters; another example is that the area identifier located in the edge area of the area monitoring identifier corresponds to a target monitoring direction range that is, based on the first virtual object, in the southeast direction of the first virtual object, and the scene area determined by the target monitoring distance range of 20 - 30 meters.
[0055] In actual implementation, in response to the movement of the first virtual object corresponding to the virtual shooting tool in the game scene, the scene screen is controlled to change; among them, after the scene screen changes, the sight identifier and the area monitoring identifier have a relative displacement with the scene screen; the above-mentioned first virtual object is a virtual object controlled by the player, that is to say, the virtual shooting tool is also a tool controlled by the player. The above-mentioned scene screen displays the image of the game scene captured by the virtual camera corresponding to the first virtual object, and the virtual shooting tool is always displayed in this scene screen. The above-mentioned area monitoring identifier usually has a specified shape, such as circular, oval, etc. In order not to affect the player's viewing of the scene screen, the area monitoring identifier is usually displayed in a semi-transparent state to avoid interfering with the sight's target acquisition.
[0056] Specifically, the player can control the moving control displayed on the graphical user interface to control the movement of the first virtual object in the game scene, or can also control an external input device (such as a mouse, keyboard, etc.) to control the movement of the first virtual object in the game scene, thereby causing the scene image displayed on the graphical user interface to change according to the movement of the first virtual object, that is, controlling the movement of the virtual camera corresponding to the first virtual object, and thus causing the captured scene image to change. At the same time, the virtual shooting tool displayed on the scene image will move along with the displacement of the first virtual object. Similarly, the aiming mark and the area monitoring mark will also move relatively in the scene image along with the virtual shooting tool.
[0057] Step S304: Determine the target virtual object and obtain the target position information of the target virtual object in the game scene; wherein, the target virtual object is a virtual object other than the first virtual object in the game scene;
[0058] In the game scene, monitor all virtual objects other than the first virtual object, specifically monitor the position information of all virtual objects other than the first virtual object. When a virtual object is located in the monitoring area corresponding to the area monitoring mark (i.e., the game scene space area), this virtual object can be determined as the above-mentioned target virtual object. Of course, it is also possible to specifically monitor virtual objects with a specified state other than the first virtual object. When a virtual object with a specified state is located in the monitoring area corresponding to the area monitoring mark (i.e., the game scene space area), this virtual object is determined as the above-mentioned target virtual object. The specified state can be, for example, shooting, releasing skills, etc.
[0059] After determining the target virtual object, obtain the target position information of the target virtual object in the game scene. This target position information is usually the position coordinates of the target virtual object in the three-dimensional coordinate system corresponding to the game scene, where the origin of the three-dimensional coordinate system corresponding to the game scene can be any position in the game scene; of course, the above-mentioned target position information can also be the position coordinates of the target virtual object relative to the first virtual object, that is, the position coordinates in the three-dimensional coordinate system with the position of the first virtual object as the origin. The above-mentioned target position information usually reflects distance information, azimuth information, height information, etc.
[0060] The above-mentioned target virtual object can be a virtual object in a hostile relationship with the first virtual object. For example, an enemy virtual character, a virtual vehicle controlled by an enemy virtual character, etc. It can also be a virtual object in a non-hostile relationship with the first virtual object. For example, a teammate virtual character, a virtual vehicle controlled by a teammate virtual character, etc.
[0061] Step S306: Determine a target area identifier from multiple area identifiers according to the target location information, where the scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier matches the target location information;
[0062] Specifically, it is necessary to determine a target area identifier that matches the target location information from multiple area identifiers. The distance, azimuth, height, etc. of the target virtual object relative to the first virtual object can be determined according to the target location information. A target area identifier that matches the distance and azimuth is determined from multiple area identifiers according to the distance and azimuth. This target area identifier can represent the distance and azimuth between the target virtual object and the first virtual object. That is to say, the position indicated by the target location information of the target virtual object is within the scene area of the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier.
[0063] Step S308: Determine the display method of the target area identifier according to the height information in the target location information, and display the target area identifier according to this display method.
[0064] The above display methods usually include various display forms. Different display methods are mainly determined according to the height information. For example, if the height information is zero, the target area identifier is displayed in a preset first display form. For example, if the height information is not zero, the target area identifier is displayed in a preset second display form. In addition, the target area identifier also has different shapes, and the specific display methods of area identifiers with different shapes are also different. Secondly, the display method will also display different information according to the relationship between the target virtual object and the first virtual object.
[0065] It should be noted that the target area identifier is used to indicate the distance and azimuth of the target virtual object relative to the first virtual object, and the display method of the target area identifier is used to indicate the vertical distance, that is, the height distance, of the target virtual object relative to the first virtual object.
[0066] The above method for displaying location information displays area monitoring identifiers on the graphical user interface. The area monitoring identifiers include multiple area identifiers. A target virtual object is determined, and the target location information of the target virtual object in the game scene is obtained; a target area identifier is determined from multiple area identifiers according to the target location information, the display method of the target area identifier is determined according to the height information in the target location information, and the target area identifier is displayed according to the display method. In this method, the location information of virtual objects other than the first virtual object in the game scene is displayed through the target area identifier in multiple area identifiers, which can accurately provide the distance, azimuth, and height between this virtual object and the first virtual object, facilitating players to make game decisions based on the distance and azimuth of this virtual object, and improving the players' game experience.
[0067] For the above step S304, the step of determining the target virtual object, a possible implementation method is as follows:
[0068] Determine the candidate virtual objects that perform the preset game behavior, and obtain the orientation information of the candidate virtual objects; when the orientation information of the candidate virtual objects is within the monitoring area, determine the candidate virtual objects as the target virtual objects.
[0069] The above preset game behavior can be a skill release behavior, a shooting behavior, an attack behavior, etc. The above candidate virtual objects can be virtual objects that are in a hostile relationship with the first virtual object, or can be virtual objects that are not in a hostile relationship with the first virtual object. The above orientation information can be the absolute orientation information of the candidate virtual object relative to the game scene, or can be the relative orientation information of the candidate virtual object relative to the first virtual object. The above orientation information is usually coordinate information. For example, when the virtual object in the game scene is performing the preset game behavior, then determine the virtual object as the candidate virtual object, then obtain the orientation information of the candidate virtual object, and determine whether the candidate virtual object is located in the monitoring area corresponding to the area monitoring identifier according to the orientation information. If the candidate virtual object is in the game scene space area corresponding to the monitoring area, then determine the candidate virtual object as the target virtual object. In this method, the game behavior of the virtual objects other than the first virtual object in the game scene is monitored. Only when the virtual object performing the preset game behavior is in the monitoring area, will the virtual object be determined as the target virtual object, further improving the player's game experience.
[0070] In addition, the above target position information is the absolute position information of the target virtual object relative to the game scene. The absolute position information includes at least one of the following information: horizontal position information and height position information; or, the target position information is the relative position information of the target virtual object relative to the first virtual object, where the relative position information includes at least one of the following information: relative distance information, relative orientation information, and relative height information.
[0071] The above absolute position information and relative position information are both the coordinates of the target virtual object in the three-dimensional coordinate system. The three-dimensional coordinate system can be a three-dimensional coordinate system with any position in the game scene as the origin, or can be a three-dimensional coordinate system with the first virtual object as the origin. Among them, the target position information of the target virtual object obtained by the three-dimensional coordinate system with any position in the game scene as the origin is the absolute position information, and the target position information of the target virtual object obtained by the three-dimensional coordinate system with the first virtual object as the origin is the relative position information.
[0072] The above horizontal position information is usually determined by a two-dimensional coordinate system, and the above height position information is usually determined by a three-dimensional coordinate system; the above relative distance information is usually used to indicate the distance between the target virtual object and the first virtual object, the above relative orientation information is usually used to indicate the direction of the target virtual object relative to the first virtual object, and the above relative height information is usually used to indicate the height difference between the target virtual object and the first virtual object.
[0073] Based on the absolute position information and the relative position information, the distance, orientation, and height difference between the target virtual object and the first virtual object can be calculated. The distance refers to the horizontal distance between the target virtual object and the first virtual object in the game scene; the orientation refers to the direction of the target virtual object relative to the first virtual object in the game scene; and the height refers to the vertical distance between the target virtual object and the first virtual object in the game scene.
[0074] In the above step S306, for the step of determining the target area identifier from multiple area identifiers according to the target position, a possible implementation manner:
[0075] Determine the target area identifier from multiple area identifiers according to the horizontal position information in the target position information, or the relative distance information and the relative orientation information.
[0076] The above different area identifiers are used to indicate different distances and orientations between the target virtual object and the first virtual object. For example, the first candidate area identifier of the area monitoring identifier indicates that the distance between the target virtual object and the first virtual object is relatively close, and the edge area identifier of the area monitoring identifier indicates that the distance between the target virtual object and the first virtual object is relatively far. Another example is that the area identifier on the right side of the area monitoring identifier relative to the first virtual object indicates that the orientation of the target virtual object relative to the first virtual object is on the right side.
[0077] In actual implementation, the relative distance information and the relative orientation information can be determined according to the horizontal position information. Therefore, the target area identifier matching the relative distance information and the relative orientation information can be determined from multiple area identifiers according to the horizontal position information or directly according to the relative distance information and the relative orientation information. For example, if the target monitoring direction range corresponding to area identifier ① among multiple area identifiers is the southeast direction, the corresponding target monitoring distance range is 10 - 20 meters, and the relative distance information is 15 meters and the relative orientation information is the southeast direction, then area identifier ① can be determined as the target area identifier.
[0078] Since the above multiple area identifiers include a first area identifier, multiple second area identifiers, and multiple third area identifiers, such as Figure 4As shown, the above steps determine the target area identifier from multiple area identifiers according to the horizontal position information or the relative distance information and relative orientation information in the target position information. A possible implementation:
[0079] If the horizontal position information or relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to the first preset distance, the first area identifier is determined as the target area identifier.
[0080] Among the above multiple area identifiers, each area identifier is used to indicate different distances and different orientations between the target virtual object and the first virtual object. At the same time, the display form of the area identifier is preset, and the relationship between the target virtual object and the first virtual object is indicated through different display forms, as well as the spatial position between the target virtual object and the first virtual object.
[0081] In actual implementation, the terminal device will obtain the target position information of the virtual objects in the game scene except the first virtual object in real time, including the horizontal position information or relative distance information and relative orientation information. Among them, the relative distance information and relative orientation information can be determined according to the horizontal position information. Therefore, when the relative distance information is less than or equal to the first preset distance, the first area identifier will be determined as the target area identifier. The above range less than the first preset distance can be understood as the target monitoring distance range corresponding to the first area identifier.
[0082] The above first preset distance can be set according to the actual game scene. For example, 5 meters, etc. The above first area identifier can be Figure 4 the circle shown in, and can be other shapes, such as oval, square, polygon, etc.
[0083] As Figure 4 shown, the above multiple area identifiers include multiple second area identifiers; the relative directions of each second area identifier and the center point of the first area identifier are different; the step of determining the target area identifier from multiple area identifiers according to the horizontal position information or the relative distance information and relative orientation information in the target position information. Another possible implementation:
[0084] If the horizontal position information or relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the first preset distance and less than or equal to the second preset distance, the second area identifier is determined as the first candidate area identifier; if the horizontal position information or relative orientation information indicates that the orientation of the target virtual object relative to the first virtual object is the first direction, the target area identifier matching the first direction is determined from the first candidate area identifiers.
[0085] The range greater than the first preset distance and less than or equal to the second preset distance can be understood as the target monitoring distance range corresponding to the second area identifier, and the above different directions can be understood as the target monitoring direction ranges corresponding to different second area identifiers.
[0086] The above second preset distance can be set according to the actual game scenario. For example, it can be 15 meters, etc. The above second area identifier can be one or multiple; if it is one, the above second area identifier can be Figure 4 the circular ring area outside the first area identifier shown in Figure 4 ; if there are multiple, the above second area identifiers can be
[0087] the fan-shaped areas shown in
[0088] (i.e., the 8 fan-shaped areas 1-8 in the figure); currently, the above second area identifier can also be other shapes, such as triangles, quadrilaterals, etc. Specifically, when the distance between the target virtual object and the first virtual object is greater than the first preset distance and less than or equal to the second preset distance, the second area identifier is determined as the first candidate area identifier. Figure 4 For example, the fan-shaped area 1 in
[0089] is determined as the target area identifier. In the above method, the target area identifier is determined through the distance and orientation between the target virtual object and the first virtual object, and the distance between the virtual objects is characterized by the target area identifier, so that the distance and orientation of the target virtual object can be accurately determined.
[0090] The above multiple area identifiers include multiple third area identifiers; the relative directions of each third area identifier and the center point of the first area identifier are different; a possible implementation manner of determining the target area identifier from the multiple area identifiers according to the horizontal position information or the relative distance information and relative orientation information in the target position information:
[0091] If the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than a second preset distance and less than or equal to a third preset distance, determine the third area identifier as the second candidate area identifier; if the horizontal position information or the relative orientation information indicates that the orientation of the target virtual object relative to the first virtual object is the second direction, determine the target area identifier that matches the second direction from the second candidate area identifiers.
[0092] The above-mentioned third preset distance can be set according to the actual needs of the game. For example, it can be 25 meters, etc. The above-mentioned third area identifier can be a circular line or an arc line. When there is one third area identifier, the above-mentioned third area identifier can be a circular line. When there are multiple third area identifiers, the above-mentioned third area identifier can be an arc line. Specifically, when the distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to the third preset distance, determine the third area identifier as the above-mentioned second candidate area identifier.
[0093] As Figure 6 shown, the above-mentioned third area identifiers include multiple; the relative direction of each third area identifier to the center of the first area identifier is different; each third area identifier corresponds to the second area identifier. For example, Figure 6 the middle area monitoring identifier includes 8 third area identifiers, and each third area identifier represents a relative direction. The above-mentioned third area identifiers can include 2, 3 or even more, and can be specifically set according to the actual requirements of the game.
[0094] Since the above-mentioned third area identifiers include multiple, after determining the distance between the target virtual object and the first virtual object, it is impossible to determine which area identifier among the multiple third area identifiers is the target area identifier. Therefore, the second direction of the target virtual object relative to the first virtual object can be determined, and the target area identifier that matches the second direction can be determined from the multiple third area identifiers; where the second direction is the direction in the horizontal orientation.
[0095] For example, if the second direction of the target virtual object relative to the first virtual object is that the target virtual object is located in the upper right front of the first virtual object, then determine the third area identifier located in the upper right front of the reference position identifier (the center of the first area identifier) as the target area identifier from the multiple third area identifiers. As Figure 6 shown in the fan-shaped 1 and 2 external corresponding lines in, are the target area identifiers.
[0096] In the above method, the target area identifier is determined by the distance and direction of the target virtual object relative to the first virtual object. By using the target area identifier to represent the distance between virtual objects, the distance and orientation of the target virtual object can be accurately determined.
[0097] Furthermore, as Figure 4 shown, the above-mentioned area monitoring identifier is a first circle, the first area identifier among the multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the centers of the first circle and the second circle are in the same position; the second area identifier among the multiple area identifiers is a sector divided by an annulus between the first circle and the second circle; the third area identifier among the multiple area identifiers is the outer line of the first circle.
[0098] In addition, a reference position identifier is set in the above-mentioned area monitoring identifier. As Figure 4 shown, a triangle at the center position of the area monitoring identifier. This reference position identifier corresponds to the first virtual object; that is to say, the reference position identifier displayed by the area monitoring identifier is the position of the first virtual object in the area monitoring identifier. It should be noted that Figure 4 the area monitoring identifier shown in
[0099] is a circle, and the reference position identifier is a triangle, which is only an example. Of course, it can also be other shapes.
[0100] The following describes a possible implementation manner of determining the display mode of the target area identifier according to the height information in the target position information and displaying the target area identifier according to the display mode:
[0101] Determine the display mode of the target area identifier according to the height position information or relative height information in the target position information, and display the first position identifier of the target virtual object in the target area identifier according to the display mode; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object.
[0102] In actual implementation, the distance and orientation between the target virtual object and the first virtual object can be obtained in real time. Then, based on this distance and orientation, that is, the relative position between the target virtual object and the first virtual object, the target area identifier for displaying the first position identifier is determined in the area monitoring identifier, and the first position identifier is displayed in the target area identifier. At this time, the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object. That is to say, the relative position between the target virtual object and the first virtual object is that the distance between the target virtual object and the first virtual object is 10 meters, and the orientation is to the right. The relative position between the first position identifier and the reference position identifier is that the distance between the first position identifier and the reference position identifier is 2 centimeters, and the orientation is to the right. Among them, the 2 - centimeter distance in the area monitoring identifier matches the 10 meters in the game scene.
[0103] In addition, the above - mentioned first position identifier usually includes identifiers in various display forms, and identifiers in different display forms are used to indicate different virtual objects and different control positions.
[0104] In the above - mentioned method, by displaying the first position identifier and the reference position identifier in the area monitoring identifier, and representing the relative position between virtual objects through the relative position between the identifiers, the position of the target virtual object can be accurately determined.
[0105] The above - mentioned area monitoring identifier includes a first area identifier and a second area identifier; as Figure 4 shown, the middle circular area is the first area identifier, and the surrounding fan - shaped area is the second area identifier. The reference position identifier is located in the first area identifier; if the above - mentioned target area is the first area identifier, the step of determining the display method of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display method, a possible implementation method:
[0106] (1) If the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the edge and transparent inside.
[0107] The above - mentioned first area identifier can be Figure 4 the circle shown in, or it can be other shapes, such as an ellipse, a square, a polygon, etc. The first position identifier displayed in the first area identifier can be a circular pattern with a specified color, or a circular line with a specified color, or a circular pattern with a specified color and a line with other colors outside. Usually, different first position identifiers indicate different virtual objects.
[0108] Specifically, when the distance between the target virtual object and the first virtual object is less than or equal to the first preset distance, a first position identifier is displayed in the first area identifier. At this time, the player can determine the distance between the target virtual object and the first virtual object according to the first position identifier displayed in the first area identifier, and can also determine the spatial position between the target virtual object and the first virtual object.
[0109] If the relationship between the target virtual object and the first virtual object is a hostile relationship, and the height position information or the relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, it is determined that the spatial orientation of the target virtual object relative to the first virtual object is a horizontal orientation, and a first preset color that fades from the edge highlight to transparent inside is filled in the first area identifier;
[0110] The above-mentioned horizontal orientation means that there is no height difference between the target virtual object and the first virtual object. The above-mentioned first preset color can be yellow, red, green, etc., and can be set according to actual needs. As Figure 4 As shown in (a) of, when the spatial orientation of the first virtual object relative to the first virtual object is a horizontal orientation, a first preset color that fades from the edge highlight to transparent inside is filled in the first area identifier.
[0111] (2) If the height position information or the relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, a line with the first preset color is displayed at the edge of the target area identifier.
[0112] If the height position information or the relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, it is determined that the spatial orientation of the target virtual object relative to the first virtual object is a vertical orientation, and the relationship between the target virtual object and the first virtual object is a hostile relationship, a line with the first preset color is displayed at the edge of the first area identifier; wherein, the darker the first preset color, the closer the first virtual object is to the first virtual object within the first preset distance range.
[0113] The above-mentioned vertical orientation means that there is a height difference between the target virtual object and the first virtual object, which can be above the first virtual object or below the first virtual object. The above-mentioned first preset color can be yellow, red, green, etc., and can be set according to actual needs. As Figure 4 As shown in (b) of, when the spatial orientation of the target virtual object relative to the first virtual object is a vertical orientation, a first preset color that fades from the edge highlight to transparent inside is filled in the first area identifier.
[0114] In addition, the above first position identifier can be displayed in a flashing manner to more prominently remind the player that there is an enemy virtual object nearby.
[0115] In the above method, by filling colors or displaying lines in the first area identifier to represent the spatial orientation between virtual objects, it is beneficial to accurately determine the relative position of the first virtual object and for the player to make game decisions.
[0116] The above target area identifier is the second area identifier; a possible implementation manner for determining the display mode of the target area identifier according to the height position information or relative height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode:
[0117] (1) If the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted on the outer edge and transparent to the inside.
[0118] (2) If the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted on the inner edge and transparent to the outside.
[0119] The first position identifier displayed in the second area identifier can be a pattern that is the same as the collision with the second area identifier with a specified color, or a circular pattern with a specified color, or a circular pattern with a specified color and a line with other colors on the outside. Usually, different first position identifiers indicate different virtual objects.
[0120] Similarly, the above first preset color can be set according to actual requirements. As Figure 5 shown in (a) below, if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is zero, and the spatial orientation of the target virtual object relative to the first virtual object is a horizontal orientation, fill the target area identifier (i.e., the second area identifier) with a first preset color that is highlighted on the outer edge and gradually becomes transparent to the inside. As Figure 5 shown in (b) below, if the height position information or relative height information indicates that the height difference between the target virtual object and the first virtual object is not zero, and the spatial orientation of the target virtual object relative to the first virtual object is a vertical orientation, fill the target area identifier with a first preset color that is highlighted on the inner edge and gradually becomes transparent to the outside. Among them, the darker the first preset color, it means that the first virtual object is closer to the first virtual object within the range between the second preset distance and the first preset distance.
[0121] In the above method, by filling the first preset color with different gradient methods in the second area identifier, the spatial orientation between virtual objects is characterized, which is beneficial to accurately determine the relative position of the target virtual object and for players to make game decisions.
[0122] In addition, as Figure 6 shown, the above area monitoring identifier further includes a third area identifier; the third area identifier is located outside the area monitoring identifier, that is, the outer line of the circular area.
[0123] The above target area identifier is the third area identifier; a possible implementation manner of determining the display method of the target area identifier according to the height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display method: if the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with the first preset color.
[0124] The first position identifier displayed by the above third area identifier can be a line with a specified color or other patterns with a specified color. Generally, different shapes indicate different relationships between the first virtual object and the first virtual object. Specifically, when the first position identifier is displayed in the target area identifier, the player can determine the distance between the target virtual object and the first virtual object according to the first position identifier displayed by the third area identifier, and can also determine the spatial position between the target virtual object and the first virtual object.
[0125] As Figure 6 shown, the above third area identifier includes multiple; the relative direction of each third area identifier with respect to the reference position identifier is different; each third area identifier corresponds to the second area identifier. For example, Figure 6 the middle area monitoring identifier includes 8 third area identifiers, and each third area identifier represents a relative direction. The above third area identifier can include 2, 3 or even more, and can be specifically set according to the actual requirements of the game.
[0126] The above area monitoring identifier is circular, and the third area identifier is the outer line of the circle; if the relationship between the target virtual object and the first virtual object is a hostile relationship, display an outer line with the first preset color in the target third area identifier; wherein, the darker the first preset color, the closer the first virtual object is to the first virtual object within the third preset distance range.
[0127] Similarly, the above first preset color can be set according to actual requirements. As Figure 6As shown, when the spatial orientation of the first virtual object relative to the first virtual object is a horizontal orientation, an external line with a first preset color is displayed in the target third area identifier. Among them, the darker the first preset color, the closer the distance to the first virtual object within the range between the second preset distance and the sum of the third preset distance and the second preset distance.
[0128] In the above method, by displaying an external line with a first preset color in the target third area identifier to represent the direction between virtual objects, it is beneficial to accurately determine the relative position of the target virtual object and for the player to make game decisions.
[0129] In addition, the above first preset color includes a variety of different preset sub - colors, and different preset sub - colors have different color depths; among them, corresponding to different preset sub - colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different. That is to say, the darker the first preset color, the closer the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier.
[0130] Furthermore, for the step of displaying the first position identifier of the target virtual object in the target area identifier, a possible implementation method:
[0131] If the relationship between the target virtual object and the first virtual object is a non - hostile relationship, determine the target position that matches the target position information from the target area identifier; display the first object identifier of the target virtual object at the target position.
[0132] Specifically, according to the target position information, determine the relative position between the target virtual object and the first virtual object, and determine the target position that matches this relative position from the target area identifier; display the first object identifier of the target virtual object at the target position.
[0133] If the target area identifier is the first area identifier and the second area identifier, the first object identifier of the target virtual object can be directly displayed at the target position. If the target area identifier is the third area identifier, the first object identifier of the target virtual object can be directly displayed at the edge position of the third area identifier. The first object identifier of the target virtual object displayed at the edge position of the third area identifier is usually different from the first object identifier of the target virtual object displayed at the target position.
[0134] Such as Figure 7As shown, when the distance between the target virtual object and the first virtual object is less than or equal to the second preset distance, according to the specific distance and direction of the target virtual object relative to the first virtual object, determine the target position that matches the distance from the target area identifier, and this target position matches the relative position between the target virtual object and the first virtual object; then display the first object identifier of the target virtual object at the target position. There are multiple first object identifiers. For example, when the target virtual object is a virtual character, a filled blue circular pattern is displayed, corresponding to Figure 7 ① in Figure 7 where blue is represented by gray). Another example, when the target virtual object is a virtual vehicle, a filled white circular pattern is displayed, and a white circular line is included on the outer edge of the circular pattern, corresponding to Figure 7 ② in Figure 7 where white is represented by black). Another example, when the target virtual object is a virtual object driving a virtual vehicle, a filled blue circular pattern is displayed, and a white circular line is included on the outer edge of the circular pattern, corresponding to Figure 7 ③ in
[0135] In addition, when the distance between the target virtual object and the first virtual object is greater than the second preset distance and less than the third preset distance, according to the specific distance and direction of the target virtual object relative to the first virtual object, determine the target edge position that matches the distance from the edge area of the area monitoring identifier, and then display the second object identifier of the target virtual object at the target edge position. The second object identifier is a pattern of a preset shape. For example, when the target virtual object is a virtual character, a filled blue triangular pattern is displayed, corresponding to Figure 7 the gray triangle located on the outer edge in Figure 7 Another example, when the target virtual object is a virtual vehicle, a filled white triangular pattern is displayed, and a white circular line is included on the outer edge of the triangular pattern, corresponding to Figure 7 the black triangle located on the outer edge in
[0136] In the above method, displaying the object identifier of the teammate virtual object in the target area identifier can not only accurately determine the position of the enemy virtual object, but also determine the positions between teammates, further improving the game decision-making efficiency of players and enhancing the game experience of users.
[0137] For the step of displaying the first object identifier of the target virtual object at the target position above, a possible implementation: determine that the target virtual object is killed, and display the second object identifier of the target virtual object at the target position.
[0138] When the target virtual object is killed, a second object identifier of the target virtual object is displayed at the target position. The second object identifier can be set according to actual needs, such as Figure 7 the "×" in []. In this way, by displaying the second object identifier of the target virtual object at the target position, it is indicated that the target virtual object has been killed.
[0139] The above area monitoring identifier includes a plurality of second area identifiers and a plurality of third area identifiers; the above method further includes: in response to the first virtual object obtaining a specified virtual item, increasing the number of second area identifiers and third area identifiers in the area monitoring identifier, or increasing the monitoring range parameter; wherein, the number of second area identifiers is the same as the number of third area identifiers.
[0140] When the first virtual object moves in the game scene, it usually obtains some game items. If it obtains a specified virtual item, it will increase the number of second area identifiers and third area identifiers in the area monitoring identifier according to the quantity indicated by the specified virtual item. As Figure 8 shown, it is expanded from the original 8-sector prompt to 12 grids, and the enemy detection range is more accurate. At the same time, the direction that the external damage identifier corresponding to each third area identifier can indicate will also increase. In addition, the monitoring range parameter of the monitoring area can also be increased. For example, initially, only the scene area with the first virtual object as the center and a radius of 30 meters can be monitored. After obtaining some game items, the scene area with the first virtual object as the center and a radius of 50 meters can be monitored. In this way, by setting the specified virtual item, the number of area identifiers and the monitoring range parameter can be increased, further improving the player's enemy detection efficiency.
[0141] In addition, it should be noted that in the actual game scene, the above circular area monitoring identifier will be displayed below the crosshair identifier, and a certain viewing angle needs to be tilted, such as tilting up 15 degrees. Ensure that the prompts in each radar area can be clearly recognized. As Figure 2 shown.
[0142] In the above manner, the problem that the hit prompt of the current shooting mobile game is relatively broad is solved, which can help the player judge the specific range where the enemy is hidden and more accurately predict the position of the virtual object in advance.
[0143] Furthermore, the above method further includes: in response to the first virtual object being hit by a second virtual object in the game scene, obtaining the azimuth information and height information of the second virtual object in the game scene; based on the azimuth information and height information, displaying a damage identifier on the graphical user interface; wherein, the damage identifier is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object in a hostile relationship with the first virtual object.
[0144] AsFigure 9 As shown, a damage indicator is displayed on the graphical user interface. The above-displayed damage indicator is usually a three-dimensional solid indicator, such as a triangular pyramid, etc.
[0145] The above step of displaying a damage indicator on the graphical user interface based on orientation information and height information. A possible implementation: Determine the relative orientation information and relative height information of the second virtual object relative to the first virtual object according to the orientation information and height information; Determine the specified area identifier that matches the relative orientation information from multiple area identifiers of the area monitoring identifier according to the relative orientation information and relative height information; Determine the display mode of the damage indicator according to the relative height information, and display the damage indicator in the external area corresponding to the specified area identifier according to the display mode.
[0146] The above damage indicator is a three-dimensional conical indicator; The step of determining the display mode of the damage indicator according to the relative height information and displaying the damage indicator in the external area corresponding to the specified area identifier according to the display mode. A possible implementation:
[0147] (1) If the relative height information is zero, determine that the display mode of the damage indicator is the first display mode, and display the damage indicator in the external area corresponding to the specified area identifier according to the first display mode; Among them, the first display mode indicates that the height of the second virtual object relative to the first virtual object is zero;
[0148] (2) If the relative height information is greater than zero, determine that the display mode of the damage indicator is the second display mode, and display the damage indicator in the external area corresponding to the specified area identifier according to the second display mode; Among them, the second display mode indicates that the height of the second virtual object relative to the first virtual object is greater than zero;
[0149] (3) If the relative height information is less than zero, determine that the display mode of the damage indicator is the third display mode, and display the damage indicator in the external area corresponding to the specified area identifier according to the third display mode; Among them, the third display mode indicates that the height of the second virtual object relative to the first virtual object is less than zero.
[0150] Exemplarily, such as Figure 9 For the damage indicator 1 in, determine the height of the second virtual object relative to the first virtual object by the color area filled by the damage indicator. No filled color indicates that the height of the second virtual object relative to the first virtual object is zero. The direction that the damage indicator can indicate is the same as the direction that the second area identifier can indicate. Such as Figure 9 For the damage indicator 2 in, determine that the height of the second virtual object relative to the first virtual object is greater than zero by the color area filled by the damage indicator in the arrow area. The more filled color, the greater the height value indicating that the height of the second virtual object relative to the first virtual object is greater than zero. Such as Figure 9The damage identifier 2 therein determines that the height of the second virtual object relative to the first virtual object is less than zero by the area of the color filled in the non-arrow area of the damage identifier. The more color is filled, the greater the value of the height of the second virtual object relative to the first virtual object being less than zero.
[0151] Corresponding to the above method embodiments, an embodiment of the present invention provides a display device for position information. A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene picture of a game scene and a first virtual object located in the game scene. The first virtual object is a virtual object controlled by the terminal device; as Figure 10 shown, the device includes:
[0152] An area monitoring and display module 1001, configured to display an area monitoring identifier on the graphical user interface. The monitoring area corresponding to the area monitoring identifier is a game scene space area determined according to the current position of the virtual object and the monitoring range parameter. The area monitoring identifier includes a plurality of area identifiers, and the area identifier corresponds to a scene area within a target monitoring direction range and a target monitoring distance range in the game scene;
[0153] A target position information acquisition module 1002, configured to determine a target virtual object and acquire target position information of the target virtual object in the game scene; wherein, the target virtual object is a virtual object in the game scene other than the first virtual object;
[0154] An area identifier determination module 1003, configured to determine a target area identifier from a plurality of area identifiers according to the target position information, wherein the scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier matches the target position information;
[0155] An area identifier display module 1004, configured to determine a display mode of the target area identifier according to the height information in the target position information, and display the target area identifier according to the display mode.
[0156] An embodiment of the present invention provides a display device for position information, which displays an area monitoring identifier on the graphical user interface. The area monitoring identifier includes a plurality of area identifiers, determines a target virtual object, and acquires target position information of the target virtual object in the game scene; determines a target area identifier from a plurality of area identifiers according to the target position information, determines a display mode of the target area identifier according to the height information in the target position information, and displays the target area identifier according to the display mode. In this way, the position information of the virtual object in the game scene other than the first virtual object is displayed through the target area identifier among the plurality of area identifiers, and the distance, azimuth, and height between this virtual object and the first virtual object can be accurately provided, which is beneficial for players to make game decisions based on the distance and azimuth of this virtual object, improving the game experience of players.
[0157] Furthermore, the above-mentioned target position information acquisition module is further configured to: determine candidate virtual objects for performing a preset game behavior, and acquire the orientation information of the candidate virtual objects; when the orientation information of the candidate virtual objects is within the monitoring area, determine the candidate virtual objects as target virtual objects.
[0158] Furthermore, the above-mentioned target position information acquisition module is further configured to: acquire the absolute position information of the target virtual object relative to the game scene; or, acquire the relative position information of the target virtual object relative to the first virtual object; calculate the distance information, orientation information, and height information between the target virtual object and the first virtual object according to the absolute position information or the relative position information; and determine the distance information, orientation information, and height information as the target position information.
[0159] Furthermore, the above-mentioned area identifier determination module is further configured to: determine the target area identifier from multiple area identifiers according to the distance information and orientation information in the target position information.
[0160] Furthermore, the above-mentioned multiple area identifiers include a first area identifier; the area identifier determination module is further configured to: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to a first preset distance, determine the first area identifier as the target area identifier.
[0161] Furthermore, the above-mentioned multiple area identifiers include multiple second area identifiers; the relative direction of each second area identifier from the center point of the first area identifier is different; the area identifier determination module is further configured to: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the first preset distance and less than or equal to a second preset distance, determine the second area identifier as the first candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a first direction, determine the target area identifier that matches the first direction from the first candidate area identifiers.
[0162] Furthermore, the above-mentioned multiple area identifiers include multiple third area identifiers; the relative direction of each third area identifier from the center point of the first area identifier is different; the area identifier determination module is further configured to: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to a third preset distance, determine the third area identifier as the second candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a second direction, determine the target area identifier that matches the second direction from the second candidate area identifiers.
[0163] Further, the above-mentioned area monitoring identifier is a first circle, the first area identifier among the multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the centers of the first circle and the second circle are at the same position; the second area identifier among the multiple area identifiers is a sector divided by an annular ring between the first circle and the second circle; the third area identifier among the multiple area identifiers is the outer line of the first circle.
[0164] Further, a reference position identifier is set in the above-mentioned area monitoring identifier, and the reference position identifier corresponds to the first virtual object; the above-mentioned area identifier display module is further configured to: determine the display mode of the target area identifier according to the height information in the target position information, and according to the display mode, display the first position identifier of the target virtual object in the target area identifier; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object.
[0165] Further, the above-mentioned target area identifier is the first area identifier; the reference position identifier is located in the first area identifier; the above-mentioned area identifier display module is further configured to: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the edge and transparent to the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, display a line with the first preset color at the edge of the target area identifier.
[0166] Further, the above-mentioned target area identifier is the second area identifier; the above-mentioned area identifier display module is further configured to: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the outer edge and transparent to the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the inner edge and transparent to the outside.
[0167] Further, the above-mentioned target area identifier is the third area identifier; the above-mentioned area identifier display module is further configured to: if the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with the first preset color.
[0168] Further, the above-mentioned first preset color includes multiple different preset sub-colors, and different preset sub-colors have different color depths; wherein, corresponding to different preset sub-colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different.
[0169] Further, the above-mentioned area identification display module is further configured to: if the relationship between the target virtual object and the first virtual object is a non-hostile relationship, determine a target position that matches the target position information from the target area identification; and display a first object identifier of the target virtual object at the target position.
[0170] Further, the above-mentioned area identification display module is further configured to: determine that the target virtual object is killed, and display a second object identifier of the target virtual object at the target position.
[0171] Further, the above-mentioned device further includes: a damage identification display module, configured to, in response to the first virtual object being hit by a second virtual object in the game scene, obtain the azimuth information and height information of the second virtual object in the game scene; and based on the azimuth information and height information, display a damage identification on the graphical user interface; wherein the damage identification is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object that is in a hostile relationship with the first virtual object.
[0172] Further, the above-mentioned damage identification display module is further configured to: determine relative azimuth information and relative height information of the second virtual object relative to the first virtual object according to the azimuth information and height information; determine a specified area identification that matches the relative azimuth information from multiple area identifications of the area monitoring identification according to the relative azimuth information and relative height information; determine the display mode of the damage identification according to the relative height information, and display the damage identification in the external area corresponding to the specified area identification according to the display mode.
[0173] Further, the above-mentioned damage identification display module is further configured to: if the relative height information is zero, determine that the display mode of the damage identification is the first display mode, and display the damage identification in the external area corresponding to the specified area identification according to the first display mode; wherein the first display mode indicates that the height of the second virtual object relative to the first virtual object is zero; if the relative height information is greater than zero, determine that the display mode of the damage identification is the second display mode, and display the damage identification in the external area corresponding to the specified area identification according to the second display mode; wherein the second display mode indicates that the height of the second virtual object relative to the first virtual object is greater than zero; if the relative height information is less than zero, determine that the display mode of the damage identification is the third display mode, and display the damage identification in the external area corresponding to the specified area identification according to the third display mode; wherein the third display mode indicates that the height of the second virtual object relative to the first virtual object is less than zero.
[0174] Further, the above-mentioned area identifier includes a plurality of second area identifiers and a plurality of third area identifiers; the above-mentioned device further includes: an increasing module, configured to: in response to a first virtual object obtaining a specified virtual item, increase the number of second area identifiers and third area identifiers, or increase the monitoring range parameter; wherein, the number of second area identifiers is the same as the number of third area identifiers.
[0175] The position information display device provided by the embodiment of the present invention has the same technical features as the position information display method provided by the above embodiment, so it can also solve the same technical problems and achieve the same technical effects.
[0176] This embodiment also provides an electronic device, including a processor and a memory, the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned position information display method. The electronic device can be a server or a terminal device.
[0177] See Figure 11 As shown, the electronic device includes a processor 100 and a memory 101, the memory 101 stores computer-executable instructions that can be executed by the processor 100, the processor 100 executes the computer-executable instructions to implement the above-mentioned position information display method, and the method includes the following steps:
[0178] Display an area monitoring identifier on the graphical user interface, the monitoring area corresponding to the area monitoring identifier is a game scene space area determined according to the current position of the first virtual object and the monitoring range parameter, the area monitoring identifier includes a plurality of area identifiers, and the area identifier corresponds to the scene area within the target monitoring direction range and the target monitoring distance range in the game scene; determine a target virtual object, and obtain the target position information of the target virtual object in the game scene; wherein, the target virtual object is a virtual object other than the first virtual object in the game scene; determine a target area identifier from the plurality of area identifiers according to the target position information, wherein the scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier matches the target position information; determine the display method of the target area identifier according to the height information in the target position information, and display the target area identifier according to the display method. In this way, by using the target area identifier among the plurality of area identifiers to display the position information of the virtual object other than the first virtual object in the game scene, the distance, azimuth, and height between this virtual object and the first virtual object can be accurately provided, which is beneficial for the player to make game decisions based on the distance and azimuth of this virtual object, and improves the player's game experience.
[0179] The steps of determining the target virtual object described above include: determining candidate virtual objects that perform a preset game behavior, and obtaining the orientation information of the candidate virtual objects; when the orientation information of the candidate virtual objects is within the monitoring area, determining the candidate virtual objects as the target virtual objects.
[0180] The steps of obtaining the target position information of the target virtual object in the game scene described above include: obtaining the absolute position information of the target virtual object relative to the game scene; or, obtaining the relative position information of the target virtual object relative to the first virtual object; according to the absolute position information or the relative position information, calculating the distance information, orientation information, and height information between the target virtual object and the first virtual object; determining the distance information, orientation information, and height information as the target position information.
[0181] The steps of determining the target area identifier from multiple area identifiers according to the target position information described above include: determining the target area identifier from multiple area identifiers according to the distance information and orientation information in the target position information.
[0182] The multiple area identifiers described above include a first area identifier; the steps of determining the target area identifier from multiple area identifiers according to the distance information and orientation information in the target position information include: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to the first preset distance, determining the first area identifier as the target area identifier.
[0183] The multiple area identifiers described above include multiple second area identifiers; the relative direction of each second area identifier from the center point of the first area identifier is different; the steps of determining the target area identifier from multiple area identifiers according to the distance information and orientation information in the target position information include: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the first preset distance and less than or equal to the second preset distance, determining the second area identifier as the first candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is the first direction, determining the target area identifier that matches the first direction from the first candidate area identifiers.
[0184] The multiple area identifiers described above include multiple third area identifiers; the relative direction of each third area identifier from the center point of the first area identifier is different; the steps of determining the target area identifier from multiple area identifiers according to the distance information and orientation information in the target position information include: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to the third preset distance, determining the third area identifier as the second candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is the second direction, determining the target area identifier that matches the second direction from the second candidate area identifiers.
[0185] The above-mentioned area monitoring identifier is a first circle, the first area identifier among multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the centers of the first circle and the second circle are at the same position; the second area identifier among multiple area identifiers is a sector divided by an annular ring between the first circle and the second circle; the third area identifier among multiple area identifiers is an outer line of the first circle.
[0186] The above-mentioned area monitoring identifier is provided with a reference position identifier, and the reference position identifier corresponds to a first virtual object; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying the target area identifier according to the display mode include: determining the display mode of the target area identifier according to the height information in the target position information, and according to the display mode, displaying a first position identifier of the target virtual object in the target area identifier; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object.
[0187] The above-mentioned target area identifier is a first area identifier; the reference position identifier is located in the first area identifier; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying a first position identifier of the target virtual object in the target area identifier according to the display mode include: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the edge and transparent to the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, displaying a line with the first preset color at the edge of the target area identifier.
[0188] The above-mentioned target area identifier is a second area identifier; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying a first position identifier of the target virtual object in the target area identifier according to the display mode include: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the outer edge and transparent to the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the inner edge and transparent to the outside.
[0189] The above target area identifier is the third area identifier; the step of determining the display mode of the target area identifier according to the height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: if the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color.
[0190] The above first preset color includes a variety of different preset sub - colors, and different preset sub - colors have different color depths; among them, corresponding to different preset sub - colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different.
[0191] The above step of displaying the first position identifier of the target virtual object in the target area identifier includes: if the relationship between the target virtual object and the first virtual object is a non - hostile relationship, determining a target position in the target area identifier that matches the target position information; and displaying the first object identifier of the target virtual object at the target position.
[0192] The above step of displaying the first object identifier of the target virtual object at the target position includes: determining that the target virtual object is killed and displaying the second object identifier of the target virtual object at the target position.
[0193] The above method further includes: in response to the first virtual object being hit by a second virtual object in the game scene, acquiring the azimuth information and height information of the second virtual object in the game scene; and based on the azimuth information and height information, displaying a damage identifier on the graphical user interface; wherein, the damage identifier is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object in a hostile relationship with the first virtual object.
[0194] The above step of displaying a damage identifier on the graphical user interface based on the azimuth information and height information includes: determining the relative azimuth information and relative height information of the second virtual object relative to the first virtual object according to the azimuth information and height information; determining a specified area identifier that matches the relative azimuth information from multiple area identifiers of the area monitoring identifier according to the relative azimuth information and relative height information; determining the display mode of the damage identifier according to the relative height information, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode.
[0195] The above-mentioned damage identifier is a three-dimensional conical identifier; the steps of determining the display mode of the damage identifier according to the relative height information and displaying the damage identifier in the corresponding external area in the specified area according to the display mode include: if the relative height information is zero, determining the display mode of the damage identifier as the first display mode, and displaying the damage identifier in the corresponding external area in the specified area according to the first display mode; wherein, the first display mode indicates that the height of the second virtual object relative to the first virtual object is zero; if the relative height information is greater than zero, determining the display mode of the damage identifier as the second display mode, and displaying the damage identifier in the corresponding external area in the specified area according to the second display mode; wherein, the second display mode indicates that the height of the second virtual object relative to the first virtual object is greater than zero; if the relative height information is less than zero, determining the display mode of the damage identifier as the third display mode, and displaying the damage identifier in the corresponding external area in the specified area according to the third display mode; wherein, the third display mode indicates that the height of the second virtual object relative to the first virtual object is less than zero.
[0196] The above-mentioned area identifier includes a plurality of second area identifiers and a plurality of third area identifiers; the method further includes: in response to the first virtual object obtaining a specified virtual item, increasing the number of second area identifiers and third area identifiers, or increasing the monitoring range parameter; wherein, the number of second area identifiers is the same as the number of third area identifiers.
[0197] Furthermore, Figure 11 The shown electronic device further includes a bus 102 and a communication interface 103, and the processor 100, the communication interface 103 and the memory 101 are connected through the bus 102.
[0198] Among them, the memory 101 may include a high-speed random access memory (RAM, Random Access Memory), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 11 only a single bidirectional arrow is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0199] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 100 or instructions in the form of software. The above-mentioned processor 100 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (DSP for short), an application specific integrated circuit (ASIC for short), a field-programmable gate array (FPGA for short), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. It can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present invention can be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. This storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and combines its hardware to complete the steps of the method in the foregoing embodiments.
[0200] This embodiment also provides a computer-readable storage medium. The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the above-mentioned method for displaying location information. The method specifically includes:
[0201] Display a regional monitoring identifier on the graphical user interface. The monitoring area corresponding to the regional monitoring identifier is a game scene space area determined according to the current position of the first virtual object and the monitoring range parameter. The regional monitoring identifier includes multiple regional identifiers, and the regional identifier corresponds to the scene area within the target monitoring direction range and the target monitoring distance range in the game scene; determine the target virtual object and obtain the target position information of the target virtual object in the game scene; wherein, the target virtual object is a virtual object other than the first virtual object in the game scene; determine the target regional identifier from the multiple regional identifiers according to the target position information, wherein the scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target regional identifier matches the target position information; determine the display mode of the target regional identifier according to the height information in the target position information, and display the target regional identifier according to the display mode. In this method, the position information of the virtual object other than the first virtual object in the game scene is displayed through the target regional identifier among the multiple regional identifiers, which can accurately provide the distance, azimuth, and height between this virtual object and the first virtual object, facilitating the player to make game decisions based on the distance and azimuth of this virtual object, and improving the player's gaming experience.
[0202] The above step of determining the target virtual object includes: determining the candidate virtual object performing the preset game behavior and obtaining the azimuth information of the candidate virtual object; when the azimuth information of the candidate virtual object is within the monitoring area, determine the candidate virtual object as the target virtual object.
[0203] The above step of obtaining the target position information of the target virtual object in the game scene includes: obtaining the absolute position information of the target virtual object relative to the game scene; or obtaining the relative position information of the target virtual object relative to the first virtual object; calculate the distance information, azimuth information, and height information between the target virtual object and the first virtual object according to the absolute position information or the relative position information; determine the distance information, azimuth information, and height information as the target position information.
[0204] The above step of determining the target regional identifier from the multiple regional identifiers according to the target position information includes: determining the target regional identifier from the multiple regional identifiers according to the distance information and azimuth information in the target position information.
[0205] The above multiple regional identifiers include the first regional identifier; the step of determining the target regional identifier from the multiple regional identifiers according to the distance information and azimuth information in the target position information includes: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to the first preset distance, determine the first regional identifier as the target regional identifier.
[0206] The above-mentioned multiple area identifiers include multiple second area identifiers; the relative direction of each second area identifier with respect to the center point of the first area identifier is different; the step of determining the target area identifier from the multiple area identifiers according to the distance information and the orientation information in the target position information includes: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than a first preset distance and less than or equal to a second preset distance, determining the second area identifier as the first candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a first direction, determining the target area identifier that matches the first direction from the first candidate area identifiers.
[0207] The above-mentioned multiple area identifiers include multiple third area identifiers; the relative direction of each third area identifier with respect to the center point of the first area identifier is different; the step of determining the target area identifier from the multiple area identifiers according to the distance information and the orientation information in the target position information includes: if the distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to a third preset distance, determining the third area identifier as the second candidate area identifier; if the orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a second direction, determining the target area identifier that matches the second direction from the second candidate area identifiers.
[0208] The above-mentioned area monitoring identifier is a first circle, the first area identifier among the multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the center position of the first circle is the same as the center position of the second circle; the second area identifier among the multiple area identifiers is a sector divided by an annular ring between the first circle and the second circle; the third area identifier among the multiple area identifiers is an outer line of the first circle.
[0209] A reference position identifier is set in the above-mentioned area monitoring identifier, and the reference position identifier corresponds to the first virtual object; the step of determining the display mode of the target area identifier according to the height information in the target position information and displaying the target area identifier according to the display mode includes: determining the display mode of the target area identifier according to the height information in the target position information, and displaying a first position identifier of the target virtual object in the target area identifier according to the display mode; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position between the first position identifier and the reference position identifier matches the relative position between the target virtual object and the first virtual object.
[0210] The above target area identifier is the first area identifier; the reference position identifier is located in the first area identifier; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode include: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the edge and transparent towards the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, displaying a line with the first preset color at the edge of the target area identifier.
[0211] The above target area identifier is the second area identifier; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode include: if the height information is zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the outer edge and transparent towards the inside; if the height information is not zero and the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with a first preset color that is highlighted at the inner edge and transparent towards the outside.
[0212] The above target area identifier is the third area identifier; the steps of determining the display mode of the target area identifier according to the height information in the target position information and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode include: if the relationship between the target virtual object and the first virtual object is a hostile relationship, filling the target area identifier with the first preset color.
[0213] The above first preset color includes a variety of different preset sub - colors, and different preset sub - colors have different color depths; among them, corresponding to different preset sub - colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different.
[0214] The above steps of displaying the first position identifier of the target virtual object in the target area identifier include: if the relationship between the target virtual object and the first virtual object is a non - hostile relationship, determining a target position in the target area identifier that matches the target position information; displaying the first object identifier of the target virtual object at the target position.
[0215] The above steps of displaying the first object identifier of the target virtual object at the target position include: determining that the target virtual object has been killed and displaying the second object identifier of the target virtual object at the target position.
[0216] The above method further includes: in response to the first virtual object being hit by a second virtual object in the game scene, obtaining the azimuth information and height information of the second virtual object in the game scene; based on the azimuth information and height information, displaying a damage identifier on the graphical user interface; wherein, the damage identifier is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object in a hostile relationship with the first virtual object.
[0217] The above step of displaying a damage identifier on the graphical user interface based on the azimuth information and height information includes: determining the relative azimuth information and relative height information of the second virtual object relative to the first virtual object according to the azimuth information and height information; determining a specified area identifier that matches the relative azimuth information from multiple area identifiers of the area monitoring identifier according to the relative azimuth information and relative height information; determining the display mode of the damage identifier according to the relative height information, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode.
[0218] The above damage identifier is a three-dimensional conical identifier; the step of determining the display mode of the damage identifier according to the relative height information and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode includes: if the relative height information is zero, determining that the display mode of the damage identifier is the first display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the first display mode; wherein, the first display mode indicates that the height of the second virtual object relative to the first virtual object is zero; if the relative height information is greater than zero, determining that the display mode of the damage identifier is the second display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the second display mode; wherein, the second display mode indicates that the height of the second virtual object relative to the first virtual object is greater than zero; if the relative height information is less than zero, determining that the display mode of the damage identifier is the third display mode, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the third display mode; wherein, the third display mode indicates that the height of the second virtual object relative to the first virtual object is less than zero.
[0219] The above area identifier includes a plurality of second area identifiers and a plurality of third area identifiers; the method further includes: in response to the first virtual object obtaining a specified virtual item, increasing the number of second area identifiers and third area identifiers, or increasing the monitoring range parameter; wherein, the number of second area identifiers is the same as the number of third area identifiers.
[0220] The computer program product of the position information display method, device, electronic device, and system provided by the embodiments of the present invention includes a computer-readable storage medium storing program code, and the instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, reference can be made to the method embodiments, which will not be elaborated herein.
[0221] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0222] In addition, in the description of the embodiments of the present invention, unless otherwise clearly defined and limited, the terms "install", "connect", and "couple" shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.
[0223] If the above functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.
[0224] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0225] Finally, it should be noted that the above embodiments are only specific implementation manners of the present invention, used to illustrate the technical solutions of the present invention, rather than limiting it. The protection scope of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art within the technical scope disclosed by the present invention can still modify the technical solutions recorded in the foregoing embodiments, or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
Claims
1. A method for displaying location information, characterized in that, A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene image of a game scene and a first virtual object located in the game scene. The first virtual object is a virtual object controlled by the terminal device. The method includes: Displaying a region monitoring identifier on the graphical user interface. The monitoring region corresponding to the region monitoring identifier is a game scene space region determined according to the current position of the first virtual object and a monitoring range parameter. The region monitoring identifier includes a plurality of region identifiers, and the region identifier corresponds to a scene region within a target monitoring direction range and a target monitoring distance range in the game scene. Determining a target virtual object and obtaining target position information of the target virtual object in the game scene. The target virtual object is a virtual object in the game scene other than the first virtual object. Determining a target region identifier from the plurality of region identifiers according to the target position information, where the scene region corresponding to the target monitoring direction range and the target monitoring distance range of the target region identifier matches the target position information. Determining a display mode of the target region identifier according to the height information in the target position information, and displaying the target region identifier according to the display mode. The display mode of the target region identifier is used to indicate the height distance of the target virtual object relative to the first virtual object.
2. The method according to claim 1, characterized in that The step of determining the target virtual object includes: Determining candidate virtual objects that perform a preset game behavior and obtaining orientation information of the candidate virtual objects. When the orientation information of the candidate virtual object is within the monitoring region, determining the candidate virtual object as the target virtual object.
3. The method according to claim 1, wherein The target position information is the absolute position information of the target virtual object relative to the game scene, and the absolute position information includes at least one of the following information: horizontal position information and height position information; or, the target position information is the relative position information of the target virtual object relative to the first virtual object, where the relative position information includes at least one of the following information: relative distance information, relative orientation information, and relative height information.
4. The method according to claim 1, characterized in that The step of determining the target region identifier from the plurality of region identifiers according to the target position information includes: Determining the target region identifier from the plurality of region identifiers according to the horizontal position information or relative distance information and relative orientation information in the target position information.
5. The method according to claim 4, characterized in that The plurality of region identifiers include a first region identifier. The step of determining the target region identifier from the plurality of region identifiers according to the horizontal position information or relative distance information and relative orientation information in the target position information includes: If the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is less than or equal to a first preset distance, determining the first region identifier as the target region identifier.
6. The method according to claim 5, wherein The plurality of region identifiers include a plurality of second region identifiers; each of the second region identifiers has a different relative direction from the center point of the first region identifier. The step of determining a target area identifier from the multiple area identifiers according to the horizontal position information or the relative distance information and relative orientation information in the target position information includes: If the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than a first preset distance and less than or equal to a second preset distance, determine the second area identifier as the first candidate area identifier; If the horizontal position information or the relative orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a first direction, determine, from the first candidate area identifiers, a target area identifier that matches the first direction.
7. The method according to claim 5, wherein The multiple area identifiers include multiple third area identifiers; the relative direction of each of the third area identifiers from the center point of the first area identifier is different; The step of determining a target area identifier from the multiple area identifiers according to the horizontal position information or the relative distance information and relative orientation information in the target position information includes: If the horizontal position information or the relative distance information indicates that the horizontal distance between the target virtual object and the first virtual object is greater than the second preset distance and less than or equal to a third preset distance, determine the third area identifier as the second candidate area identifier; If the horizontal position information or the relative orientation information indicates that the orientation of the target virtual object relative to the first virtual object is a second direction, determine, from the second candidate area identifiers, a target area identifier that matches the second direction.
8. The method according to claim 1, wherein The area monitoring identifier is a first circle, the first area identifier among the multiple area identifiers is a second circle, the radius of the first circle is greater than the radius of the second circle, and the position of the center of the first circle is the same as the position of the center of the second circle; The second area identifier among the multiple area identifiers is a sector divided by an annulus between the first circle and the second circle; The third area identifier among the multiple area identifiers is the outer line of the first circle.
9. The method according to claim 1, wherein A reference position identifier is provided in the area monitoring identifier, and the reference position identifier corresponds to the first virtual object; The step of determining the display mode of the target area identifier according to the height information in the target position information and displaying the target area identifier according to the display mode includes: Determine the display mode of the target area identifier according to the height position information or relative height information in the target position information, and display, according to the display mode, a first position identifier of the target virtual object in the target area identifier; wherein, the first position identifier is used to indicate the target position information of the target virtual object relative to the first virtual object; the relative position of the first position identifier and the reference position identifier matches the relative position of the target virtual object and the first virtual object.
10. The method according to claim 9, wherein The target area identifier is the first area identifier; the reference position identifier is located in the first area identifier; The step of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: If the height difference between the target virtual object and the first virtual object indicated by the height position information or the relative height information is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the edge and transparent to the inside; If the height difference between the target virtual object and the first virtual object indicated by the height position information or the relative height information is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, display a line with the first preset color at the edge of the target area identifier.
11. The method according to claim 9, wherein The target area identifier is a second area identifier; The step of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: If the height difference between the target virtual object and the first virtual object indicated by the height position information or the relative height information is zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the outer edge and transparent to the inside; If the height difference between the target virtual object and the first virtual object indicated by the height position information or the relative height information is not zero, and the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with a first preset color that is highlighted at the inner edge and transparent to the outside.
12. The method according to claim 9, wherein The target area identifier is a third area identifier; The step of determining the display mode of the target area identifier according to the height position information or relative height information in the target position information, and displaying the first position identifier of the target virtual object in the target area identifier according to the display mode includes: If the relationship between the target virtual object and the first virtual object is a hostile relationship, fill the target area identifier with the first preset color.
13. The method according to any one of claims 10 - 12, characterized in that The first preset color includes a variety of different preset sub - colors, and different preset sub - colors have different color depths; Among them, corresponding to different preset sub - colors, the distance between the target virtual object and the first virtual object within the target monitoring distance range corresponding to the target area identifier is different.
14. The method according to claim 9, wherein The step of displaying the first position identifier of the target virtual object in the target area identifier includes: If the relationship between the target virtual object and the first virtual object is a non - hostile relationship, determine a target position in the target area identifier that matches the target position information; Display the first object identifier of the target virtual object at the target position.
15. The method according to claim 14, characterized in that, The step of displaying the first object identifier of the target virtual object at the target position includes: Determine that the target virtual object is killed, and display the second object identifier of the target virtual object at the target position.
16. The method according to claim 1, characterized in that The method further includes: In response to the first virtual object being hit by a second virtual object in the game scene, obtain the azimuth information and altitude information of the second virtual object in the game scene; Based on the azimuth information and altitude information, display a damage identifier on the graphical user interface; wherein, the damage identifier is used to indicate the azimuth of the second virtual object, and the second virtual object is a virtual object that is in a hostile relationship with the first virtual object.
17. The method according to claim 16, wherein The step of displaying a damage identifier on the graphical user interface based on the azimuth information and altitude information includes: According to the azimuth information and altitude information, determine the relative azimuth information and relative altitude information of the second virtual object relative to the first virtual object; According to the relative azimuth information and the relative altitude information, determine a specified area identifier that matches the relative azimuth information from multiple area identifiers of the area monitoring identifier; According to the relative altitude information, determine the display mode of the damage identifier, and display the damage identifier in the external area corresponding to the specified area identifier according to the display mode.
18. The method according to claim 17, wherein The damage identifier is a three-dimensional conical identifier; The step of according to the relative altitude information, determining the display mode of the damage identifier, and displaying the damage identifier in the external area corresponding to the specified area identifier according to the display mode includes: If the relative altitude information is zero, determine that the display mode of the damage identifier is the first display mode, and display the damage identifier in the external area corresponding to the specified area identifier according to the first display mode; wherein, the first display mode indicates that the altitude of the second virtual object relative to the first virtual object is zero; If the relative altitude information is greater than zero, determine that the display mode of the damage identifier is the second display mode, and display the damage identifier in the external area corresponding to the specified area identifier according to the second display mode; wherein, the second display mode indicates that the altitude of the second virtual object relative to the first virtual object is greater than zero; If the relative altitude information is less than zero, determine that the display mode of the damage identifier is the third display mode, and display the damage identifier in the external area corresponding to the specified area identifier according to the third display mode; wherein, the third display mode indicates that the altitude of the second virtual object relative to the first virtual object is less than zero.
19. The method according to claim 1, wherein The area identifier includes multiple second area identifiers and multiple third area identifiers; the method further includes: In response to the first virtual object obtaining a specified virtual item, increase the number of the second area identifiers and the third area identifiers, or increase the monitoring range parameter; wherein, the number of the second area identifiers is the same as the number of the third area identifiers.
20. A display device for location information, characterized in that, A graphical user interface is displayed through a terminal device. The graphical user interface includes a scene image of a game scene and a first virtual object located in the game scene. The first virtual object is a virtual object controlled by the terminal device. The device includes: An area monitoring and display module, configured to display an area monitoring identifier on the graphical user interface. The monitoring area corresponding to the area monitoring identifier is a game scene space area determined according to the current position of the virtual object and a monitoring range parameter. The area monitoring identifier includes a plurality of area identifiers, and the area identifier corresponds to a scene area within a target monitoring direction range and a target monitoring distance range in the game scene. A target position information acquisition module, configured to determine a target virtual object and acquire target position information of the target virtual object in the game scene. The target virtual object is a virtual object in the game scene other than the first virtual object. An area identifier determination module, configured to determine a target area identifier from the plurality of area identifiers according to the target position information. The scene area within the target monitoring direction range and the target monitoring distance range corresponding to the target area identifier matches the target position information. An area identifier display module, configured to determine a display mode of the target area identifier according to the height information in the target position information, and display the target area identifier according to the display mode. The display mode of the target area identifier is used to indicate the height distance of the target virtual object relative to the first virtual object.
21. An electronic device, characterized in that, It includes a processor and a memory. The memory stores computer-executable instructions that can be executed by the processor. The processor executes the computer-executable instructions to implement the position information display method according to any one of claims 1-19.
22. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the position information display method according to any one of claims 1-19.
Citation Information
Patent Citations
Game role control method, device and equipment, and storage medium
CN111991800A
Program, information storage medium and terminal
JP2011212123A