US-12623147-B2 - Display method in game and apparatus, terminal, and storage medium thereof
Abstract
A display method in a game and an apparatus, a terminal, and a storage medium are provided. The method includes: determining, according to a first position at which a controlled virtual character is located, in a game scene, and a second position at which a target virtual object is located, in the game scene, azimuth information and horizontal plane relative information on the target virtual object relative to the controlled virtual character; determining a target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; determining a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information; and displaying an azimuth indication icon of the target virtual object, at a position corresponding to the target azimuth in the target horizontal plane indication area.
Inventors
- Qiran ZHOU
Assignees
- Netease (Hangzhou) Network Co., Ltd.
Dates
- Publication Date
- 20260512
- Application Date
- 20220916
- Priority Date
- 20220523
Claims (19)
- 1 . A display method in a game, comprising: determining, by a terminal, azimuth information and horizontal plane relative information on a target virtual object relative to a controlled virtual character, according to a first position at which the controlled virtual character is located in a game scene, and a second position at which the target virtual object is located in the game scene, wherein a graphical user interface is provided by the terminal, and an azimuth indicator is displayed in the graphical user interface; determining, by the terminal, a target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; determining, by the terminal, a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information; and displaying, by the terminal, an azimuth indication icon of the target virtual object at a position corresponding to the target azimuth in the target horizontal plane indication area, wherein both the target virtual object and the controlled virtual character are located in an indoor scene in the game scene; and wherein determining the horizontal plane relative information on the target virtual object relative to the controlled virtual character further comprises: determining a first layer number of the indoor scene where the first position is located and a second layer number of the indoor scene where the second position is located; in response to determining that the first layer number and the second layer number are the same, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are in a same horizontal plane; and in response to determining that the first layer number and the second layer number are different, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in a same horizontal plane.
- 2 . The method according to claim 1 , wherein the azimuth indicator comprises a plurality of horizontal plane indication areas; and wherein determining the target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information further comprises: determining a horizontal plane indication area consistent with the horizontal plane relative information, as the target horizontal plane indication area, from the plurality of horizontal plane indication areas, according to the horizontal plane relative information.
- 3 . The method according to claim 2 , further comprising: displaying the target horizontal plane indication area, and other indication areas in the plurality of horizontal plane indication areas differently.
- 4 . The method according to claim 3 , wherein displaying the target horizontal plane indication area, and the other indication areas in the plurality of horizontal plane indication areas differently further comprises: displaying the target horizontal plane indication area and the other indication areas in different display transparencies; or displaying the target horizontal plane indication area and the other indication areas in different display colors.
- 5 . The method according to claim 4 , wherein display-transparency of the target horizontal plane indication area is greater than a preset transparency threshold; and display-transparency of the other indication areas is less than the preset transparency threshold.
- 6 . The method according to claim 4 , wherein display-color of the target horizontal plane indication area is set to be a bright color; and display-color of the other indication areas is set to be a dark color.
- 7 . The method according to claim 2 , wherein determining the horizontal plane relative information on the target virtual object relative to the controlled virtual character further comprises: determining a vertical projection distance between the target virtual object and the controlled virtual character, according to the first position and the second position; in response to determining that the vertical projection distance is within a preset numerical range, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are in a same horizontal plane; and in response to determining that the vertical projection distance is not within the preset numerical range, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in a same horizontal plane.
- 8 . The method according to claim 7 , wherein determining the vertical projection distance between the target virtual object and the controlled virtual character further comprises: determining a first vertical projection height of the target virtual object according to the first position; determining a second vertical projection height of the controlled virtual character according to the second position; and determining the vertical projection distance between the target virtual object and the controlled virtual character, according to the first vertical projection height and the second vertical projection height.
- 9 . The method according to claim 8 , wherein determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in the same horizontal plan further comprises: in response to determining that the vertical projection distance is greater than a maximum value in the preset numerical range, determining the horizontal plane relative information for indicating that a horizontal plane where the target virtual object is located is higher than a horizontal plane where the controlled virtual character is located; and in response to determining that the vertical projection distance is less than a minimum value in the preset numerical range, determining the horizontal plane relative information for indicating that the horizontal plane where the target virtual object is located is lower than the horizontal plane where the controlled virtual character is located.
- 10 . The method according to claim 8 , wherein determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in the same horizontal plane further comprises: in response to determining that the vertical projection distance is greater than a maximum value in the preset numerical range, determining the horizontal plane relative information for indicating that a horizontal plane where the target virtual object is located is lower than a horizontal plane where the controlled virtual character is located; and in response to determining that the vertical projection distance is less than a minimum value in the preset numerical range, determining the horizontal plane relative information for indicating that the horizontal plane where the target virtual object is located is higher than the horizontal plane where the controlled virtual character is located.
- 11 . The method according to claim 1 , wherein determining the target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information further comprises: in response to determining that the azimuth information indicates that relative azimuth of the controlled virtual character to the target virtual object is within an indication range of the azimuth indicator, determining the target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; and in response to determining that the azimuth information indicates that the relative azimuth of the controlled virtual character to the target virtual object is beyond the indication range of the azimuth indicator, determining an edge position on the azimuth indicator, as the target azimuth corresponding to the target virtual object.
- 12 . The method according to claim 1 , wherein determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in the same horizontal plane further comprises: in response to determining that the first layer number is greater than the second layer number, determining the horizontal plane relative information for indicating that a horizontal plane where the target virtual object is located is lower than a horizontal plane where the controlled virtual character is located; and in response to determining that the first layer number is less than the second layer number, determining the horizontal plane relative information for indicating that the horizontal plane where the target virtual object is located is higher than the horizontal plane where the controlled virtual character is located.
- 13 . The method according to claim 1 , wherein in response to determining that both the target virtual object and the controlled virtual character are in an indoor scene in the game scene, the method further comprises: determining the azimuth information on the target virtual object relative to the controlled virtual character, according to the first position at which the controlled virtual character is located, in the game scene, and the second position at which the target virtual object is located, in the game scene; determining the target horizontal plane indication area corresponding to the target virtual object, according to an absolute position of the indoor scene where the second position is located, wherein the absolute position of the indoor scene comprises: at least one indoor floor plane, or a staircase position; determining the target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; and displaying the azimuth indication icon of the target virtual object, at a position corresponding to the target azimuth in the target horizontal plane indication area.
- 14 . The method according to claim 13 , wherein displaying the azimuth indication icon of the target virtual object at the position corresponding to the target azimuth in the target horizontal plane indication area further comprises: determining a vertical line at the target azimuth, and displaying the azimuth indication icon at the vertical line in the target horizontal plane indication area on the azimuth indicator.
- 15 . The method according to claim 1 , wherein the azimuth information comprises east, south, west, and north.
- 16 . The method according to claim 1 , wherein the azimuth indicator is strip-shaped and laterally distributed, and the azimuth indicator comprises a plurality of laterally distributed scales, wherein each scale comprises a corresponding azimuth identifier.
- 17 . The method according to claim 1 , wherein the game scene is further displayed in the graphical user interface, the game scene comprises the controlled virtual character, and the azimuth indicator is displayed in middle at a top of the graphical user interface.
- 18 . A terminal, comprising: a memory and a processor, wherein the memory stores a computer program executable by the processor, and the processor, when executing the computer program, implements a display method in a game, with the method comprising: determining azimuth information and horizontal plane relative information on a target virtual object relative to a controlled virtual character, according to a first position at which the controlled virtual character is located in a game scene, and a second position at which the target virtual object is located in the game scene, wherein a graphical user interface is provided by the terminal, and an azimuth indicator is displayed in the graphical user interface; determining a target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; determining a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information; and displaying an azimuth indication icon of the target virtual object, at a position corresponding to the target azimuth in the target horizontal plane indication area, wherein both the target virtual object and the controlled virtual character are located in an indoor scene in the game scene; and wherein determining the horizontal plane relative information on the target virtual object relative to the controlled virtual character further comprises: determining a first layer number of the indoor scene where the first position is located and a second layer number of the indoor scene where the second position is located; in response to determining that the first layer number and the second layer number are the same, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are in a same horizontal plane; and in response to determining that the first layer number and the second layer number are different, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in a same horizontal plane.
- 19 . A non-transitory storage medium, storing a computer program, wherein the computer program, when read and executed, implements a display method in a game, with the method comprising: determining azimuth information and horizontal plane relative information on a target virtual object relative to a controlled virtual character, according to a first position at which the controlled virtual character is located in a game scene, and a second position at which the target virtual object is located in the game scene, wherein a graphical user interface is provided by a terminal, and an azimuth indicator is displayed in the graphical user interface; determining a target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; determining a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information; and displaying an azimuth indication icon of the target virtual object, at a position corresponding to the target azimuth in the target horizontal plane indication area, wherein both the target virtual object and the controlled virtual character are located in an indoor scene in the game scene; and wherein determining the horizontal plane relative information on the target virtual object relative to the controlled virtual character further comprises: determining a first layer number of the indoor scene where the first position is located and a second layer number of the indoor scene where the second position is located; in response to determining that the first layer number and the second layer number are the same, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are in a same horizontal plane; and in response to determining that the first layer number and the second layer number are different, determining the horizontal plane relative information for indicating that the target virtual object and the controlled virtual character are not in a same horizontal plane.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present disclosure claims the priority to the Chinese Patent Application No. 202210566239.X filed on May 23, 2022 and entitled “DISPLAY METHOD IN GAME AND APPARATUS, TERMINAL, AND STORAGE MEDIUM THEREOF”, the entire contents of which are incorporated herein by reference for all purposes. TECHNICAL FIELD The present disclosure relates to the technical field of games, and specifically to a display method in a game and an apparatus, a terminal, and a storage medium. BACKGROUND With the progress and development of Internet technologies, there are more and more network games. In the network games, game information is displayed to a user through a graphical user interface, so that the user efficiently performs game operations to realize bidirectional human-machine interaction. The game information displayed in the graphical user interface has also become a research hotspot. In the related art, an azimuth ruler is displayed in the graphical user interface. The azimuth ruler is an icon presenting azimuth information, and the azimuth ruler can be used for indicating azimuth information (namely, information such as east, west, south, and north) on a target object relative to a controlled virtual character. However, in the related art, the azimuth ruler can only represent the azimuth information on the target object relative to the controlled virtual character, but the presented position information is insufficient, thus reducing user experience. SUMMARY The present disclosure aims at, in view of the above shortcomings in the related art, providing a display method in a game and an apparatus, a terminal, and a storage medium, so as to solve the problems in the related art that an azimuth indicator can only represent an azimuth information on the target object relative to the controlled virtual character, but the presented position information is insufficient, thus reducing user experience. In order to realize the above objectives, technical solutions used in embodiments of the present disclosure are as follows. In a first aspect, an embodiment of the present disclosure provides a display method in a game, providing a graphical user interface by a terminal, where an azimuth indicator is displayed in the graphical user interface; and where the method includes: determining, according to a first position at which a controlled virtual character is located, in a game scene, and a second position at which a target virtual object is located, in the game scene, azimuth information and horizontal plane relative information on the target virtual object relative to the controlled virtual character;determining a target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information;determining a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator, according to the horizontal plane relative information; anddisplaying an azimuth indication icon of the target virtual object, at a position corresponding to the target azimuth in the target horizontal plane indication area. Optionally, the azimuth indicator includes a plurality of horizontal plane indication areas; and the step of determining a target horizontal plane indication area corresponding to the target virtual object on the azimuth indicator according to the horizontal plane relative information includes:determining, according to the horizontal plane relative information, from the plurality of horizontal plane indication areas, a horizontal plane indication area consistent with the horizontal plane relative information, as the target horizontal plane indication area. Optionally, the method further includes: displaying the target horizontal plane indication area, and other indication areas in the plurality of horizontal plane indication areas differently. Optionally, the step of displaying the target horizontal plane indication area and other indication areas in the plurality of horizontal plane indication areas differently includes: displaying the target horizontal plane indication area and the other indication areas in different display transparencies;alternatively, displaying the target horizontal plane indication area and the other indication areas in different display colors. Optionally, the step of determining a target azimuth corresponding to the target virtual object on the azimuth indicator according to the azimuth information includes: determining, if the azimuth information indicates that relative azimuth of the controlled virtual character to the target virtual object is within an indication range of the azimuth indicator, the target azimuth corresponding to the target virtual object on the azimuth indicator, according to the azimuth information; anddetermining, if the azimuth information indicates that the relative azimuth of the controlled virtual character to the target virtual object is beyond the indication range o