Method and device for displaying virtual scene-based operation controls

The method and device automatically adjust operation controls in mobile games based on virtual element type and position, reducing complexity and enhancing user experience by eliminating the need for manual control switching.

JP7595714B2Active Publication Date: 2024-12-06TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023130356
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-04-23
Filing Date
2023-08-09
Publication Date
2024-12-06
Estimated Expiration
2041-03-08

AI Technical Summary

Technical Problem

In mobile games, particularly role-playing games, the complexity of switching between different operational controls when interacting with various virtual elements is high due to limited screen size, leading to increased operational complexity and reduced user experience.

Method used

A method and device that automatically adjusts displayed operation controls based on the position and type of virtual elements within the game scene, allowing seamless interaction without manual switching by determining the element type of the target virtual element and displaying the corresponding operation control.

Benefits of technology

Reduces operational complexity and enhances user experience by automatically switching operation controls based on the virtual element type, ensuring efficient interaction without manual intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007595714000001
    Figure 0007595714000001
  • Figure 0007595714000002
    Figure 0007595714000002
  • Figure 0007595714000003
    Figure 0007595714000003
Patent Text Reader

Abstract

To provide an operation control display method based on a virtual scene.SOLUTION: According to this application, position information of a target virtual object in a virtual scene is obtained. Because different types of virtual elements appear in different regions of the virtual scene, a target virtual element corresponding to the target virtual object at a current position may be determined based on the position information and the virtual elements in the virtual scene. Because different operation controls are needed when the target virtual object interacts with different types of virtual elements, a terminal switches an operation control displayed in a control display region in the virtual scene to a target operation control corresponding to an element type of the target virtual element. In this way, a user does not need to manually switch the operation controls when operating the target virtual object to interact with the target virtual element, which can effectively reduce operation complexity.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] [CROSS REFERENCE TO RELATED APPLICATIONS] This application seeks priority from a Chinese patent application bearing application number 202010329239.9, filed on April 23, 2020, and entitled "Method and device for displaying operation control based on virtual scene," the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of computer technology, and in particular to a method, an apparatus, a device, and a storage medium for displaying an operation control based on a virtual scene. [Background technology]

[0003] With the development of computer technology and the diversification of terminal functions, more and more mobile games have appeared, among which role-playing games have become a very important type of mobile games. In current role-playing games, players can control their virtual objects to move through a virtual scene and interact with other virtual elements in the virtual scene. Typically, a virtual scene may include multiple types of virtual elements, and players need to use different operation controls when interacting with different types of virtual elements. Summary of the Invention [Means for solving the problem]

[0004] The embodiments of the present application provide a method, device, apparatus, and storage medium for displaying operation control based on a virtual scene, and the technical means are as follows:

[0005] According to one aspect, there is provided a method for displaying an operational control based on a virtual scene applied to a computing device, comprising the steps of: obtaining position information in a virtual scene of a target virtual object, the target virtual object being a virtual object controlled by the terminal; determining an element type of a target virtual element corresponding to the target virtual object based on the position information and at least one of the virtual elements in the virtual scene; A method for displaying an operation control based on a virtual scene is provided, the method including the step of displaying a target operation control corresponding to an element type of the target virtual element in a control display area in the virtual scene, the target operation control being for controlling the target virtual object to interact with the target virtual element.

[0006] According to one aspect, an acquisition module for acquiring position information in a virtual scene of a target virtual object, the target virtual object being a virtual object controlled by a terminal; a determination module for determining an element type of a target virtual element corresponding to the target virtual object based on the position information and at least one of a virtual element in the virtual scene; a display module for displaying a target manipulation control corresponding to an element type of the target virtual element in a control display area in the virtual scene, the target manipulation control being for controlling the target virtual object to interact with the target virtual element; The present invention provides a display device for operation control based on a virtual scene comprising:

[0007] In one possible embodiment, the display module comprises: For any one control display position within the control display area, obtain a candidate operation control corresponding to the any one control display position; Matching the element type of the target virtual element with a display condition of each candidate operation control; determining a candidate operational control whose display condition matches an element type of the interactable element as the target operational control; The target operation control is displayed at any one of the control display positions.

[0008] In one possible embodiment, the display module comprises: determining whether the operation control currently displayed in the control display position is the same as the target operation control; If they are the same, the currently displayed operation control is continued to be displayed, and if they are different, the currently displayed operation control is switched to the target operation control.

[0009] In one possible embodiment, the acquisition module comprises: In response to a movement operation on the target virtual object, position information of the target virtual object is acquired in real time.

[0010] In one possible embodiment, the acquisition module comprises: determining an area type for the area indicated by the location information; and for performing, in response to the change in the region type, a step of determining an element type of a target virtual element corresponding to the target virtual object based on the position information, at least one of a virtual element in the virtual scene.

[0011] According to one aspect, a computing device is provided that includes one or more processors and one or more memories having at least one program code stored therein, the at least one program code being loaded and executed by the one or more processors to realize a method for displaying operation controls based on the virtual scene.

[0012] According to one aspect, a computer-readable storage medium is provided having stored thereon at least one program code that, when loaded and executed by a processor, realizes a method for displaying an operational control based on the virtual scene.

[0013] In order to more clearly describe the technical means in the embodiments of the present application, the following briefly describes the drawings necessary for the description of the embodiments. The drawings in the following description are only some embodiments of the present application, and it is obvious to those skilled in the art that they can also obtain other drawings based on these drawings without spending creative labor. [Brief description of the drawings]

[0014] [Figure 1] FIG. 1 is a schematic diagram of an implementation environment of a method for displaying operation controls based on a virtual scene provided by an embodiment of the present application. [Diagram 2] 4 is a flowchart of a method for displaying operation controls based on a virtual scene provided by an embodiment of the present application; [Diagram 3] FIG. 2 is a schematic diagram of an operation interface provided by an embodiment of the present application; [Figure 4] 4 is a flowchart of a method for displaying operation controls based on a virtual scene provided by an embodiment of the present application; [Diagram 5] FIG. 2 is a schematic diagram of the switching process of the operation control provided by an embodiment of the present application; [Figure 6] 2 is a schematic diagram of a control display area provided by an embodiment of the present application. [Figure 7] 4 is a flowchart of a method for displaying operation controls based on a virtual scene provided by an embodiment of the present application; [Figure 8] FIG. 2 is a schematic diagram of the switching process of the operation control provided by an embodiment of the present application; [Figure 9] 2 is a schematic diagram of a control display area provided by an embodiment of the present application. [Figure 10] FIG. 2 is a structural schematic diagram of a display device for operation control based on a virtual scene provided by an embodiment of the present application; [Figure 11] FIG. 2 is a structural schematic diagram of a terminal provided by an embodiment of the present application; [Figure 12] FIG. 2 is a structural schematic diagram of a server provided by an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] In order to make the objectives, technical means and advantages of the present application clearer, the following describes the embodiments of the present application in more detail with reference to the drawings.

[0016] In order to facilitate understanding of the technical process of the embodiments of the present application, the following provides an explanation of some terms related to the embodiments of the present application.

[0017] A virtual scene is a virtual scene that is displayed (or provided) when an application is executed on a terminal. The virtual scene may be a simulation environment for the real world, a semi-simulated semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene may be any one of a 2D virtual scene, a 2.5D virtual scene, and a 3D virtual scene, but this application is not limited thereto. For example, the virtual scene may include sky, land, ocean, etc., and the land may include environmental elements such as desert, city, etc. A user can control a virtual object to move within the virtual scene.

[0018] A virtual object refers to a movable object in a virtual scene. The movable object may be a virtual person, a virtual animal, an animated character, etc. The virtual object may be a virtual figure to represent a user in the virtual scene. The virtual scene may include a plurality of virtual figures, each having its own shape and volume in the virtual scene and occupying a portion of the space in the virtual scene. Optionally, the virtual object may be a character controlled by operating a client, an artificial intelligence (AI) set for a match in a virtual environment through training, or a non-player character (NPC) set for a match in a virtual scene. Optionally, the virtual object is a virtual person competing in a virtual scene. Optionally, the number of virtual objects in a match in the virtual scene may be preset or may be dynamically determined according to the number of clients participating in the match, but is not limited thereto in the embodiment of the present application.

[0019] A MOBA (Multiplayer Online Battle Arena) game provides multiple bases in a virtual scene, and controls virtual objects belonging to different camps to compete in the virtual scene and occupy the bases or destroy the bases of the opposing camp. For example, in a MOBA game, users may be divided into at least two opposing camps, and different virtual teams belonging to the at least two opposing camps may occupy their own map areas and compete for a certain victory condition. Each virtual team includes one or more virtual objects. The victory conditions include, but are not limited to, at least one of occupying a base or destroying the base of the opposing camp, shooting and killing the virtual object of the opposing camp, ensuring one's own survival within a specified scene and time, seizing a certain resource, and achieving a score higher than the opponent within a specified time. A MOBA game may be played in units of rounds, and the maps of the tactical competition in each round may be the same or different. The duration of each round of a MOBA game is the time from the start of the game to the time when the victory condition is satisfied.

[0020] In the related art, due to the limitation of the screen size of a mobile phone, many different types of operation controls cannot be directly displayed in the operation area, so the player needs to manually switch the currently displayed operation control when interacting with different virtual elements, and the operation control switching procedure is often complicated, and frequent manual switching of the operation control will greatly increase the complexity of the game operation and affect the user experience.

[0021] FIG. 1 is a schematic diagram of an implementation environment of the method for displaying operation controls based on a virtual scene provided by an embodiment of the present application. Referring to FIG. 1, the implementation environment may include a first terminal 110, a server 140 and a second terminal 160.

[0022] The first terminal 110 has an application installed and running that supports displaying a virtual scene and a virtual object. The application may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a role-playing game (RPG), a multiplayer online battle arena game (MOBA), and a multiplayer gunfight survival game. The first terminal 110 is a terminal used by a first user, and the first user uses the first terminal 110 to manipulate a first virtual object in a virtual scene to perform an activity, the activity including at least one of, but not limited to, adjusting a body posture, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, and throwing. Exemplarily, the first virtual object is a first virtual person, such as a simulation character or an animation character.

[0023] The first terminal 110 is connected to the server 140 via a wireless network or a wired network.

[0024] The server 140 includes at least one of one server, multiple servers, a cloud computing platform, and a virtualization center. The server 140 is for providing background services to applications supporting virtual scenes. Optionally, the server 140 is responsible for main computing tasks, and the first terminal 110 and the second terminal 160 are responsible for secondary computing tasks. Alternatively, the server 140 is responsible for main computing tasks, and the first terminal 110 and the second terminal 160 are responsible for secondary computing tasks. Alternatively, the server 140, the first terminal 110, and the second terminal 160 perform collaborative computing through a distributed computing architecture.

[0025] The second terminal 160 has an application installed and running that supports displaying virtual scenes and virtual objects. The application may be any one of a virtual reality application, a three-dimensional map program, a military simulation program, a role-playing game (RPG), a multiplayer online battle arena game (MOBA), and a multiplayer gunfight survival game. The second terminal 160 is a terminal used by a second user, and the second user uses the second terminal 160 to manipulate a second virtual object in a virtual scene to perform an action, the action including at least one of, but not limited to, adjusting a body posture, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, and throwing. Exemplarily, the second virtual object is a second virtual person, such as a simulation character or an animation character.

[0026] The second terminal 160 is connected to the server 140 via a wireless network or a wired network.

[0027] Optionally, the first virtual object controlled by the first terminal 110 and the second virtual object controlled by the second terminal 160 are in the same virtual scene, and the first virtual object can interact with the second virtual object in the virtual scene. In some embodiments, the first virtual object and the second virtual object may be in an adversarial relationship, for example, belonging to different groups. The adversarial virtual objects may attack each other with different skills and engage in a battle-type interaction. The first terminal 110 and the second terminal 160 display performance effects according to the skills.

[0028] In other embodiments, the first virtual object and the second virtual object may be in a teammate relationship, for example, they may belong to the same group, be friends, or have temporary communication permissions.

[0029] Optionally, the applications installed on the first terminal 110 and the second terminal 160 are the same or the same type of applications on different operating system platforms. The first terminal 110 may refer to one of a plurality of terminals in a general manner, and the second terminal 160 may refer to one of a plurality of terminals in a general manner, and in this embodiment, only the first terminal 110 and the second terminal 160 are described as an example. The device types of the first terminal 110 and the second terminal 160 are the same or different, and the device types include at least one of a smartphone, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Group Audio Layer 3) player, an MP4 (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Group Audio Layer 4) player, a laptop portable computer, and a desktop computer. For example, the first terminal 110 and the second terminal 160 may be a smartphone or another portable game console. In the following embodiment, a case where the terminal includes a smartphone is described as an example.

[0030] Those skilled in the art will appreciate that the number of the above terminals may be greater or less. For example, the number of the above terminals may be only one, or may be tens, hundreds, or more. The embodiment of the present application does not limit the number and device types of the terminals.

[0031] The method for displaying operation controls based on a virtual scene provided by the embodiments of the present application can be applied to multiple types of applications, and the operation controls displayed on the operation interface can be automatically adjusted to simplify the operation of the user. In the embodiments of the present application, the method is applied to a MOBA game, and the user can operate a target virtual object through a terminal to move the target virtual object in a virtual scene or interact with a virtual element in the virtual scene. In some embodiments, the terminal automatically adjusts the currently displayed virtual control based on the change of the virtual element interacting with the target virtual object, and the user does not need to manually switch, so that the difficulty of the operation is reduced.

[0032] 2 is a flowchart of a method for displaying an operation control based on a virtual scene provided by an embodiment of the present application. The method may be applied to a computer device, and in some embodiments, the computer device is any one of the terminals in the above-mentioned implementation environments. In the embodiment of the present application, the method for displaying an operation control based on a virtual scene is mainly performed by a terminal as an example, and is described with reference to FIG. 2.

[0033] In step 201, a terminal obtains position information in a virtual scene of a target virtual object, which is a virtual object controlled by the terminal.

[0034] Optionally, the target virtual object is a virtual object controlled by a user using the terminal.

[0035] In one possible embodiment, when the terminal detects that the user has joined the game, it can display a virtual scene corresponding to this round of the game, which may include multiple types of virtual elements. The virtual elements may include virtual objects, virtual buildings, virtual items, etc., and each virtual element has its own shape and volume in the virtual scene and occupies a part of the space in the virtual scene. For example, the virtual elements may be defense towers, minions, monsters, fruits, etc. in the virtual scene. The embodiment of the present application does not limit the specific types and numbers of the virtual elements. Of course, the terminal may display at least one operation control in a control display area in the virtual scene that can be used to control the target virtual object to interact with each type of virtual element. For example, the operation control includes a minion key for attacking a minion, and further includes a tower key for attacking a defense tower, a monster key for attacking a monster in the jungle, and a fruit key for attacking a fruit in the virtual scene. In some embodiments, the fruits include explosive fruits and recovery fruits, the explosive fruits have an action range, and when a target virtual object is in the action range and attacks the explosive fruits, the explosive fruits explode and can "blow" the target virtual object to a position opposite to the explosive fruits. When a player controls a target virtual object to attack the recovery fruits, the recovery fruits can disperse into multiple sub-recovery fruits, and when the target virtual object touches the sub-recovery fruits, it can recover a health value, and in some embodiments, the health value is also referred to as a life value. Referring to FIG. 3, FIG. 3 is a schematic diagram of an operation interface provided by an embodiment of the present application, the operation interface includes a virtual scene display area 301 and an operation control display area 302 displaying multiple operation controls 303.

[0036] In one possible embodiment, a user can control a target virtual object to move in the virtual scene by performing an operation such as dragging the target virtual object, and the terminal can obtain position information of the target virtual object in the virtual scene in real time. In some embodiments, the terminal may indicate the position information as a coordinate. It should be noted that the embodiments of the present application do not limit the specific method of the terminal obtaining the position information.

[0037] In step 202, the terminal determines an element type of a target virtual element corresponding to the target virtual object based on the position information and at least one of the virtual elements in the virtual scene.

[0038] In one possible embodiment, the terminal may determine a virtual element that can interact with the target virtual object based on the position information of the target virtual object, or a virtual element included in the current virtual scene, or the position information and the virtual element included in the current virtual scene, that is, the terminal determines a target virtual element that corresponds to the target virtual object and is an interaction element that can interact with the target virtual object. In some embodiments, the target virtual element is also called an interactable element. In some embodiments, the terminal may determine an element type of the target virtual element. For example, if the target virtual object is in a jungle that includes a virtual element that is a monster, the target virtual element that corresponds to the target virtual object is a monster, and in some embodiments, the monster is also called a neutral creep (wild monster). If the target virtual object is in an area other than the jungle where virtual elements that include minions but do not include monsters appear, the target virtual element that corresponds to the target virtual object is a minion. It should be noted that the above description of the method for determining the target virtual element is merely exemplary, and the embodiment of the present application does not limit the specific method for determining the target virtual element.

[0039] In step 203, the terminal displays a target operation control corresponding to an element type of the target virtual element in a control display area in the virtual scene, the target operation control being for controlling the target virtual object to interact with the target virtual element.

[0040] Optionally, the control display area is an area for displaying an operational control, and in some embodiments, one or more operational controls are displayed in the control display area.

[0041] In the embodiment of the present application, when the target virtual object interacts with different types of virtual elements, different operation controls may be used. For example, when the target virtual object is controlled to attack a monster, the operation control used is a monster key. When the target virtual object is controlled to attack a minion, the operation control used is a minion key. When the target virtual object is controlled to attack a defense tower, the operation control used is a tower key.

[0042] In one possible embodiment, the terminal may automatically adjust the operation control displayed in the operation interface based on the element type of the target virtual element that the target virtual object is currently facing. For example, when the target virtual object is in a jungle and the terminal determines that the target virtual element corresponding to the target virtual object is a monster, a monster key is displayed in the operation control display area of ​​the operation interface. When the target virtual object leaves the jungle and the terminal determines that the target virtual element corresponding to the target virtual object is a minion, the monster key displayed in the operation control display area is switched to a minion key.

[0043] In the technical means provided by the embodiments of the present application, by obtaining the position information of the target virtual object in the virtual scene, different types of virtual elements appear in different areas in the virtual scene, so that a corresponding target virtual element can be determined when the target virtual object is at a current position based on the position information and at least one of the virtual elements in the virtual scene. Since different operation controls need to be used when the target virtual object interacts with different types of virtual elements, the terminal can switch the operation control displayed in the control display area in the virtual scene to the target operation control corresponding to the element type of the target virtual element, so that the user does not need to manually switch the operation control when operating the target virtual object to interact with the target virtual element, which can effectively reduce the complexity of the operation and improve the user experience.

[0044] In the above embodiment, the method for displaying operation controls based on a virtual scene is briefly described. In the following, the method will be described in detail with reference to FIG. 4. FIG. 4 is a flowchart of the method for displaying operation controls based on a virtual scene provided by the embodiment of the present application. In one possible embodiment, different virtual elements appear in different regions in the virtual scene, that is, when the target virtual object is in different regions, the corresponding target virtual elements are also different, so that the terminal can switch the operation control displayed in the control display area according to the position of the target virtual object. With reference to FIG. 4, the embodiment specifically includes the following steps:

[0045] In step 401, a terminal obtains position information in a virtual scene of a target virtual object, which is a virtual object controlled by the terminal.

[0046] When the terminal detects that the user has joined the game, it can display a virtual scene displaying at least one virtual object and other virtual elements corresponding to the game of this round. In one possible embodiment, after the game starts, the terminal can obtain in real time the position information of the target virtual object currently controlled by the user. Optionally, when the terminal detects that the user performs an operation such as dragging on the target virtual object, that is, the user controls the target virtual object to be in a moving state, the terminal may obtain the position information of the target virtual object again. In some embodiments, the user's drag operation on the target virtual object is realized by the user through a virtual rocker in the operation interface. In the embodiments of the present application, the specific method of obtaining the position information is not limited.

[0047] In one possible embodiment, when the virtual scene is a three-dimensional scene, the position information may be represented as position coordinates (x, y, z), where (x, z) can be used to determine the position of the target virtual object in a planar direction, and y can be used to determine the position of the target virtual object in a vertical direction. Of course, the position information may be represented in other formats, but this is not limited to the embodiments of the present application.

[0048] In step 402, the terminal determines, based on the location information, an area type of the area indicated by the location information.

[0049] In one possible embodiment, the developer may divide the map of the virtual scene into M*N grids, i.e., M*N regions, where M and N are both positive integers. In some embodiments, the values ​​of M and N correspond to the length and width of the map, respectively, and if the resolution of the map is M*N, each pixel in the map is one region, and of course, M and N may be other values, but this is not limited in the embodiments of the present application. Different position information can indicate different regions, and each region corresponds to one region type, for example, the region type may be jungle, non-jungle, etc., and the correspondence between the region and the region type is set by the developer.

[0050] In one possible embodiment, the configuration file of the application includes a map index table for storing a position index and a region type corresponding to each region in the map. The application is a virtual scene application. In some embodiments, the position information in the plane of the region may be the position index, for example, for a vertex of a lattice region, the position coordinate (x, z) in the plane direction of the vertex may be the position index of the lattice region. When dividing the map into lattice regions, each pixel is considered as one region, so that the two values ​​in the position index corresponding to each lattice region are both integers. It should be noted that the above description of the method for determining the position index is merely illustrative, and the embodiment of the present application does not limit the specific method for determining the position index.

[0051] In one possible embodiment, the terminal may determine a position index of the area indicated by the position information based on the position information, for example, the terminal may obtain the position coordinates in the planar direction of the position information, i.e., the x-axis value and the z-axis value, and round the two values ​​to integers to obtain (x', z') as the position index. Then, the terminal obtains the area type of the area from the map index table corresponding to the virtual scene based on the position index, that is, the area type corresponding to the position index is the area type of the area. It should be noted that the above description of the method for determining the area type is merely illustrative, and the embodiment of the present application does not limit the specific method for determining the area type.

[0052] In step 403, the terminal switches the operation control displayed in the control display area according to the area type.

[0053] In the embodiment of the present application, since different types of virtual elements are included in different types of regions, when the target virtual object is in different regions, the corresponding target virtual element is also different. For example, when the region type is a jungle, the virtual elements included in the jungle are monsters, not minions, so that when the target virtual object enters the jungle, the corresponding target virtual element is a monster, and when the target virtual object leaves the jungle, the corresponding target virtual element is a minion. In the embodiment of the present application, since the target virtual element corresponding to the target virtual object can be determined according to the region type, the terminal can switch the operation control based on the region type, that is, determine the element type of the virtual element corresponding to the region type as the element type of the target virtual element. The terminal switches the operation control displayed in the control display area to the operation control corresponding to the element type of the target virtual element. In one possible embodiment, the terminal may update the operation control displayed in the control display area every time the terminal obtains the position information of the target virtual object. In one possible embodiment, the terminal may perform the steps of: every time it obtains the position information of the target virtual object, comparing the region type corresponding to the position information with the region type corresponding to the previously obtained position information, determining whether the region type has changed, and updating the operation control in response to the change of the region type. The embodiment of the present application does not limit the specific method of updating the operation control.

[0054] The above operation control switching process will be described below with reference to Figures 5 and 6. Figure 5 is a schematic diagram of the operation control switching process provided by an embodiment of the present application. With reference to Figure 5, in response to the start of a game, the terminal may perform step 501 of obtaining position information of a target virtual object, perform step 502 of determining whether the target virtual object is in a jungle based on the position information, perform step 503 of setting a monster key if the target virtual object is in the jungle, and perform step 504 of setting a minion key if the target virtual object is not in the jungle.

[0055] 6 is a schematic diagram of a control display area provided by an embodiment of the present application. Referring to FIG. 6, an area 602 in a control display area 601 is a display area for a minion key and a monster key. In some embodiments, when the target virtual object enters the jungle, a monster key icon is displayed in the area 602 as shown in FIG. 6(a), and in some embodiments, when the target virtual object leaves the jungle, a minion key icon is displayed in the area 602 as shown in FIG. 6(b).

[0056] In one possible embodiment, the virtual elements included in different regions are of multiple types, for example, a region includes a virtual element of type A, a virtual element of type B, and a virtual element of type C, and the user can control the target virtual object to interact with the three types of virtual elements by three different operation controls, respectively. In some embodiments, the display positions of the three operation controls in the control display region are the same, that is, the positions correspond to the three candidate operation controls. When the terminal determines that the target virtual object is in the region, the terminal may preload the three operation controls, in this case, the three operation controls are also called candidate operation controls, that is, terminal-loaded candidate operation controls. During the movement of the target virtual object, if the position of the target virtual object meets the display condition of any one of the operation controls, the icon of any one of the operation controls is displayed. Optionally, the display condition is set by a developer, for example, the display condition is set as the distance between the target virtual object and the virtual element is smaller than a distance threshold, but the embodiment of the present application is not limited thereto. By the above means, the terminal can improve the switching efficiency of the operation control by pre-loading the operation control according to the position information of the target virtual object.

[0057] In the technical means provided by the embodiments of the present application, by obtaining the position information of the target virtual object in the virtual scene, different types of virtual elements appear in different areas in the virtual scene, so that a corresponding target virtual element can be determined when the target virtual object is at a current position based on the position information and at least one of the virtual elements in the virtual scene. Since different operation controls need to be used when the target virtual object interacts with different types of virtual elements, the terminal can switch the operation control displayed in the control display area in the virtual scene to the target operation control corresponding to the element type of the target virtual element, so that the user does not need to manually switch the operation control when operating the target virtual object to interact with the target virtual element, which can effectively reduce the complexity of the operation and improve the user experience.

[0058] In one possible embodiment, the terminal may comprehensively determine a target virtual element corresponding to a current target virtual object according to the position information of the target virtual object and the virtual element in the virtual scene, and further switch the operation control according to the element type of the current target virtual element. Figure 7 is a flowchart of a method for displaying operation control based on a virtual scene provided by an embodiment of the present application, refer to Figure 7, and this embodiment may specifically include the following steps:

[0059] In step 701, a terminal obtains position information in a virtual scene of a target virtual object, which is a virtual object controlled by the terminal.

[0060] The process of acquiring location information by the terminal is the same as that of step 401, and will not be described here again.

[0061] In step 702, the terminal determines an element type of a target virtual element corresponding to the target virtual object according to the position information of the target virtual object and a virtual element in the virtual scene.

[0062] In one possible embodiment, the process comprises any one of the following embodiments:

[0063] In the first embodiment, the terminal determines the element type of the virtual element that is closest to the target virtual object among the virtual elements included in the virtual scene based on the position information as the element type of the target virtual element. That is, the terminal acquires position information of virtual elements that can interact with the target virtual object in the virtual scene, determines the distance between the target virtual object and each of the virtual elements that can interact with the target virtual object, and sets the virtual element that is closest to the target virtual object as the target virtual element. For example, if the virtual element that is closest to the target virtual object is a defense tower, the terminal sets the defense tower as the target virtual element.

[0064] In embodiment 2, the terminal determines a target area in the virtual scene with the position indicated by the position information as the center. The terminal determines the number of virtual elements included in each element type in the target area. The terminal determines the element type containing the largest number of virtual elements as the element type of the target virtual element. In some embodiments, the target area is a valid interaction area, that is, the target virtual object can interact with virtual elements located in the target area, and cannot interact with virtual elements located outside the target area. Optionally, the radius of the target area is set by a developer, but is not limited thereto in the embodiments of the present application. For example, if the virtual element most frequently included in the target area is fruit, the terminal may determine fruit as the target virtual element.

[0065] In embodiment 3, the terminal determines a target area in the virtual scene with the position indicated by the position information as the center. The terminal determines an interaction priority of each virtual element in the target area. The terminal determines the element type of the virtual element with the highest interaction priority as the element type of the target virtual element. In some embodiments, the interaction priority is for indicating the order in which the target virtual object interacts with each type of virtual element. Optionally, the interaction priority is set by a developer, i.e., set as a default value, or set by a user, but is not limited thereto in the embodiments of the present application. For example, when the target area includes both a defense tower and a fruit, and the interaction priority of the fruit is higher than that of the defense tower, the terminal may determine the fruit as the target virtual element.

[0066] In MOBA games, the types of virtual elements are rich and diverse, and the above means automatically determines a target virtual element for a user based on the position of a target virtual object controlled by the user and the element type of the virtual element near the position, and further performs a step of switching the operation control based on the type of virtual element that can be interacted with later, thereby simplifying the operation steps of the user and reducing the difficulty of the game operation.

[0067] In the embodiment of the present application, the above methods may be arbitrarily combined, for example, different weights may be assigned to the distance between the virtual element and the target virtual object and the priority of the interaction corresponding to the virtual element, and the distance between the virtual element and the target virtual object and the priority of the interaction may be integrated to determine the sum of the weights corresponding to the virtual elements, and the virtual element with the largest sum of the weights may be determined as the target virtual element. It should be noted that the description of the determination of the target virtual element based on the above combination of conditions is merely an exemplary description of the combination method of conditions, and the process of determining the target virtual element based on other combination methods is similar to the above process, and will not be repeated here.

[0068] It should be noted that the above description of the method for determining the element type of the target virtual element is merely exemplary, and the embodiment of the present application does not limit the method for determining the element type of the target virtual element.

[0069] In step 703, the terminal switches the operation control displayed in the control display area according to the element type of the target virtual element.

[0070] In the embodiments of the present application, the terminal may switch the operation control displayed in the control display area in the virtual scene to a target operation control corresponding to the element type of the target virtual element, and the target operation control is for controlling the target virtual object to interact with the target virtual element. In some embodiments, for any one control display position in the control display area, a candidate operation control corresponding to the any one control display position is obtained, for example, when a minion key and a monster key have the same display position in the virtual scene, that is, both are displayed in any one control display position in the control display area, the candidate operation control corresponding to the any one control display position is a minion key and a monster key. The terminal may match the element type of the target virtual element with a display condition of each candidate operation control. The terminal determines the candidate operation control whose display condition matches the element type of the target virtual element as a target operation control. The terminal displays the target operation control in the any one control display position. In some embodiments, the terminal can determine whether the operation control currently displayed at any one of the control display positions is the same as the target operation control. If they are the same, the terminal continues to display the currently displayed operation control, and if they are different, the terminal switches the currently displayed operation control to the target operation control. Optionally, the display condition is set by a developer, for example, the display condition of a tower key is set to a current target virtual element being a defense tower, and the display condition of a fruit key is set to a current target virtual element being a fruit.

[0071] Specifically, the switching process between tower keys and fruit keys will be described as an example with reference to FIG. 8 and FIG. 9. FIG. 8 is a schematic diagram of the switching process of operation control provided by the embodiment of the present application. Referring to FIG. 8, in response to the start of the game, the terminal may execute step 801 of acquiring position information of a target virtual object, execute a judgment step 802 of judging whether the target virtual object is in a jungle based on the position information, execute a step 803 of determining an element type of a target virtual element if the target virtual object is in the jungle, execute a judgment step 804 of judging whether the target virtual element is a defense tower based on the target virtual element, execute a step 805 of setting a tower key if the target virtual element is a defense tower, and execute a step 806 of setting a fruit key if the target virtual object is not a defense tower. If the target virtual object is not in the jungle, execute a step 807 of determining an element type of an interaction element, execute a judgment step 808 of judging whether the target virtual element is a fruit based on the target virtual element, execute a step 806 of setting a fruit key if the target virtual element is a fruit, and execute a step 805 of setting a tower key if the target virtual object is not a fruit. That is, regardless of whether the target virtual object is in the jungle or not, the terminal needs to determine the target virtual element corresponding to the target virtual object, and determine what operation control to display based on the element type of the target virtual element. Fig. 9 is a schematic diagram of a control display area provided by an embodiment of the present application. Referring to Fig. 9, an area 902 in a control display area 901 is a display area for a tower key and a fruit key. When the target virtual element corresponding to the target virtual object is a defense tower, as shown in Fig. 9(a), a tower key icon may be displayed in the area 902, and when the target virtual element corresponding to the target virtual object is a fruit, as shown in Fig. 9(b), a fruit key icon is displayed in the area 902.

[0072] In the technical means provided by the embodiments of the present application, by obtaining the position information of the target virtual object, different regions in the virtual scene correspond to different virtual elements, so that the element type of the corresponding target virtual element can be determined based on the position of the target virtual object, and further, based on the position information of the target virtual object, the operation control displayed on the operation interface can be automatically switched, and the operation control matched with the region where the target virtual object is located, that is, the operation control matched with the target virtual element corresponding to the target virtual object can be displayed on the operation interface. The above means eliminates the need for the user to manually switch the operation control during operation, so that the complexity of the operation can be effectively reduced and the user experience can be improved. Meanwhile, it is not necessary to display all the operation controls on the operation interface, and it is only necessary to display the operation control related to the current target virtual element, thus solving the problem that a large number of operation controls cannot be arranged due to the limitation of the screen size of the terminal.

[0073] All of the above optional technical means may be combined in any manner to form optional embodiments of the present application, but they will not be described here one by one.

[0074] FIG. 10 is a structural schematic diagram of a display device for virtual scene-based operation control provided by an embodiment of the present application. Referring to FIG. 10, the device includes: an acquisition module 1001 for acquiring position information in a virtual scene of a target virtual object, which is a virtual object controlled by a terminal; a determination module 1002 for determining an element type of a target virtual element corresponding to the target virtual object based on the position information and at least one of a virtual element in the virtual scene; and a display module 1003 for displaying a target manipulation control corresponding to an element type of the target virtual element in a control display area in the virtual scene, the target manipulation control being for controlling the target virtual object to interact with the target virtual element.

[0075] In one possible embodiment, the determination module 1002: determining a position index of an area indicated by the position information based on the position information; deriving a region type of the region from a map index table corresponding to the virtual scene based on the position index, the map index table including a position index of each region in the virtual scene and a region type of each region; The element type of the virtual element corresponding to the region type is determined as the element type of the target virtual element.

[0076] In one possible embodiment, the determination module 1002: Based on the position information, the element type of the virtual element that is closest to the target virtual object among the virtual elements included in the virtual scene is determined as the element type of the target virtual element.

[0077] In one possible embodiment, the determination module 1002: determining a target area within the virtual scene centered on a location indicated by the location information; determining a number of virtual elements of each element type within the target region; The element type that contains the maximum number of virtual elements is determined as the element type of the target virtual element.

[0078] In one possible embodiment, the determination module 1002: determining a target area within the virtual scene centered on a location indicated by the location information; determining an interaction priority for each virtual element within the target region; The element type of the virtual element having the highest interaction priority is determined as the element type of the target virtual element.

[0079] In one possible embodiment, the display module 1003 includes: For any one control display position within the control display area, obtain a candidate operation control corresponding to the any one control display position; Matching the element type of the target virtual element with the display conditions of each candidate operation control; determining a candidate operation control whose display condition matches an element type of the interactable element as the target operation control; The target operation control is displayed at any one of the control display positions.

[0080] In one possible embodiment, the display module 1003 includes: determining whether the operation control currently displayed in the control display position is the same as the target operation control; If they are the same, the currently displayed operation control is continued to be displayed, and if they are different, the currently displayed operation control is switched to the target operation control.

[0081] In one possible embodiment, the acquisition module 1001 includes: In response to a movement operation on the target virtual object, position information of the target virtual object is acquired in real time.

[0082] In one possible embodiment, the acquisition module 1001 includes: determining an area type for the area indicated by the location information; and for performing, in response to the change in the region type, a step of determining an element type of a target virtual element corresponding to the target virtual object based on the position information, at least one of a virtual element in the virtual scene.

[0083] In the device provided by the embodiment of the present application, by obtaining the position information of the target virtual object in the virtual scene, different types of virtual elements appear in different areas in the virtual scene, so that the target virtual element corresponding to the target virtual object when the target virtual object is at the current position can be determined based on the position information and at least one of the virtual elements in the virtual scene. Since different operation controls need to be used when the target virtual object interacts with different types of virtual elements, the terminal can switch the operation control displayed in the control display area in the virtual scene to the target operation control corresponding to the element type of the target virtual element, so that the user does not need to manually switch the operation control when operating the target virtual object to interact with the target virtual element, which can effectively reduce the complexity of the operation and improve the user experience.

[0084] It should be noted that, when the operation control is displayed on the display device of the virtual scene-based operation control provided by the above embodiment, only the division of the above-mentioned functional modules is illustrated and described, but in actual application, the above-mentioned functions can be assigned to different functional modules according to need, that is, the internal structure of the device can be divided into different functional modules to achieve all or part of the above-mentioned functions. In addition, since the display device of the virtual scene-based operation control provided by the above embodiment is based on the same concept as the display method of the virtual scene-based operation control, the specific implementation process thereof is to be referred to in detail in the method embodiment, and will not be repeated here.

[0085] The computer device provided in the above technical means may be realized as a terminal or a server, for example, the computer device includes one or more processors and one or more memories in which at least one program code is stored, the at least one program code is loaded by the one or more processors, Acquire position information in the virtual scene of a target virtual object, which is a virtual object controlled by the terminal; Determine an element type of the target virtual element corresponding to the target virtual object based on the position information and at least one of the virtual elements in the virtual scene; The method is executed to display, in a control display area in the virtual scene, a target manipulation control corresponding to an element type of the target virtual element, for controlling a target virtual object to interact with the target virtual element.

[0086] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining, based on the position information, a position index of an area indicated by the position information; According to the position index, obtain a region type of the region from a map index table that corresponds to the virtual scene and includes a position index of each region in the virtual scene and a region type of each region; A step of determining an element type of a virtual element corresponding to the region type as an element type of a target virtual element is performed.

[0087] In one possible embodiment, the at least one program code is loaded by the one or more processors and executed to determine, based on the position information, an element type of a virtual element included in the virtual scene that is closest to a target virtual object as an element type of the target virtual element.

[0088] In one possible embodiment, the at least one program code is loaded by the one or more processors and includes: determining a target area within the virtual scene centered on a location indicated by the location information; determining the number of virtual elements of each element type within the target region; A step is performed to determine the element type that contains the maximum number of virtual elements as the element type of the target virtual element.

[0089] In one possible embodiment, the at least one program code is loaded by the one or more processors and includes: determining a target area within the virtual scene centered on a location indicated by the location information; determining an interaction priority for each virtual element within the target area; A method is performed to determine the element type of the virtual element with the highest interaction priority as the element type of the target virtual element.

[0090] In one possible embodiment, the at least one program code is loaded by the one or more processors, For any one of the control display positions in the control display area, obtain a candidate operation control corresponding to any one of the control display positions; Matching the element type of the target virtual element with the display conditions of each candidate operation control; determining a candidate operation control whose display condition matches the element type of the interactable element as a target operation control; A target operation control is displayed in any one of the control display positions.

[0091] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining whether a manipulation control currently displayed in a control display location and a target manipulation control are the same; If they are the same, the currently displayed operation control continues to be displayed, and if they are different, the currently displayed operation control is switched to the target operation control.

[0092] In one possible embodiment, the at least one program code is loaded by the one or more processors and executed to obtain position information of a target virtual object in real time in response to a movement operation on the target virtual object.

[0093] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining a region type for a region indicated by the location information; In response to the change in the region type, the method further comprises performing the step of determining an element type of a target virtual element corresponding to the target virtual object based on at least one of the position information, the virtual element in the virtual scene.

[0094] In the following, the computer device is taken as an example for description, and Fig. 11 is a structural schematic diagram of a terminal provided by an embodiment of the present application. Generally, a terminal 1100 includes one or more processors 1101 and one or more memories 1102.

[0095] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be realized in the form of at least one hardware of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array).

[0096] The memory 1102 may include one or more computer readable storage media. The computer readable storage media may be non-transitory. The memory 1102 may include high speed random access memory and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer readable storage media in the memory 1102 is for storing at least one program code that, when executed by the processor 1101, is for implementing a method for displaying a virtual scene-based operation control provided by a method embodiment of the present application.

[0097] In some embodiments, the terminal 1100 may optionally further include a peripheral interface 1103 and at least one peripheral. The processor 1101, the memory 1102, and the peripheral interface 1103 may be connected via a bus or signal lines. Each peripheral may be connected to the peripheral interface 1103 via a bus, signal lines, or a circuit board. Specifically, the peripheral includes at least one of a radio frequency circuit 1104, a display 1105, and a power source 1106.

[0098] The peripheral interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102 .

[0099] The radio frequency circuit 1104 is for transmitting and receiving RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuit 1104 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1104 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals.

[0100] The display 1105 is for displaying a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. If the display 1105 is a touch display, the display 1105 also has the function of collecting touch signals on or above its surface. The touch signals may be input as control signals to the processor 1101 for processing. In this case, the display 1105 may be used to provide virtual buttons and / or a virtual keyboard, also called soft buttons and / or a soft keyboard. The display 1105 may be manufactured from materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc.

[0101] The power source 1106 is for supplying power to each component in the terminal 1100. The power source 1106 may be an AC power source, a DC power source, a primary battery, or a rechargeable battery. When the power source 1106 includes a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may be used to support a fast charging technology.

[0102] Those skilled in the art will appreciate that the structure shown in FIG. 11 is not intended to limit terminal 1100, and that terminal 1100 may include more or fewer components than those shown, may combine certain components, or may employ different component arrangements.

[0103] In the following, the case where the computer device is a server will be described as an example, and FIG. 12 is a structural schematic diagram of a server provided by an embodiment of the present application. The server 1200 may vary relatively widely in terms of layout and performance, and may include one or more processors (Central Processing Units, CPU) 1201 and one or more memories 1202 in which at least one program code is stored. The at least one program code is loaded and executed by the one or more processors 1201 to realize the method provided by each of the above method embodiments. Of course, the server 1200 may have components such as a wired or wireless network interface for input and output, a keyboard, and an input and output interface, and may further include components for realizing the functions of other devices, but they will not be described here repeatedly.

[0104] In an exemplary embodiment, a computer-readable storage medium such as a memory including at least one program code may be further provided, and the at least one program code may be executed by a processor to complete the method for displaying an operation control based on a virtual scene in the above embodiment. For example, the computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0105] In one possible embodiment, the at least one program code is loaded by the one or more processors, Acquire position information in the virtual scene of a target virtual object, which is a virtual object controlled by the terminal; Determine an element type of the target virtual element corresponding to the target virtual object based on the position information and at least one of the virtual elements in the virtual scene; The method is executed to display, in a control display area in the virtual scene, a target manipulation control corresponding to an element type of the target virtual element, for controlling a target virtual object to interact with the target virtual element.

[0106] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining, based on the position information, a position index of an area indicated by the position information; According to the position index, obtain a region type of the region from a map index table that corresponds to the virtual scene and includes a position index of each region in the virtual scene and a region type of each region; A step of determining an element type of a virtual element corresponding to the region type as an element type of a target virtual element is performed.

[0107] In one possible embodiment, the at least one program code is loaded by the one or more processors and executed to determine, based on the position information, an element type of a virtual element included in the virtual scene that is closest to a target virtual object as an element type of the target virtual element.

[0108] In one possible embodiment, the at least one program code is loaded by the one or more processors and includes: determining a target area within the virtual scene centered on a location indicated by the location information; determining the number of virtual elements of each element type within the target region; A step is performed to determine the element type that contains the maximum number of virtual elements as the element type of the target virtual element.

[0109] In one possible embodiment, the at least one program code is loaded by the one or more processors and includes: determining a target area within the virtual scene centered on a location indicated by the location information; determining an interaction priority for each virtual element within the target area; A method is performed to determine the element type of the virtual element with the highest interaction priority as the element type of the target virtual element.

[0110] In one possible embodiment, the at least one program code is loaded by the one or more processors, and for any one control display position within the control display area, obtains a candidate operation control corresponding to the any one control display position; Matching the element type of the target virtual element with the display conditions of each candidate operation control; determining a candidate operation control whose display condition matches the element type of the interactable element as a target operation control; A target operation control is displayed in any one of the control display positions.

[0111] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining whether a manipulation control currently displayed in a control display location and a target manipulation control are the same; If they are the same, the currently displayed operation control continues to be displayed, and if they are different, the currently displayed operation control is switched to the target operation control.

[0112] In one possible embodiment, the at least one program code is loaded by the one or more processors and executed to obtain position information of a target virtual object in real time in response to a movement operation on the target virtual object.

[0113] In one possible embodiment, the at least one program code is loaded by the one or more processors and performs the steps of: determining a region type for a region indicated by the location information; In response to the change in the region type, the method further comprises performing the step of determining an element type of a target virtual element corresponding to the target virtual object based on at least one of the position information, the virtual element in the virtual scene.

[0114] In some embodiments, a computer program or computer program product is further provided that includes at least one program code that, when executed on a computer device, causes the computer device to perform the method for displaying an operation control based on a virtual scene provided by each of the above embodiments, and will not be described again here.

[0115] Those skilled in the art can understand that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by hardware associated with at least one program code, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk, an optical disk, etc.

[0116] The above are only the selectable embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application. [Explanation of symbols]

[0117] 110 Terminal 1 140 Servers 160 Terminal 2

Claims

1. 1. A method for displaying operational controls based on a virtual scene, the method comprising: obtaining position information in a virtual scene of a target virtual object, the target virtual object being a virtual object controlled by the terminal; determining a region type of the region indicated by the location information based on the location information; displaying a target manipulation control in a control display region in the virtual scene that corresponds to an element type of a target virtual element, the element type of the target virtual element corresponding to the region type.

2. The step of determining a region type of the region indicated by the position information based on the position information includes: determining a location index of an area indicated by the location information based on the location information; 2. The method of claim 1, further comprising: obtaining a region type of the region from a map index table corresponding to the virtual scene based on the position index, the map index table including a position index of each region in the virtual scene and a region type of each region.

3. After determining a region type of the region indicated by the location information based on the location information, the method further comprises: The method according to claim 1 , further comprising: determining, based on the position information, an element type of a virtual element that is closest to the target virtual object among virtual elements included in an area indicated by the position information, as an element type of the target virtual element.

4. After determining a region type of the region indicated by the location information based on the location information, the method further comprises: determining a target area in the area indicated by the position information, with the position indicated by the position information as a center; determining a number of virtual elements of each element type within the target region; The method of claim 1 , further comprising: determining an element type that includes a maximum number of virtual elements as the element type of the target virtual element.

5. After determining a region type of the region indicated by the location information based on the location information, the method further comprises: determining a target area in the area indicated by the position information, with the position indicated by the position information as a center; determining an interaction priority for each virtual element within the target area, the interaction priority being preset; The method of claim 1 , further comprising: determining an element type of a virtual element having a highest interaction priority as the element type of the goal virtual element.

6. The step of displaying a target operation control corresponding to an element type of a target virtual element in a control display area in the virtual scene includes: obtaining, for one of the control display positions within the control display area, a candidate operation control that can be displayed at the one of the control display positions; matching an element type of the target virtual element with a display condition of each candidate manipulation control; determining a candidate operation control whose display condition matches an element type of the target virtual element as the target operation control; and displaying the target manipulation control at said one of said control display locations.

7. The step of displaying the target operation control at the control display location includes: determining whether the operational control currently displayed in the control display location is the same as the target operational control; 7. The method of claim 6, further comprising the steps of: continuing to display the currently displayed operational control if they are the same; and switching the currently displayed operational control to the target operational control if they are different.

8. The step of acquiring position information of a target virtual object in a virtual scene includes: The method according to claim 1 , further comprising: acquiring position information of the target virtual object in real time in response to a movement operation on the target virtual object.

9. an acquisition module for acquiring position information in a virtual scene of a target virtual object, the target virtual object being a virtual object controlled by a terminal; a determination module for determining a region type of the region indicated by the location information based on the location information; a display module for displaying a target operation control in a control display region in the virtual scene, the element type of the target virtual element corresponding to the region type; An apparatus comprising:

10. The decision module: determining a position index of an area indicated by the position information based on the position information; obtaining a region type of the region from a map index table corresponding to the virtual scene based on the position index, the map index table including a position index of each region in the virtual scene and a region type of each region; 10. The apparatus of claim 9.

11. The decision module: The device according to claim 9 , which is configured to determine, based on the position information, an element type of a virtual element that is closest to the target virtual object among virtual elements included in an area indicated by the position information, as the element type of the target virtual element.

12. The decision module: determining a target area within the area indicated by the position information, with the position indicated by the position information as a center; determining a number of virtual elements of each element type within the target region; The apparatus of claim 9 , further comprising: determining an element type that includes a maximum number of virtual elements as the element type of the target virtual element.

13. The decision module: determining a target area within the area indicated by the position information, with the position indicated by the position information as a center; determining an interaction priority for each virtual element within the target area, the interaction priority being preset; The device according to claim 9 , for determining an element type of a virtual element having the highest interaction priority as the element type of the target virtual element.

14. A computer device including one or more processors and one or more memories having at least one program code stored therein, the computer device realizing the method for displaying operation controls based on a virtual scene according to any one of claims 1 to 8 by loading and executing the at least one program code by the one or more processors.

15. A computer readable storage medium having stored thereon at least one program code which, when loaded and executed by a processor, implements the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Virtual item displaying method and device and storage medium

    CN108744510A

  • Method and device for controlling virtual object to perform shortcut operation, equipment and medium

    CN110413171A

  • Method for controlling virtual object in virtual scene, computer equipment and storage medium

    CN110743168A

  • Game device and program

    JP2009291426A

  • Game program and system

    JP2018171261A