Virtual resource processing method and apparatus, computer device, and storage medium
By displaying resource collection identifiers and responding to player actions in multiplayer action competitive games, identifying interactive virtual objects and displaying interactive resource information, the problem of cumbersome virtual resource utilization is solved, thus improving the user's gaming experience.
Patent Information
- Application Number
- CN202210056622.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-18
- Publication Date
- 2025-11-21
- Estimated Expiration
- 2042-01-18
AI Technical Summary
In multiplayer action games, the process of using virtual resources to influence virtual objects is complicated and affects the user's gaming experience.
By displaying resource collection identifiers in the target game interface, responding to player interactions, identifying the virtual objects to be interacted with, displaying interactive resource information in the game interface, and processing the virtual objects to be interacted with based on the interactive resource information.
It simplifies the process of utilizing virtual resources and enhances the user's gaming experience.
Smart Images

Figure CN116492671B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the game technical field, and in particular to a virtual resource processing method and device, computer equipment and storage medium. BACKGROUND
[0002] In a multi-player action game, such as a shooting game, a gun battle game, a multi-player role playing game, etc., there are virtual resources provided for virtual objects to use, and a plurality of virtual resources can be managed in the form of a resource set, for example, a game scene can have a resource box containing virtual resources available for all virtual objects to pick up, and each virtual object has a resource backpack containing virtual resources already held. When it is desired to have at least part of the virtual resources in the resource set affect the relevant virtual object, a relatively complex operation is required, for example, if a player wants to use a virtual resource in the backpack to attack an enemy virtual object, the backpack needs to be opened and the virtual resource to be used needs to be selected, and then the enemy virtual object is used. The process of using virtual resources in the resource set to process the virtual object that is desired to be affected is relatively cumbersome, which affects the user's game experience. SUMMARY
[0003] The embodiments of the present application provide a virtual resource processing method and device, computer equipment and storage medium, which can quickly and conveniently use virtual resources in a resource set to process a virtual object to be interacted, thereby improving the user's game experience.
[0004] The embodiments of the present application provide a virtual resource processing method, comprising:
[0005] displaying a game interface of a target game, the game interface including at least part of a virtual scene and at least part of virtual objects located in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set including at least one virtual resource provided for the virtual objects;
[0006] in response to an interactive operation on the resource set identifier, determining a virtual object to be interacted corresponding to the target resource set;
[0007] displaying, in the game interface, interactive resource information corresponding to the virtual object to be interacted, the interactive resource information being used to indicate a virtual resource in the target resource set that matches the virtual object to be interacted;
[0008] processing the virtual object to be interacted according to the virtual resource corresponding to the interactive resource information.
[0009] Correspondingly, the embodiments of the present application also provide a virtual resource processing device, comprising:
[0010] a first display unit, configured to display a game interface of a target game, the game interface comprising at least part of a virtual scene and at least part of a virtual object in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set comprising at least one virtual resource provided to the virtual object;
[0011] a determination unit, configured to determine a to-be-interacted virtual object corresponding to the target resource set in response to an interaction operation on the resource set identifier;
[0012] a second display unit, configured to display, in the game interface, interactable resource information corresponding to the to-be-interacted virtual object, the interactable resource information being used to indicate a virtual resource in the target resource set that matches the to-be-interacted virtual object;
[0013] a processing unit, configured to process the to-be-interacted virtual object according to the virtual resource corresponding to the interactable resource information.
[0014] Optionally, the resource set identifier comprises a first resource set identifier, the first resource set identifier being used to indicate a first target resource set of virtual resources currently held by a virtual object, and the determination unit is further configured to:
[0015] determine to start the interaction operation in response to a first touch operation on the first resource set identifier;
[0016] determine to complete the interaction operation if a final touch point of a first sliding operation continuous to the first touch operation is located on the virtual object;
[0017] determine that a virtual object touched by the final touch point of the first sliding operation is the to-be-interacted virtual object corresponding to the target resource set.
[0018] Optionally, the virtual object comprises a friendly virtual object in the same camp as the current virtual object, and the second display unit is further configured to:
[0019] if the to-be-interacted virtual object is the friendly virtual object, acquire attribute information of the to-be-interacted virtual object;
[0020] acquire, in the first target resource set, a first candidate virtual resource that can improve the attribute information of the to-be-interacted virtual object as the virtual resource that matches the to-be-interacted virtual object;
[0021] acquire a resource identifier of the first candidate virtual resource as the interactable resource information;
[0022] display the interactable resource information in the game interface.
[0023] Optionally, the processing unit is further configured to:
[0024] in response to a selection operation on a first target resource identifier in the resource identifiers of the first candidate virtual resource, determine a first target virtual resource corresponding to the first target resource identifier;
[0025] obtain a promotion value of the attribute information of the virtual object to be interacted by the first target virtual resource;
[0026] process the virtual object to be interacted according to the first target virtual resource, and set the attribute information of the virtual object to be interacted to increase the promotion value.
[0027] Optionally, the virtual object includes an enemy virtual object in a different camp from the current virtual object, and the second display unit is further configured to:
[0028] if the virtual object to be interacted is the enemy virtual object, obtain, in the first target resource set, a second candidate virtual resource that causes damage to the virtual object to be interacted as the virtual resource matched with the virtual object to be interacted;
[0029] obtain, as the interactable resource information, a damaged state of the virtual object to be interacted after each of the second candidate virtual resources causes damage to the virtual object to be interacted, and a resource identifier corresponding to each of the second candidate virtual resources;
[0030] form at least one resource display control according to the damaged state of the virtual object to be interacted, wherein one resource display control corresponds to one damaged state, and the resource display control includes the corresponding damaged state and a resource identifier of the corresponding second candidate virtual resource;
[0031] display the resource display control on the game interface;
[0032] The processing unit is further configured to:
[0033] in response to a selection operation on the resource display control, determine a second target resource identifier in the resource identifier of the second candidate virtual resource;
[0034] process the virtual object to be interacted according to a second target virtual resource corresponding to the second target resource identifier.
[0035] Optionally, the processing unit is further configured to:
[0036] send a damage request for the to-be-interacted virtual object to the game server, so that the game server sets the to-be-interacted virtual object to be in a damage state corresponding to the second target resource identifier according to the damage request, wherein the damage request comprises the to-be-interacted virtual object and the second target resource identifier.
[0037] Optionally, the resource set identifier comprises a second resource set identifier, the second resource set identifier being used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the determining unit is further configured to:
[0038] in response to a pickup operation for the second resource set identifier, send an interaction request to the game server, so that the game server determines, according to the interaction request, that at least one friendly virtual object belonging to the same camp as the current virtual object performs the pickup operation on the second resource set identifier within a preset time;
[0039] receive interaction feedback information for the interaction request sent by the game server, and determine that the current virtual object is the to-be-interacted virtual object.
[0040] Optionally, the resource set identifier comprises a second resource set identifier, the second resource set identifier being used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the determining unit is further configured to:
[0041] in response to a second touch operation for the second resource set identifier, display a resource classification control on the game interface;
[0042] in response to a drag operation for the resource classification control, if the resource classification control is dragged onto a friendly virtual object belonging to the same camp as the current virtual object, determine that the current virtual object is the to-be-interacted virtual object.
[0043] Optionally, the second display unit is further configured to:
[0044] obtain a role attribute of the to-be-interacted virtual object;
[0045] obtain, from virtual resources included in the second target resource set, a third candidate virtual resource matching the role attribute as a virtual resource matching the to-be-interacted virtual object;
[0046] obtain a resource identifier of the third candidate virtual resource as the interactable resource information;
[0047] display the interactable resource information on the game interface.
[0048] Optionally, the processing unit is further configured to:
[0049] In response to a selection operation on the third target resource identifier in the resource identifier of the third candidate virtual resource, the virtual resource corresponding to the third target resource identifier is configured as a virtual resource held by the current virtual object.
[0050] Optionally, the apparatus is further configured to:
[0051] In response to a drag operation on the resource set identifier, a geographical area in the virtual scene where the resource set identifier is stopped being dragged is determined;
[0052] A geographical attribute type corresponding to the geographical area is obtained, and a virtual resource suitable for use in a virtual geographical scene corresponding to the geographical attribute type is obtained;
[0053] A resource classification control is formed according to the geographical attribute type, wherein one resource classification control corresponds to one geographical attribute type, and the resource classification control includes the corresponding geographical attribute type and a resource identifier of a virtual resource suitable for use in a corresponding virtual geographical scene;
[0054] The resource classification control is displayed on the game interface.
[0055] Similarly, the embodiment of the present application also provides a computer device, comprising:
[0056] A memory configured to store a computer program;
[0057] A processor configured to implement the steps of any one of the virtual resource processing methods when executing the computer program.
[0058] In addition, the embodiment of the present application also provides a computer readable storage medium, and the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of any one of the virtual resource processing methods.
[0059] The embodiment of the present application provides a virtual resource processing method, apparatus, computer device and storage medium. According to the exchange operation of a player on a resource set identifier, a terminal can determine a virtual object to be interacted which wants to use virtual resources in a target resource set to produce an influence, and then further determine the interactable resource information corresponding to the virtual resources in the target resource set which produce an influence on the virtual object to be interacted, so that the virtual object to be interacted is directly processed according to the virtual resources corresponding to the interactable resource information, the virtual object to be interacted can be quickly and simply processed by using the virtual resources in the resource set, and the game experience of a user is improved. BRIEF DESCRIPTION OF DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the accompanying drawings needed to be used in the description of the embodiments will be briefly described in the following. Obviously, the drawings described below only represent some of the embodiments of the present application, and all other drawings obtained by those of ordinary skill in the art based on the drawings without creative effort belong to the protection scope of the present application.
[0061] Figure 1 is a system schematic diagram of a virtual resource processing apparatus provided by the embodiments of the present application;
[0062] Figure 2 is a flow schematic diagram of a virtual resource processing method provided by the embodiments of the present application;
[0063] Figure 3 is a flow schematic diagram of one embodiment of a virtual resource processing method provided by the embodiments of the present application;
[0064] Figure 4 is a display schematic diagram of the interactive resource information of a virtual resource identifier provided by the embodiments of the present application;
[0065] Figure 5 is another display schematic diagram of the interactive resource information of a virtual resource identifier provided by the embodiments of the present application;
[0066] Figure 6 is a structural schematic diagram of a virtual resource processing apparatus provided by the embodiments of the present application;
[0067] Figure 7 is a structural schematic diagram of a computer device provided by the embodiments of the present application;
[0068] Figure 8 is a flow schematic diagram of another embodiment of a virtual resource processing method provided by the embodiments of the present application. DETAILED DESCRIPTION
[0069] The technical solutions in the embodiments of the present application will be described clearly and completely in the following with reference to the accompanying drawings. Obviously, the described embodiments only represent some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort belong to the protection scope of the present application.
[0070] Embodiments of the present application provide a virtual resource processing method and device, computer device and storage medium. Specifically, the virtual resource processing method of embodiments of the present application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), and the like. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, an instant messaging client, or the like. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution network services, and basic cloud computing services such as big data and artificial intelligence platforms.
[0071] For example, when the virtual resource processing method is running on a terminal, the terminal device stores a game application program and is used to present a scene in a game picture. The terminal device is used to interact with the user through a graphical user interface, for example, by downloading and installing the game application program on the terminal device and running it. The terminal device can provide the graphical user interface to the user in various ways, for example, it can be rendered and displayed on the display screen of the terminal device, or it can be presented by holographic projection. For example, the terminal device can include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a game picture and a game picture, the processor is used to run the game application program and the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.
[0072] For example, when the virtual resource processing method is run on a server, it can be for cloud gaming. Cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running body of the game application and the presentation body of the game picture are separated, and the storage and running of the game cloud game commodity interaction method are completed on the cloud game server. The game picture is presented on the cloud game client. The cloud game client is mainly used for receiving, sending and presenting game pictures. For example, the cloud game client can be a display device close to the user side with data transmission function, such as mobile terminal, television, computer, palm computer, personal digital assistant, etc., but the terminal device for game data processing is the cloud game server in the cloud. When playing the game, the user operates the cloud game client to send operation instructions to the cloud game server, the cloud game server runs the game program according to the operation instructions, encodes and compresses the game picture and other data, returns to the cloud game client through the network, and finally decodes and outputs the game picture through the cloud game client.
[0073] Please refer to Figure 1 , Figure 1 The system schematic diagram of the virtual resource processing device provided by the embodiment of the application is shown in the figure. The system can include at least one terminal 101 and at least one game server 102. The terminal 101 held by the user can be connected to different game servers 102 of different games through different networks 103, for example, the network 103 can be a wireless network or a wired network, the wireless network can be a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. The terminal is used to display the game interface of the target game, which includes at least part of the virtual scene and at least part of the virtual object located in the virtual scene, and a resource set identifier, the resource set identifier is used to indicate the target resource set including at least one virtual resource provided to the virtual object; in response to the interactive operation for the resource set identifier, the target resource set corresponding to the virtual object to be interacted is determined; the interactive resource information corresponding to the virtual object to be interacted is displayed on the game interface, the interactive resource information is used to indicate the virtual resource in the target resource set matched with the virtual object to be interacted; and the virtual object to be interacted is processed according to the virtual resource corresponding to the interactive resource information.
[0074] The game server 102 is used to send the game picture including the virtual scene to the terminal 101, determine the interactive resource information corresponding to the virtual resource matched with the virtual object to be interacted, and send the interactive resource information to the terminal 101.
[0075] The following will be described in detail. It should be noted that the description order of the following embodiments is not limited as the preferred order of the embodiments.
[0076] The embodiment will be described from the perspective of a virtual resource processing apparatus, which can be integrated in a terminal device, such as a smartphone, a notebook computer, a tablet computer, a personal computer, and the like.
[0077] The virtual resource processing method provided in the embodiment of the present application can be executed by a processor of a terminal, as shown in the following. Figure 2 The specific flow of the virtual resource processing method mainly includes steps 201 to 204, and the details are as follows.
[0078] In step 201, a game interface of a target game is displayed, the game interface including at least part of a virtual scene, at least part of a virtual object in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set including at least one virtual resource provided to the virtual object.
[0079] In the embodiment of the present application, taking a terminal with a touch display screen as an example, a game interface can be generated on the touch display screen by executing a game application program, the virtual scene in the game interface having game props and / or a plurality of virtual objects (buildings, trees, mountains, and the like) constituting a game world environment. The target game can be a first-person shooter game, a massively multiplayer online role-playing game, and the like.
[0080] In the embodiment of the present application, the virtual object is a virtual object provided to a player for operation in the target game, and the virtual object can make a game behavior corresponding to a touch operation of the user in the game interface. For example, when the player makes a jump operation on the virtual object, the virtual object will make a jump action in the virtual scene in response to the operation of the player.
[0081] In the embodiment of the present application, the resource set identifier is a unique identifier for distinguishing different resource sets, such as an icon representing a resource set, a number of a resource set, and the like. The resource set is a collection of at least one virtual resource provided to the virtual object in the target game, such as a resource box containing virtual resources available for all virtual objects to pick up, a resource backpack of each virtual object containing virtual resources already held, and the like. In addition, the resource set identifier can be in the virtual scene, such as the resource set identifier corresponding to the resource box scattered in each area of the virtual scene, or the resource set identifier can not belong to the virtual scene, but be in the game interface, such as the backpack identifier corresponding to the resource backpack of the virtual object.
[0082] In step 202, in response to an interactive operation on the resource set identifier, a virtual object to be interacted corresponding to the target resource set is determined.
[0083] In the embodiments of the present application, according to the different types of virtual resources included in the resource set, the resource set identifier corresponding to the resource set also has different types. The resource set identifier can be a first resource set identifier, which is used to indicate a first target resource set of virtual resources that the current virtual object has held, for example, a backpack of the virtual object. The resource set identifier can also be a second resource set identifier, which is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, for example, a resource box scattered in the virtual scene. When the virtual object reaches the area where the resource is located, the virtual resource in the resource box can be picked up by clicking the resource box.
[0084] In the embodiments of the present application, the interaction operation can be a drag operation, a click operation, etc. The to-be-interacted virtual object can be determined according to the operation object in all virtual objects implemented by the player according to the interaction operation. When the interaction operation only operates on the resource set identifier, the to-be-interacted virtual object can also be determined according to a preset determination rule.
[0085] In the embodiments of the present application, the number of to-be-interacted virtual objects can not be limited, for example, it can be one or more. The to-be-interacted virtual object can be a friendly virtual object belonging to the same camp as the current virtual object, or an enemy virtual object not belonging to the same camp as the current virtual object.
[0086] Step 203, displaying the interactable resource information corresponding to the to-be-interacted virtual object on the game interface. The interactable resource information is used to indicate the virtual resources in the target resource set that match the to-be-interacted virtual object.
[0087] In the embodiments of the present application, the virtual resources that match the to-be-interacted virtual object can be virtual resources that match the camp to which the to-be-interacted virtual object belongs, can be virtual resources that match the types and quantities of virtual resources held by the to-be-interacted virtual object, and can also be virtual resources that match the role attributes (for example, role level, virtual occupation played in the target game, etc.) of the to-be-interacted virtual object, and the like.
[0088] In the embodiments of the present application, the interactable resource information can be resource identifier, resource level, resource usage introduction, and the like of the virtual resources that match the to-be-interacted virtual object.
[0089] Step 204, processing the to-be-interacted virtual object according to the virtual resources corresponding to the interactable resource information.
[0090] In the embodiments of the present application, the virtual resource that has an influence on the virtual object to be interacted is determined according to the interactive resource information, and then the specific influence of the virtual resource on the virtual object is determined according to the resource set type to which the virtual resource belongs, so that the virtual object to be interacted is processed accordingly. For example, if the virtual resource matched with the virtual object to be interacted is determined in the resource box in the virtual scene, the virtual resource is added to the virtual resource already owned by the virtual object to be interacted. If the virtual resource matched with the virtual object to be interacted is determined in the backpack, the virtual resource is used for the virtual object to be interacted.
[0091] In addition, the virtual resources included in the resource set can also be divided according to different geographical attribute types, which can be:
[0092] In response to the drag operation on the resource set identifier, the position of the resource set identifier stopped being dragged in the geographical region in the virtual scene is determined;
[0093] The geographical attribute type corresponding to the geographical region is obtained, and the virtual resource suitable for use in the virtual geographical scene corresponding to each geographical attribute type is obtained;
[0094] The resource classification control is formed according to the geographical attribute type, wherein one resource classification control corresponds to one geographical attribute type, and the resource classification control includes the corresponding geographical attribute type and the resource identifier suitable for using the virtual resource in the corresponding virtual geographical scene;
[0095] The resource classification control is displayed on the game interface.
[0096] For example, the resource set identifier is dragged to the weather region, and the geographical attribute type of the weather can include sunny, rainy, foggy, etc. The resources in the target resource set can be divided into resources suitable for use in sunny, rainy, and foggy, etc. so that the player selects different types of virtual resources in different weather, and improves the game experience. The resource set identifier can also be dragged to the map region, and the geographical attribute type of the map can include desert, snow, forest, etc. The resources in the target resource set can be divided into resources suitable for use in desert, snow, and forest, etc. so that the player selects different types of virtual resources in different terrains.
[0097] All the above technical solutions can be combined to form optional embodiments of the present application, which will not be repeated here.
[0098] The virtual resource processing method provided in the embodiments of the present application can determine a virtual object to be interacted with by a terminal according to a player's exchange operation on a resource set identifier, and then further determine the interactable resource information corresponding to the virtual resource that has an influence on the virtual object to be interacted with in the target resource set, so that the virtual object to be interacted with is directly processed according to the virtual resource corresponding to the interactable resource information, the virtual object to be interacted with can be quickly and simply processed by the virtual resource in the resource set, and the game experience of the user is improved.
[0099] Please refer to Figure 3 , Figure 3 The flowchart of one embodiment of the virtual resource processing method provided in the embodiments of the present application is shown in the figure. In this embodiment, the resource set identifier is a first resource set identifier, the first resource set identifier is used to indicate a first target resource set of virtual resources held by the current virtual object, for example, the first resource set identifier can be a backpack identifier, and when the resource set identifier is the first resource set identifier, the specific flow of the method can be as follows:
[0100] Step 301: display a game interface of a target game, the game interface including at least part of a virtual scene and at least part of virtual objects in the virtual scene, and a first resource set identifier.
[0101] Step 302: in response to a first touch operation on the first resource set identifier, determine to start an interaction operation.
[0102] Step 303: in response to a first sliding operation continuous with the first touch operation, if the final touch point of the first sliding operation is located on a virtual object, determine that the interaction operation is completed.
[0103] Step 304: determine that the virtual object touched by the final touch point of the first sliding operation is a virtual object to be interacted with corresponding to the backpack.
[0104] Step 305: determine that the virtual object to be interacted with is a friendly virtual object in the same camp as the current virtual object, and display interactable resource information corresponding to the virtual object to be interacted with on the game interface.
[0105] For example, after the virtual object to be interacted with is determined, the virtual resource matched with the virtual object to be interacted with can be determined according to the camp information of the virtual object to be interacted with. According to the camp information, the virtual objects can be divided into friendly virtual objects in the same camp as the current virtual object and enemy virtual objects in a different camp from the current virtual object. After the virtual resource matched with the virtual object to be interacted with is determined, the interactable resource information corresponding thereto is further determined. If the virtual object to be interacted with is a friendly virtual object, the step 305 "display the interactable resource information corresponding to the virtual object to be interacted with on the game interface" can be:
[0106] If the virtual object to be interacted is a friendly virtual object, attribute information of the virtual object to be interacted is obtained;
[0107] In the first target resource set, a first candidate virtual resource that can improve the attribute information of the virtual object to be interacted is obtained as a virtual resource matched with the virtual object to be interacted;
[0108] A resource identifier of the first candidate virtual resource is obtained as the interactable resource information;
[0109] The interactable resource information is displayed on the game interface.
[0110] For example, the attribute information of the virtual object to be interacted can be the life value, attack ability, game level, etc. of the virtual object to be interacted. The first candidate virtual resource that can improve the attribute information of the virtual object to be interacted can be a virtual resource that can increase the life value of the virtual object to be interacted (such as medicine, bandage, etc.), or a virtual resource that can avoid the virtual object to be interacted from being damaged (such as armor, helmet, etc.).
[0111] In step 306, the attribute information of the virtual object to be interacted is improved according to the first candidate virtual resource corresponding to the interactable resource information.
[0112] Specifically, the above-mentioned step 306 "improving the attribute information of the virtual object to be interacted according to the first candidate virtual resource corresponding to the interactable resource information" can be:
[0113] In response to a selection operation on the first target resource identifier in the resource identifier of the first candidate virtual resource, a first target virtual resource corresponding to the first target resource identifier is determined;
[0114] A value that can be improved by the first target virtual resource on the attribute information of the virtual object to be interacted is obtained;
[0115] The virtual object to be interacted is processed according to the first target virtual resource, and the attribute information of the virtual object to be interacted is set to increase by the value that can be improved.
[0116] In step 307, it is determined that the virtual object to be interacted is an enemy virtual object in a different camp from the current virtual object, and the interactable resource information corresponding to the virtual object to be interacted is displayed on the game interface.
[0117] Specifically, the above-mentioned step 307 "displaying the interactable resource information corresponding to the virtual object to be interacted on the game interface" can be:
[0118] If the virtual object to be interacted is an enemy virtual object, a second candidate virtual resource that can cause damage to the virtual object to be interacted is obtained in the first target resource set as a virtual resource matched with the virtual object to be interacted;
[0119] After each second candidate virtual resource causes damage to the virtual object to be interacted with, the damaged state of the virtual object to be interacted with, and the resource identifier corresponding to each second candidate virtual resource are used as interactive resource information.
[0120] At least one resource display control is formed based on the damaged state of the virtual object to be interacted with, wherein one resource display control corresponds to one damaged state, and the resource display control includes the corresponding damaged state and the resource identifier of the corresponding second candidate virtual resource.
[0121] Display resource showcase controls in the game interface.
[0122] Step 308: Process the virtual object to be interacted with based on the virtual resource corresponding to the interactive resource information.
[0123] Specifically, the above step of "processing the virtual object to be interacted with based on the virtual resource corresponding to the interactive resource information" can be:
[0124] In response to the selection operation of the resource display control, the second target resource identifier is determined from the resource identifiers of the second candidate virtual resources;
[0125] The virtual object to be interacted with is processed according to the second target virtual resource corresponding to the second target resource identifier.
[0126] At this point, the above step "processing the virtual object to be interacted with according to the second target virtual resource corresponding to the second target resource identifier" can be:
[0127] A damage request is sent to the game server for the virtual object to be interacted with, so that the game server sets the virtual object to be interacted with to a damage state corresponding to the second target resource identifier according to the damage request. The damage request includes the virtual object to be interacted with and the second target resource identifier.
[0128] For example, such as Figure 4 As shown, when the user touches the backpack icon 403 of the current virtual object and slides it onto the enemy virtual object 401 of the current virtual object, a virtual object that can damage the enemy virtual object 401 is identified from the virtual resources included in the backpack as an attack item, and the resource icon of the identified attack item is displayed in the game interface 40. When the user touches the backpack icon 403 of the current virtual object and slides it onto the friendly virtual object 402 of the current virtual object, a virtual resource that can improve the attribute information of the friendly virtual object 402 is identified from the virtual resources included in the backpack as a recovery item, and the resource icon of the identified recovery item is displayed in the game interface 40.
[0129] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0130] The virtual resource processing method provided by the embodiments of the present application can determine the virtual object to be interacted with by the target resource set according to the exchange operation of the player on the resource set identifier, and then further determine the interactable resource information corresponding to the virtual resource in the target resource set that has an influence on the virtual object to be interacted with, so that the virtual object to be interacted with is directly processed according to the virtual resource corresponding to the interactable resource information, the virtual object to be interacted with can be quickly and simply processed by the virtual resource in the resource set, and the game experience of the user is improved.
[0131] Please refer to Figure 8 , Figure 8 The flowchart of another embodiment of the virtual resource processing method provided by the embodiments of the present application is shown. In this embodiment, the resource set identifier is a second resource set identifier, the second resource set identifier is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, for example, the second resource set identifier can be a resource box in the virtual scene, and when the resource set identifier is the second resource set identifier, the specific flow of the method can be as follows:
[0132] Step 801, display the game interface of the target game, the game interface includes at least part of the virtual scene and at least part of the virtual object located in the virtual scene, and a resource set identifier, the resource set identifier is used to indicate a target resource set including at least one virtual resource provided to the virtual object.
[0133] Step 802, in response to the interaction operation on the resource set identifier, determine the virtual object to be interacted with corresponding to the target resource set.
[0134] In the embodiments of the present application, the above-mentioned step 802 "in response to the interaction operation on the resource set identifier, determine the virtual object to be interacted with corresponding to the target resource set" can be:
[0135] In response to the pickup operation on the second resource set identifier, send an interaction request to the game server, so that the game server determines that at least one friendly virtual object belonging to the same camp as the current virtual object exists to perform the pickup operation on the second resource set identifier within a preset time according to the interaction request;
[0136] Receive the interaction feedback information sent by the game server for the interaction request, and determine that the current virtual object is the virtual object to be interacted with.
[0137] In the embodiments of the present application, the above-mentioned step 802 "in response to the interaction operation on the resource set identifier, determine the virtual object to be interacted with corresponding to the target resource set" can be:
[0138] In response to a second touch operation identified for the second set of resources, display a resource classification control on the game interface.
[0139] In response to a drag operation for the resource classification control, if the resource classification control is dragged onto a friendly virtual object belonging to the same camp as the current virtual object, determine the current virtual object as a virtual object to be interacted with.
[0140] Step 803, display the interactable resource information corresponding to the virtual object to be interacted with on the game interface.
[0141] In the embodiments of the present application, for example Figure 5 As shown in the above step "display the interactable resource information corresponding to the virtual object to be interacted with on the game interface", the above step can be:
[0142] Obtain the role attribute of the virtual object to be interacted with;
[0143] Obtain a third candidate virtual resource matching the role attribute from the virtual resources included in the second target resource set as the virtual resource matching the virtual object to be interacted with;
[0144] Obtain the resource identifier of the third candidate virtual resource as the interactable resource information;
[0145] Display the interactable resource information on the game interface.
[0146] For example, when the current virtual object 502 and the friendly virtual object 501 both click on the resource box identifier 503, that is, both open the resource box to pick up the virtual resources in the resource box, in order to avoid the current virtual object 502 and the friendly virtual object 501 from fighting for the virtual resources in the resource box, the matching virtual resources in the resource box can be obtained according to the role attribute of the current virtual object 502 and displayed on the game interface 50, and the matching virtual resources in the resource box can be obtained according to the role attribute of the friendly virtual object 501 and displayed on the game interface 50.
[0147] Step 804, in response to a selection operation on the third target resource identifier in the resource identifier of the third candidate virtual resource, configure the virtual resource corresponding to the third target resource identifier as a virtual resource already held by the current virtual object.
[0148] All the above technical solutions can be combined to form optional embodiments of the present application, which will not be described one by one.
[0149] The virtual resource processing method provided in the embodiments of the present application can determine a virtual object to be interacted with by a terminal according to a player's exchange operation on a resource set identifier, and then further determine the interactive resource information corresponding to the virtual resource in the target resource set that has an influence on the virtual object to be interacted with, so that the virtual object to be interacted with is directly processed according to the virtual resource corresponding to the interactive resource information, the virtual object to be interacted with can be quickly and simply processed by the virtual resource in the resource set, and the game experience of the user is improved.
[0150] To better implement the virtual resource processing method in the embodiments of the present application, the embodiments of the present application further provide a virtual resource processing device. Please refer to Figure 6 , Figure 6 The virtual resource processing device provided in the embodiments of the present application is shown in a structural schematic diagram. The virtual resource processing device can include a first display unit 601, a determination unit 602, a second display unit 603, and a processing unit 604.
[0151] The first display unit 601 is configured to display a game interface of a target game, the game interface including at least part of a virtual scene, at least part of a virtual object in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set including at least one virtual resource provided to the virtual object.
[0152] The determination unit 602 is configured to determine a virtual object to be interacted with corresponding to the target resource set in response to an interaction operation on the resource set identifier.
[0153] The second display unit 603 is configured to display interactive resource information corresponding to the virtual object to be interacted with on the game interface, the interactive resource information being used to indicate a virtual resource in the target resource set that matches the virtual object to be interacted with.
[0154] The processing unit 604 is configured to process the virtual object to be interacted with according to the virtual resource corresponding to the interactive resource information.
[0155] Optionally, the resource set identifier includes a first resource set identifier, the first resource set identifier being used to indicate a first target resource set of virtual resources currently held by the virtual object, and the determination unit 602 is further configured to:
[0156] determine a start interaction operation in response to a first touch operation on the first resource set identifier.
[0157] determine a completion interaction operation if a final touch point of a first sliding operation that is continuous with the first touch operation is located on the virtual object in response to the first sliding operation.
[0158] Determine the virtual object touched by the final touch point of the first sliding operation as a target resource set corresponding to the to-be-interacted virtual object.
[0159] Optionally, the virtual objects include friendly virtual objects in the same camp as the current virtual object, and the second display unit 603 is further configured to:
[0160] If the to-be-interacted virtual object is a friendly virtual object, obtain attribute information of the to-be-interacted virtual object;
[0161] Obtain, in the first target resource set, a first candidate virtual resource that can improve the attribute information of the to-be-interacted virtual object as a virtual resource matched with the to-be-interacted virtual object;
[0162] Obtain a resource identifier of the first candidate virtual resource as the interactable resource information;
[0163] Display the interactable resource information on the game interface.
[0164] Optionally, the processing unit 604 is further configured to:
[0165] In response to a selection operation on the first target resource identifier in the resource identifier of the first candidate virtual resource, determine a first target virtual resource corresponding to the first target resource identifier;
[0166] Obtain a value that can be improved in the attribute information of the to-be-interacted virtual object by the first target virtual resource;
[0167] Process the to-be-interacted virtual object according to the first target virtual resource, and set the attribute information of the to-be-interacted virtual object to increase by the value that can be improved.
[0168] Optionally, the virtual objects include enemy virtual objects in different camps from the current virtual object, and the second display unit 603 is further configured to:
[0169] If the to-be-interacted virtual object is an enemy virtual object, obtain, in the first target resource set, a second candidate virtual resource that causes damage to the to-be-interacted virtual object as a virtual resource matched with the to-be-interacted virtual object;
[0170] Obtain, as the interactable resource information, a damaged state of the to-be-interacted virtual object after each second candidate virtual resource causes damage to the to-be-interacted virtual object, and a resource identifier corresponding to each second candidate virtual resource;
[0171] Form at least one resource display control according to the damaged state of the to-be-interacted virtual object, wherein one resource display control corresponds to one damaged state, and the resource display control includes the corresponding damaged state and the resource identifier of the corresponding second candidate virtual resource;
[0172] Display the resource display control on the game interface;
[0173] The processing unit 604 is further configured to:
[0174] determine a second target resource identifier in the resource identifier of the second candidate virtual resource in response to the selection operation on the resource display control;
[0175] process the virtual object to be interacted according to a second target virtual resource corresponding to the second target resource identifier.
[0176] Optionally, the processing unit 604 is further configured to:
[0177] send a damage request for the virtual object to be interacted to the game server, so that the game server sets the virtual object to be interacted to be in a damage state corresponding to the second target resource identifier according to the damage request, wherein the damage request includes the virtual object to be interacted and the second target resource identifier.
[0178] Optionally, the resource set identifier includes a second resource set identifier, the second resource set identifier is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the determining unit 602 is further configured to:
[0179] in response to a pickup operation on the second resource set identifier, send an interaction request to the game server, so that the game server determines that at least one friendly virtual object belonging to the same camp as the current virtual object picks up the second resource set identifier within a preset time according to the interaction request;
[0180] receive interaction feedback information for the interaction request sent by the game server, and determine that the current virtual object is the virtual object to be interacted.
[0181] Optionally, the resource set identifier includes a second resource set identifier, the second resource set identifier is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the determining unit 602 is further configured to:
[0182] display a resource classification control on the game interface in response to a second touch operation on the second resource set identifier;
[0183] in response to a drag operation on the resource classification control, if the resource classification control is dragged onto a friendly virtual object belonging to the same camp as the current virtual object, determine that the current virtual object is the virtual object to be interacted.
[0184] Optionally, the second display unit 603 is further configured to:
[0185] obtain a role attribute of the virtual object to be interacted;
[0186] acquire a third candidate virtual resource matching the role attribute as the virtual resource matching the virtual object to be interacted in the virtual resources included in the second target resource set;
[0187] acquire the resource identifier of the third candidate virtual resource as the interactable resource information;
[0188] display the interactable resource information on the game interface.
[0189] Optionally, the processing unit 604 is further configured to:
[0190] in response to a selection operation on the third target resource identifier in the resource identifier of the third candidate virtual resource, configure the virtual resource corresponding to the third target resource identifier as the virtual resource held by the current virtual object.
[0191] Optionally, the apparatus is further configured to:
[0192] in response to a drag operation on the resource set identifier, determine a geographical area in the virtual scene where the position of the resource set identifier is stopped being dragged;
[0193] acquire geographical attribute types corresponding to the geographical area, and virtual resources suitable for being used in virtual geographical scenes corresponding to the geographical attribute types;
[0194] form resource classification controls according to the geographical attribute types, wherein one resource classification control corresponds to one geographical attribute type, and the resource classification control includes the corresponding geographical attribute type and the resource identifier of the virtual resource suitable for being used in the corresponding virtual geographical scene;
[0195] display the resource classification controls on the game interface.
[0196] All the technical solutions described above can be combined in any manner to form optional embodiments of the present application, which will not be described again.
[0197] The virtual resource processing apparatus provided by the embodiments of the present application can determine the virtual object to be interacted that wants to use the virtual resources in the target resource set to produce an influence according to the exchange operation of the player on the resource set identifier, and then further determine the interactable resource information corresponding to the virtual resource in the target resource set that produces an influence on the virtual object to be interacted, so that the virtual object to be interacted is directly processed according to the virtual resource corresponding to the interactable resource information, the virtual resources in the resource set can be quickly and simply used to process the virtual object to be interacted, and the game experience of the user is improved.
[0198] Correspondingly, the embodiments of the present application also provide a computer device, which can be a terminal, such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer, a personal digital assistant, etc.Figure 7 As shown, Figure 7 A structural schematic diagram of a computer device provided in an embodiment of the present application is shown. The computer device 700 includes a processor 701 having one or more processing cores, a memory 702 having one or more computer readable storage media, and a computer program stored in the memory 702 and executable on the processor. The processor 701 is electrically connected with the memory 702. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and can include more or fewer components than shown in the figure, or combine certain components, or different component arrangements.
[0199] The processor 701 is the control center of the computer device 700, and connects various parts of the entire computer device 700 through various interfaces and lines, and performs various functions and processes data of the computer device 700 by running or loading software programs and / or modules stored in the memory 702 and calling data stored in the memory 702, thereby overall monitoring the computer device 700.
[0200] In an embodiment of the present application, the processor 701 in the computer device 700 will load the instructions corresponding to the processes of one or more application programs into the memory 702, and run the application programs stored in the memory 702 by the processor 701, thereby realizing various functions according to the following steps:
[0201] displaying a game interface of a target game, the game interface including at least part of a virtual scene and at least part of a virtual object located in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set including at least one virtual resource provided to the virtual object;
[0202] in response to an interactive operation on the resource set identifier, determining a to-be-interacted virtual object corresponding to the target resource set;
[0203] displaying, in the game interface, interactable resource information corresponding to the to-be-interacted virtual object, the interactable resource information being used to indicate a virtual resource in the target resource set that matches the to-be-interacted virtual object;
[0204] processing the to-be-interacted virtual object according to the virtual resource corresponding to the interactable resource information.
[0205] The specific implementation of each operation can refer to the foregoing embodiments, which will not be described here.
[0206] Optionally, as Figure 7As shown, the computer device 700 further includes a touch display screen 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected with the touch display screen 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707, respectively. Those skilled in the art can understand that Figure 7 The computer device structure shown in the figure is not a limitation on the computer device, and can include more or fewer components than shown, or combine certain components, or different component arrangements.
[0207] The touch display screen 703 can be used to display a graphical user interface and receive operation instructions generated by user actions on the graphical user interface. The touch display screen 703 can include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the computer device, which can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. The touch panel can be used to collect touch operations (such as user's finger, stylus, or any suitable object or accessory on or near the touch panel) of the user on or near it, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts: a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects the signals generated by the touch operation, and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into touch coordinates, and then sends it to the processor 701, and can also receive commands from the processor 701 and execute them. The touch panel can cover the display panel, and when the touch panel detects a touch operation on or near it, it transmits to the processor 701 to determine the type of touch event, and then the processor 701 provides corresponding visual output on the display panel according to the type of touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 703 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can realize the input and output functions as two independent components. That is, the touch display screen 703 can also realize the input function as part of the input unit 706.
[0208] The radio frequency circuit 704 can be used to transceive radio frequency signals to establish wireless communication with network devices or other computer devices, and transceive signals between network devices or other computer devices.
[0209] The audio circuit 705 can be used to provide an audio interface between a user and the computer device through a speaker and a microphone. The audio circuit 705 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into an audible signal output by the speaker. On the other hand, the microphone can collect a sound signal and convert the sound signal into an electrical signal, which is received by the audio circuit 705 and converted into audio data. The audio data is output to the processor 701 for processing, and then transmitted to another computer device through the radio frequency circuit 704, or output to the memory 702 for further processing. The audio circuit 705 can also include a jack for a headset to provide communication between the headset and the computer device.
[0210] The input unit 706 can be used to receive inputted digital, character information or user feature information (e.g., fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
[0211] The power supply 707 is used to supply power to various components of the computer device 700. Optionally, the power supply 707 can be logically connected to the processor 701 through a power management system, so that the power management system can be used to manage charging, discharging, and power consumption management, etc. The power supply 707 can also include one or more direct current or alternating current power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.
[0212] Although Figure 7 The computer device 700 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which are not shown in the embodiments.
[0213] In the above embodiments, the description of each embodiment focuses on different aspects, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0214] As can be seen from the above, the computer device provided in the embodiments can determine, according to the exchange operation of the player on the resource set identifier, a virtual object to be interacted with which the player wants to affect by using a virtual resource in a target resource set, and then further determine the interactable resource information corresponding to the virtual resource in the target resource set which affects the virtual object to be interacted with, so that the virtual object to be interacted with is directly processed according to the virtual resource corresponding to the interactable resource information, the virtual object to be interacted with can be quickly and simply processed by using the virtual resource in the resource set, and the user's game experience is improved.
[0215] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions or by controlling relevant hardware by the instructions, which can be stored in a computer readable storage medium and loaded and executed by a processor.
[0216] To this end, the embodiments of the present application provide a computer readable storage medium, which stores a plurality of computer programs capable of being loaded by a processor to execute the steps in any of the virtual resource processing methods provided by the embodiments of the present application. For example, the computer program can execute the following steps:
[0217] displaying a game interface of a target game, the game interface including at least part of a virtual scene and at least part of a virtual object in the virtual scene, and a resource set identifier, the resource set identifier being used to indicate a target resource set including at least one virtual resource provided to the virtual object;
[0218] in response to an interactive operation on the resource set identifier, determining a to-be-interacted virtual object corresponding to the target resource set;
[0219] displaying, in the game interface, interactive resource information corresponding to the to-be-interacted virtual object, the interactive resource information being used to indicate a virtual resource in the target resource set matching the to-be-interacted virtual object;
[0220] processing the to-be-interacted virtual object according to the virtual resource corresponding to the interactive resource information.
[0221] The specific implementation of each operation can be referred to the foregoing embodiments, which will not be described here.
[0222] The storage medium can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0223] Since the computer program stored in the storage medium can execute the steps in any of the virtual resource processing methods provided by the embodiments of the present application, the beneficial effects that can be achieved by any of the virtual resource processing methods provided by the embodiments of the present application can be achieved, which will not be described here for brevity.
[0224] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.
[0225] The above describes in detail the virtual resource processing method, device, computer device and storage medium provided by the embodiments of the present application. The principles and implementation manners of the present application are described by applying specific examples. The above embodiment description is only used to help understand the technical solutions and core ideas of the present application. Those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents, and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for processing virtual resources, characterized in that, The method comprises the following steps: displaying a game interface of a target game, the game interface comprising at least a part of a virtual scene and at least a part of a virtual object located in the virtual scene, and a resource set identifier for indicating a target resource set comprising at least one virtual resource provided to the virtual object; in response to an interaction operation on the resource set identifier, determining a virtual object to be interacted corresponding to the target resource set; displaying, in the game interface, interactable resource information corresponding to the virtual object to be interacted, the interactable resource information being used to indicate a virtual resource matching the virtual object to be interacted in the target resource set; processing the virtual object to be interacted according to the virtual resource corresponding to the interactable resource information; in response to a drag operation on the resource set identifier, determining a geographical area in the virtual scene where the resource set identifier is stopped being dragged; obtaining geographical attribute types corresponding to the geographical area, and virtual resources suitable for use in virtual geographical scenes corresponding to the geographical attribute types; forming resource classification controls according to the geographical attribute types, wherein one resource classification control corresponds to one geographical attribute type, and the resource classification control comprises the corresponding geographical attribute type and a resource identifier of a virtual resource suitable for use in the corresponding virtual geographical scene; displaying the resource classification controls in the game interface; wherein the resource set identifier comprises a first resource set identifier for indicating a first target resource set of virtual resources currently held by a virtual object, and the response to the interaction operation on the resource set identifier comprises: in response to a first touch operation on the first resource set identifier, determining to start the interaction operation; in response to a first sliding operation continuous with the first touch operation, if a final touch point of the first sliding operation is located on the virtual object, determining to complete the interaction operation; and determining the virtual object touched by the final touch point of the first sliding operation as the virtual object to be interacted corresponding to the target resource set.
2. The method of claim 1, wherein, The virtual object comprises a friendly virtual object in the same camp as the current virtual object, and the displaying, in the game interface, the interactable resource information corresponding to the virtual object to be interacted comprises: if the virtual object to be interacted is the friendly virtual object, obtaining attribute information of the virtual object to be interacted; obtaining, in the first target resource set, a first candidate virtual resource capable of improving the attribute information of the virtual object to be interacted as the virtual resource matching the virtual object to be interacted; obtaining a resource identifier of the first candidate virtual resource as the interactable resource information; displaying the interactable resource information in the game interface.
3. The method of claim 2, wherein, The processing the virtual object to be interacted according to the virtual resource corresponding to the interactable resource information comprises: in response to a selection operation on a first target resource identifier in the resource identifier of the first candidate virtual resource, determining a first target virtual resource corresponding to the first target resource identifier; obtaining an improvable value of attribute information of the to-be-interacted virtual object by the first target virtual resource; processing the to-be-interacted virtual object according to the first target virtual resource, and setting the attribute information of the to-be-interacted virtual object to increase the improvable value.
4. The method of claim 1, wherein, The virtual object includes an enemy virtual object in a different camp from the current virtual object, and the displaying of the interactable resource information corresponding to the to-be-interacted virtual object on the game interface includes: If the to-be-interacted virtual object is the enemy virtual object, obtaining a second candidate virtual resource that causes damage to the to-be-interacted virtual object in the first target resource set as a virtual resource matched with the to-be-interacted virtual object; obtaining the damaged state of the to-be-interacted virtual object after each second candidate virtual resource causes damage to the to-be-interacted virtual object, and the resource identifier corresponding to each second candidate virtual resource as the interactable resource information; forming at least one resource display control according to the damaged state of the to-be-interacted virtual object, wherein one resource display control corresponds to one damaged state, and the resource display control includes the corresponding damaged state and the resource identifier of the corresponding second candidate virtual resource; displaying the resource display control on the game interface; The processing of the to-be-interacted virtual object according to the virtual resource corresponding to the interactable resource information includes: determining a second target resource identifier in the resource identifier of the second candidate virtual resource in response to a selection operation on the resource display control; processing the to-be-interacted virtual object according to the second target virtual resource corresponding to the second target resource identifier.
5. The method of claim 4, wherein, The processing of the to-be-interacted virtual object according to the second target virtual resource corresponding to the second target resource identifier includes: sending a damage request for the to-be-interacted virtual object to a game server, so that the game server sets the to-be-interacted virtual object in a damage state corresponding to the second target resource identifier according to the damage request, wherein the damage request includes the to-be-interacted virtual object and the second target resource identifier.
6. The method of claim 1, wherein, The resource set identifier includes a second resource set identifier, the second resource set identifier is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the determination of the to-be-interacted virtual object corresponding to the target resource set in response to the interaction operation on the resource set identifier includes: in response to a pickup operation on the second resource set identifier, sending an interaction request to a game server, so that the game server determines that at least one friendly virtual object belonging to the same camp as the current virtual object performs the pickup operation on the second resource set identifier within a preset time according to the interaction request; receiving interaction feedback information sent by the game server for the interaction request, and determining that the current virtual object is the to-be-interacted virtual object.
7. The method of claim 1, wherein, The resource set identifier includes a second resource set identifier, the second resource set identifier is used to indicate a second target resource set of at least one public virtual resource provided to the virtual object in the virtual scene, and the target resource set corresponding to the to-be-interacted virtual object is determined in response to an interaction operation for the resource set identifier, including: In response to a second touch operation for the second resource set identifier, a resource classification control is displayed on the game interface; In response to a drag operation for the resource classification control, if the resource classification control is dragged onto a friendly virtual object belonging to the same camp as the current virtual object, the current virtual object is determined as the to-be-interacted virtual object.
8. The method according to any one of claims 6 to 7, characterized in that, The to-be-interacted virtual object corresponding to the interactable resource information is displayed on the game interface, including: Obtaining the role attribute of the to-be-interacted virtual object; Obtaining a third candidate virtual resource matching the role attribute from the virtual resources included in the second target resource set as a virtual resource matching the to-be-interacted virtual object; Obtaining the resource identifier of the third candidate virtual resource as the interactable resource information; The interactable resource information is displayed on the game interface.
9. The method of claim 8, wherein, The to-be-interacted virtual object is processed according to the virtual resource corresponding to the interactable resource information, including: In response to a selection operation on a third target resource identifier in the resource identifier of the third candidate virtual resource, a virtual resource corresponding to the third target resource identifier is configured as a virtual resource already held by the current virtual object.
10. A virtual resource processing apparatus, comprising: Including: The first display unit is used to display the game interface of the target game, the game interface includes at least part of the virtual scene and at least part of the virtual object located in the virtual scene, and a resource set identifier, the resource set identifier is used to indicate a target resource set including at least one virtual resource provided to the virtual object; The determination unit is used to determine the to-be-interacted virtual object corresponding to the target resource set in response to an interaction operation for the resource set identifier; The second display unit is used to display the interactable resource information corresponding to the to-be-interacted virtual object on the game interface, and the interactable resource information is used to indicate a virtual resource in the target resource set matching the to-be-interacted virtual object; The processing unit is used to process the to-be-interacted virtual object according to the virtual resource corresponding to the interactable resource information; The device is also used to: in response to a drag operation for the resource set identifier, determine the geographical area in the virtual scene where the position of the resource set identifier is stopped dragging; obtain the geographical attribute type corresponding to the geographical area, and the virtual resource suitable for use in the virtual geographical scene corresponding to each geographical attribute type; form a resource classification control according to the geographical attribute type, wherein one resource classification control corresponds to one geographical attribute type, and the resource classification control includes the corresponding geographical attribute type and the resource identifier suitable for using virtual resources in the corresponding virtual geographical scene; display the resource classification control on the game interface; The resource set identifier includes a first resource set identifier, the first resource set identifier being used to indicate a first target resource set of virtual resources held by a current virtual object, and the determining unit is further configured to: in response to a first touch operation on the first resource set identifier, determine to start the interaction operation; in response to a first sliding operation continuous with the first touch operation, if a final touch point of the first sliding operation is located on the virtual object, determine to complete the interaction operation; and determine that a virtual object touched by the final touch point of the first sliding operation is the virtual object to be interacted corresponding to the target resource set.
11. A computer device, comprising: The method comprises: a memory for storing a computer program; a processor for implementing the steps of the virtual resource processing method according to any one of claims 1 to 9 when executing the computer program.
12. A computer-readable storage medium, characterized in that, The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the virtual resource processing method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for processing virtual resources in game scene, terminal and storage medium
CN108434734A
Virtual object interaction method in virtual scene and related device
CN111803962A