Virtual Resource Input Control Method, Apparatus, Computer Device, and Storage Medium
The method and apparatus facilitate accurate virtual resource placement in game scenes by using a graphical user interface to display and manipulate a resource indicator, reducing the skill needed for precise input.
Patent Information
- Application Number
- JP2023552232
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2021-07-30
- Filing Date
- 2022-03-21
- Publication Date
- 2025-07-23
- Estimated Expiration
- 2042-03-21
AI Technical Summary
Players face difficulty in accurately inputting virtual resources to specific positions in game scenes due to high skill requirements.
A method and apparatus that utilize a graphical user interface to display a first virtual scene with a virtual object, a second virtual scene with a resource indicator, and allow movement and confirmation of the indicator's position to determine the target input position, enabling accurate placement of virtual resources.
Reduces the skill requirement for players to accurately input virtual resources by providing a visual and interactive mechanism for precise positioning.
Smart Images

Figure 0007712376000001 
Figure 0007712376000002 
Figure 0007712376000003
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on July 30, 2021, with an application number of 202110872438.9 and an invention title of "Method, Apparatus, Computer Device, and Storage Medium for Controlling Virtual Resource Input", and all of its content is incorporated herein by reference.
[0002] This application relates to the field of game technologies, and specifically to a method, apparatus, computer device, and storage medium for controlling virtual resource input.
Background Art
[0003] With the development of science and technology, electronic games that operate depending on electronic device platforms have become important entertainment activities in people's leisure time, such as first-person shooting games and third-person shooting games. To improve the interestingness of games, the use of virtual resources such as virtual props / skills is an important way of playing electronic games, such as throwing smoke bombs and grenades in the virtual scenes of electronic games. However, in electronic games, the skill requirements for players to input virtual resources are high, and it is very difficult for players to accurately input virtual resources to a certain position in the game scene.
Summary of the Invention
Problems to be Solved by the Invention
[0004] Embodiments of this application provide a method, apparatus, computer device, and storage medium for controlling virtual resource input that can enable players in games to accurately input target virtual resources to a certain position in the virtual scene.
Means for Solving the Problems
[0005] According to a first aspect, embodiments of this application are The graphical user interface displays a first virtual scene and a virtual object located in the first virtual scene, and the virtual object is configured to execute a game action in response to a touch operation on the graphical user interface. In response to a use trigger operation on a target virtual resource, the graphical user interface displays a second virtual scene and a resource indicator located in the second virtual scene, and the resource indicator is for visually indicating the input position of the target virtual resource. Controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator. Determining a reference input position of the resource indicator in the second virtual scene in response to a position confirmation command for the resource indicator. Providing a method for controlling the input of a virtual resource, including determining a target input position of the target virtual resource in the first virtual scene based on the reference input position, and inputting the target virtual resource at the target input position in the first virtual scene.
[0006] According to a second aspect, an embodiment of the present application is A first display unit for the graphical user interface to display a first virtual scene and a virtual object located in the first virtual scene, where the virtual object is configured to execute a game action in response to a touch operation on the graphical user interface. A second display unit for the graphical user interface to display a second virtual scene and a resource indicator located in the second virtual scene in response to a use trigger operation on a target virtual resource, where the resource indicator is for visually indicating the input position of the target virtual resource. A moving unit for controlling the resource indicator to move in the second virtual scene in response to a moving operation on the resource indicator, A determining unit for determining a reference input position of the resource indicator in the second virtual scene in response to a position confirmation command on the resource indicator, Further provided is an input device for virtual throwing resources, including an input unit for determining a target input position of the target virtual resource in the first virtual scene based on the reference input position and inputting the target virtual resource to the target input position in the first virtual scene.
[0007] Optionally, the second virtual scene has a scene layout corresponding to the first virtual scene.
[0008] Optionally, the second virtual scene includes a second scene element, and the second scene element is for representing at least some of the first scene elements in the first virtual scene, and the position of the second scene element in the second virtual scene is for representing the position of the first scene element in the first virtual scene.
[0009] Optionally, the device further includes determining a display range in the graphical user interface of the second virtual scene based on the position of the resource indicator in the second virtual scene.
[0010] Optionally, the second display unit further is used to determine an initial display range in the graphical user interface of the second virtual scene based on the position of the virtual object in the first virtual scene when the usage trigger operation occurs.
[0011] Optionally, the second display unit further It is used to determine the initial position of the resource indicator in the second virtual scene based on the position and / or orientation of the virtual object in the first virtual scene when the usage trigger operation occurs.
[0012] Optionally, the second display unit further is used to trigger hiding the first virtual scene in the graphical user interface and displaying a second virtual scene in the graphical user interface.
[0013] Optionally, the second virtual scene is the first virtual scene after hiding a preset virtual object, and the preset virtual object includes one or more of a player virtual character, a non-player virtual character, and / or a virtual item object.
[0014] Optionally, the second display unit further determines a second display area in the graphical user interface for displaying the first virtual scene, and the area range of the second display area is smaller than the area range corresponding to the graphical user interface, and is used to display the second virtual scene by the second display area.
[0015] Optionally, the graphical user interface for displaying the second virtual scene includes a movement control for controlling the resource indicator to move in the second virtual scene, the movement control includes a horizontal movement control and a vertical movement control, and the movement unit further controls the resource indicator to move in the horizontal direction of the second virtual scene in response to a touch operation on the horizontal movement control, and It is used to control the resource indicator to move in the vertical direction of the second virtual scene in response to a touch operation on the vertical movement control.
[0016] Optionally, the moving operation includes a drag operation, and the moving unit further is used to control the resource indicator to move in the second virtual scene in response to the drag operation on the resource indicator in the second virtual scene.
[0017] Optionally, the moving unit further is used to display a transition segment including a second virtual scene that changes when the resource indicator moves.
[0018] Optionally, the resource indicator includes a reference input point and a simulation usage shape. The simulation usage shape is for simulating the rendering shape after being used based on the reference input point when the target virtual resource is at different positions in the first virtual scene. The determination unit further obtains the spatial layout of the second virtual scene during the process of the resource indicator moving, determines the rendering range of the simulation usage shape of the resource indicator based on the spatial layout of the second virtual scene, obtains the reference rendering range of the simulation usage shape, and the height and ground projection coordinates of the reference input point in the second virtual scene in response to a position confirmation command for the resource indicator, determines the position of the reference input point in the second virtual scene based on the height and the ground projection coordinates, It is used to determine the reference input position of the resource indicator in the second virtual scene based on the position of the reference input point in the second virtual scene and the reference rendering range of the simulation usage shape.
[0019] Optionally, the determining unit further determines the input number of the target virtual resource in response to the number setting operation of the target virtual resource, and is used to determine the rendering range of the simulation usage shape of the resource indicator based on the input number of the target virtual resource and the spatial layout of the second virtual scene.
[0020] Optionally, the target virtual resource includes a target input point and a target usage shape, the target usage shape includes the rendering shape after using the target virtual resource at the target input point, and the input unit further obtains the spatial position correspondence relationship between the first virtual scene and the second virtual scene, and determines, in the first virtual scene, the position corresponding to the reference input point as the target input point of the target input point based on the reference input position and the spatial position correspondence relationship, and determines, in the first virtual scene, the rendering range corresponding to the simulation usage shape as the target rendering range of the target usage shape based on the reference input position and the spatial position correspondence relationship, and is used to determine the target input position of the target virtual resource in the first virtual scene based on the target input point and the target rendering range.
[0021] Optionally, the device further displays a prop cancellation area in response to a usage trigger operation on the target virtual resource. It is used to display the first virtual scene in response to a trigger operation on the prop cancellation area.
[0022] Optionally, the graphical user interface for displaying the first virtual scene includes an attack control, and the attack control is for instructing the virtual object to launch an attack in the first virtual scene. The confirmation unit further changes the attack control to a position confirmation control of the resource indicator, and is used to generate a position confirmation command for the resource indicator in response to a touch operation on the position confirmation control.
Advantages of the Invention
[0023] Embodiments of the present application provide a method, apparatus, computer device, and storage medium for controlling the input of virtual resources. When a player attempts to input a target virtual resource at a target input position in a first virtual scene, the player performs a usage trigger operation on the target virtual resource. In the second virtual scene that appears, the player can move the resource indicator until it reaches a reference input position corresponding to the target input position in the second virtual scene. Thereby, the terminal determines the target input position in the first virtual scene based on the reference input position and can directly input the target virtual resource at the target input position. The player can accurately input the target virtual resource at the target input position in the game scene, and the requirement for the player's skill in inputting virtual resources can be reduced.
Brief Description of the Drawings
[0024]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
DETAILED DESCRIPTION OF THE INVENTION
[0025] Hereinafter, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts shall fall within the protection scope of the present invention.
[0026] Embodiments of the present application provide a method, apparatus, computer device, and storage medium for input control of virtual resources. Specifically, the method for input control of virtual resources in the embodiments of the present application may be executed by a computer device, where the computer device may be a device such as a terminal or a server. The terminal may be a terminal device such as a smartphone, tablet computer, notebook computer, touch screen, game console, personal computer (PC), personal digital assistant (PDA), etc., and the terminal may further include a client, and the client may be a game application client, a browser client equipped with a game program, or an instant messaging client, etc. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. Furthermore, it may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network services, and big data and artificial intelligence platforms.
[0027] For example, when the input control method of the virtual resource runs on a terminal, a game application program is stored in the terminal device and is used to present a virtual scene in the graphical user interface. For example, the terminal device downloads, installs, and runs the game application program to display a virtual scene in the graphical user interface. The method by which the terminal device provides the virtual scene to the user may include a plurality of ways. For example, it may be rendered and displayed on the display screen of the terminal device, or the virtual scene may be presented by holographic projection. For example, the terminal device may include a touch screen and a processor. The touch screen is for presenting the virtual scene and receiving operation instructions generated by the user acting on the graphical user interface. The processor is for running the game, generating a game screen, responding to the operation instructions, and further controlling the display of the graphical user interface and the virtual scene on the touch screen.
[0028] For example, when the input control method of the virtual resource runs on a server, it may be a cloud game. A cloud game refers to a game method based on cloud computing. In the operation mode of a cloud game, the main body that runs the game application program is separated from the main body that presents the game screen. The storage and operation of the input control method of the virtual resource are completed on the cloud game server. However, the presentation of the game screen is completed on the cloud game client. The cloud game client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud game client may be a display device with a data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a palmtop computer, a personal digital assistant, etc. However, the terminal device for performing game data processing is the cloud game server on the cloud side. When playing a game, the user operates the cloud game client to send an operation instruction to the cloud game server. The cloud game server runs the game based on the operation instruction, encodes and compresses data such as the game screen, and returns it to the cloud game client via the network. Finally, the cloud game client decrypts it and outputs the game screen.
[0029] Referring to FIG. 1, FIG. 1 is a schematic diagram of a virtual resource input control device according to an embodiment of the present application. The system may include at least one terminal 101 and at least one game server 102. The terminal 101 owned by the user may be connected to the game servers 102 of different games via different networks 103. For example, the network may be a wireless network or a wired network. The wireless network may be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. The terminal is for displaying a first virtual scene displayed by a graphical user interface and a virtual object located in the first virtual scene. The virtual object is configured to execute a game action in response to a touch operation on the graphical user interface, and in response to a use trigger operation on the target virtual resource, display, by the graphical user interface, a second virtual scene and a resource indicator located in the second virtual scene. Here, the resource indicator is for visually indicating the input position of the target virtual resource. In response to a movement operation on the resource indicator, the resource indicator is controlled to move in the second virtual scene. In response to a position confirmation command on the resource indicator, the reference input position of the resource indicator in the second virtual scene is determined, the target input position of the target virtual resource in the first virtual scene is determined based on the reference input position, and the target virtual resource is input at the target input position in the first virtual scene.
[0030] The game server is for sending a graphical user interface to the terminal.
[0031] Details will be described below. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.
[0032] In this embodiment, an explanation will be given from the perspective of the virtual resource input control device. Specifically, the virtual resource input control device may be integrated into a terminal device, and the terminal device may include devices such as smartphones, notebook computers, tablet computers, and personal computers.
[0033] The embodiments of this application provide a virtual resource input control method, which may be executed by a processor of a terminal. As shown in FIG. 2, the specific flow of the virtual resource input control method mainly includes steps 201 to 205, and the detailed description is as follows.
[0034] Step 201, display a first virtual scene and a virtual object located in the first virtual scene through a graphical user interface, and the virtual object is configured to execute a game action in response to a touch operation on the graphical user interface.
[0035] In an embodiment of the present application, the graphical user interface for displaying the first virtual scene is a game screen displayed on the display screen of the terminal after the terminal executes a game application program. In the first virtual scene of the graphical user interface for displaying the first virtual scene, there may be game props and / or a plurality of virtual objects (such as buildings, trees, mountains, rivers, etc.) included in constructing the game world environment. The arrangement positions of virtual objects such as buildings, mountains, rivers, and walls in the first virtual scene constitute the spatial layout of the first virtual scene. Note that the game corresponding to the game application program may be a first-person shooting game, a multiplayer online role-playing game, or the like. For example, in the schematic diagram of the graphical user interface for displaying the first virtual scene shown in FIG. 3, there may be included a virtual building 308, an obstacle 306 composed of four virtual containers, and an obstacle 307 composed of five containers. The graphical user interface for displaying the first virtual scene may further include a movement control 301 for controlling the movement of the virtual object, a resource control 305 for triggering the use trigger operation of the target virtual resource, an attack control 303 for controlling the virtual object to attack, and other skill controls 304.
[0036] In an embodiment of the present application, the virtual object may be a game character operated by a player through a game application program. For example, the virtual object may be a virtual person (such as a dummy person or an anime character), a virtual animal, or the like. The game actions of the virtual object in the first virtual scene include at least one of adjustment of body posture, creeping, walking, running, riding, flying, jumping, driving, picking, shooting, attacking, throwing, and release of skills, but are not limited thereto.
[0037] Step 202, in response to a usage trigger operation on a target virtual resource, display, by a graphical user interface, a second virtual scene and a resource indicator located in the second virtual scene, where the resource indicator is for visually indicating the input position of the target virtual resource.
[0038] In the embodiments of the present application, in order to facilitate controlling a virtual object such that a player performs a long-range attack on a distant enemy, virtual resources can be set in the game. The virtual resources may include items and skills, and the virtual resources may be resources that need to be thrown, such as a focused bomb, a focused missile, a smoke bomb, etc. The player can control the virtual object to throw a focused bomb at a location within the field of view, thereby causing continuous explosions within the range selected by the player, and can quickly defeat many players. The virtual resources may be directly input by the virtual object or may be input by a virtual carrier.
[0039] In the embodiments of the present application, the usage trigger operation on the target virtual resource is an operation required when the virtual object uses the target virtual resource in the virtual scene. The usage trigger operations for different virtual resources may be the same or different. The usage trigger operation may be an operation such as a click, a long press, and / or a double click.
[0040] In the embodiments of the present application, the graphical user interface for displaying the first virtual scene may include a resource trigger control. When the player performs a touch operation on the resource trigger control, the usage trigger operation on the target virtual resource can be triggered. Different virtual resources may correspond to the same resource trigger control or may correspond to different resource trigger controls.
[0041] In an embodiment of the present application, when a player performs a usage trigger operation, a second virtual scene is displayed. The second virtual scene has a scene layout corresponding to the first virtual scene, and may imitate all virtual entities such as buildings, walls, mountains, and rivers in the first virtual scene by using virtual reality entities. The layout of each virtual reality entity in the second virtual scene is the same as the layout of the corresponding virtual entity in the first virtual scene. Note that the shape of the virtual reality entity in the second virtual scene is the same as the shape of the corresponding virtual entity in the first virtual scene. However, the surface of the virtual entity in the first virtual scene has the same color, texture, etc. as the corresponding object in real life, while the virtual reality entity in the second virtual scene does not have the color, texture, etc. of the virtual entity to be simulated, and the second virtual scene is formed based on the virtual reality entity. The relative positional relationship of each virtual reality entity in the second virtual scene is the same as the relative positional relationship between each virtual entity in the first virtual scene. The size of each virtual reality entity in the second virtual scene may be the same as the corresponding virtual entity in the first virtual scene, or may be reduced or enlarged in proportion to the corresponding virtual entity in the first virtual scene.
[0042] In an embodiment of the present application, the second virtual scene includes a second scene element. The second scene element is for representing at least some of the first scene elements in the first virtual scene. The position of the second scene element in the second virtual scene is for representing the position of the first scene element in the first virtual scene. That is, the second scene element and the first scene element correspond one-to-one. The position of the second scene element in the second virtual scene is the same as the position of the corresponding first scene element in the first virtual scene. The second scene element and the corresponding first scene element have the same attributes such as shape and size. Here, the first scene element and the second scene element may be virtual buildings, virtual walls, virtual rivers, etc. in the virtual scene.
[0043] In an embodiment of the present application, the display range in the graphical user interface of the second virtual scene is bound to the resource indicator. When the resource indicator moves in the second virtual scene, the display range in the graphical user interface of the second virtual scene changes as the resource indicator moves. Therefore, the method further includes determining the display range in the graphical user interface of the second virtual scene based on the position of the resource indicator in the second virtual scene.
[0044] In an embodiment of the present application, since the display range in the graphical user interface of the second virtual scene changes as the resource indicator moves in the second virtual scene, it is necessary to first determine the initial display range of the second virtual scene before the step of "displaying the second virtual scene and the resource indicator located in the second virtual scene by the graphical user interface". Specifically, it may be to determine the initial display range in the graphical user interface of the second virtual scene based on the position of the virtual object in the first virtual scene when the usage trigger operation occurs.
[0045] In one embodiment of the present application, "displaying the second virtual scene by the graphical user interface" in the above step may be to trigger the graphical user interface to make the first virtual scene non-displayed and display the second virtual scene in the graphical user interface.
[0046] In an embodiment of the present application, the second virtual scene may not be a newly added virtual scene independent of the first virtual scene, but may be obtained by simplifying the first virtual scene. Specifically, the second virtual scene may be the first virtual scene after hiding preset virtual objects, and the preset virtual objects may include one or more of player virtual characters, non-player virtual characters, and / or virtual prop objects. Here, the player virtual character may be a virtual object currently operated by the player and / or a player virtual character operated by another player participating in the game. The non-player virtual character may be a non-player virtual character operated by the terminal rather than a player participating in the game. The virtual prop object may be a virtual object that exerts an auxiliary effect on the player virtual character in the game, such as an attack weapon, a riding animal, etc.
[0047] In an embodiment of the present application, the first virtual scene and the second virtual scene may be simultaneously displayed on the graphical user interface. At this time, the step of "displaying the second virtual scene by the graphical user interface" may be to determine the second display in the graphical user interface for displaying the first virtual scene, and the area range of the second display area is smaller than the area range corresponding to the graphical user interface, and the second virtual scene may be displayed by the second display area. Note that the position, size, etc. of the second display area in the graphical user interface are not limited and can be flexibly set according to the actual situation.
[0048] In an embodiment of the present application, the resource indicator is for indicating the reference input position of the target virtual resource in the second virtual scene. The resource indicator may be the same as the shape and size of the target virtual resource, or may be different from the shape and size of the target virtual resource.
[0049] In an embodiment of the present application, the graphical user interface for displaying the first virtual scene includes virtual objects located in the first virtual scene. The graphical user interface for displaying the second virtual scene may not include virtual objects located in the second virtual scene. Thereby, when setting the target input position of the target virtual resource by the resource indicator, the position of the virtual object of the enemy in the second virtual scene can be avoided from being seen, ensuring the fairness of the game.
[0050] For example, as shown in FIG. 4, in a schematic diagram of a graphical user interface for displaying a second virtual scene, which is displayed in response to a use trigger operation, the second virtual scene may include a virtual reality entity 408 formed based on a virtual building 308, a virtual reality entity 407 generated based on an obstacle 306, a virtual reality entity 407 generated based on an obstacle 307, and a resource indicator 409. The graphical user interface for displaying the second virtual scene further includes a horizontal movement control 401 for controlling the resource indicator 409 to move horizontally in the second virtual scene, vertical movement controls 403 and 404 for controlling the resource indicator 409 to move vertically in the second virtual scene, a resource control 406 for triggering a use trigger operation of the target virtual resource, a cancel control 402 for canceling the current target virtual resource input, and a position confirmation control 405 for confirming and generating a position confirmation command.
[0051] Step 203: In response to a movement operation on the resource indicator, control the resource indicator to move in the second virtual scene.
[0052] In an embodiment of the present application, the player can move the resource indicator by operating a movement control, and a graphical user interface for displaying a second virtual scene includes a movement control for controlling the resource indicator to move in the second virtual scene. The movement control includes a horizontal movement control and a vertical movement control. In this case, "controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator" in step 203 above is controlling the resource indicator to move in the horizontal direction of the second virtual scene in response to a touch operation on the horizontal movement control, or it may be controlling the resource indicator to move in the vertical direction of the second virtual scene in response to a touch operation on the vertical movement control.
[0053] In an embodiment of the present application, the graphical user interface for displaying the first virtual scene may include an object movement control for controlling the virtual object to move in the first virtual scene. After displaying the graphical user interface of the second virtual scene in response to a use trigger operation on the target virtual resource, the object movement control in the graphical user interface for displaying the first virtual scene can be changed to a movement control for moving the resource indicator, thereby realizing that after generating the second virtual scene, the movement of the virtual object cannot be executed, and only the movement of the resource indicator can be executed.
[0054] In an embodiment of the present application, the player can also move the resource indicator by directly dragging the resource indicator on the screen of the terminal with a finger or a mouse pointer, etc. In this case, the movement operation includes a drag operation. "Controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator" in step 203 above is In the second virtual scene, in response to a drag operation on the resource indicator, the resource indicator may be controlled to move in the second virtual scene.
[0055] In an embodiment of the present application, in order to better determine the final reference input position of the resource indicator in the second virtual scene based on the spatial layout of the second virtual scene, when moving the resource indicator, the process of change of the second virtual scene may be displayed. In this case, after "controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator" in step 203 above, it may include displaying a transition segment including the second virtual scene that changes when the resource indicator moves.
[0056] In an embodiment of the present application, when the player triggers a movement operation on the resource indicator, the resource indicator moves in the second virtual scene. Before the player executes a movement operation on the resource indicator, it is necessary to determine the position of the resource indicator in the initial display range of the second virtual scene. Specifically, based on the position and / or orientation of the virtual object in the first virtual scene when the use trigger operation occurs, the initial position of the resource indicator in the second virtual scene may be determined.
[0057] In an embodiment of the present application, during the process of game operation, the terminal may load the first virtual scene and the second virtual scene simultaneously. Before the player performs a usage trigger operation, the first virtual scene is displayed on the graphical user interface. When the player performs a usage trigger operation on the target virtual resource, the terminal can make the first virtual scene non-displayed on the graphical user interface and display the second virtual scene on the graphical user interface. When the terminal determines the initial position of the resource indicator in the initial display range of the second virtual scene, it first obtains the spatial coordinates (x, y, z) of the virtual object in the first virtual scene, and after displaying the second virtual scene on the graphical user interface, it may determine the spatial coordinates of the reference input point of the resource indicator in the second virtual scene. It may also be a combination of the spatial coordinates (x, y, z) of the virtual object in the first virtual scene and the offset amounts (xd, yd, zd) of the first virtual scene and the second virtual scene, that is, the initial position (x1, y1, z1) of the resource indicator = (x, y, z) + (xd, yd, zd). Subsequently, the player operates the resource indicator in the second virtual scene. Here, the offset amounts of the first virtual scene and the second virtual scene may be set to 0, or may be flexibly set according to the actual situation.
[0058] Step 204: In response to the position confirmation command for the resource indicator, determine the reference input position of the resource indicator in the second virtual scene.
[0059] In the embodiments of the present application, in order for the player to better set the target virtual resource according to the actual game situation at the place where it is useful for the actual game situation, the resource indicator may include a reference input point and a simulation usage shape. Here, the simulation usage shape is for simulating the rendering shape after being used based on the reference input point when the target virtual resource is at different positions in the first virtual scene. Thereby, the player can view the rendering effect after using the target virtual resource based on the resource indicator in the second virtual scene. Furthermore, based on the influence of the rendering effect of the resource indicator on the actual game situation, the reference input position of the resource indicator in the second virtual scene can be adjusted. In this case, "determining the reference input position of the resource indicator in the second virtual scene in response to the position confirmation command for the resource indicator" in step 204 above is obtaining the spatial layout of the second virtual scene during the process of the resource indicator moving, determining the rendering range of the simulation usage shape of the resource indicator based on the spatial layout of the second virtual scene, obtaining the reference rendering range of the simulation usage shape, and the height and ground projection coordinates of the reference input point in the second virtual scene in response to the position confirmation command for the resource indicator, determining the position of the reference input point in the second virtual scene based on the height and the ground projection coordinates, It may also be to determine the reference input position of the resource indicator in the second virtual scene based on the position of the reference input point in the second virtual scene and the reference rendering range of the simulation usage shape.
[0060] In an embodiment of the present application, during the process of the resource indicator moving, along with changes in the spatial layout of the second virtual scene and changes in the height of the resource indicator in the second virtual scene, etc., the rendering range of the simulated usage shape of the resource indicator also changes. For example, when the target virtual resource is an e-cigarette cartridge, the rendering range of the smoke after using the e-cigarette cartridge changes along with the wall in the first virtual environment and the height of the e-cigarette cartridge insertion point in the first virtual scene. Therefore, in order to enable the target virtual resource to exert a more beneficial effect on the actual game situation in the first virtual scene, it is necessary to determine the reference insertion position of the resource indicator in the second virtual scene based on the reference insertion point and the simulated usage shape of the resource indicator.
[0061] In an embodiment of the present application, due to the difference in the number of target virtual resources input at one target input position, the target rendering range after using the target virtual resources is different. Therefore, based on the number of target virtual resources to be installed, the rendering range of the simulated usage shape of the resource indicator in the second virtual scene may be determined. In this case, before the step of "determining the shape of the simulated usage shape of the resource indicator based on the spatial layout of the second virtual scene", it may further include determining the number of target virtual resources input in response to the operation of setting the number of target virtual resources. After determining the number of target virtual resources input at the target input position, the above step of "determining the rendering range of the simulated usage shape of the resource indicator based on the spatial layout of the second virtual scene" may include determining the rendering range of the simulated usage shape of the resource indicator based on the number of target virtual resources input and the spatial layout of the second virtual scene.
[0062] In an embodiment of the present application, in order to enable a player to control a virtual object that is operated to attack other virtual objects that are enemies, an attack control may be installed on a graphical user interface that displays a first virtual scene. The attack control is for instructing the virtual object to launch an attack in the first virtual scene. When determining the reference input position of the resource indicator in the second virtual scene, for the sake of game fairness, there may be no other virtual resources that are enemies in the second virtual scene. At this time, the attack control on the graphical user interface that displays the first virtual scene does not function. In order to simplify the icon installation of the graphical user interface that displays the second virtual scene, the attack control may be changed to a position determination control of the resource indicator. At this time, before the step of "determining the reference input position of the resource indicator in the second virtual scene in response to the position confirmation command for the resource indicator", changing the attack control to the position determination control of the resource indicator and generating a position confirmation command for the resource indicator in response to a touch operation on the position determination control are further included.
[0063] For example, in the schematic diagram shown in FIG. 5 where the reference input position is in the second virtual scene, when the resource indicator stops moving in the second virtual scene, the reference input position of the resource indicator in the second virtual scene is the position where the resource indicator 501 shown in FIG. 5 is located.
[0064] Step 205: Determine the target input position of the target virtual resource in the first virtual scene based on the reference input position, and input the target virtual resource at the target input position in the first virtual scene.
[0065] In the embodiments of the present application, the target virtual resource includes a target input point and a target usage shape. The target usage shape includes a rendering shape after using the target virtual resource at the target input point. After determining the input position of the reference input point of the resource indicator and the simulation usage shape in the second virtual scene, the step of "switching the graphical user interface for displaying the second virtual scene to the graphical user interface for displaying the first virtual scene and determining the target input position of the target virtual resource in the first virtual scene based on the reference input position" is obtaining the spatial position correspondence relationship between the first virtual scene and the second virtual scene, determining, in the first virtual scene, the position corresponding to the reference input point as the target input point of the target input point based on the reference input position and the spatial position correspondence relationship, determining, in the first virtual scene, the rendering range corresponding to the simulation usage shape as the target rendering range of the target usage shape based on the reference input position and the spatial position correspondence relationship, It may also be to determine the target input position of the target virtual resource in the first virtual scene based on the target input point and the target rendering range.
[0066] In an embodiment of the present application, the spatial position correspondence relationship is the correspondence relationship between each spatial point in the first virtual scene and each spatial point in the second virtual scene. Determining the rendering range corresponding to the simulation usage shape in the first virtual scene may be to determine the key points constituting the simulation usage shape or the corresponding points in the first virtual scene of all the points constituting the simulation usage shape, and then based on the determined key points of the correspondence, determine the target rendering range of the target virtual resource in the first virtual scene. For example, FIG. 6 is a schematic diagram of inputting a target virtual resource in the first virtual scene. Based on the reference input position and the reference rendering range of the resource indicator 501 shown in FIG. 5, the target input position 601 of the target virtual resource in the first virtual scene shown in FIG. 6 is determined.
[0067] In an embodiment of the present application, after determining the target input point of the target virtual resource in the first virtual scene and the target rendering range generated by using the target virtual resource at the target input point, the target rendering range after using the target virtual resource may be directly rendered at the target input position.
[0068] In an embodiment of the present application, after the player triggers the usage trigger operation of the target virtual resource and determines, the player may cancel the usage of the target virtual resource in the first virtual scene between the determined reference input positions of the resource indicator. At this time, the specific method may be to display a prop cancellation area in response to the usage trigger operation for the target virtual resource, and change the graphical user interface that displays the second virtual scene in response to the trigger operation for the prop cancellation area to the graphical user interface that displays the first virtual scene.
[0069] In the embodiments of the present application, there are no restrictions on the display position and display shape of the tool cancellation area in the graphical user interface for displaying the second virtual scene, and they can be flexibly set according to the actual situation.
[0070] In the embodiments of the present application, in response to the use trigger operation of the target virtual resource, when displaying the graphical user interface for displaying the second virtual scene including the second virtual scene, a plurality of resource indicators may be generated at once in the second virtual scene. After moving each resource indicator and determining the reference input position of each resource indicator, a position determination command is generated, whereby the target input positions of a plurality of target virtual resources are determined collectively, and target virtual resources are input and used at the plurality of target input positions.
[0071] All of the above technical solutions may optionally be combined to form alternative embodiments of the present application, and the description thereof is omitted here.
[0072] According to the virtual resource input control method according to the embodiments of the present application, when a player attempts to input a target virtual resource at the target input position in the first virtual scene, the player performs a use trigger operation of the target virtual resource, and in the second virtual scene having the same spatial layout as the first virtual scene, the resource indicator can be moved until it reaches the reference input position corresponding to the first virtual scene in the second virtual scene. Thereby, the terminal determines the target input position in the first virtual scene based on the reference input position, and can directly input the target virtual resource at the target input position. The player can accurately input the target virtual resource at the target input position in the game scene, and can reduce the skill requirements for the player's virtual resource input.
[0073] Referring to FIG. 7, FIG. 7 is another flowchart of the virtual resource input control method according to the embodiments of the present application. The specific flow of the method may be as follows.
[0074] Step 701: Display a first virtual scene and a virtual object located in the first virtual scene through a graphical user interface.
[0075] For example, the graphical user interface that displays the first virtual scene is a game screen displayed on the display screen of the terminal after the terminal executes a game application program. In the first virtual scene of the graphical user interface that displays the first virtual scene, there may be game props and / or a plurality of virtual objects (such as buildings, trees, mountains, rivers, etc.) included in constructing the game world environment. The arrangement positions of virtual objects such as buildings, mountains, rivers, and walls in the first virtual scene constitute the spatial layout of the first virtual scene.
[0076] Step 702: In response to a usage trigger operation on a target virtual resource, display a second virtual scene and a resource indicator located in the second virtual scene through a graphical user interface.
[0077] For example, when the player performs a usage trigger operation, a second virtual scene can be obtained by simplifying based on the first virtual scene, and thereby the second virtual scene is displayed.
[0078] Step 703: In response to a trigger operation on a movement control in the graphical user interface that displays the second virtual scene, control the resource indicator to move in the second virtual scene.
[0079] For example, the movement control includes a horizontal movement control and a vertical movement control. In response to a touch operation on the horizontal movement control, move the resource indicator in the horizontal direction of the second virtual scene, and in response to a touch operation on the vertical movement control, move the resource indicator in the vertical direction of the second virtual scene.
[0080] In step 704, during the process of the resource indicator moving, based on the spatial layout of the second virtual scene, determine the rendering range of the simulated usage shape of the resource indicator.
[0081] For example, during the process of touching the movement control to move the resource indicator, obtain the spatial layout of the second virtual scene in real time, and based on the spatial layout of the second virtual scene, determine the rendering range of the simulated usage shape of the resource indicator.
[0082] In step 705, in response to the position confirmation instruction for the resource indicator, obtain the reference rendering range of the simulated usage shape and the position of the reference input point in the second virtual scene.
[0083] For example, in response to the position confirmation instruction for the resource indicator, obtain the reference rendering range of the simulated usage shape, and the height and ground projection coordinates of the reference input point in the second virtual scene, and based on the height and ground projection coordinates, determine the position of the reference input point in the second virtual scene.
[0084] In step 706, based on the position of the reference input point in the second virtual scene and the reference rendering range of the simulated usage shape, determine the reference input position of the resource indicator in the second virtual scene.
[0085] In step 707, based on the reference input position, determine the target input position of the target virtual resource in the first virtual scene, and input the target virtual resource at the target input position in the first virtual scene.
[0086] For example, obtain the spatial position correspondence relationship between the first virtual scene and the second virtual scene, switch the graphical user interface for displaying the second virtual scene to the graphical user interface for displaying the first virtual scene, and based on the spatial position correspondence relationship and the reference input position, determine the target input position of the target virtual resource in the first virtual scene, and input the target virtual resource at the target input position of the first virtual scene.
[0087] All of the above technical solutions may optionally be combined to form alternative embodiments of the present application, and the description thereof is omitted here.
[0088] Regarding the method for controlling the input of virtual resources according to the embodiments of the present application, when the player attempts to input a target virtual resource at the target input position in the first virtual scene, the player performs a usage trigger operation on the target virtual resource, and in the second virtual scene having the same spatial layout as the first virtual scene, the resource indicator can be moved until reaching the reference input position corresponding to the first virtual scene in the second virtual scene. Thereby, the terminal determines the target input position in the first virtual scene based on the reference input position, and can directly input the target virtual resource at the target input position. The player can accurately input the target virtual resource at the target input position in the game scene, and can reduce the skill requirements for the player's virtual resource input.
[0089] To better implement the method for controlling the input of virtual resources according to the embodiments of the present application, the embodiments of the present application further provide an apparatus for controlling the input of virtual resources. Referring to FIG. 8, FIG. 8 is a schematic structural diagram of an apparatus for controlling the input of virtual resources according to the embodiments of the present application. The apparatus for controlling the input of virtual resources may include a first display unit 801, a second display unit 802, a moving unit 803, a determining unit 804, and an input unit 805.
[0090] Here, the first display unit 801 is for displaying, via a graphical user interface, a first virtual scene and virtual objects located in the first virtual scene. The virtual objects are configured to execute game actions in response to touch operations on the graphical user interface. The second display unit 802 is for displaying, via a graphical user interface, a second virtual scene and a resource indicator located in the second virtual scene in response to a usage trigger operation on a target virtual resource. Here, the resource indicator is for visually indicating the input position of the target virtual resource. The movement unit 803 is for controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator. The confirmation unit 804 is for determining the reference input position of the resource indicator in the second virtual scene in response to a position confirmation command on the resource indicator. The input unit 805 is for determining the target input position of the target virtual resource in the first virtual scene based on the reference input position and for inputting the target virtual resource at the target input position in the first virtual scene.
[0091] Optionally, the second virtual scene has a scene layout corresponding to the first virtual scene.
[0092] Optionally, the second virtual scene includes second scene elements. The second scene elements are for representing at least some of the first scene elements in the first virtual scene. The position of the second scene elements in the second virtual scene is for representing the position of the first scene elements in the first virtual scene.
[0093] Optionally, the device Further including determining a display range in the graphical user interface of the second virtual scene based on the position of the resource indicator in the second virtual scene.
[0094] Optionally, the second display unit 802 is further Used to determine an initial display range in the graphical user interface of the second virtual scene based on the position of the virtual object in the first virtual scene when a usage trigger operation occurs.
[0095] Optionally, the second display unit 802 is further Used to determine an initial position of the resource indicator in the second virtual scene based on the position and / or orientation of the virtual object in the first virtual scene when a usage trigger operation occurs.
[0096] Optionally, the second display unit 802 is further Used to trigger hiding the first virtual scene in the graphical user interface and displaying the second virtual scene in the graphical user interface.
[0097] Optionally, the second virtual scene is the first virtual scene after hiding a preset virtual object, and the preset virtual object includes one or more of a player virtual character, a non-player virtual character, and / or a virtual item object.
[0098] Optionally, the second display unit 802 is further Determining a second display in the graphical user interface for displaying the first virtual scene, and the area range of the second display area is smaller than the area range corresponding to the graphical user interface, And used to display the second virtual scene by the second display area.
[0099] Optionally, the graphical user interface for displaying the second virtual scene includes movement controls for controlling the resource indicator to move in the second virtual scene. The movement controls include a horizontal movement control and a vertical movement control. The movement unit 803 further is used to control the resource indicator to move in the horizontal direction of the second virtual scene in response to a touch operation on the horizontal movement control, and is used to control the resource indicator to move in the vertical direction of the second virtual scene in response to a touch operation on the vertical movement control.
[0100] Optionally, the movement operation includes a drag operation. The movement unit 803 further is used to control the resource indicator to move in the second virtual scene in response to a drag operation on the resource indicator in the second virtual scene.
[0101] Optionally, the movement unit 803 further is used to display a transition segment including the second virtual scene that changes when the resource indicator moves.
[0102] Optionally, the resource indicator includes a reference input point and a simulation usage shape. The simulation usage shape is for simulating the rendering shape after being used based on the reference input point when the target virtual resource is at different positions in the first virtual scene. The confirmation unit 804 further obtains the spatial layout of the second virtual scene during the process of the resource indicator moving, and determines the rendering range of the simulation usage shape of the resource indicator based on the spatial layout of the second virtual scene. In response to the position confirmation command for the resource indicator, obtaining the reference rendering range of the simulation usage shape and the height and ground projection coordinates of the reference input point in the second virtual scene, Based on the height and the ground projection coordinates, determining the position of the reference input point in the second virtual scene, It is used to determine the reference input position of the resource indicator in the second virtual scene based on the position of the reference input point in the second virtual scene and the reference rendering range of the simulation usage shape.
[0103] Optionally, the determination unit 804 further In response to the number setting operation of the target virtual resource, determining the input number of the target virtual resource, It is used to determine the rendering range of the simulation usage shape of the resource indicator based on the input number of the target virtual resource and the spatial layout of the second virtual scene.
[0104] Optionally, the target virtual resource includes a target input point and a target usage shape. The target usage shape includes the rendering shape after using the target virtual resource at the target input point. The input unit 805 further Obtaining the spatial position correspondence relationship between the first virtual scene and the second virtual scene, Based on the reference input position and the spatial position correspondence relationship, in the first virtual scene, determining the position corresponding to the reference input point as the target input point of the target input point, Based on the reference input position and the spatial position correspondence relationship, in the first virtual scene, determining the rendering range corresponding to the simulation usage shape as the target rendering range of the target usage shape, It is used to determine the target input position of the target virtual resource in the first virtual scene based on the target input point and the target rendering range.
[0105] Optionally, the apparatus further is used to display a tool cancellation area in response to a usage trigger operation on a target virtual resource, and is used to display a first virtual scene in response to a trigger operation on the tool cancellation area.
[0106] Optionally, the graphical user interface for displaying the first virtual scene includes an attack control, and the attack control is for instructing a virtual object to launch an attack in the first virtual scene. The confirmation unit 804 further is used to change the attack control to a position confirmation control of a resource indicator, and is used to generate a position confirmation command of the resource indicator in response to a touch operation on the position confirmation control.
[0107] All of the above technical solutions may be arbitrarily combined to form alternative embodiments of the present application, which are not described herein for the sake of brevity.
[0108] Regarding the virtual resource input control device according to the embodiment of the present application, when a player attempts to input a target virtual resource at a target input position in a first virtual scene, the player performs a usage trigger operation on the target virtual resource, and in a second virtual scene having the same spatial layout as the first virtual scene, the resource indicator can be moved until reaching a reference input position corresponding to the first virtual scene in the second virtual scene. Thereby, the terminal determines the target input position in the first virtual scene based on the reference input position, and can directly input the target virtual resource at the target input position. The player can accurately input the target virtual resource at the target input position in the game scene, and the requirement for the player's skill in virtual resource input can be reduced.
[0109] Correspondingly, the embodiments of the present application further provide a computer device, which may be a terminal, and the terminal may be a terminal device such as a smartphone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer, a personal digital assistant, etc. As shown in FIG. 9, FIG. 9 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 900 includes a processor 901 serving as one or more processing cores, a memory 902 being one or more computer-readable storage media, and a computer program stored in the memory 902 and executable on the processor. Here, the processor 901 and the memory 902 are electrically connected. As can be understood by those skilled in the art, the structure of the computer device shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than the number of components shown in the figure, or a combination of some components, or a different arrangement of components.
[0110] The processor 901 is the control center of the computer device 900, and is connected to each part of the computer device 900 through various interfaces and lines, runs or loads the software programs and / or modules stored in the memory 902, and calls the data stored in the memory 902, and monitors the entire computer device 900 by executing various functions of the computer device 900 and processing the data.
[0111] In the embodiments of the present application, the processor 901 in the computer device 900 loads instructions corresponding to the processes of one or more application programs into the memory 902 according to the following steps, and executes the application programs stored in the memory 902 by the processor 901, thereby realizing various functions.
[0112] The graphical user interface displays a first virtual scene and a virtual object located in the first virtual scene. The virtual object is configured to execute game actions in response to a touch operation on the graphical user interface. In response to a usage trigger operation on a target virtual resource, the graphical user interface displays a second virtual scene and a resource indicator located in the second virtual scene. Here, the resource indicator is for visually indicating the input position of the target virtual resource. In response to a movement operation on the resource indicator, the resource indicator is controlled to move in the second virtual scene. In response to a position confirmation command on the resource indicator, the reference input position of the resource indicator in the second virtual scene is determined. Based on the reference input position, the target input position of the target virtual resource in the first virtual scene is determined, and the target virtual resource is input at the target input position in the first virtual scene.
[0113] For the specific implementation of each of the above operations, reference may be made to the above embodiments, and the description is omitted here.
[0114] Optionally, as shown in FIG. 9, the computer device 900 further includes a touch screen 903, a radio frequency circuit 904, an audio circuit 905, an input unit 906, and a power supply 907. Here, the processor 901 is electrically connected to the touch screen 903, the radio frequency circuit 904, the audio circuit 905, the input unit 906, and the power supply 907 respectively. As can be understood by those skilled in the art, the structure of the computer device shown in FIG. 9 does not constitute a limitation on the computer device, and may include more or fewer components than those shown, or any combination of components, or different arrangements of components.
[0115] The touch screen 903 can be used to display a graphical user interface and further receive operation instructions generated by the user acting on the graphical user interface. The touch screen 903 may include a display panel and a touch panel. Here, the display panel can be used to display information input by the user, or information provided to the user, and various graphical user interfaces of the computer device. These graphical user interfaces may be composed of graphics, text, icons, videos, and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel can collect touch operations by the user thereon or in the vicinity (for example, operations performed by the user on or in the vicinity of the touch panel using any suitable object or accessory such as a finger or a touch pen), generate corresponding operation instructions, and be used to execute a corresponding program with the operation instructions. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. Here, the touch detection device detects the touch orientation of the user and detects signals caused by the touch operation, and transmits the signals to the touch controller. The touch controller can receive touch information from the touch detection device, convert it into the coordinates of the touch point, then transmit it to the processor 901, and receive and execute commands transmitted by the processor 901. The touch panel may be covered by the display panel. When the touch panel detects a touch operation thereon or in the vicinity, it transmits it to the processor 901 to identify the type of touch event. Then, the processor 901 provides a corresponding visual output on the display panel based on the type of touch event. In the embodiments of the present application, the touch panel and the display panel may be integrated into the touch screen 903 to realize the input and output functions. However, in some embodiments, the touch panel and the display panel may realize the input and output functions as two independent members.That is, the touch screen 903 can also implement an input function as part of the input unit 906.
[0116] The radio frequency circuit 904 can be used to transmit and receive radio frequency signals, establish wireless communication with network devices or other computer devices through wireless communication, and transmit and receive signals with network devices or other computer devices.
[0117] The audio circuit 905 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 905 can transmit the electrical signal after converting the received audio data to the speaker, and convert it into an audio signal by the speaker for output. On the other hand, the microphone can convert the collected audio signal into an electrical signal, receive it by the audio circuit 905, convert it into audio data, and then output the audio data to the processor 901 for processing. After that, it can be transmitted by the radio frequency circuit 904 to, for example, other computer devices, or the audio data can be output to the memory 902 for further processing. The audio circuit 905 may further include a headphone jack for providing communication between an external headphone and the computer device.
[0118] The input unit 906 can be used to receive the input numerical, character information or user characteristic information (such as fingerprint, iris, face information, etc.), and generate keyboard, mouse, operation lever, optical or trackball signal inputs related to user settings and function controls.
[0119] The power supply 907 is used to supply power to each component of the computer device 900. Optionally, the power supply 907 may be logically connected to the processor 901 by a power management system. Thereby, functions such as charge and discharge management and power consumption management are realized by the power management system. The power supply 907 may further include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.
[0120] Although not shown in FIG. 9, the computer device 900 may further include a camera, a sensor, a Wi-Fi module, a Bluetooth (registered trademark) module, etc., which will not be further described herein.
[0121] In the above embodiments, the descriptions of each embodiment focus on the key points. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0122] As can be understood from the above, in the computer device according to this embodiment, when the player attempts to input a target virtual resource at the target input position in the first virtual scene, the player performs a usage trigger operation on the target virtual resource, and in the second virtual scene having the same spatial layout as the first virtual scene, the resource indicator can be moved until reaching the reference input position corresponding to the first virtual scene in the second virtual scene. Thereby, the terminal determines the target input position in the first virtual scene based on the reference input position, and can directly input the target virtual resource at the target input position. The player can accurately input the target virtual resource at the target input position in the game scene, and can reduce the skill requirements for the player's virtual resource input.
[0123] As can be understood by those skilled in the art, all or part of the steps in each method of the above embodiments may be completed by instructions, or may be completed by controlling related hardware by instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0124] Therefore, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer programs can be loaded by a processor to implement the steps in any one of the virtual resource allocation control methods according to the embodiments of the present application. For example, the computer program can execute the following steps.
[0125] The graphical user interface is used to display a first virtual scene and a virtual object located in the first virtual scene. The virtual object is configured to execute game actions in response to a touch operation on the graphical user interface. In response to a usage trigger operation on a target virtual resource, the graphical user interface is used to display a second virtual scene and a resource indicator located in the second virtual scene. Here, the resource indicator is for visually indicating the allocation position of the target virtual resource. In response to a movement operation on the resource indicator, the resource indicator is controlled to move in the second virtual scene. In response to a position confirmation command on the resource indicator, the reference allocation position of the resource indicator in the second virtual scene is determined, and based on the reference allocation position, the target allocation position of the target virtual resource in the first virtual scene is determined, and the target virtual resource is allocated to the target allocation position in the first virtual scene.
[0126] For the specific implementation of each of the above operations, reference may be made to the above embodiments, and the description is omitted here.
[0127] Here, the storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
[0128] The computer program stored in the memory medium can execute the steps in the input control method of any one of the virtual resources according to the embodiments of the present application, so that the beneficial effects achievable by the input control method of any one of the virtual resources according to the embodiments of the present application can be realized. For details, reference may be made to the above embodiments, and the description is omitted here.
[0129] In the above embodiments, the description of each embodiment focuses on the key points. For parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0130] The above has introduced in detail the input control method, device, computer equipment and memory medium of virtual resources according to the embodiments of the present application. Although the principles and embodiments of the present invention have been described using specific examples in the specification, the descriptions of the above embodiments are only for helping to understand the technical solutions and the core ideas of the present invention. As should be understood by those skilled in the art, it is still possible to modify the technical solutions described in the above embodiments or perform equivalent substitutions for some of their technical features. These modifications or substitutions do not deviate from the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Description of Reference Signs
[0131] 101 Terminal 102 Game Server 103 Network 301 Movement Control 303 Attack Control 304 Skill Control 305 Resource Control 306 Obstacle 307 Obstacle 308 Virtual Building 401 Horizontal Movement Control 402 Cancel Control 403 Vertical Movement Control 404 Vertical Movement Control 405 Position Determination Control 406 Resource Control 407 Virtual Reality Entity 408 Virtual Reality Entity 409 Resource Indicator 501 Resource Indicator 601 Target Input Position 801 First Display Unit 802 Second Display Unit 803 Movement Unit 804 Confirmation Unit 805 Input Unit 900 Computer Device 901 Processor 902 Memory 903 Touch Screen 904 Radio Frequency Circuit 905 Audio Circuit 906 Input Unit 907 Power Supply
Claims
1. A method for controlling the allocation of virtual resources, comprising: displaying, via a graphical user interface, a first virtual scene and a virtual object located in the first virtual scene, wherein the virtual object is configured to perform a game action in response to a touch operation on the graphical user interface; in response to a usage trigger operation on a target virtual resource, determining an initial position of a resource indicator in a second virtual scene based on the position and / or orientation of the virtual object in the first virtual scene when the usage trigger operation occurs, wherein the second virtual scene is a three-dimensional virtual scene and has a scene layout corresponding to the first virtual scene; displaying, via the graphical user interface, the second virtual scene and the resource indicator located in the second virtual scene, wherein the resource indicator is for visually indicating an allocation position of the target virtual resource; controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator, and displaying a transition segment including the second virtual scene that changes when the resource indicator moves; determining a reference allocation position of the resource indicator in the second virtual scene in response to a position confirmation command on the resource indicator; determining a target allocation position of the target virtual resource in the first virtual scene based on the reference allocation position, and allocating the target virtual resource to the target allocation position in the first virtual scene. A method for controlling the allocation of virtual resources, comprising the above steps.
2. The method according to claim 1, wherein the second virtual scene includes second scene elements, the second scene elements are for representing at least some of the first scene elements in the first virtual scene, and the positions of the second scene elements in the second virtual scene are for representing the positions of the first scene elements in the first virtual scene.
3. The method according to claim 1, further comprising determining a display range in the graphical user interface of the second virtual scene based on a position of the resource indicator in the second virtual scene.
4. Before the graphical user interface displays the second virtual scene and the resource indicator located in the second virtual scene, the method further comprises: The method according to claim 1, further comprising determining an initial display range in the graphical user interface of the second virtual scene based on a position and / or orientation of the virtual object in the first virtual scene when the usage trigger operation occurs.
5. The step of the graphical user interface displaying the second virtual scene: The method according to claim 1, including making the first virtual scene non-displayed in the graphical user interface and triggering to display the second virtual scene in the graphical user interface.
6. The second virtual scene is the first virtual scene after a preset virtual object is made non-displayed, and the preset virtual object includes one or more of a player virtual character, a non-player virtual character, and / or a virtual prop object. The method according to claim 1.
7. The step of the graphical user interface displaying the second virtual scene: In the graphical user interface for displaying the first virtual scene, determining a second display area, and the area range of the second display area is smaller than the area range corresponding to the graphical user interface; Displaying the second virtual scene by the second display area. The method according to claim 1.
8. The graphical user interface for displaying the second virtual scene includes a movement control for controlling the resource indicator to move in the second virtual scene. The movement control includes a horizontal movement control and a vertical movement control. Responding to a movement operation on the resource indicator, controlling the resource indicator to move in the second virtual scene: Controlling the resource indicator to move in the horizontal direction of the second virtual scene in response to a touch operation on the horizontal movement control; Controlling the resource indicator to move in the vertical direction of the second virtual scene in response to a touch operation on the vertical movement control The method according to claim 1, comprising:
9. The movement operation includes a drag operation, and controlling the resource indicator to move in the second virtual scene in response to the movement operation on the resource indicator includes: The method according to claim 1, comprising controlling the resource indicator to move in the second virtual scene in response to the drag operation on the resource indicator in the second virtual scene.
10. The resource indicator includes a reference input point and a simulation usage shape. The simulation usage shape is for simulating the rendering shape after being used based on the reference input point when the target virtual resource is at different positions in the first virtual scene. Determining the reference input position of the resource indicator in the second virtual scene in response to a position confirmation command for the resource indicator includes: Obtaining the spatial layout of the second virtual scene during the process of the resource indicator moving; Determining the rendering range of the simulation usage shape of the resource indicator based on the spatial layout of the second virtual scene; Obtaining the reference rendering range of the simulation usage shape, and the height and ground projection coordinates of the reference input point in the second virtual scene in response to a position confirmation command for the resource indicator; Determining the position of the reference input point in the second virtual scene based on the height and the ground projection coordinates; Determining the reference input position of the resource indicator in the second virtual scene based on the position of the reference input point in the second virtual scene and the reference rendering range of the simulation usage shape; The method according to claim 1, comprising:
11. Before determining the shape of the simulated usage shape of the resource indicator based on the spatial layout of the second virtual scene, the method further includes determining the number of the target virtual resources to be input in response to an operation of setting the number of the target virtual resources, Determining the rendering range of the simulated usage shape of the resource indicator based on the spatial layout of the second virtual scene, The method according to claim 10, including determining the rendering range of the simulated usage shape of the resource indicator based on the number of the target virtual resources to be input and the spatial layout of the second virtual scene.
12. The target virtual resource includes a target input point and a target usage shape, and the target usage shape includes a rendering shape after using the target virtual resource at the target input point. Determining the target input position of the target virtual resource in the first virtual scene based on the reference input position includes obtaining the spatial position correspondence relationship between the first virtual scene and the second virtual scene, determining, in the first virtual scene, the position corresponding to the reference input point as the target input point of the target virtual resource based on the reference input position and the spatial position correspondence relationship, determining, in the first virtual scene, the rendering range corresponding to the simulated usage shape as the target rendering range of the target usage shape based on the reference input position and the spatial position correspondence relationship, and determining the target input position of the target virtual resource in the first virtual scene based on the target input point and the target rendering range. The method according to claim 10.
13. displaying a tool cancellation area in response to a usage trigger operation on the target virtual resource, and displaying the first virtual scene in response to a trigger operation on the tool cancellation area. The method according to claim 1, further including.
14. The above-mentioned graphical user interface for displaying the first virtual scene includes an attack control, and the attack control is for instructing the virtual object to launch an attack in the first virtual scene. Before determining the reference input position of the resource indicator in the second virtual scene in response to the position confirmation command for the resource indicator, the method changes the attack control to a position determination control of the resource indicator, generates a position confirmation command for the resource indicator in response to a touch operation on the position determination control The method according to claim 1, further comprising. **Claim 15** An input control device for virtual resources, A first display unit for displaying a first virtual scene and a virtual object located in the first virtual scene by a graphical user interface, wherein the virtual object is configured to execute a game action in response to a touch operation on the graphical user interface. In response to a use trigger operation on a target virtual resource, based on the position and / or orientation of the virtual object in the first virtual scene when the use trigger operation occurs, determine an initial position of a resource indicator in a second virtual scene, the second virtual scene being a three-dimensional virtual scene, the second virtual scene having a scene layout corresponding to the first virtual scene, and a second display unit for displaying the second virtual scene and the resource indicator located in the second virtual scene by the graphical user interface, the resource indicator being for visually indicating an input position of the target virtual resource. A movement unit for controlling the resource indicator to move in the second virtual scene in response to a movement operation on the resource indicator, and for displaying a transition segment including the second virtual scene that changes when the resource indicator moves. A determination unit for determining a reference input position of the resource indicator in the second virtual scene in response to a position confirmation command for the resource indicator. An input unit for determining a target input position of the target virtual resource in the first virtual scene based on the reference input position and for inputting the target virtual resource to the target input position in the first virtual scene A virtual resource input control device including the above
16. A computer device comprising A memory for storing a computer program A processor for realizing steps in the virtual resource input control method according to any one of claims 1 to 14 when the computer program is executed A computer device including the above
17. A computer-readable storage medium storing a computer program that realizes steps in the virtual resource input control method according to any one of claims 1 to 14 when executed by a processor
Citation Information
Patent Citations
Virtual prop putting method and device, terminal and storage medium
CN112870715A
Virtual throwing object delivery method in virtual environment, terminal and storage medium
CN113041622A
Virtual character control method and device, computer equipment and storage medium
CN113082712A
Virtual resource delivery control method and device, computer equipment and storage medium
CN113546422A
Game program, game device, game system, and game control method
JP2018202128A