CN113171605B - 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
CN113171605B
CN113171605B CN202110580839.7A CN202110580839A CN113171605B CN 113171605 B CN113171605 B CN 113171605B CN 202110580839 A CN202110580839 A CN 202110580839A CN 113171605 B CN113171605 B CN 113171605B
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.)
Active
Application number
CN202110580839.7A
Other languages
Chinese (zh)
Other versions
CN113171605A (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

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 acquisition method, a computer readable storage medium and electronic equipment, and relates to the technical field of computers. The virtual resource obtaining method includes the steps that a plurality of virtual resource identifiers associated with a functional control are displayed through responding to first touch operation of a user on the displayed functional control; responding to a second touch operation of the user on the functional control, and distinguishing and displaying a target virtual resource identifier corresponding to the end position of the second touch operation; and during the distinguishing display of the target virtual resource identifiers, controlling the virtual roles to automatically acquire the target virtual resources corresponding to the target virtual resource identifiers. The virtual resource acquisition method solves the technical problem that the convenience of the existing game in the acquisition mode aiming at the virtual resource is low in the prior art, and achieves the technical effect of greatly improving the convenience of the user aiming at the virtual resource acquisition.

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 the 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 wood resources, and a pick is used for acquiring rock resources.
At present, the operation modes of obtaining virtual resources in games by users mainly include the following two modes: firstly, clicking one virtual tool, correspondingly acquiring virtual resources corresponding to the virtual tool once, for example, clicking an ax tool once, and acquiring wood once; in the second mode, a certain virtual tool is pressed for a long time, 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 when the axe tool is released, collection of the wood is stopped.
However, in either of the above methods, the user needs to perform continuous operation to collect the resources, so that the convenience of the method for obtaining the virtual resources in the current game is low.
Disclosure of Invention
The disclosure provides a virtual resource acquisition method, a computer readable storage medium and electronic equipment, so as to improve convenience for virtual resource acquisition.
In a first aspect, an embodiment of the present application provides a method for obtaining a virtual resource, where a graphical user interface is provided by a terminal device, where the graphical user interface includes at least a part of a virtual scene and a virtual character located in the virtual scene, and a function control capable of being displayed, and the method further includes: responsive to a first touch operation on the displayed functionality control, displaying a plurality of virtual resource identifications associated with the functionality 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.
In an optional embodiment of the present application, in response to a first touch operation on a displayed functionality control, displaying a plurality of virtual resource identifications associated with the functionality control, including: responding to a first touch operation of the displayed functional control, and acquiring the duration of the first touch operation; and if the duration time is longer than the preset duration time, displaying a plurality of virtual resource identifiers associated with the function control.
In an alternative embodiment of the present application, the second touch operation is a sliding operation continuous with the first touch operation.
In an alternative embodiment of the present application, displaying a plurality of virtual resource identifiers associated with functionality controls includes: displaying a rocker control in a graphical user interface; the rocker control comprises a rocker area and a rocker object positioned in the rocker area, wherein the rocker area is used for limiting the moving range of the rocker object moving along with the touch operation; a plurality of virtual resource identifications associated with the rocker object are displayed in a ring shape in the rocker area.
In an optional embodiment of the present application, in response to a second touch operation, determining, according to the second touch operation, a target virtual resource identifier from a plurality of virtual resource identifiers, and performing differentiated display, including: responding to the dragging operation, and locking the target virtual resource identifier based on the dragging operation; the drag operation is used for dragging the rocker object to determine a target virtual resource identifier from a plurality of virtual resource identifiers according to the end position of the drag 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 canceled.
In an alternative embodiment of the present application, before displaying the plurality of virtual resource identifiers associated with the functionality control, the method further comprises: acquiring current position information of the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; and if the at least one real-time distance is smaller than the first preset distance, displaying the function control.
In an alternative embodiment of the present application, before displaying the plurality of virtual resource identifiers associated with the functionality control, the method further comprises: acquiring a current visual field image of the virtual character; and if the current visual field 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 nearest to the virtual character; wherein 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 character 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 alternative embodiment of the present application, determining the target virtual resource identifier from a plurality of virtual resource identifiers includes: acquiring current position information of the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; determining a virtual resource corresponding to the minimum value of the real-time distance as a target virtual resource; correspondingly, the controlling the virtual character 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 character to automatically acquire the target virtual resource.
In an optional embodiment of the present application, controlling the virtual character to automatically acquire the target virtual resource includes: judging whether the minimum value of the real-time distance is larger than a second preset distance or not; if the real-time distance minimum value is larger than the second preset distance, the virtual character is controlled to move to the 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; in the target area, the control virtual character automatically acquires the target virtual resource.
In an alternative embodiment of the present application, the method further comprises: responding to the vision adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to the fifth touch operation of the functional control, and controlling the virtual character to acquire the target virtual resource in the adjusted virtual scene picture.
In a second aspect, there is provided a computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements a method according to any of the above.
In a third aspect, an electronic device is provided, 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 the above via execution of executable instructions.
The technical scheme of the present disclosure has the following beneficial effects:
according to the virtual resource obtaining method, the plurality of virtual resource identifiers associated with the functional control are displayed under the first touch operation of the user on the displayed functional control, then the target virtual resource identifiers corresponding to the ending position of the second touch operation are displayed in a distinguishing mode under the second touch operation of the user on the functional control, and finally the virtual role is controlled to automatically obtain the target virtual resources corresponding to the target virtual resource identifiers only during the distinguishing display of the target virtual resource identifiers. According to the virtual resource acquisition method, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resource so as to realize differentiated display of the target virtual resource, and the virtual resource can be automatically acquired without any operation in the subsequent acquisition process, so that the technical problem that the convenience of the existing game for acquiring the virtual resource is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resource 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 disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely some embodiments of the present disclosure and that other drawings may be derived from these drawings without undue effort.
Fig. 1 shows an application scenario schematic diagram of a virtual resource obtaining method in the present exemplary embodiment;
fig. 2 shows a flowchart of a virtual resource acquisition method in the present exemplary embodiment;
fig. 3 to 6 are schematic diagrams showing 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 view of an application scenario of a virtual resource obtaining 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 showing application scenarios 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 shows an application scenario diagram of a virtual resource acquisition method in the present exemplary embodiment;
15-17 illustrate a flow chart of a virtual resource acquisition method in the present exemplary embodiment;
fig. 18 is a schematic view showing an application scenario of a virtual resource acquisition method in the present exemplary embodiment;
FIGS. 19-21 are flowcharts showing a virtual resource acquisition method in the present exemplary embodiment;
fig. 22 is a diagram showing a configuration of a virtual resource acquisition apparatus in the present exemplary embodiment;
fig. 23 shows a schematic configuration diagram of an electronic device in the present exemplary embodiment.
Detailed Description
Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many 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 the exemplary 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 present disclosure. However, those skilled in the art will recognize that the aspects of the present disclosure may be practiced with one or more of the specific details, or with other methods, components, devices, steps, etc. 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 a repetitive description thereof 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 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 diagrams depicted in the figures are exemplary only and not necessarily all steps are included. For example, some steps may be decomposed, and some steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
In the related art, different virtual characters, virtual tools and virtual resources are generally set in the game scene, so as to provide a real and gorgeous game scene for the user. The virtual tool is used for acquiring corresponding virtual resources, for example, an axe is used for acquiring wood resources, and a pick is used for acquiring rock resources. At present, the operation modes of obtaining virtual resources in games by users mainly include the following two modes: firstly, clicking one virtual tool, correspondingly acquiring virtual resources corresponding to the virtual tool once, for example, clicking an ax tool once, and acquiring wood once; in the second mode, a certain virtual tool is pressed for a long time, 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 when the axe tool is released, collection of the wood is stopped. However, in either of the above methods, the user needs to perform continuous operation to collect the resources, so that the convenience of the method for obtaining the virtual resources in the current game is low.
In view of the above problems, the present application discloses a virtual resource obtaining method, which includes displaying a plurality of virtual resource identifiers associated with a function control under a first touch operation of a user on the displayed function control, then distinguishing and displaying a target virtual resource identifier corresponding to an end position of a second touch operation under a second touch operation of the user on the function control, and finally controlling a virtual character to automatically obtain a target virtual resource corresponding to the target virtual resource identifier only during distinguishing and displaying the target virtual resource identifier. According to the virtual resource acquisition method, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resource so as to realize differentiated display of the target virtual resource, and the virtual resource can be automatically acquired without any operation in the subsequent acquisition process, so that the technical problem that the convenience of the existing game for acquiring the virtual resource is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resource is achieved.
The following briefly describes an application environment of the virtual resource obtaining 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, etc., and the embodiment of the present application is not limited in particular. It should be noted that the terminal device 10 may be operatively provided with a graphical user interface 100, where the graphical user interface 100 includes a virtual character 110, a virtual resource 120, and a functional control 130 that can be displayed to provide a user with a variety of game scenarios. Wherein the virtual character 110 refers to game characters with different identities in a game scene, such as killers, villagers, pastures 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 survive or complete a task in a game, for example, virtual wood, virtual rock, virtual fruit, etc., and the position of the virtual resource 120 in a game scene is fixed and not movable; the functionality control 130 refers to an operation port for a user to interact with the graphical user interface 100, for example, sliding, clicking, etc., and the functionality 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, etc. It should be noted that, the functional control 130 is in a state that can be hidden, and can be displayed on the gui 100 daily, and at the same time, the game experience of the user can be improved. The display state of the functional control 130 is not specifically limited, and may be specifically selected or limited according to actual situations.
Taking the terminal device 10 as an execution subject, the application of the virtual resource acquisition method to the terminal device 10 is exemplified below, and the acquisition of the virtual resource is exemplified. Referring to fig. 2, the 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 identifiers associated with the function control.
Referring to fig. 3, the functional control 130 is displayed in the gui 100, but the virtual resource identifier 301 is not displayed, and the user performs a first touch operation, such as clicking, long pressing, sliding, etc., on the functional control 130, and after responding to the first touch operation, the terminal device converts the states of the plurality of virtual resource identifiers 301 from the original hidden state to the display state. Referring to fig. 4, the following two descriptions are provided for the plurality of virtual resource identifiers 301: in a first aspect, the plurality of virtual resource identifiers 301 are used to characterize different virtual resource types, such as an axe, a pick, etc., so as to provide a variety of interaction interfaces for users; in a second aspect, the plurality of virtual resource identifiers 301 are associated with the functionality control 130, and the user wakes up to display or closes to hide the plurality of virtual resource identifiers by performing a touch operation on the functionality 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 plurality of virtual resource identifiers 301 and the functionality control 130 is not limited, and may be specifically selected or set according to actual situations, and it is only required to satisfy that the display and hiding of the plurality of virtual resource identifiers 301 can be controlled by the functionality control.
Step 202, the terminal device responds to the second touch operation, determines a target virtual resource identifier from the plurality of virtual resource identifiers according to the second touch operation, and performs differentiated display.
After the functional control and the plurality of virtual resource identifiers are displayed on the graphical user interface of the terminal device, the user performs a second touch operation on the functional control, for example, clicking, long pressing, sliding and the like, and the terminal device responds to the second touch operation through an internal detection module, wherein the specific response comprises: and detecting the second touch operation action and detecting the end position of the second touch operation action.
The terminal device stores the position information of each virtual resource identifier in advance, and after determining to obtain the end position of the second touch operation, the determining manner of obtaining the target virtual resource identifier includes, but is not limited to, the following ways: the first way is to determine the virtual resource identifier closest to the end position as a target virtual resource identifier; and in a second mode, querying a position information corresponding table of each virtual resource identifier stored in the second mode, determining which virtual resource identifier corresponds to the ending position of the second touch operation action is in a position range corresponding to the virtual resource identifier, and then determining the virtual resource identifier corresponding to the ending position as a target virtual resource identifier.
The terminal device performs differentiated display on the target virtual resource identifier after obtaining the target virtual resource identifier, where the differentiated display refers to displaying the target virtual resource identifier different from other non-target virtual resource identifiers, and may include, but is not limited to, the following ways: the first way is to enlarge or reduce the target virtual resource identifier; the second way, the target virtual resource identifier is identified using, for example, a lock icon; in a third way, the target virtual resource identifier is color-processed, such as hue, saturation, or transparency, for example, the wood virtual resource identifier is blackened in fig. 5.
Step 203, the terminal device controls the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier.
After the target virtual resource identifier is displayed in a differentiated manner, the terminal device automatically executes automatic acquisition of the target virtual resource corresponding to the target virtual resource identifier through an internally stored automatic virtual resource acquisition program until the current target virtual resource is completely acquired, for example, fig. 6, so that the wood virtual resource is completely acquired. The terminal equipment can control the virtual roles to sequentially move to the vicinity of the target virtual resources one by one to acquire, and can acquire the target virtual resources in the game scene at a long distance in one time under the game scene of the virtual roles without moving close to the target virtual resources.
According to the virtual resource obtaining method, the plurality of virtual resource identifiers associated with the functional control are displayed under the first touch operation of the user on the displayed functional control, then the target virtual resource identifiers corresponding to the ending position of the second touch operation are displayed in a distinguishing mode under the second touch operation of the user on the functional control, and finally the virtual role is controlled to automatically obtain the target virtual resources corresponding to the target virtual resource identifiers only during the distinguishing display of the target virtual resource identifiers. According to the virtual resource acquisition method, the user only needs to perform the first touch operation and the second touch operation before acquiring the virtual resource so as to realize differentiated display of the target virtual resource, and the virtual resource can be automatically acquired without any operation in the subsequent acquisition process, so that the technical problem that the convenience of the existing game for acquiring the virtual resource is low in the prior art is solved, and the technical effect of greatly improving the convenience of the user for acquiring the virtual resource is achieved.
Referring to fig. 7, in an alternative embodiment of the present application, in response to a first touch operation on a displayed functionality control, the terminal device in step 201 displays a plurality of virtual resource identifiers associated with the functionality control, including the following steps 701-702:
In step 701, the terminal device responds to a first touch operation of the displayed functional control, and acquires duration of the first touch operation.
The user performs an interactive operation on the functional control, that is, performs a first touch operation, where the first touch operation may be, for example, clicking, sliding, and the like. After the terminal device responds to the first touch operation, the duration of the pressing operation of the user, for example, 0.2s, 0.5s and the like, is detected through a touch detection unit arranged on a display panel of the terminal device.
Step 702, if the duration is longer than the preset duration, the terminal device displays a plurality of virtual resource identifiers associated with the function control.
The terminal device compares the duration obtained through the step 701 with the preset duration stored in the terminal device to judge the relative size of the duration and the preset duration. If the duration time is longer than the preset duration time, the fact that the current first touch operation of the user is long press operation means that the display condition of the virtual resource identifiers is met, and the terminal equipment displays the virtual resource identifiers. If the duration is less than or equal to the preset duration, the current first touch operation of the user is a non-long press operation, the display condition of the virtual resource identifiers is not met, and the terminal equipment continues to hide the plurality of virtual resource identifiers.
In the virtual resource obtaining method provided by the embodiment of the invention, the plurality of virtual resource identifiers are displayed only when the duration of the first touch operation is longer than the preset duration, are in the hidden state under other conditions, can not occupy the display interface under other conditions, are more comprehensive in display, provide a more comprehensive game scene display interface for a user, facilitate the user to comprehensively master the current game progress, and are higher in reliability. Meanwhile, the judging condition for displaying the plurality of virtual resource identifiers in the method is that the duration time is longer than the preset duration time, namely the long-press operation, so that misoperation of a user, such as clicking, sliding and the like, can be effectively avoided, normal game progress is influenced, and operation reliability of the user is further improved.
In a specific embodiment of the present application, the second touch operation in the above embodiment is a sliding operation continuous with the first touch operation.
And after the terminal equipment detects the first touch operation, dragging any point of the functional control to a position corresponding to the target virtual resource identifier by taking the position of the first touch operation as a starting point. In other words, 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, so that the operation is more convenient.
With continued reference to fig. 5 and fig. 6, in an embodiment of the present application, a plurality of virtual resource identifiers 301 are looped around the periphery of the functionality control 130.
The ring setting manner in this embodiment includes, but is not limited to, the following two manners: in the first mode, the plurality of virtual resource identifiers are uniformly arranged on the periphery of the functional control; in a second mode, the plurality of virtual resource identifiers are classified according to categories, a first distance with larger intervals is formed between different categories, and a second distance with smaller intervals is formed between a plurality of virtual resource identifiers in the same category, namely, the first distance is larger than the second distance.
The virtual resource identifiers in the embodiment of the application are annularly arranged on the periphery of the functional control, the distance from the virtual resource identifiers to the functional control is smaller, the operation can be conveniently performed by a user, and the convenience is higher. Meanwhile, the virtual resource identifiers are arranged on the periphery of the functional control, namely, the virtual resource identifiers are controlled in the area of the functional control, the virtual resource identifiers are displayed outside the area of the functional control, the area functions are clearly divided, the virtual resource identifiers can be effectively prevented from overlapping with other control areas inside the functional control, the operation of a user is convenient, and the reliability of the operation of the user can be improved.
In an optional embodiment of the present application, before displaying the plurality of virtual resource identifiers associated with the functionality control, the virtual resource obtaining method further includes the steps of: and the terminal equipment responds to the third touch operation, and cancels the differentiated display of the target virtual resource identifier.
For example, after the terminal device performs automatic acquisition on the virtual resource completely as shown in fig. 6, or the user wants to end automatic acquisition on the virtual resource and continues to perform manual acquisition, in this case, the user releases the target virtual resource identifier through the third touch operation, that is, the terminal device stops automatic acquisition on the target virtual resource, as shown in fig. 8, the wood virtual resource identifier is changed from black in fig. 6 to transparent color in fig. 8. The third touch operation may be a single click, a long press, or a sliding operation, which is not specifically limited in this embodiment, and may be specifically selected or set according to the actual situation.
According to the virtual resource acquisition method, differentiated display of the target virtual resource identification can be canceled through the third touch operation, a user can conveniently control the resource acquisition process according to actual conditions, and the flexibility of user control is higher.
Referring to fig. 9, in an alternative embodiment of the present application, before the terminal device displays the plurality of virtual resource identifiers associated with the functionality control in step 201, the method further includes steps 901-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, namely, each virtual resource and each virtual character have corresponding coordinate information, namely, have respective position information. The terminal equipment detects the real-time position information of the virtual character through the detection unit in the terminal equipment so as to acquire the current position information of the virtual character.
And 902, the terminal equipment determines the real-time distance between the virtual character 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, so the coordinate information of each virtual resource may be stored in the terminal device in advance. After obtaining the current coordinate information of the virtual character through the above step 901, the terminal device calculates the distance between the current coordinate of the virtual character and each virtual resource, so as to obtain a plurality of real-time distances, for example, OA1, OA2, OA3, OB1, OB2, OC1, OC2, and the like in fig. 10.
And 903, if at least one real-time distance is smaller than the first preset distance, displaying the function control by the terminal equipment.
After obtaining the real-time distances, the terminal device compares the real-time distances with a preset first preset distance to judge the relative sizes of the real-time distances and the first preset distance. The first preset distance is used for defining an area range in which the virtual character can collect virtual resources. If any one of the real-time distances is smaller than the first preset distance, it means that there is a virtual resource near the virtual character that can be acquired, and the terminal device displays a function control 130 to the user as shown in fig. 11, so that the user can determine whether to acquire or not. Conversely, 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 obtaining method, whether the function control is displayed is determined through 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 collection is needed or not, the function control is hidden under other conditions, the intelligence is higher, and the display effect of a game scene can be improved to the greatest extent on the premise that the operation convenience of the user is guaranteed.
Referring to fig. 13, in an alternative embodiment of the present application, before the terminal device displays the plurality of virtual resource identifiers associated with the functionality control in step 201, the method for obtaining a virtual resource further includes the following steps 131-132:
and 131, the terminal equipment acquires the current visual field 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 along with the movement of the virtual character, the virtual camera is used for collecting the view image of the current view of the virtual character in real time; in the second mode, as shown in fig. 14, the terminal device may set a sector area OD1D2 in advance with the virtual character as the center point, set the scene image covered by the sector area OD1D2 as the view image of the virtual character, and determine the 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, and may be specifically selected or set according to the actual situation, and it is only required to achieve 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 the function control.
After obtaining the current field of view image, the terminal device may analyze the current field of view image based on the internally stored AI identification module or the like to determine whether the current field of view image has virtual resources. In the first case, as a result of the analysis, if virtual resources such as B1, B2, C1, and C2 are included in the sector OD1D2 in fig. 14, this means that there are virtual resources that can be acquired near the virtual character, and the terminal device displays a function control to the user, so that the user can determine whether to acquire or not. If the analysis result is that the current visual field image does not have virtual resources, the analysis result means that no collectable resources exist near the current virtual character, and the terminal equipment continues to hide the function control.
According to the virtual resource acquisition method, whether the functional control is displayed is determined by whether the current visual field image of the virtual character contains the virtual resource or not, the functional control is displayed only when the current visual field image contains the virtual resource or not, so that a user can judge whether acquisition is needed or not, the functional control is hidden under other conditions, the intelligence is higher, and the display effect of a game scene can be maximally improved on the premise of ensuring the operation convenience of the user.
Referring to fig. 15, in an alternative embodiment, the determining, in step 202, the target virtual resource identifier from the plurality of virtual resource identifiers includes: steps 151-154 are as follows:
step 151, the terminal device obtains the current position information of the virtual character.
In step 901, different elements in the graphical user interface of the terminal device correspond to different coordinates, i.e. each virtual resource and each virtual character have their corresponding coordinate information, i.e. have their respective position information. The terminal equipment detects the real-time position information of the virtual character through the detection unit in the terminal equipment so as to acquire the current position information of the virtual character.
Step 152, the terminal device determines the real-time distance between the virtual character and each virtual resource according to the current position information.
As in step 902, the coordinate information of each virtual resource is stored in the terminal device in advance. After obtaining the current coordinate information of the virtual character through the above step 901, the terminal device calculates the distance between the current coordinate of the virtual character and each virtual resource, and correspondingly obtains a plurality of real-time distances.
Step 153, the terminal device determines the virtual resource corresponding to the minimum value of the real-time distance as the target virtual resource.
After obtaining the plurality of real-time distances, 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 character to automatically acquire the target virtual resource corresponding to the target virtual resource identifier includes:
and 154, the terminal equipment 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 the step 153, 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 functional control, and the terminal device can start to automatically obtain the target virtual resource after responding to the fourth touch operation.
In the virtual resource obtaining method provided by the embodiment of the application, the target virtual resource is automatically determined through the real-time distance between the virtual character and each virtual resource, no operation is required by the user, after the target virtual resource is determined, the user can start automatic obtaining of the target virtual resource only through the fourth touch operation, and the user operation is more convenient, so that the convenience of the virtual resource obtaining method provided by the embodiment of the application is further improved.
Referring to fig. 16, in an alternative embodiment of the present application, step 154, the terminal device controlling the avatar to automatically acquire the target virtual resource includes the following steps 161-163:
step 161, the terminal device determines whether the real-time distance minimum value is greater than a second preset distance.
After obtaining the real-time distances between the virtual character and each virtual resource through the step 902, the terminal device first determines a minimum value in the 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 respectively 10m, 20m and 30m, and the terminal device compares the 10m with the preset second distance.
And 162, if the real-time distance minimum value is greater than the second preset distance, the terminal equipment controls the virtual character to move to the 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. If the terminal equipment determines that the minimum value of the real-time distance is larger than the second preset distance, the distance between the virtual character and the target virtual resource to be acquired is further, and the terminal equipment controls the virtual character to move to the target area, namely to the vicinity of the target virtual resource or the position of the target virtual resource.
And 163, controlling the virtual role to automatically acquire the target virtual resource in the target area by the terminal equipment.
After the terminal equipment moves the virtual character to the target area, the virtual character can be controlled to automatically acquire the target virtual resource. In this embodiment, after the virtual character moves to the target area, the terminal device may automatically start automatic acquisition of the target virtual resource, or may start automatic acquisition of the target virtual resource through other touch operations of the user, such as clicking, for example.
According to the virtual resource obtaining method, when the virtual character is far away from the target virtual resource, the virtual character is moved to the position of the target virtual resource, and then automatic obtaining is performed on the target virtual resource. The virtual character is moved to the target area near the target virtual resource, so that a user can conveniently observe the current game process in real time, and the situation that the terminal equipment performs error acquisition on virtual resources of other non-target virtual resources under the condition that errors and the like occur in the system is avoided, so that 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, including the following steps 171-172:
Step 171, the terminal device displays the rocker control in the graphical user interface.
As shown in fig. 18, the rocker control 180 may be displayed in the functional control 130, or may be displayed in other areas of the gui 100 different from the functional control 130, or of course, the functional control 130 may be hidden, and the rocker control 180 may be displayed in a position where the functional control 130 is located, which is not limited in this embodiment. The rocker control 180 at least includes a rocker area 181 and a rocker object 182 located in the rocker area 181, where the rocker object 182 refers to an object of a user performing a touch operation such as the first touch operation and the second touch operation, and the rocker area 181 is used to define a movement range in which the rocker object 182 moves along with the touch operation.
Step 172, displaying a plurality of virtual resource identifiers associated with the rocker object in a ring shape 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 a rocker area 181 in the rocker control 180. When the rocker object 182 is located at the center of the rocker control 180, the plurality of virtual resource identifiers 301 are annularly arranged on the periphery of the rocker object 182; when the rocker object 182 is dragged to move to the target virtual resource identifier, the rocker object 182 overlaps or partially overlaps the target virtual resource identifier, so as to achieve the purpose of differentiated display. Meanwhile, the terminal equipment can also realize locking of the target virtual resource identifier based on the overlapping.
According to the virtual resource obtaining method, the rocker control comprising the rocker area and the rocker object is arranged in the functional control, the moving range of the rocker object is limited through the rocker area, then the determination of the target virtual resource is realized based on dragging of the rocker object, the determined position of the target virtual resource is limited to the specific position, and area function division is clearer, so that the efficiency of obtaining the virtual resource by a user is further improved.
Referring to fig. 19, in a specific embodiment of the present application, in response to the second touch operation, the step 202 determines a target virtual resource identifier from a plurality of virtual resource identifiers according to the second touch operation, and performs differentiated display, and includes the following steps:
step 191, the terminal equipment responds to the dragging operation and locks the target virtual resource identifier based on the dragging operation; the drag operation is used for dragging the rocker object to determine a target virtual resource identifier from a plurality of virtual resource identifiers according to the end position of the drag operation;
and step 192, the terminal equipment locks the target virtual resource identifier.
The drag operation is used for dragging the rocker object to determine a target virtual resource identifier from a plurality of virtual resource identifiers. According to the method and the device for determining the virtual resource, the rocker object is dragged to the target virtual resource, and the target virtual resource is displayed in a distinguishing mode, so that user operation can be facilitated, and the efficiency and convenience for determining the target virtual resource are further improved.
Referring to fig. 20, in an alternative embodiment of the present application, the step 203 of controlling the virtual role by the terminal device 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 the virtual resource acquisition point closest to the virtual character.
The virtual character is provided with a plurality of virtual resource acquisition points nearby, and each virtual resource acquisition point comprises at least one virtual resource. The virtual character has different distances from different virtual resource acquisition points, and the terminal equipment determines one virtual resource acquisition point closest to the virtual character from a plurality of virtual resource acquisition points.
In step 2002, if the current virtual resource acquisition point includes the target virtual resource, the terminal device controls the virtual character to move to the current virtual resource acquisition point, and automatically acquires the target virtual resource.
For example, the current target virtual resource is wood resource, the current virtual resource acquisition point contains wood resource, the terminal equipment controls the virtual character to automatically find a path, the virtual character moves to the preset range of the current virtual resource acquisition point, and then the target virtual resource in the current virtual resource acquisition point is automatically acquired until the preset number of target virtual resources are acquired, or until the target virtual resource in the current virtual resource acquisition point is completely acquired.
Step 2003, if the current virtual resource acquisition point does not contain the target virtual resource, the terminal device redetermines the 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.
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 a path and move to the next virtual resource acquisition point. The automatic route searching of the virtual character is performed according to the distance, for example, the distance from the virtual character is sequentially as follows: a first virtual resource acquisition point, a second virtual resource acquisition point, a third virtual resource acquisition point, and so on. If the first virtual resource acquisition point does not have the target virtual resource, the terminal equipment controls the virtual character to move from the first virtual resource acquisition point to the second virtual resource acquisition point, and if the second virtual resource acquisition point still does not have the target virtual resource, the terminal equipment continues to control the virtual character to move from the second virtual resource acquisition point to the third virtual resource acquisition point until the third virtual resource acquisition point has the target virtual resource.
According to the virtual resource acquisition method, the virtual roles are controlled to automatically find the way according to the distance between the virtual roles and each virtual resource acquisition point until the current virtual resource acquisition point contains the target virtual resource, and then the target virtual resource in the current virtual resource acquisition point is automatically acquired, so that the acquisition efficiency of the target virtual resource can be greatly improved.
Referring to fig. 21, in an alternative embodiment of the present application, the above method for obtaining a virtual resource further includes the following steps 2101-2102:
in step 2101, the terminal device responds to the view adjustment command and controls and adjusts the current virtual scene picture.
The view adjusting instruction is used for indicating to adjust the current virtual scene picture, where the view adjusting instruction may be a manipulation instruction sent by a user, or may be an instruction generated by the terminal device when the terminal device has obtained a target virtual resource in a virtual resource collection point containing the target virtual resource in the current virtual scene in a virtual role, or when the current virtual scene picture does not have a virtual resource collection point containing the target virtual resource, and the embodiment is not specifically limited, and may be specifically selected or set according to practical situations.
In step 2101, the terminal device responds to a fifth touch operation for the functional control, and controls the virtual character to acquire the virtual resource corresponding to the preset position in the current virtual scene of the target virtual resource in the adjusted virtual scene.
After the virtual character finishes acquiring the target virtual resource in the current virtual scene, the terminal equipment can adjust the current virtual scene picture according to the actual situation, namely switch, and then further acquire the target virtual resource in the switched virtual scene picture.
After responding to the view adjustment instruction, the virtual resource acquisition method provided by the embodiment of the application can control and adjust the current virtual scene picture and then further acquire the target virtual resources in other virtual scenes, so that the comprehensiveness and flexibility of the virtual resource acquisition method in the embodiment of the application on virtual resource acquisition are further improved.
Referring to fig. 22, in order to implement the above-described service processing method, in one 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 obtaining device 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 display a plurality of virtual resource identifiers associated with a functional control in response to a first touch operation on the displayed functional control;
the second display control module 2202 is configured to determine, 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 perform differentiated display;
the control module 2203 is configured to control the virtual role to automatically acquire a target virtual resource corresponding to the target virtual resource identifier.
In an optional embodiment, the first display module 2201 is specifically configured to obtain, in response to a first touch operation on the displayed functional control, a duration of the first touch operation; and if the duration time is longer than the preset duration time, displaying a plurality of virtual resource identifiers associated with the function control.
In an alternative embodiment, the second touch operation is a sliding operation continuous with the first touch operation.
In an alternative embodiment, the first display control module 2201 is specifically configured to display a rocker control in a graphical user interface; the rocker control comprises a rocker area and a rocker object positioned in the rocker area, wherein the rocker area is used for limiting the moving range of the rocker object moving along with the touch operation; a plurality of virtual resource identifications associated with the rocker object are displayed in a ring shape in the rocker area.
In an optional embodiment, the first display control module 2201 is specifically configured to respond to a drag operation, and lock the target virtual resource identifier based on the drag operation; the drag operation is used for dragging the rocker object to determine a target virtual resource identifier from a plurality of virtual resource identifiers according to the end position of the drag operation; and locking the target virtual resource identifier.
In an alternative 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 the real-time distance between the virtual character and each virtual resource according to the current position information; and if the at least one real-time distance is smaller than the first preset distance, displaying the function control.
In an alternative embodiment, the first display control module 2201 is further configured to acquire a current view image of the virtual character; and if the current visual field image comprises at least one virtual resource, displaying the function control.
In an alternative embodiment, the control module 2203 is further configured to determine a virtual resource collection point closest to the virtual character; wherein 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 character to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
In an alternative embodiment, the control module 2203 is specifically configured to, if the current virtual resource collection point does not include the target virtual resource, redefine the new virtual resource collection point according to the distance from the virtual character until the current virtual resource collection 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 the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; determining a virtual resource corresponding to the minimum value of the real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual character to automatically acquire the target virtual resource.
In an alternative embodiment, the control module 2203 is specifically configured to determine whether the real-time distance minimum is greater than a second predetermined distance; if the real-time distance minimum value is larger than the second preset distance, the virtual character is controlled to move to the 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; in the target area, the control virtual character automatically acquires the target virtual resource.
In an alternative embodiment, the second display control module 2202 is further configured to control and adjust the current virtual scene in response to the view adjustment command; and responding to the fifth touch operation of the functional control, and controlling the virtual character 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 comprising program code for causing an electronic device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the above section of the "exemplary method" when the program product is run on the electronic device. In one embodiment, the program product may be implemented as a portable compact disc read only memory (CD-ROM) and includes 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. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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 of 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, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, 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., connected via the Internet using an Internet service provider).
In one embodiment of the present application, the program code stored in the computer readable storage medium may implement the following steps when executed:
responsive to a first touch operation on the displayed functionality control, displaying a plurality of virtual resource identifications associated with the functionality 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.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium may implement the following steps when executed: responding to a first touch operation of the displayed functional control, and acquiring the duration of the first touch operation; and if the duration time is longer than the preset duration time, displaying a plurality of virtual resource identifiers associated with the function control.
In an alternative embodiment of the present application, the second touch operation is a sliding operation continuous with the first touch operation.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium may implement the following steps when executed: displaying a rocker control in a graphical user interface; the rocker control comprises a rocker area and a rocker object positioned in the rocker area, wherein the rocker area is used for limiting the moving range of the rocker object moving along with the touch operation; a plurality of virtual resource identifications associated with the rocker object are displayed in a ring shape in the rocker area.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium may implement the following steps when executed: responding to the dragging operation, and locking the target virtual resource identifier based on the dragging operation; the dragging operation is used for determining a target virtual resource identifier according to the ending 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 may implement the following steps when executed: and responding to the third touch operation, and canceling 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 may implement the following steps when executed: acquiring current position information of the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; and if the at least one real-time distance is smaller than the 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 may implement the following steps when executed: acquiring a current visual field image of the virtual character; and if the current visual field 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 may implement the following steps when executed: determining a virtual resource acquisition point nearest to the virtual character; wherein 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 character 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 may implement the following steps when executed: 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 may implement the following steps when executed: acquiring current position information of the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; determining a virtual resource corresponding to the minimum value of the real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual character 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 may implement the following steps when executed: judging whether the minimum value of the real-time distance is larger than a second preset distance or not; if the real-time distance minimum value is larger than the second preset distance, the virtual character is controlled to move to the 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; in the target area, the control virtual character automatically acquires the target virtual resource.
In an alternative embodiment of the present application, the program code stored in the computer readable storage medium may implement the following steps when executed: responding to the vision adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to the fifth touch operation of the functional control, and controlling the virtual character to acquire the target virtual resource in the adjusted virtual scene picture.
The exemplary embodiments of the present disclosure also provide an electronic device, which may be a background server of an information platform. The electronic device is described below with reference to fig. 23. It should be understood that the electronic device 1000 shown in fig. 23 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 23, the electronic device 1000 is embodied in the form of a general purpose computing device. Components of 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 connects the various system components, including the memory unit 1020 and the processing unit 1010.
Wherein the storage unit stores program code that is executable by the processing unit 1010 such that the processing unit 1010 performs steps according to various exemplary embodiments of the present invention described in the above section of the "exemplary method" of the present specification. For example, the processing unit 1010 may perform the method steps shown in fig. 2, etc.
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 or some combination of which may include an implementation of a network environment.
Bus 1030 may include a data bus, an address bus, and a control bus.
The electronic device 1000 can also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, bluetooth device, etc.) via input/output (I/O) interface 1040. Electronic device 1000 can also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, e.g., the Internet, through network adapter 1050. As shown, network adapter 1050 communicates with other modules of electronic device 1000 via bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the electronic device 1000, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
In one embodiment of the present application, the program code stored in the electronic device may implement the following steps when executed:
responsive to a first touch operation on the displayed functionality control, displaying a plurality of virtual resource identifications associated with the functionality 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.
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 of the displayed functional control, and acquiring the duration of the first touch operation; and if the duration time is longer than the preset duration time, displaying a plurality of virtual resource identifiers associated with the function control.
In an alternative embodiment of the present application, the second touch operation is a sliding operation 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 rocker control comprises a rocker area and a rocker object positioned in the rocker area, wherein the rocker area is used for limiting the moving range of the rocker object moving along with the touch operation; a plurality of virtual resource identifications associated with the rocker object are displayed in a ring shape 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 dragging operation is used for determining a target virtual resource identifier according to the ending 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 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 the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; and if the at least one real-time distance is smaller than the 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 visual field image of the virtual character; and if the current visual field 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 nearest to the virtual character; wherein 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 character 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 the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; determining a virtual resource corresponding to the minimum value of the real-time distance as a target virtual resource; and responding to the fourth touch operation, and controlling the virtual character 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 larger than a second preset distance or not; if the real-time distance minimum value is larger than the second preset distance, the virtual character is controlled to move to the 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; in the target area, the control virtual character automatically acquires 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 vision adjusting instruction, and controlling and adjusting the current virtual scene picture; and responding to the fifth touch operation of the functional control, and controlling the virtual character 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 a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with exemplary embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may 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 adaptations, 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A method for obtaining virtual resources, characterized in that a graphical user interface is provided by a terminal device, the graphical user interface comprising at least a part of a virtual scene and virtual characters located in the virtual scene and displayable functionality controls, the method further comprising:
responding to a first touch operation of the displayed function control, and displaying a plurality of virtual resource identifiers 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;
controlling the virtual role to automatically acquire the target virtual resource corresponding to the target virtual resource identifier;
the method further comprises the steps of:
responding to a fourth touch operation, controlling the virtual role to automatically acquire a target virtual resource, wherein the target virtual resource is determined by the following steps: acquiring current position information of the virtual character; determining the real-time distance between the virtual character and each virtual resource according to the current position information; determining the virtual resource corresponding to the real-time distance minimum as a target virtual resource;
Wherein the controlling the virtual role to automatically acquire the target virtual resource includes:
judging whether the minimum value of the real-time distance is larger than a second preset distance or not; if the real-time distance minimum value is larger 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.
2. The method of claim 1, wherein the displaying a plurality of virtual resource identifiers associated with the functionality control in response to a first touch operation on the displayed functionality control comprises:
responding to the first touch operation of the displayed functional control, and acquiring the duration of the first touch operation;
and if the duration time is longer than the preset duration time, displaying the plurality of virtual resource identifiers associated with the function control.
3. The virtual resource acquisition method according to claim 1 or 2, wherein the second touch operation is a sliding operation continuous with the first touch operation.
4. The method of claim 1, wherein the displaying a plurality of virtual resource identifiers associated with the functionality control comprises:
displaying a rocker control in the graphical user interface; the rocker control comprises a rocker area and a rocker object positioned in the rocker area, wherein the rocker area is used for limiting the moving range of the rocker object moving along with the touch operation;
and displaying the virtual resource identifiers associated with the rocker object in a ring shape in the rocker area.
5. The method of 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 ending position of the dragging operation;
and locking the target virtual resource identifier.
6. The virtual resource acquisition method of claim 1, further comprising:
And responding to a third touch operation, and canceling differentiated display of the target virtual resource identifier.
7. The virtual resource acquisition method of claim 1, wherein prior to the displaying the plurality of virtual resource identifications associated with the functionality control, the method further comprises:
acquiring current position information of the virtual character;
determining the real-time distance between the virtual character and each virtual resource according to the current position information;
and if at least one real-time distance is smaller than a first preset distance, displaying the functional control.
8. The virtual resource acquisition method of claim 1, wherein prior to the displaying the plurality of virtual resource identifications associated with the functionality control, the method further comprises:
acquiring a current visual field image of the virtual character;
and if the current visual field image comprises at least one virtual resource, displaying the functional control.
9. The method for obtaining virtual resources according to claim 1, wherein the controlling the virtual character to automatically obtain the target virtual resource corresponding to the target virtual resource identifier includes:
Determining the virtual resource acquisition point closest to the virtual character as the current virtual resource acquisition point; wherein the virtual resource collection point comprises at least one virtual resource;
and if the current virtual resource acquisition point contains the target virtual resource, controlling the virtual character to move to the current virtual resource acquisition point, and automatically acquiring the target virtual resource.
10. The method for obtaining virtual resources according to claim 9, wherein the controlling the virtual character to automatically obtain 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 role until the current virtual resource acquisition point contains the target virtual resource.
11. The virtual resource acquisition method of claim 1, further comprising:
responding to the vision adjusting instruction, and controlling and adjusting the current virtual scene picture;
and responding to a fifth touch operation of the functional control, and controlling the virtual character to acquire the target virtual resource in the adjusted virtual scene picture.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the method of any one of claims 1 to 11.
13. 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 one of claims 1 to 11 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 CN113171605A (en) 2021-07-27
CN113171605B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114307152A (en) * 2021-11-18 2022-04-12 腾讯科技(深圳)有限公司 Virtual scene display method and device, electronic equipment and storage medium
CN114138483B (en) * 2021-11-29 2023-09-08 平安壹账通云科技(深圳)有限公司 Virtualized resource management method, device, server, system and medium
CN116688502A (en) * 2022-02-25 2023-09-05 腾讯科技(深圳)有限公司 Position marking method, device, equipment and storage medium in virtual scene

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6664812B2 (en) * 2016-05-10 2020-03-13 国立研究開発法人情報通信研究機構 Automatic virtual resource selection system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN113171605A (en) 2021-07-27

Similar Documents

Publication Publication Date Title
CN113171605B (en) Virtual resource acquisition method, computer-readable storage medium, and electronic device
US11301200B2 (en) Method of providing annotation track on the content displayed on an interactive whiteboard, computing device and non-transitory readable storage medium
CN107019909B (en) Information processing method, information processing device, electronic equipment and computer readable storage medium
US7849421B2 (en) Virtual mouse driving apparatus and method using two-handed gestures
CN107977141B (en) Interaction control method and device, electronic equipment and storage medium
WO2013009062A2 (en) Method and terminal device for controlling content by sensing head gesture and hand gesture, and computer-readable recording medium
CN108536344A (en) Information processing method, device, electronic equipment and storage medium
CN108616712B (en) Camera-based interface operation method, device, equipment and storage medium
CN102200830A (en) Non-contact control system and control method based on static gesture recognition
US20220152476A1 (en) Method and device for processing information in game, storage medium and electronic device
CN106843669A (en) Application interface operating method and device
CN110618780A (en) Interaction device and interaction method for interacting multiple signal sources
CN110275659A (en) A kind of image switching method, device, electronic equipment and storage medium
CN111338939A (en) Application program debugging method, medium, device and computing equipment
WO2022222510A1 (en) Interaction control method, terminal device, and storage medium
CN109725724A (en) There are the gestural control method and device of screen equipment
WO2023020149A1 (en) Object dragging method, device and storage medium
CN113642053A (en) Method, system, equipment and storage medium for remote control interface display
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
CN102968245B (en) Mouse touches cooperative control method, device and Intelligent television interaction method, system
CN113359995A (en) Man-machine interaction method, device, equipment and storage medium
CN113559501A (en) Method and device for selecting virtual units in game, storage medium and electronic equipment
CN109739422B (en) Window control method, device and equipment
CN113552977A (en) Data processing method and device, electronic equipment and computer storage 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