CN113171605A - Virtual resource acquisition method, computer-readable storage medium, and electronic device - Google Patents

Virtual resource acquisition method, computer-readable storage medium, and electronic device Download PDF

Info

Publication number
CN113171605A
CN113171605A CN202110580839.7A CN202110580839A CN113171605A CN 113171605 A CN113171605 A CN 113171605A CN 202110580839 A CN202110580839 A CN 202110580839A CN 113171605 A CN113171605 A CN 113171605A
Authority
CN
China
Prior art keywords
virtual resource
virtual
target
touch operation
target virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110580839.7A
Other languages
Chinese (zh)
Other versions
CN113171605B (en
Inventor
廖冬晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110580839.7A priority Critical patent/CN113171605B/en
Publication of CN113171605A publication Critical patent/CN113171605A/en
Application granted granted Critical
Publication of CN113171605B publication Critical patent/CN113171605B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/40Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
    • A63F13/42Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress

Abstract

The disclosure provides a virtual resource obtaining method, a computer readable storage medium and an electronic device, and relates to the technical field of computers. The virtual resource acquisition method comprises the steps of responding to a first touch operation of a user on a displayed function control, and displaying a plurality of virtual resource identifications associated with the function control; responding to a second touch operation of the user on the function control, and differentially displaying a target virtual resource identifier corresponding to the end position of the second touch operation; and during the period of differentially displaying the target virtual resource identifier, controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier. The virtual resource acquisition method provided by the disclosure solves the technical problem that the convenience of the acquisition mode for the virtual resource in the current game is low in the prior art, and achieves the technical effect of greatly improving the convenience of the user for acquiring the virtual resource.

Description

Virtual resource acquisition method, computer-readable storage medium, and electronic device
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a virtual resource obtaining method, a computer-readable storage medium, and an electronic device.
Background
Different virtual characters, virtual tools and virtual resources are generally arranged in a game scene, so that a real and gorgeous game scene is provided for a user. The virtual tool is used for acquiring corresponding virtual resources, for example, an axe is used for acquiring timber resources, a pick is used for acquiring rock resources, and the like.
At present, there are two operation modes for a user to obtain virtual resources in a game: firstly, clicking a certain virtual tool to correspondingly acquire a virtual resource corresponding to the virtual tool, for example, clicking an axe tool to acquire a wood; in the second mode, a virtual tool is pressed for a long time, and the virtual resources corresponding to the virtual tool are continuously collected, for example, an axe tool is pressed for a long time, wood is continuously collected, and the axe tool is released, and then the collection of the wood is stopped.
However, in any of the above manners, the user needs to continuously operate to complete the collection of the resources, and thus, the convenience of the virtual resource acquisition manner in the game is low.
Disclosure of Invention
The present disclosure provides a virtual resource acquisition method, a computer-readable storage medium, and an electronic device, thereby improving convenience for virtual resource acquisition.
In a first aspect, an embodiment of the present application provides a virtual resource obtaining method, where a terminal device provides a graphical user interface, where the graphical user interface includes at least a part of a virtual scene, a virtual role located in the virtual scene, and a functional control capable of being displayed, and the method further includes: responding to a first touch operation on the displayed function control, and displaying a plurality of virtual resource identifications associated with the function control; responding to a second touch operation, determining a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performing differentiated display; and controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
In an optional embodiment of the present application, in response to a first touch operation on a displayed function control, displaying a plurality of virtual resource identifiers associated with the function control, including: responding to a first touch operation on the displayed function control, and acquiring the duration of the first touch operation; and if the duration is longer than the preset duration, displaying a plurality of virtual resource identifications associated with the function control.
In an optional embodiment of the present application, the second touch operation is a sliding operation that is continuous with the first touch operation.
In an alternative embodiment of the present application, displaying a plurality of virtual resource identifiers associated with a functionality control includes: displaying a rocker control in a graphical user interface; the joystick control comprises a joystick area and a joystick object positioned in the joystick area, wherein the joystick area is used for limiting the movement range of the joystick object moving along with touch operation; a plurality of virtual resource identifiers associated with the rocker object are displayed in a ring in the rocker area.
In an optional embodiment of the present application, in response to the second touch operation, determining a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performing differentiated display includes: responding to the dragging operation, and locking the target virtual resource identifier based on the dragging operation; the method comprises the steps that a rocker object is dragged to a target virtual resource identifier determined from a plurality of virtual resource identifiers according to the end position of the dragging operation; and locking the target virtual resource identifier.
In an optional embodiment of the present application, in response to the third touch operation, the differentiated display of the target virtual resource identifier is cancelled.
In an optional embodiment of the present application, before displaying the plurality of virtual resource identifications associated with the functionality control, the method further comprises: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; and if at least one real-time distance is smaller than a first preset distance, displaying the function control.
In an optional embodiment of the present application, before displaying the plurality of virtual resource identifications associated with the functionality control, the method further comprises: acquiring a current view image of the virtual character; and if the current view image comprises at least one virtual resource, displaying the function control.
In an optional embodiment of the present application, the controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier includes: determining a virtual resource acquisition point closest to the virtual role; the virtual resource acquisition point comprises at least one virtual resource; and if the current virtual resource acquisition point contains the target virtual resource, controlling the virtual role to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
In an optional embodiment of the present application, the controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier further includes: and if the current virtual resource acquisition point does not contain the target virtual resource, re-determining a new virtual resource acquisition point according to the distance from the virtual character until the current virtual resource acquisition point contains the target virtual resource.
In an optional embodiment of the present application, determining a target virtual resource identifier from a plurality of virtual resource identifiers includes: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; determining the virtual resource corresponding to the minimum real-time distance as a target virtual resource; correspondingly, the step of controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier comprises the following steps: and responding to the fourth touch operation, and controlling the virtual role to automatically acquire the target virtual resource.
In an optional embodiment of the present application, the controlling the virtual role to automatically acquire the target virtual resource includes: judging whether the minimum value of the real-time distance is greater than a second preset distance or not; if the minimum value of the real-time distance is greater than a second preset distance, controlling the virtual character to move to a target area; the distance between any point in the target area and the target virtual resource is smaller than or equal to a second preset distance; and in the target area, controlling the virtual role to automatically acquire the target virtual resource.
In an optional embodiment of the present application, the method further comprises: responding to the visual field adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to a fifth touch operation on the function control, and controlling the virtual role to acquire the target virtual resource in the adjusted virtual scene picture.
In a second aspect, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the method as defined in any of the above.
In a third aspect, an electronic device is provided, including: a processor; and a memory for storing executable instructions for the processor; wherein the processor is configured to perform the method of any of the above via execution of executable instructions.
The technical scheme of the disclosure has the following beneficial effects:
according to the virtual resource acquisition method, a plurality of virtual resource identifications associated with the functional control are displayed under the first touch operation of a user on the displayed functional control, then the target virtual resource identification corresponding to the end position of the second touch operation is differentially displayed under the second touch operation of the user on the functional control, and finally the virtual role is controlled to automatically acquire the target virtual resource corresponding to the target virtual resource identification only during the differential display of the target virtual resource identification. According to the virtual resource acquisition method provided by the embodiment of the application, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resources to realize the differentiated display of the target virtual resources, and the automatic acquisition of the virtual resources can be realized without performing any operation in the subsequent acquisition process, so that the technical problem that the convenience of the acquisition mode for the virtual resources in the existing game is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resources is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is apparent that the drawings in the following description are only some embodiments of the present disclosure, and that other drawings can be obtained from those drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram illustrating an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
fig. 2 is a flowchart illustrating a virtual resource acquisition method in the present exemplary embodiment;
fig. 3 to 6 are schematic diagrams illustrating application scenarios of a virtual resource obtaining method in the present exemplary embodiment;
fig. 7 is a flowchart showing a virtual resource acquisition method in the present exemplary embodiment;
fig. 8 is a schematic diagram illustrating an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
fig. 9 is a flowchart showing a virtual resource acquisition method in the present exemplary embodiment;
fig. 10 to 12 are schematic diagrams illustrating an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
fig. 13 is a flowchart showing a virtual resource acquisition method in the present exemplary embodiment;
fig. 14 is a schematic diagram illustrating an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
15-17 illustrate a flow diagram of a virtual resource acquisition method in the present exemplary embodiment;
fig. 18 is a schematic diagram illustrating an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
19-21 illustrate a flow diagram of a virtual resource acquisition method in the present exemplary embodiment;
fig. 22 is a schematic diagram illustrating a virtual resource acquiring apparatus according to the present exemplary embodiment;
fig. 23 shows a schematic configuration diagram of an electronic apparatus in the present exemplary embodiment.
Detailed Description
Exemplary embodiments will now be described more fully with reference to the accompanying drawings. The exemplary embodiments, however, may be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the steps. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In the related art, different virtual characters, virtual tools and virtual resources are generally set in a game scene, so as to provide a real and gorgeous game scene for a user. The virtual tool is used for acquiring corresponding virtual resources, for example, an axe is used for acquiring timber resources, a pick is used for acquiring rock resources, and the like. At present, there are two operation modes for a user to obtain virtual resources in a game: firstly, clicking a certain virtual tool to correspondingly acquire a virtual resource corresponding to the virtual tool, for example, clicking an axe tool to acquire a wood; in the second mode, a virtual tool is pressed for a long time, and the virtual resources corresponding to the virtual tool are continuously collected, for example, an axe tool is pressed for a long time, wood is continuously collected, and the axe tool is released, and then the collection of the wood is stopped. However, in any of the above manners, the user needs to continuously operate to complete the collection of the resources, and thus, the convenience of the virtual resource acquisition manner in the game is low.
In view of the above problems, the present application discloses a virtual resource obtaining method, where multiple virtual resource identifiers associated with a displayed function control are displayed under a first touch operation of a user on the displayed function control, then a target virtual resource identifier corresponding to an end position of a second touch operation is differentially displayed under a second touch operation of the user on the function control, and finally a virtual role is controlled to automatically obtain a target virtual resource corresponding to the target virtual resource identifier only during the differential display of the target virtual resource identifier. According to the virtual resource acquisition method provided by the embodiment of the application, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resources to realize the differentiated display of the target virtual resources, and the automatic acquisition of the virtual resources can be realized without performing any operation in the subsequent acquisition process, so that the technical problem that the convenience of the acquisition mode for the virtual resources in the existing game is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resources is achieved.
The following briefly introduces an application environment of the virtual resource acquisition method provided in the embodiment of the present application:
referring to fig. 1, the virtual resource obtaining method provided in the embodiment of the present application is applied to a terminal device 10, where the terminal device 10 may be a computer device, a mobile phone, a tablet, a game machine, a server with a display interface, and the like, and the embodiment of the present application is not limited thereto. It should be noted that the terminal device 10 may provide a graphical user interface 100 during operation, and the graphical user interface 100 includes a virtual character 110, a virtual resource 120, and a function control 130 capable of being displayed, so as to provide diversified game scenes for the user. The virtual character 110 refers to game characters with different identities in a game scene, such as killer, villager, herdsman, and the like, and the virtual character 110 can move, shuttle, execute tasks, and the like in the game scene; the virtual resource 120 refers to a resource that the virtual character 110 needs to acquire in order to live or complete a task in a game, such as a virtual wood, a virtual rock, a virtual fruit, and the like, and the position of the virtual resource 120 in a game scene is fixed and immovable; the function control 130 refers to an operation port for a user to interact with the graphical user interface 100, for example, sliding, clicking, and the like, and the function control 130 may be disposed at any position of the graphical user interface 100, for example, an edge side, a lower left corner, a lower right corner, and the like. It should be noted that the function control 130 is in a hidden state, and can be displayed on the graphical user interface 100 on a daily basis, and at the same time, can also improve the game experience of the user. The function control 130 is in a hidden state in daily life, and only needs to be displayed after a user performs a specific wake-up operation, and the display state of the function control 130 is not specifically limited in the embodiment of the application and can be specifically selected or limited according to actual conditions.
Taking the terminal device 10 as an execution subject, the virtual resource acquisition method is applied to the terminal device 10, and the virtual resource acquisition is exemplified. Referring to fig. 2, a virtual resource obtaining method provided in the embodiment of the present application includes the following steps 201 to 203.
Step 201, the terminal device responds to a first touch operation on the displayed function control, and displays a plurality of virtual resource identifications associated with the function control.
Referring to fig. 3, a function control 130 is displayed in the graphical user interface 100, but a virtual resource identifier 301 is not displayed, a user performs a first touch operation on the function control 130, such as clicking, long-pressing, sliding, and the like, and after responding to the first touch operation, the terminal device converts the states of the virtual resource identifiers 301 from the original hidden state to the display state. Referring to fig. 4, the virtual resource identifiers 301 have the following two aspects: in a first aspect, the multiple virtual resource identifiers 301 are used to represent different virtual resource types, such as an axe, a pick, and the like, so as to provide a variety of interactive interfaces for a user; in a second aspect, the virtual resource identifiers 301 are associated with the function control 130, and a user wakes up to display or closes to hide the virtual resource identifiers by performing a touch operation on the function control 130. Of course, a specific virtual resource identifier including ALL virtual resources may be set in the plurality of virtual resource identifiers 301 to represent ALL virtual resources in the current scenario, for example, "ALL" in fig. 4. In this embodiment, the specific manner of association between the virtual resource identifiers 301 and the function control 130 is not limited at all, and may be specifically selected or set according to the actual situation, and it is only necessary to satisfy that the function control can control the display and hiding of the virtual resource identifiers 301.
Step 202, the terminal device responds to the second touch operation, determines a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performs differentiated display.
After the function control and the virtual resource identifiers are displayed on the graphical user interface of the terminal device, a user executes a second touch operation on the function control, such as clicking, long-time pressing, sliding and the like, the terminal device responds to the second touch operation through an internal detection module, and the specific response comprises the following steps: and detecting the second touch operation action and the end position of the second touch operation action.
The terminal device pre-stores the position information of each virtual resource identifier, and after determining the end position of the second touch operation, the method for determining to obtain the target virtual resource identifier includes, but is not limited to, the following: in the first mode, the virtual resource identifier closest to the end position is determined as a target virtual resource identifier; in the second mode, the position information corresponding table of each virtual resource identifier stored in the internal is queried, the ending position of the second touch operation action is determined to be in the position range corresponding to which virtual resource identifier, and then the virtual resource identifier corresponding to the ending position is determined to be the target virtual resource identifier.
After obtaining the target virtual resource identifier, the terminal device performs differentiated display on the target virtual resource identifier, where the differentiated display is to display the target virtual resource identifier differently from other non-target virtual resource identifiers, and may include, but is not limited to, the following several ways: in the first mode, the target virtual resource identifier is enlarged or reduced; in a second way, the target virtual resource identifier is identified by using, for example, a lock icon; in the third mode, color processing such as hue, saturation, transparency, and the like is performed on the target virtual resource identifier, for example, blackness processing is performed on the wood virtual resource identifier in fig. 5.
And 203, the terminal device controls the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
The virtual resource identifiers correspond to the virtual resource types one to one, and after the terminal device displays the target virtual resource identifiers in a differentiated manner, the terminal device automatically executes automatic acquisition of the target virtual resources corresponding to the target virtual resource identifiers through an internally stored virtual resource automatic acquisition program until the current target virtual resources are completely acquired, for example, fig. 6, so that the wood virtual resources are completely acquired. The terminal device can control the virtual characters to move to the positions near the target virtual resources one by one in sequence to acquire the virtual resources, and can also acquire the target virtual resources in the game scene at a long distance at one time in the game scene where the virtual characters are located without moving to the positions near the target virtual resources.
According to the virtual resource acquisition method, a plurality of virtual resource identifications associated with the functional control are displayed under the first touch operation of a user on the displayed functional control, then the target virtual resource identification corresponding to the end position of the second touch operation is differentially displayed under the second touch operation of the user on the functional control, and finally the virtual role is controlled to automatically acquire the target virtual resource corresponding to the target virtual resource identification only during the differential display of the target virtual resource identification. According to the virtual resource acquisition method provided by the embodiment of the application, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resources to realize the differentiated display of the target virtual resources, and the automatic acquisition of the virtual resources can be realized without performing any operation in the subsequent acquisition process, so that the technical problem that the convenience of the acquisition mode for the virtual resources in the existing game is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resources is achieved.
Referring to fig. 7, in an optional embodiment of the present application, the step 201, in which the terminal device displays, in response to the first touch operation on the displayed function control, a plurality of virtual resource identifiers associated with the function control, includes the following steps 701 to 702:
step 701, the terminal device responds to a first touch operation on the displayed function control, and obtains duration of the first touch operation.
The user performs an interactive operation on the function control, that is, performs a first touch operation, where the first touch operation may be, for example, a click, a slide, and the like. After the terminal device responds to the first touch operation, the duration of the pressing operation performed by the user is detected through a touch detection unit arranged on a display panel of the terminal device, for example, 0.2s, 0.5s, and the like.
And step 702, if the duration is longer than the preset duration, the terminal device displays a plurality of virtual resource identifications associated with the function control.
The terminal device compares the duration obtained in step 701 with a preset duration stored in the terminal device, so as to determine the relative size of the duration and the preset duration. If the duration is longer than the preset duration, it means that the current first touch operation of the user is a long-press operation, and the display condition of the virtual resource identifier is met, and the terminal device displays the virtual resource identifiers. On the contrary, if the duration is less than or equal to the preset duration, it means that the current first touch operation of the user is a non-long-press operation, and the display condition of the virtual resource identifier is not satisfied, and the terminal device continues to hide the virtual resource identifiers.
According to the virtual resource obtaining method, the virtual resource identifications are displayed only when the duration of the first touch operation is longer than the preset duration, the virtual resource identifications are hidden under other conditions, the display interface can not be occupied under other conditions, the display is more comprehensive, a more comprehensive game scene display interface is provided for a user, the user can conveniently comprehensively master the current game process, and the reliability is higher. Meanwhile, the judgment condition for displaying the virtual resource identifications is that the duration is longer than the preset duration, namely, the virtual resource identifications are long-time pressed, so that the influence on the normal progress of the game caused by misoperation of the user, such as clicking, sliding and the like, can be effectively avoided, and the operation reliability of the user is further improved.
In an embodiment of the present application, the second touch operation is a sliding operation continuous to the first touch operation.
After the terminal device detects the first touch operation, the terminal device takes the position of the first touch operation as a starting point, and the terminal device can finish dragging any point of the functional control to a position corresponding to the target virtual resource identifier. That is to say, in this embodiment, the first touch operation and the second touch operation are continuous, and the user only needs to perform one operation when determining the target virtual resource identifier, which is more convenient and faster.
Referring to fig. 5 and fig. 6, in an embodiment of the present application, a plurality of virtual resource identifiers 301 are disposed around the periphery of the function control 130.
The ring arrangement mode in this embodiment includes, but is not limited to, the following two modes: in a first mode, the virtual resource identifiers are uniformly arranged on the periphery of the function control; in a second manner, the virtual resource identifiers are classified according to categories, different categories are separated by a first distance, and a plurality of virtual resource identifiers in the same category are separated by a second distance, i.e., the first distance is greater than the second distance.
The periphery of the function control is located to a plurality of virtual resource identification rings in the embodiment of the application, and the distance from the function control is less, so that the user can operate conveniently, and the convenience is higher. Simultaneously, set up a plurality of virtual resource identifications in function control periphery, control in function control's region, show outside function control's region, regional functional partitioning is clear, can effectively prevent to control regional overlapping with other inside function control, and convenience of customers operates, more can improve user operation's reliability.
In an optional embodiment of the present application, before displaying a plurality of virtual resource identifiers associated with the functionality control, the virtual resource obtaining method further includes: and the terminal equipment responds to the third touch operation and cancels the differentiated display of the target virtual resource identifier.
For example, as shown in fig. 6, after the terminal device completely automatically acquires the virtual resource, or the user wants to end the automatic acquisition of the virtual resource, and continue to manually acquire the virtual resource, in this case, the user releases the target virtual resource identifier through the third touch operation, that is, the terminal device stops the automatic acquisition of the target virtual resource, and as shown in fig. 8, the wood virtual resource identifier is converted from black in fig. 6 to transparent in fig. 8. The third touch operation may be a single click, a long press, or a slide operation, and the embodiment is not particularly limited, and may be specifically selected or set according to an actual situation.
According to the virtual resource acquisition method provided by the embodiment of the application, the differentiated display of the target virtual resource identifier can be cancelled through the third touch operation, so that a user can conveniently control the resource acquisition process according to the actual situation, and the user control flexibility is higher.
Referring to fig. 9, in an optional embodiment of the present application, before the terminal device displays a plurality of virtual resource identifiers associated with the function control in step 201, the method further includes steps 901 to 903:
step 901, the terminal device obtains the current position information of the virtual character.
Different elements in the graphical user interface of the terminal device correspond to different coordinates, that is, each virtual resource and each virtual role have corresponding coordinate information, that is, have respective position information. The terminal equipment detects the real-time position information of the virtual character through a detection unit in the terminal equipment so as to obtain the current position information of the virtual character.
And step 902, the terminal equipment determines the real-time distance between the virtual role and each virtual resource according to the current position information.
As described above in step 901, each virtual resource also has its corresponding coordinate information, i.e., position information, but unlike the virtual character position information, the position of the virtual resource is generally fixed, i.e., its coordinate information is also fixed, and therefore the coordinate information of each virtual resource can be stored in the terminal device in advance. After obtaining the current coordinate information of the virtual character in step 901, the terminal device calculates the distance between the current coordinate of the virtual character and each virtual resource, and obtains a plurality of real-time distances, for example, OA1, OA2, OA3, OB1, OB2, OC1, OC2, etc. in fig. 10.
And 903, if at least one real-time distance is smaller than a first preset distance, the terminal equipment displays the function control.
After obtaining the plurality of real-time distances, the terminal device compares the plurality of real-time distances with a preset first preset distance respectively to judge the relative size of each real-time distance and the first preset distance. The first preset distance is used for defining an area range where the virtual role can collect virtual resources. If any of the real-time distances is smaller than the first preset distance, it means that there is a virtual resource that can be collected near the virtual character, and the terminal device displays a function control 130 to the user as shown in fig. 11, so that the user can determine whether collection is needed. On the contrary, if the real-time distances are all greater than or equal to the first preset distance, it means that there is no collectable resource near the current virtual character 110, and the terminal device continues to hide the function control 130 as shown in fig. 12.
According to the virtual resource acquisition method, whether the function control is displayed or not is determined according to the real-time distance between the virtual character and each virtual resource, the function control is displayed only when the real-time distance is smaller than the first preset distance, so that a user can judge whether the function control needs to be acquired or not, the function control is hidden under other conditions, the intelligence is stronger, and the display effect of a game scene can be improved to the maximum extent on the premise that the operation convenience of the user is guaranteed.
Referring to fig. 13, in an optional embodiment of the present application, before the terminal device displays a plurality of virtual resource identifiers associated with the function control in step 201, the virtual resource acquiring method further includes the following steps 131 to 132:
step 131, the terminal device acquires the current view image of the virtual character.
In the first mode, the terminal device can set a virtual camera at the head, shoulder and other positions of each virtual character, and the virtual camera collects the view image of the current view of the virtual character in real time along with the movement of the virtual character; in the second mode, as shown in fig. 14, the terminal device may set a sector area OD1D2 with the virtual character as the center point in advance, set a scene image covered by the sector area OD1D2 as a view image of the virtual character, and determine a scene image currently covered by the sector area OD1D2 as the current view image of the virtual character 110 as the virtual character 110 moves. Of course, the manner of acquiring the current view image of the virtual character 110 by the terminal device is not limited to the above two manners, and may be specifically selected or set according to the actual situation, and only needs to be satisfied that the current view image of the virtual character can be acquired.
Step 132, if the current view image includes at least one virtual resource, the terminal device displays a function control.
After acquiring the current view image, the terminal device may analyze the current view image based on an internally stored AI recognition module, etc. to determine whether the current view image has virtual resources. In the first case, as shown in fig. 14, if the sector area OD1D2 has virtual resources such as B1, B2, C1, and C2, it means that there are virtual resources that can be acquired near the virtual character, and the terminal device displays a function control for the user to determine whether acquisition is needed. On the contrary, if the analysis result is that the current view image has no virtual resource, it means that there is no collectable resource near the current virtual character, and the terminal device continues to hide the functional control.
According to the virtual resource acquisition method provided by the embodiment of the application, whether the function control is displayed or not is determined by whether the current visual field image of the virtual character contains the virtual resource or not, the function control is displayed only under the condition that whether the current visual field image contains the virtual resource or not, so that a user can judge whether the function control needs to be acquired or not, the function control is hidden under other conditions, the intelligence is stronger, and the display effect of a game scene can be improved to the maximum extent on the premise that the operation convenience of the user is guaranteed.
Referring to fig. 15, in an alternative embodiment, the step 202 of determining the target virtual resource identifier from the plurality of virtual resource identifiers includes: step 151-step 154 as follows:
and step 151, the terminal equipment acquires the current position information of the virtual character.
As shown in step 901, different elements in the graphical user interface of the terminal device correspond to different coordinates, that is, each virtual resource and each virtual character have their corresponding coordinate information, that is, have their respective location information. The terminal equipment detects the real-time position information of the virtual character through a detection unit in the terminal equipment so as to obtain the current position information of the virtual character.
And 152, the terminal equipment determines the real-time distance between the virtual role and each virtual resource according to the current position information.
As described above in step 902, the coordinate information of each virtual resource is stored in the terminal device in advance. After the current coordinate information of the virtual character is obtained in step 901, the terminal device calculates the distances between the current coordinates of the virtual character and each virtual resource, and obtains a plurality of real-time distances correspondingly.
Step 153, the terminal device determines that the virtual resource corresponding to the minimum real-time distance is the target virtual resource.
And after a plurality of real-time distances are obtained, determining the virtual resource corresponding to the minimum value in the plurality of real-time distances as the target virtual resource. For example, the real-time distance between the wood virtual resource and the virtual character is 10m, the real-time distance between the rock virtual resource and the virtual character is 20m, the real-time distance between the fruit virtual resource and the virtual character is 30m, and the terminal device determines the wood virtual resource corresponding to 10m as the target virtual resource.
Correspondingly, the step 203 of the terminal device controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier includes:
and step 154, the terminal device responds to the fourth touch operation, and controls the virtual role to automatically acquire the target virtual resource.
The terminal device determines that the target virtual resource is obtained through step 153, and if the user needs to automatically obtain the target virtual resource, a fourth touch operation, such as clicking, sliding, or long pressing, is performed on the function control, and the terminal device may start automatic obtaining of the target virtual resource after responding to the fourth touch operation.
In the virtual resource acquisition method provided by the embodiment of the application, the target virtual resource is automatically determined according to the real-time distance between the virtual role and each virtual resource, no operation is required to be performed by a user, after the target virtual resource is determined, the user can start automatic acquisition of the target virtual resource only through the fourth touch operation, the user operation is more convenient, and the convenience of the virtual resource acquisition method provided by the embodiment of the application is further improved.
Referring to fig. 16, in an optional embodiment of the present application, the step 154 of the terminal device controlling the virtual role to automatically acquire the target virtual resource includes the following steps 161 to 163:
step 161, the terminal device determines whether the minimum value of the real-time distance is greater than a second preset distance.
After obtaining the plurality of real-time distances between the virtual character and each virtual resource through step 902, the terminal device first determines a minimum value of the plurality of real-time distances, and then compares the minimum value with a second preset distance to determine a relative size between the minimum value and the second preset distance. For example, the obtained real-time distances are 10m, 20m and 30m, respectively, and the terminal device compares the 10m with the preset second distance.
And step 162, if the minimum value of the real-time distance is greater than the second preset distance, the terminal device controls the virtual character to move to the target area.
And the distance between any point in the target area and the target virtual resource is less than or equal to a second preset distance. If the terminal device determines that the minimum value of the real-time distance is greater than the second preset distance, the distance between the virtual character and the target virtual resource to be acquired is far, and the terminal device controls the virtual character to move to the target area, namely to move to the vicinity of the target virtual resource or the position of the target virtual resource.
And 163, the terminal device controls the virtual role to automatically acquire the target virtual resource in the target area.
After the terminal device moves the virtual character to the target area, the terminal device can control the virtual character to automatically acquire the target virtual resource. In this embodiment, the terminal device may automatically start the automatic acquisition of the target virtual resource after the virtual character moves to the target area, or may start the automatic acquisition of the target virtual resource through other touch operations of the user, such as clicking and the like.
According to the virtual resource acquisition method provided by the embodiment of the application, under the condition that the virtual character is far away from the target virtual resource, the virtual character moves to the position of the target virtual resource and then starts to automatically acquire the target virtual resource. The virtual role is moved to the target area near the target virtual resource, so that the user can conveniently observe the current game process in real time, the terminal equipment is prevented from mistakenly acquiring the virtual resources of other non-target virtual resources under the condition that the system has errors and the like, and the reliability of the virtual resource acquisition method in the embodiment of the application is further improved.
Referring to fig. 17, in an alternative embodiment of the present application, the step 201 displays a plurality of virtual resource identifiers associated with the functionality control, and includes the following steps 171 to 172:
and 171, displaying the rocker control in the graphical user interface by the terminal equipment.
As shown in fig. 18, the rocker control 180 may be displayed in the function control 130, or may be displayed in another area of the gui 100 different from the function control 130, and of course, the function control 130 may be hidden, and the rocker control 180 is displayed at the position of the function control 130, which is not limited in this embodiment. The joystick control 180 at least includes a joystick area 181 and a joystick object 182 located in the joystick area 181, where the joystick object 182 is an object for a user to perform touch operations such as the first touch operation and the second touch operation, and the joystick area 181 is used to limit a movement range of the joystick object 181 moving along with the touch operations.
Step 172, displaying a plurality of virtual resource identifiers associated with the rocker object in a ring in the rocker area.
With continued reference to fig. 18, after the terminal device displays the rocker control 180 in the graphical user interface 100, the plurality of virtual resource identifiers 301 are displayed in the rocker area 181 of the rocker control 180. When the rocker object 182 is located at the center of the rocker control 180, the virtual resource identifiers 301 are disposed around the circumference of the rocker object 182; when the joystick object 182 is dragged to move to the target virtual resource identifier, the joystick object 182 and the target virtual resource identifier are overlapped or partially overlapped, so as to achieve the purpose of differentiated display. Meanwhile, the terminal device may also implement locking on the target virtual resource identifier based on the overlap.
According to the virtual resource acquisition method provided by the embodiment of the application, the rocker control comprising the rocker area and the rocker object is arranged in the function control, the movement range of the rocker object is limited through the rocker area, the target virtual resource is determined based on the dragging of the rocker object, the determined position of the target virtual resource is limited to a specific position, the area function division is clearer, and the efficiency of a user for acquiring the virtual resource is further improved.
Referring to fig. 19, in a specific embodiment of the present application, the step 202, in response to the second touch operation, determines a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performs differentiated display, including the following steps:
step 191, the terminal device responds to the dragging operation and locks the target virtual resource identifier based on the dragging operation; the method comprises the steps that a rocker object is dragged to a target virtual resource identifier determined from a plurality of virtual resource identifiers according to the end position of the dragging operation;
and step 192, the terminal equipment locks the target virtual resource identifier.
And the dragging operation is used for dragging the rocker object to determine a target virtual resource identifier from the plurality of virtual resource identifiers. According to the embodiment of the application, the rocker object is dragged to the target virtual resource, and then the target virtual resource is differentially displayed, so that the operation of a user can be facilitated, and the efficiency and convenience for determining the target virtual resource are further improved.
Referring to fig. 20, in an optional embodiment of the present application, the step 203, in which the terminal device controls the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier, includes the following steps 2001-2003:
step 2001, the terminal device determines a virtual resource acquisition point closest to the virtual character.
The virtual role is provided with a plurality of virtual resource acquisition points nearby, and each virtual resource acquisition point contains at least one virtual resource. The virtual roles have different distances from different virtual resource acquisition points, and the terminal equipment determines a virtual resource acquisition point which is closest to the virtual roles from the virtual resource acquisition points.
Step 2002, if the current virtual resource collection point contains the target virtual resource, the terminal device controls the virtual character to move to the current virtual resource collection point, and automatically obtains the target virtual resource.
For example, the current target virtual resource is a wood resource, the current virtual resource collection point contains the wood resource, the terminal device controls the virtual character to automatically find a path, moves to a preset range of the current virtual resource collection point, and then starts to automatically acquire the target virtual resource in the current virtual resource collection point until a preset number of target virtual resources are collected or until the target virtual resource in the current virtual resource collection point is completely acquired.
Step 2003, if the current virtual resource collection point does not contain the target virtual resource, the terminal device re-determines a new virtual resource collection point according to the distance from the virtual character until the current virtual resource collection point contains the target virtual resource.
And if the virtual resource acquisition point closest to the virtual character does not contain the target virtual resource, such as the wood resource, the terminal equipment controls the virtual character to continue to automatically seek the path and move to the next virtual resource acquisition point. The automatic path finding of the virtual character is performed according to the distance, for example, the distance from the virtual character is in turn from small to large: a first virtual resource acquisition point, a second virtual resource acquisition point, a third virtual resource acquisition point, and the like. And if the target virtual resource does not exist in the first virtual resource acquisition point, the terminal equipment controls the virtual role to move from the first virtual resource acquisition point to the second virtual resource acquisition point, and if the target virtual resource still does not exist in the second virtual resource acquisition point, the terminal equipment continues to control the virtual role to move from the second virtual resource acquisition point to the third virtual resource acquisition point until the target virtual resource exists in the third virtual resource acquisition point.
The virtual resource acquisition method provided by the embodiment of the application controls the virtual role to automatically find the path according to the distance between the virtual role and each virtual resource acquisition point until the current virtual resource acquisition point contains the target virtual resource, and then automatically acquires the target virtual resource in the current virtual resource acquisition point, so that the acquisition efficiency of the target virtual resource can be greatly improved.
Referring to fig. 21, in an optional embodiment of the present application, the virtual resource obtaining method further includes the following steps 2101 to 2102:
step 2101, the terminal device responds to the view adjustment instruction and controls and adjusts the current virtual scene picture.
The view adjusting instruction is used for instructing to adjust a current virtual scene picture, where the view adjusting instruction may be a control instruction sent by a user, or may also be an instruction generated by a terminal device when a virtual character acquires a target virtual resource in a virtual resource acquisition point containing the target virtual resource in a current virtual scene, or when the virtual resource acquisition point does not contain the target virtual resource in the current virtual scene picture, the terminal device does not have to be specifically limited in this embodiment, and may be specifically selected or set according to an actual situation.
Step 2101, the terminal device controls the virtual character to acquire a virtual resource corresponding to a target virtual resource in the adjusted virtual scene picture at a preset position in the current virtual scene picture in response to a fifth touch operation on the function control.
After the virtual role finishes acquiring the target virtual resources in the current virtual scene, the terminal device can adjust the current virtual scene picture according to the actual situation, namely, switch, and then further acquire the target virtual resources in the switched virtual scene picture.
According to the virtual resource acquisition method provided by the embodiment of the application, after the view adjustment instruction is responded, the current virtual scene picture can be controlled and adjusted, then the target virtual resources in other virtual scenes are further acquired, and the comprehensiveness and flexibility of the virtual resource acquisition method for acquiring the virtual resources are further improved.
Referring to fig. 22, in order to implement the service processing method, in an embodiment of the present disclosure, a virtual resource obtaining apparatus 2200 is provided, and fig. 22 shows a schematic architecture diagram of the virtual resource obtaining apparatus 2200.
The virtual resource acquiring apparatus 2200 includes a first display control module 2201, a second display control module 2202, and a control module 2203.
The first display control module 2201 is configured to, in response to a first touch operation on a displayed function control, display a plurality of virtual resource identifiers associated with the function control;
the second display control module 2202 is configured to, in response to a second touch operation, determine a target virtual resource identifier from the plurality of virtual resource identifiers according to the second touch operation, and perform differentiated display;
the control module 2203 is configured to control the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
In an optional embodiment, the first display control module 2201 is specifically configured to, in response to a first touch operation on a displayed function control, obtain a duration of the first touch operation; and if the duration is longer than the preset duration, displaying a plurality of virtual resource identifications associated with the function control.
In an alternative embodiment, the second touch operation is a sliding operation that is continuous with the first touch operation.
In an alternative embodiment, the first display control module 2201 is specifically configured to display a joystick control in a graphical user interface; the joystick control comprises a joystick area and a joystick object positioned in the joystick area, wherein the joystick area is used for limiting the movement range of the joystick object moving along with touch operation; a plurality of virtual resource identifiers associated with the rocker object are displayed in a ring in the rocker area.
In an optional embodiment, the first display control module 2201 is specifically configured to respond to a dragging operation and lock a target virtual resource identifier based on the dragging operation; the method comprises the steps that a rocker object is dragged to a target virtual resource identifier determined from a plurality of virtual resource identifiers according to the end position of the dragging operation; and locking the target virtual resource identifier.
In an optional embodiment, the second display control module 2202 is further configured to cancel the differentiated display of the target virtual resource identifier in response to the third touch operation.
In an optional embodiment, the first display control module 2201 is further configured to obtain current location information of the virtual character; determining real-time distances between the virtual roles and the virtual resources according to the current position information; and if at least one real-time distance is smaller than a first preset distance, displaying the function control.
In an optional embodiment, the first display control module 2201 is further configured to obtain a current view image of the virtual character; and if the current view image comprises at least one virtual resource, displaying the function control.
In an alternative embodiment, the control module 2203 is further configured to determine the closest virtual resource acquisition point to the virtual character; the virtual resource acquisition point comprises at least one virtual resource; and if the current virtual resource acquisition point contains the target virtual resource, controlling the virtual role to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
In an optional embodiment, the control module 2203 is specifically configured to, if the current virtual resource acquisition point does not include the target virtual resource, re-determine a new virtual resource acquisition point according to the distance from the virtual character until the current virtual resource acquisition point includes the target virtual resource.
In an optional embodiment, the first display control module 2201 is specifically configured to obtain current location information of a virtual character; determining real-time distances between the virtual roles and the virtual resources according to the current position information; determining the virtual resource corresponding to the minimum real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual role to automatically acquire the target virtual resource.
In an optional embodiment, the control module 2203 is specifically configured to determine whether the minimum real-time distance is greater than a second preset distance; if the minimum value of the real-time distance is greater than a second preset distance, controlling the virtual character to move to a target area; the distance between any point in the target area and the target virtual resource is smaller than or equal to a second preset distance; and in the target area, controlling the virtual role to automatically acquire the target virtual resource.
In an optional embodiment, the second display control module 2202 is further configured to control to adjust a current virtual scene picture in response to a view adjustment instruction; and responding to a fifth touch operation on the function control, and controlling the virtual role to acquire the target virtual resource in the adjusted virtual scene picture.
Exemplary embodiments of the present disclosure also provide a computer-readable storage medium, which may be implemented in the form of a program product, including program code for causing an electronic device to perform the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "exemplary method" section of this specification, when the program product is run on the electronic device. In one embodiment, the program product may be embodied as a portable compact disc read only memory (CD-ROM) and include program code, and may be run on an electronic device, such as a personal computer. However, the program product of the present disclosure is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In one embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of:
responding to a first touch operation on the displayed function control, and displaying a plurality of virtual resource identifications associated with the function control;
responding to a second touch operation, determining a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performing differentiated display;
and controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: responding to a first touch operation on the displayed function control, and acquiring the duration of the first touch operation; and if the duration is longer than the preset duration, displaying a plurality of virtual resource identifications associated with the function control.
In an optional embodiment of the present application, the second touch operation is a sliding operation that is continuous with the first touch operation.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: displaying a rocker control in a graphical user interface; the joystick control comprises a joystick area and a joystick object positioned in the joystick area, wherein the joystick area is used for limiting the movement range of the joystick object moving along with touch operation; a plurality of virtual resource identifiers associated with the rocker object are displayed in a ring in the rocker area.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: responding to the dragging operation, and locking the target virtual resource identifier based on the dragging operation; the method comprises the steps that a dragging operation is used for determining a target virtual resource identifier according to the end position of the dragging operation; and locking the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: and responding to the third touch operation, and canceling the differentiated display of the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; and if at least one real-time distance is smaller than a first preset distance, displaying the function control.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: acquiring a current view image of the virtual character; and if the current view image comprises at least one virtual resource, displaying the function control.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: determining a virtual resource acquisition point closest to the virtual role; the virtual resource acquisition point comprises at least one virtual resource; and if the current virtual resource acquisition point contains the target virtual resource, controlling the virtual role to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: and if the current virtual resource acquisition point does not contain the target virtual resource, re-determining a new virtual resource acquisition point according to the distance from the virtual character until the current virtual resource acquisition point contains the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; determining the virtual resource corresponding to the minimum real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual role to automatically acquire the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: judging whether the minimum value of the real-time distance is greater than a second preset distance or not; if the minimum value of the real-time distance is greater than a second preset distance, controlling the virtual character to move to a target area; the distance between any point in the target area and the target virtual resource is smaller than or equal to a second preset distance; and in the target area, controlling the virtual role to automatically acquire the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium, when executed, may implement the steps of: responding to the visual field adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to a fifth touch operation on the function control, and controlling the virtual role to acquire the target virtual resource in the adjusted virtual scene picture.
Exemplary embodiments of the present disclosure also provide an electronic device, which may be a background server of an information platform. The electronic apparatus will be described below with reference to fig. 23. It should be understood that the electronic device 1000 shown in fig. 23 is only an example and should not bring any limitations to the function and scope of use of the embodiments of the present disclosure.
As shown in fig. 23, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: at least one processing unit 1010, at least one memory unit 1020, and a bus 1030 that couples various system components including the memory unit 1020 and the processing unit 1010.
Where the storage unit stores program code that may be executed by the processing unit 1010 to cause the processing unit 1010 to perform the steps according to various exemplary embodiments of the present invention described in the "exemplary methods" section above in this specification. For example, the processing unit 1010 may perform the method steps as shown in fig. 2, and the like.
The memory unit 1020 may include volatile memory units such as a random access memory unit (RAM)1021 and/or a cache memory unit 1022, and may further include a read only memory unit (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may include a data bus, an address bus, and a control bus.
The electronic device 1000 may also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.), which may be through input/output (I/O) interfaces 1040. The electronic device 1000 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) through the network adapter 1050. As shown, the network adapter 1050 communicates with the other modules of the electronic device 1000 via a bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In one embodiment of the present application, the program code stored in the electronic device, when executed, may implement the steps of:
responding to a first touch operation on the displayed function control, and displaying a plurality of virtual resource identifications associated with the function control;
responding to a second touch operation, determining a target virtual resource identifier from the multiple virtual resource identifiers according to the second touch operation, and performing differentiated display;
and controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: responding to a first touch operation on the displayed function control, and acquiring the duration of the first touch operation; and if the duration is longer than the preset duration, displaying a plurality of virtual resource identifications associated with the function control.
In an optional embodiment of the present application, the second touch operation is a sliding operation that is continuous with the first touch operation.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: displaying a rocker control in a graphical user interface; the joystick control comprises a joystick area and a joystick object positioned in the joystick area, wherein the joystick area is used for limiting the movement range of the joystick object moving along with touch operation; a plurality of virtual resource identifiers associated with the rocker object are displayed in a ring in the rocker area.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: responding to the dragging operation, and locking the target virtual resource identifier based on the dragging operation; the method comprises the steps that a dragging operation is used for determining a target virtual resource identifier according to the end position of the dragging operation; and locking the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: and responding to the third touch operation, and canceling the differentiated display of the target virtual resource identifier.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; and if at least one real-time distance is smaller than a first preset distance, displaying the function control.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: acquiring a current view image of the virtual character; and if the current view image comprises at least one virtual resource, displaying the function control.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: determining a virtual resource acquisition point closest to the virtual role; the virtual resource acquisition point comprises at least one virtual resource; and if the current virtual resource acquisition point contains the target virtual resource, controlling the virtual role to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: and if the current virtual resource acquisition point does not contain the target virtual resource, re-determining a new virtual resource acquisition point according to the distance from the virtual character until the current virtual resource acquisition point contains the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: acquiring current position information of a virtual role; determining real-time distances between the virtual roles and the virtual resources according to the current position information; determining the virtual resource corresponding to the minimum real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual role to automatically acquire the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: judging whether the minimum value of the real-time distance is greater than a second preset distance or not; if the minimum value of the real-time distance is greater than a second preset distance, controlling the virtual character to move to a target area; the distance between any point in the target area and the target virtual resource is smaller than or equal to a second preset distance; and in the target area, controlling the virtual role to automatically acquire the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the electronic device may, when executed, implement the steps of: responding to the visual field adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to a fifth touch operation on the function control, and controlling the virtual role to acquire the target virtual resource in the adjusted virtual scene picture.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, according to exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is to be limited only by the following claims.

Claims (15)

1. A virtual resource obtaining method is characterized in that a terminal device provides a graphical user interface, the graphical user interface comprises at least a part of virtual scene, virtual roles in the virtual scene and functional controls capable of being displayed, and the method further comprises the following steps:
responding to a first touch operation of the displayed function control, and displaying a plurality of virtual resource identifications associated with the function control;
responding to a second touch operation, determining a target virtual resource identifier from the plurality of virtual resource identifiers according to the second touch operation, and performing differentiated display;
and controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
2. The method for acquiring virtual resources according to claim 1, wherein the displaying, in response to the first touch operation on the displayed function control, a plurality of virtual resource identifiers associated with the function control comprises:
responding to the first touch operation of the displayed function control, and acquiring the duration of the first touch operation;
and if the duration is longer than the preset duration, displaying the virtual resource identifications associated with the function control.
3. The method according to claim 1 or 2, wherein the second touch operation is a sliding operation that is continuous with the first touch operation.
4. The virtual resource obtaining method according to claim 1, wherein the displaying the plurality of virtual resource identifiers associated with the functionality control comprises:
displaying a rocker control in the graphical user interface; the joystick control comprises a joystick area and a joystick object positioned in the joystick area, wherein the joystick area is used for limiting the movement range of the joystick object moving along with touch operation;
displaying the plurality of virtual resource identifiers associated with the rocker object in a ring in the rocker area.
5. The method according to claim 4, wherein the determining, in response to a second touch operation, a target virtual resource identifier from the plurality of virtual resource identifiers according to the second touch operation and performing differentiated display includes:
responding to a dragging operation, and locking the target virtual resource identifier based on the dragging operation; the dragging operation is used for determining the target virtual resource identifier according to the end position of the dragging operation;
and locking the target virtual resource identifier.
6. The virtual resource acquisition method according to claim 1, wherein the method further comprises:
and responding to a third touch operation, and canceling the differentiated display of the target virtual resource identifier.
7. The virtual resource acquisition method of claim 1, wherein prior to said displaying the plurality of virtual resource identifications associated with the functionality controls, the method further comprises:
acquiring the current position information of the virtual role;
determining real-time distances between the virtual roles and the virtual resources according to the current position information;
and if at least one real-time distance is smaller than a first preset distance, displaying the function control.
8. The virtual resource acquisition method of claim 1, wherein prior to said displaying the plurality of virtual resource identifications associated with the functionality controls, the method further comprises:
acquiring a current visual field image of the virtual character;
and if the current view image comprises at least one virtual resource, displaying the function control.
9. The method according to claim 1, wherein the controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier comprises:
determining a virtual resource acquisition point closest to the virtual role as a current virtual resource acquisition point; the virtual resource acquisition point comprises at least one virtual resource;
and if the target virtual resource is contained in the current virtual resource acquisition point, controlling the virtual role to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
10. The method according to claim 9, wherein the controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier further comprises:
and if the target virtual resource is not contained in the current virtual resource acquisition point, re-determining a new virtual resource acquisition point according to the distance from the virtual character until the target virtual resource is contained in the current virtual resource acquisition point.
11. The method according to claim 1, wherein the determining a target virtual resource identifier from the plurality of virtual resource identifiers comprises:
acquiring the current position information of the virtual role;
determining real-time distances between the virtual roles and the virtual resources according to the current position information;
determining the virtual resource corresponding to the minimum real-time distance as a target virtual resource;
correspondingly, the controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier includes:
and responding to a fourth touch operation, and controlling the virtual role to automatically acquire the target virtual resource.
12. The method according to claim 11, wherein the controlling the virtual character to automatically acquire the target virtual resource comprises:
judging whether the minimum value of the real-time distance is greater than a second preset distance or not;
if the minimum real-time distance is greater than the second preset distance, controlling the virtual character to move to a target area; wherein the distance between any point in the target area and the target virtual resource is less than or equal to the second preset distance;
and in the target area, controlling the virtual role to automatically acquire the target virtual resource.
13. The virtual resource acquisition method according to claim 1, wherein the method further comprises:
responding to the visual field adjusting instruction, and controlling and adjusting the current virtual scene picture;
and responding to a fifth touch operation on the function control, and controlling the virtual role to acquire the target virtual resource in the adjusted virtual scene picture.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 13.
15. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the method of any of claims 1 to 13 via execution of the executable instructions.
CN202110580839.7A 2021-05-26 2021-05-26 Virtual resource acquisition method, computer-readable storage medium, and electronic device Active CN113171605B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110580839.7A CN113171605B (en) 2021-05-26 2021-05-26 Virtual resource acquisition method, computer-readable storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110580839.7A CN113171605B (en) 2021-05-26 2021-05-26 Virtual resource acquisition method, computer-readable storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN113171605A true CN113171605A (en) 2021-07-27
CN113171605B CN113171605B (en) 2024-02-02

Family

ID=76927558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110580839.7A Active CN113171605B (en) 2021-05-26 2021-05-26 Virtual resource acquisition method, computer-readable storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN113171605B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114138483A (en) * 2021-11-29 2022-03-04 平安壹账通云科技(深圳)有限公司 Virtualized resource management method, device, server, system and medium
WO2023088024A1 (en) * 2021-11-18 2023-05-25 腾讯科技(深圳)有限公司 Virtual scene interactive processing method and apparatus, and electronic device, computer-readable storage medium and computer program product
WO2023160015A1 (en) * 2022-02-25 2023-08-31 腾讯科技(深圳)有限公司 Method and apparatus for marking position in virtual scene, and device, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170331762A1 (en) * 2016-05-10 2017-11-16 National Institute Of Information And Communications Technology Virtual resource automatic selection system and method
CN107396197A (en) * 2017-06-27 2017-11-24 腾讯科技(深圳)有限公司 Realize the customized method and device of virtual resource
CN110215712A (en) * 2019-05-17 2019-09-10 网易(杭州)网络有限公司 Edit methods and device, storage medium, the electronic equipment of virtual resource
CN110262730A (en) * 2019-05-23 2019-09-20 网易(杭州)网络有限公司 Edit methods, device, equipment and the storage medium of game virtual resource

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170331762A1 (en) * 2016-05-10 2017-11-16 National Institute Of Information And Communications Technology Virtual resource automatic selection system and method
CN107396197A (en) * 2017-06-27 2017-11-24 腾讯科技(深圳)有限公司 Realize the customized method and device of virtual resource
CN110215712A (en) * 2019-05-17 2019-09-10 网易(杭州)网络有限公司 Edit methods and device, storage medium, the electronic equipment of virtual resource
CN110262730A (en) * 2019-05-23 2019-09-20 网易(杭州)网络有限公司 Edit methods, device, equipment and the storage medium of game virtual resource

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023088024A1 (en) * 2021-11-18 2023-05-25 腾讯科技(深圳)有限公司 Virtual scene interactive processing method and apparatus, and electronic device, computer-readable storage medium and computer program product
CN114138483A (en) * 2021-11-29 2022-03-04 平安壹账通云科技(深圳)有限公司 Virtualized resource management method, device, server, system and medium
CN114138483B (en) * 2021-11-29 2023-09-08 平安壹账通云科技(深圳)有限公司 Virtualized resource management method, device, server, system and medium
WO2023160015A1 (en) * 2022-02-25 2023-08-31 腾讯科技(深圳)有限公司 Method and apparatus for marking position in virtual scene, and device, storage medium and program product

Also Published As

Publication number Publication date
CN113171605B (en) 2024-02-02

Similar Documents

Publication Publication Date Title
CN113171605B (en) Virtual resource acquisition method, computer-readable storage medium, and electronic device
CN107122119B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
CN108159697B (en) Virtual object transmission method and device, storage medium and electronic equipment
CN108536344A (en) Information processing method, device, electronic equipment and storage medium
CN114461122B (en) RPA element picking and on-screen switching method and system
US20060209021A1 (en) Virtual mouse driving apparatus and method using two-handed gestures
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
CN111580923B (en) Control method and device and electronic equipment
CN106843669A (en) Application interface operating method and device
US20220027031A1 (en) Method, device, apparatus, and storage medium for controlling touch operation mode
WO2022222510A1 (en) Interaction control method, terminal device, and storage medium
CN112073301B (en) Method, device and computer readable medium for deleting chat group members
CN108769175B (en) Remote real machine access control method and device, storage medium and electronic equipment
CN113655929A (en) Interface display adaptation processing method and device and electronic equipment
CN109999506B (en) Interaction control method and device for target event, storage medium and electronic equipment
CN113407086A (en) Object dragging method, device and storage medium
US20170168686A1 (en) Method and electronic device for processing list item operation
CN113126875B (en) Virtual gift interaction method and device, computer equipment and storage medium
US20130249810A1 (en) Text entry mode selection
CN113051022A (en) Graphical interface processing method and graphical interface processing device
CN107544740B (en) Application processing method and device, storage medium and electronic equipment
CN109739422B (en) Window control method, device and equipment
CN110075517A (en) Approaches to IM, device, storage medium and electronic equipment in game
CN114779977A (en) Interface display method and device, electronic equipment and storage medium
CN109753221A (en) Touch blank, optical projection system, touch information processing method, device and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant