Virtual item pickup method, device and equipment and computer readable storage medium
By displaying virtual items on an exhibition rack for direct selection and pickup, the method addresses low efficiency and flexibility in item retrieval, enhancing gameplay efficiency and player satisfaction.
Patent Information
- Application Number
- CN202410053923.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-12
- Publication Date
- 2025-07-15
AI Technical Summary
During the game, players need to traverse the game scene and find virtual props, resulting in low pickup efficiency and poor flexibility, which affects the game process and experience.
A virtual prop picking method is provided. By displaying prop information on the virtual prop display rack, players are allowed to perform picking operations between the virtual object and the display rack, including displaying picking controls and animation processing.
It improves the efficiency of picking virtual props, reduces the time to search, ensures that players pick up the required props, and improves the game experience and progress.
Smart Images

Figure CN120305671A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the technical field of games, and particularly to a method, device, equipment and computer-readable storage medium for picking up virtual items. Background Art
[0002] With the continuous development of game technology, during the game process, players can pick up virtual items in the game scene to update the virtual items included in the player's virtual backpack.
[0003] However, during the game process, players have no idea about the storage locations of the virtual items they want to pick up. When a player wants to pick up a virtual item needed by the player, the player needs to traverse the places in the game scene where virtual items may be stored to obtain the virtual item they want to pick up. Therefore, during the game process, players spend a lot of time looking for virtual items, wasting a lot of the players' game time, resulting in low picking efficiency and poor picking flexibility of virtual items, and thus affecting the players' game progress. Summary of the Invention
[0004] The embodiments of the present application provide a method, device, equipment and computer-readable storage medium for picking up virtual items, which can be used to solve the problems of low picking efficiency and poor picking flexibility of virtual items in the related art. The technical solutions are as follows.
[0005] On the one hand, the embodiments of the present application provide a method for picking up virtual items, the method includes:
[0006] Display a first game screen of a target game, where a virtual object and a virtual item display stand are shown in the first game screen, and item information of at least one candidate virtual item included in the target game is shown on the virtual item display stand;
[0007] In response to a trigger operation for the picking function of a target virtual item, display a second game screen, where the virtual object holding the target virtual item and the virtual item display stand are shown in the second game screen, and the target virtual item is a virtual item picked up by the virtual object from the at least one candidate virtual item.
[0008] On the other hand, the embodiments of the present application provide a device for picking up virtual items, the device includes:
[0009] A display module, configured to display a first game screen of a target game, where a virtual object and a virtual item display stand are shown in the first game screen, and item information of at least one candidate virtual item included in the target game is shown on the virtual item display stand;
[0010] The display module is further configured to respond to a triggering operation for the pickup function of the target virtual item, and display a second game screen, where the second game screen displays the virtual object holding the target virtual item and the virtual item display rack, and the target virtual item is a virtual item picked up by the virtual object from the at least one candidate virtual item.
[0011] In a possible implementation manner, the triggering operation for the pickup function of the target virtual item includes: responding to a triggering operation for the item information of the target virtual item to trigger the pickup function of the target virtual item; or, responding to a triggering operation for the movement function of the virtual object to display a pickup control corresponding to the target virtual item, where the pickup control is used to pick up the target virtual item; and responding to a triggering operation for the pickup control to trigger the pickup function of the target virtual item.
[0012] In a possible implementation manner, the device further includes:
[0013] A determination module, configured to respond to a triggering operation for the movement function of the virtual object, and determine the distances between the position of the virtual object after movement and the display positions of the item information of the at least one candidate virtual item respectively;
[0014] The display module is configured to respond to the distance between the position of the virtual object after movement and the display position of the item information of the target virtual item being less than a target distance, and display a pickup control corresponding to the target virtual item.
[0015] In a possible implementation manner, the display module is configured to respond to the distance between the position of the virtual object after movement and the display position of the item information of the target virtual item being less than a target distance, determine a target area according to the display position of the item information of the target virtual item; and display a pickup control corresponding to the target virtual item in the target area.
[0016] In a possible implementation manner, the target area further displays the item name of the target virtual item and a first prompt message, where the first prompt message is used to prompt to pick up the target virtual item.
[0017] In a possible implementation manner, the determination module is configured to respond to a triggering operation for the pickup function of the target virtual item, and determine the item information of the virtual items included in the backpack of the virtual object;
[0018] The device further includes:
[0019] An acquisition module, configured to acquire a virtual item pickup animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack, where the virtual item pickup animation is an animation of the virtual object taking the target virtual item from the virtual item display rack;
[0020] The display module is configured to display the second game screen according to the virtual item pickup animation.
[0021] In a possible implementation manner, the determination module is configured to, in response to a trigger operation for the pickup function of the target virtual item, determine the number of times the target virtual item has been picked up; in a case where the number of times the target virtual item has been picked up is less than the pickup times threshold, determine the item information of the virtual items included in the backpack of the virtual object.
[0022] In a possible implementation manner, the virtual item pickup animation includes a first game animation, and the first game animation is an animation of the virtual object taking the target virtual item from the virtual item display rack;
[0023] The acquisition module is configured to, based on that the virtual items included in the backpack do not include the target virtual item, determine the number of the virtual items included in the backpack and the capacity of the backpack; based on that the number of the virtual items included in the backpack is less than the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item, acquire the first game animation.
[0024] In a possible implementation manner, the virtual item pickup animation includes a second game animation, and the second game animation is an animation of the virtual object taking a first virtual item from the backpack, placing the first virtual item on the virtual item display rack, and taking the target virtual item from the virtual item display rack, where the first virtual item is any one of the virtual items included in the backpack;
[0025] The acquisition module is configured to, based on that the virtual items included in the backpack do not include the target virtual item, determine the number of the virtual items included in the backpack and the capacity of the backpack; based on that the number of the virtual items included in the backpack is equal to the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item, acquire the second game animation.
[0026] In a possible implementation manner, the virtual item pickup animation includes a third game animation, and the third game animation is an animation of the virtual object putting a reference virtual item back into the backpack and taking the target virtual item from the virtual item display rack;
[0027] The obtaining module is configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the target virtual item is not included in the virtual items included in the backpack; and obtain the third game animation based on that the number of virtual items included in the backpack is less than the capacity of the backpack, and the virtual object shown in the first game screen holds a reference virtual item, where the reference virtual item is different from the target virtual item.
[0028] In a possible implementation manner, the virtual item pickup animation includes a fourth game animation, and the fourth game animation is an animation in which the virtual object places the reference virtual item on the virtual item display rack and takes the target virtual item from the virtual item display rack;
[0029] The obtaining module is configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the target virtual item is not included in the virtual items included in the backpack; and obtain the fourth game animation based on that the number of virtual items included in the backpack is equal to the capacity of the backpack, and the virtual object shown in the first game screen holds a reference virtual item, where the reference virtual item is different from the target virtual item.
[0030] In a possible implementation manner, the item information of the target virtual item is not shown on the virtual item display rack shown in the second game screen;
[0031] The display module is further configured to, in response to the virtual object putting the target virtual item back on the virtual item display rack, display the item information of the target virtual item on the virtual item display rack.
[0032] In a possible implementation manner, based on that the virtual object shown in the first game screen does not hold a virtual item, a firing control and a reloading control are further shown in the second game screen shown, where the firing control is used to control the target virtual item to shoot virtual ammunition, and the reloading control is used to increase the number of virtual ammunition included in the target virtual item.
[0033] In a possible implementation manner, the device further includes:
[0034] A transfer module, configured to, in response to a trigger operation on the reloading control and when the number of virtual ammunition included in the virtual object is not less than a reference number, transfer the reference number of virtual ammunition from the virtual ammunition included in the virtual object to the target virtual item.
[0035] In a possible implementation, the display module is further configured to display a third prompt message based on the number of virtual ammunitions included in the target virtual item being a target number, where the third prompt message is used to prompt that the target virtual item has expired.
[0036] In a possible implementation, a backpack interface of the virtual object is further displayed in the first game screen, and item information of virtual items obtained by the virtual object is displayed in the backpack interface.
[0037] On the other hand, an embodiment of the present application provides a computer device, which includes a processor and a memory. At least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to enable the computer device to implement the method for picking up a virtual item as described in any one of the above.
[0038] On the other hand, a computer-readable storage medium is further provided. At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement the method for picking up a virtual item as described in any one of the above.
[0039] On the other hand, a computer program or a computer program product is further provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any one of the above methods for picking up a virtual item.
[0040] The technical solutions provided by the embodiments of the present application at least bring the following beneficial effects:
[0041] In the technical solutions provided by the embodiments of the present application, at least one virtual item included in the target game is displayed on a virtual item display rack. During the game process, when a virtual object wants to pick up a virtual item, the virtual object selects and picks up the virtual item on the virtual item display rack. This method does not require the virtual object to run on the game map to find virtual items, so that the time required to pick up virtual items is short, thereby improving the efficiency of picking up virtual items and accelerating the game process.
[0042] Moreover, in this way, the situation where the virtual item picked up by the virtual object is not the virtual item that the virtual object wants will not occur, thereby improving the game experience of the virtual object. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0044] Figure 1 It is a schematic diagram of the implementation environment of a method for picking up virtual props provided by an embodiment of the present application;
[0045] Figure 2 It is a flowchart of a method for picking up virtual props provided by an embodiment of the present application;
[0046] Figure 3 It is a schematic diagram of the display of a first game screen provided by an embodiment of the present application;
[0047] Figure 4 It is another schematic diagram of the display of a first game screen provided by an embodiment of the present application;
[0048] Figure 5 It is another schematic diagram of the display of a first game screen provided by an embodiment of the present application;
[0049] Figure 6 It is a schematic diagram of the display of a second game screen provided by an embodiment of the present application;
[0050] Figure 7 It is a flowchart of a method for picking up virtual props provided by an embodiment of the present application;
[0051] Figure 8 It is a flowchart of a method for picking up virtual props provided by an embodiment of the present application;
[0052] Figure 9 It is a schematic diagram of the structure of a virtual prop picking-up device provided by an embodiment of the present application;
[0053] Figure 10 It is a schematic diagram of the structure of a terminal device provided by an embodiment of the present application;
[0054] Figure 11 It is a schematic diagram of the structure of a server provided by an embodiment of the present application. Detailed implementation manners
[0055] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe the embodiments of the present application in detail with reference to the drawings.
[0056] It should be noted that the terms "first", "second", etc. in this application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0057] First, the abbreviations and key terms involved in the embodiments of the present application are defined.
[0058] Virtual environment: refers to the environment provided (or displayed) when an application runs on a terminal device. This virtual environment is an environment created for virtual objects to move. The virtual environment can be a two-dimensional virtual environment, a 2.5D virtual environment, or a three-dimensional virtual environment, etc. The virtual environment can be a simulation environment of the real world, a semi-simulation environment of the real world, or a pure fictional environment. Exemplarily, the virtual environment involved in the embodiments of the present application is a three-dimensional virtual environment.
[0059] Virtual object: refers to an active object in a virtual environment. This active object can be a virtual character, a virtual animal, an anime character, etc. The player can control the virtual object by means of peripheral components or by clicking on the touch display screen. Each virtual object has its own shape and volume in the virtual environment and occupies a part of the space in the virtual environment. Exemplarily, when the virtual environment is a three-dimensional virtual environment, the virtual object is a three-dimensional solid model created based on animation skeleton technology.
[0060] Mobile terminal: generally refers to the mobile phone terminal, including but not limited to all handheld portable game devices.
[0061] Figure 1 It is a schematic diagram of the implementation environment of a method for picking up virtual props provided by an embodiment of the present application. As Figure 1 shown, this implementation environment includes: a terminal device 101 and a server 102.
[0062] Among them, a game client capable of providing a virtual scene is installed and running in the terminal device 101, and the terminal device 101 is used to execute the method for picking up virtual props provided by the embodiment of the present application.
[0063] Exemplarily, the game client capable of providing a virtual scene can be a third-person shooting (TPS) game, a first-person shooting (FPS) game, a multiplayer online battle arena (MOBA) game, a multiplayer shooting survival game, a massive multiplayer online role-playing game (MMO), an action role-playing game (ARPG), a virtual reality (VR) client, an augmented reality (AR) client, a three-dimensional map program, a map simulation program, a social client, an interactive entertainment client, etc.
[0064] The server 102 is used to provide background services for the game client installed on the terminal device 101 that can provide a virtual scene. In a possible implementation, the server 102 undertakes the main computing work, and the terminal device 101 undertakes the secondary computing work. Or, the server 102 undertakes the secondary computing work, and the terminal device 101 undertakes the main computing work. Or, a distributed computing architecture is adopted between the terminal device 101 and the server 102 for collaborative computing.
[0065] Optionally, the terminal device 101 can be any electronic device product that can perform human-computer interaction with the user through one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, the terminal device 101 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, a PC (Personal Computer), a mobile phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a smart in-vehicle unit, a smart TV, etc.
[0066] The terminal device 101 can generally refer to one of multiple terminal devices. In this embodiment, only the terminal device 101 is used as an example for illustration. Those skilled in the art can know that the number of the above terminal devices 101 can be more or less. For example, the above terminal device 101 can be only one, or the above terminal device 101 can be dozens or hundreds, or more. The embodiments of the present application do not limit the number and device type of the terminal device 101.
[0067] The server 102 is a single server, or a server cluster composed of multiple servers, or any one of a cloud computing platform and a virtualization center. The embodiments of the present application do not limit this. The server 102 is directly or indirectly communicatively connected to the terminal device 101 through a wired or wireless communication method. The server 102 has a data receiving function, a data processing function, and a data sending function. Of course, the server 102 may also have other functions. The embodiments of the present application do not limit this.
[0068] Those skilled in the art should understand that the above terminal device 101 and server 102 are only for illustrative purposes. Other existing or future terminal devices or servers that are applicable to the present application should also be included within the protection scope of the present application and are hereby incorporated herein by reference.
[0069] The embodiments of the present application provide a method for picking up virtual props. This method can be applied to the above Figure 1 shown implementation environment. Taking the flowchart of a method for picking up virtual props provided by the embodiments of the present application shown in Figure 2 as an example, this method can be executed by the terminal device 101 in Figure 1 . As shown in Figure 2 , this method includes the following steps.
[0070] In step 201, a first game screen of the target game is displayed. In the first game screen, a virtual object and a virtual prop display stand are displayed, and prop information of at least one candidate virtual prop included in the target game is displayed on the virtual prop display stand.
[0071] In the exemplary embodiments of the present application, a target game capable of providing a virtual environment is installed and run in the terminal device. The target game can be any type of game. The embodiments of the present application do not limit this. The target game can be a first-person perspective game or a third-person perspective game. The target game can be a game based on frame synchronization. That is, the method for picking up virtual props provided by the embodiments of the present application can be applied to a game based on frame synchronization. Picking up a virtual prop means that a virtual object picks up a virtual prop from the virtual environment and equips the picked virtual prop on the virtual object.
[0072] Relevant information of the game is displayed on the display interface of the terminal device. The relevant information of the game can be an icon of the game, a name of the game, or other information that can uniquely represent the target game. The embodiments of the present application do not limit this. When the user wants to run the target game, the user selects the relevant information of the target game. The user's selection of the relevant information of the target game can be that the user clicks on the relevant information of the target game, or the user selects the relevant information of the target game by other means. The embodiments of the present application do not limit this.
[0073] In response to the user selecting the relevant information of the target game, the terminal device receives a trigger operation for the relevant information of the target game. In response to the trigger operation for the relevant information of the target game, a first game screen of the target game is displayed. A virtual object and a virtual prop display stand are displayed on the first game screen, and the prop information of at least one candidate virtual prop included in the target game is displayed on the virtual prop display stand. The prop information of the candidate virtual prop includes the image of the candidate virtual prop.
[0074] Optionally, the virtual object displayed on the first game screen may or may not hold a virtual prop, and the embodiments of the present application do not limit this. Based on the virtual object displayed on the first game screen holding a virtual prop, it may be that the virtual object holds the virtual prop in its hand.
[0075] As Figure 3 is a schematic diagram showing the display of a first game screen provided by an embodiment of the present application. In Figure 3 the first game screen shown, a virtual object 301 and a virtual prop display stand 302 are displayed, and the virtual object 301 does not hold a virtual prop. The prop information of 5 candidate virtual props included in the target game is displayed on the virtual prop display stand 302. Among them, 303 is the prop information of the first candidate virtual prop, 304 is the prop information of the second candidate virtual prop, 305 is the prop information of the third candidate virtual prop, 306 is the prop information of the fourth candidate virtual prop, and 307 is the prop information of the fifth candidate virtual prop.
[0076] Optionally, a backpack interface of the virtual object is also displayed on the first game screen. As Figure 3 308 in Figure 3 is the backpack interface of the virtual object, and the prop information of the virtual props already obtained by the virtual object is displayed in the backpack interface. Figure 3 The prop information of two virtual props already obtained by the virtual object is displayed in the backpack interface shown in the first game screen shown. Since
[0077] the virtual object shown in the first game screen shown does not hold a virtual prop, the display states of the prop information of each virtual prop already obtained by the virtual object displayed in the backpack interface of the virtual object are the same. Figure 3 A health bar of the virtual object and a remaining health bar of the virtual object are also displayed on the first game screen. As Figure 3The "800" therein is the remaining health value of the virtual object, and the "1000" is the health value of the virtual object.
[0078] A jump control is also displayed in the first game screen, such as Figure 3 The 311 in it is the jump control, and the jump control is used to control the virtual object to jump. In response to a trigger operation on the jump control, the virtual object is controlled to jump.
[0079] Such as Figure 4 is a display schematic diagram of another first game screen provided by an embodiment of the present application. In Figure 4 In the first game screen shown, a virtual object 401 and a virtual prop display stand 402 are displayed. The virtual object 401 holds a reference virtual prop 403. Prop information of 5 candidate virtual props included in the target game is displayed on the virtual prop display stand 402. Among them, 404 is the prop information of the first candidate virtual prop, 405 is the prop information of the second candidate virtual prop, 406 is the prop information of the third candidate virtual prop, 407 is the prop information of the fourth candidate virtual prop, and 408 is the prop information of the fifth candidate virtual prop.
[0080] Figure 4 In the first game screen shown, a backpack interface 409 of the virtual object is also displayed. Prop information of the virtual props obtained by the virtual object is displayed in the backpack interface. Since Figure 4 the virtual object shown in the first game screen holds a reference virtual prop (that is, the virtual object holds the first virtual prop displayed in the backpack interface), therefore, the display state of the prop information of the reference virtual prop (the first virtual prop) in the backpack interface is the first state, and the display state of the prop information of the second virtual prop (the second virtual prop) displayed in the backpack interface is the second state. The second virtual prop is a virtual prop in the backpack other than the reference virtual prop. The first state and the second state are different. For example, the first state is displayed in gray, and the second state is displayed in white. Another example is that the first state is highlighted, and the second state is not highlighted.
[0081] Based on the fact that the virtual object shown in the first game screen holds a reference virtual prop, the number threshold of the virtual ammunition included in the reference virtual prop and the number of virtual ammunition currently included in the reference virtual prop are also displayed in the first game screen. Such as Figure 4 The "8" in it is the number of virtual ammunition currently included in the reference virtual prop, and the "10" is the number threshold of the virtual ammunition included in the reference virtual prop.
[0082] Based on the fact that the virtual object shown in the first game screen holds a reference virtual prop, a fire control and a reload control are also displayed in the first game screen, such as Figure 4Among them, 410 is the firing control, and 411 is the reloading control. The firing control is used to control the virtual ammunition shot by the reference virtual item, and the reloading control is used to increase the number of virtual ammunition included in the reference virtual item.
[0083] In step 202, in response to a trigger operation for the pickup function of the target virtual item, a second game screen is displayed. In the second game screen, a virtual object holding the target virtual item and a virtual item display rack are shown. The target virtual item is a virtual item picked up by the virtual object from at least one candidate virtual item.
[0084] In a possible implementation, the trigger operation for the pickup function of the target virtual item includes any one of the following: in response to a trigger operation for the item information of the target virtual item, triggering the pickup function of the target virtual item. In response to a trigger operation for the movement function of the virtual object, a pickup control corresponding to the target virtual item is displayed. The pickup control is used to pick up the target virtual item; in response to a trigger operation for the pickup control, triggering the pickup function of the target virtual item.
[0085] Among them, the process of displaying the pickup control corresponding to the target virtual item in response to a trigger operation for the movement function of the virtual object includes: in response to a trigger operation for the movement function of the virtual object, determining the distances between the position after the virtual object moves and the display positions of the item information of at least one candidate virtual item respectively; in response to the distance between the position after the virtual object moves and the display position of the item information of the target virtual item being less than the target distance, displaying the pickup control corresponding to the target virtual item. Among them, the target distance is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the target distance is 5 centimeters.
[0086] Optionally, a direction control is also shown in the first game screen, such as Figure 3 312 in it is the direction control. In response to a sliding operation for the direction control, the movement function of the virtual object is triggered. Since the position of the virtual object in the first game screen is known before the sliding operation for the direction control, therefore, according to the sliding distance corresponding to the sliding operation for the direction control and the position of the virtual object in the first game screen before the sliding operation for the direction control, the position of the virtual object after moving is determined.
[0087] The positions of the item information of each candidate virtual item displayed on the virtual item display rack are known. Therefore, the distance between the position of the virtual object after moving and the display position of the item information of any candidate virtual item can be determined according to the position information of the position of the virtual object after moving and the position information of the display position of the item information of any candidate virtual item.
[0088] The process of displaying a pick-up control corresponding to a target virtual item in response to the distance between the position after the virtual object moves and the display position of the item information of the target virtual item being less than a target distance includes: in response to the distance between the position after the virtual object moves and the display position of the item information of the target virtual item being less than the target distance, determining a target area based on the display position of the item information of the target virtual item; and displaying a pick-up control corresponding to the target virtual item in the target area.
[0089] The embodiments of the present application do not limit the process of determining the target area based on the display position of the item information of the target virtual item. Exemplarily, a target area is determined with the display position of the item information of the target virtual item as the center and a reference length as the radius. The reference length is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the reference length is 2 centimeters.
[0090] As Figure 5 is a schematic diagram of the display of another first game screen provided by the embodiments of the present application. Figure 5 A pick-up control 501 is displayed in the first game screen shown.
[0091] In a possible implementation, the item name of the target virtual item and a first prompt message for prompting to pick up the target virtual item are also displayed in the target area. As Figure 5 "XXXX" in
[0092] is the item name of the target virtual item, and "Equip item" is the first prompt message. Optionally, the process of displaying a second game screen in response to a trigger operation for the pick-up function of the target virtual item includes: in response to a trigger operation for the pick-up function of the target virtual item, determining the item information of the virtual items included in the backpack of the virtual object; obtaining a virtual item pick-up animation based on the item information of the target virtual item and the item information of the virtual items included in the backpack, where the virtual item pick-up animation is an animation of the virtual object taking the target virtual item from a virtual item display rack; and displaying the second game screen according to the virtual item pick-up animation.
[0093] The process of determining the item information of the virtual items included in the backpack of the virtual object in response to a trigger operation for the pickup function of the target virtual item includes: in response to the trigger operation for the pickup function of the target virtual item, determining the number of times the target virtual item has been picked up; in the case where the number of times the target virtual item has been picked up is less than the pickup times threshold, determining the item information of the virtual items included in the backpack of the virtual object. Herein, the pickup times threshold is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the pickup times threshold is 10 times. Optionally, the number of times each virtual item has been picked up is stored in the server, and the terminal device obtains the number of times the target virtual item has been picked up through interaction with the server.
[0094] According to the item information of the target virtual item and the item information of the virtual items included in the backpack, there are the following four cases to obtain the virtual item pickup animation.
[0095] Case 1: The virtual item pickup animation includes a first game animation, and the first game animation is an animation of the virtual object picking up the target virtual item from the virtual item display stand. Based on that the virtual items included in the backpack of the virtual object do not include the target virtual item, determining the number of virtual items included in the backpack and the capacity of the backpack; based on that the number of virtual items included in the backpack is less than the capacity of the backpack and the virtual object shown in the first game screen does not hold a virtual item, obtaining the first game animation.
[0096] The process of displaying a second game screen according to the virtual item pickup animation includes: displaying the second game screen according to the first game animation.
[0097] Before determining the number of virtual items included in the backpack of the virtual object and the capacity of the backpack based on that the virtual items included in the backpack of the virtual object do not include the target virtual item, it is also necessary to determine whether the virtual items included in the backpack of the virtual object include the target virtual item, and this process includes: based on that the item information of the virtual items included in the backpack of the virtual object includes the item information of the target virtual item, then the virtual items included in the backpack of the virtual object include the target virtual item. Based on that the item information of the virtual items included in the backpack of the virtual object does not include the item information of the target virtual item, then the virtual items not included in the backpack of the virtual object include the target virtual item.
[0098] Since the number of virtual items included in the backpack is less than the capacity of the backpack, and the virtual object displayed in the first game screen does not hold a virtual item, the process of obtaining the first game animation includes: Since the number of virtual items included in the backpack is less than the capacity of the backpack, and the virtual object displayed in the first game screen does not hold a virtual item, generating a first acquisition request, where the first acquisition request carries the item information of the target virtual item and the first information, and the first information is used to indicate that the virtual object does not currently hold a virtual item; sending the first acquisition request to the server, and receiving the first game animation returned by the server based on the first acquisition request, so that the terminal device obtains the first game animation.
[0099] The process of displaying the second game screen according to the first game animation includes: playing the first game animation in the first game screen, and the screen displayed when the first game animation ends is the second game screen.
[0100] In a possible implementation manner, since the virtual object displayed in the first game screen does not hold a virtual item, a firing control and a reloading control are also displayed in the displayed second game screen. The firing control is used to control the target virtual item to shoot virtual ammunition, and the reloading control is used to increase the number of virtual ammunition included in the target virtual item.
[0101] When the number of virtual ammunition included in the target virtual item is the target number, in response to a trigger operation on the reloading control, and the number of virtual ammunition included in the virtual object is not less than the reference number, transfer the reference number of virtual ammunition from the virtual ammunition included in the virtual object to the target virtual item. Wherein, the target number is 0. The reference number is set based on experience or adjusted according to the implementation environment, and the embodiments of the present application do not limit this. Exemplarily, the reference number is 5.
[0102] When the number of virtual ammunition included in the target virtual item is less than the absolute value of the difference between the number of virtual ammunition included in the target virtual item and the threshold value of the number of virtual ammunition included in the target virtual item, determine the absolute value of the difference between the number of virtual ammunition included in the target virtual item and the threshold value of the number of virtual ammunition included in the target virtual item; in response to a trigger operation on the reloading control, and the number of virtual ammunition included in the virtual object is not less than the absolute value, transfer the absolute value of the number of virtual ammunition from the virtual ammunition included in the virtual object to the target virtual item. In response to a trigger operation on the reloading control, and the number of virtual ammunition included in the virtual object is less than the absolute value, transfer the virtual ammunition included in the virtual object to the target virtual item.
[0103] In a possible implementation, based on the number of virtual ammunitions included in the target virtual item being the target number, a third prompt message is displayed, and the third prompt message is used to indicate that the target virtual item fails. When the target virtual item fails, the virtual object can put the target virtual item back on the virtual item display rack, or the virtual object can switch to a virtual item from the virtual object's backpack. The content of the third prompt message can be any content, and the embodiments of the present application do not limit this.
[0104] Based on the number of virtual ammunitions included in the target virtual item being the target number, and the number of virtual ammunitions included in the virtual object being the target number, a third prompt message is displayed.
[0105] In response to a trigger operation for the pickup function of the target virtual item, and the target virtual item not being included in the virtual object's backpack, and the number of virtual items included in the virtual object's backpack being less than the capacity of the backpack, the target virtual item is put into the virtual object's backpack. The item information of the target virtual item is displayed in the backpack interface shown in the displayed second game screen, and the display state of the item information of the target virtual item is the first state, and the display state of the item information of other virtual items except the target virtual item shown in the backpack interface shown in the second game screen is the second state.
[0106] The second game screen may further display the number threshold of the virtual ammunitions included in the target virtual item and the number of virtual ammunitions currently included in the target virtual item.
[0107] Such as Figure 6 is a schematic diagram of the display of a second game screen provided by the embodiments of the present application. In Figure 6 In the shown second game screen, the virtual object 601 holds the target virtual item 602. The item information 604 of the target virtual item is displayed in the backpack interface 603 shown in the second game screen, and the display state of the item information 604 of the target virtual item is the first state (displayed in gray), and the display state of the item information of other virtual items except the target virtual item shown in the backpack interface is the second state (displayed in white). The second game screen also displays a firing control 605 and a reloading control 606. Figure 6 The "10" in the shown second game screen is the number threshold of the virtual ammunitions included in the target virtual item, and the "9" is the number of virtual ammunitions currently included in the target virtual item.
[0108] Scenario 2: The virtual item pickup animation includes a second game animation, where the second game animation is an animation in which a virtual object takes a first virtual item from the backpack, places the first virtual item on the virtual item display stand, and then takes a target virtual item from the virtual item display stand. The first virtual item is any virtual item included in the backpack. Based on the fact that the target virtual item is not included in the virtual items included in the backpack, determine the number of virtual items included in the backpack and the capacity of the backpack; based on the number of virtual items included in the backpack being equal to the capacity of the backpack and the virtual object shown in the first game screen not holding a virtual item, obtain the second game animation.
[0109] The process of displaying the second game screen according to the virtual item pickup animation includes: displaying the second game screen according to the second game animation.
[0110] The process of obtaining the second game animation is similar to the above process of obtaining the first game animation, and the process of displaying the second game screen according to the second game animation is similar to the above process of displaying the second game screen according to the first game animation, and will not be elaborated here.
[0111] In response to a trigger operation for the pickup function of the target virtual item, and when the target virtual item is not included in the virtual object's backpack, and the number of virtual items included in the virtual object's backpack is equal to the capacity of the backpack, remove the first virtual item from the virtual object's backpack and put the target virtual item into the virtual object's backpack. In the backpack interface shown in the displayed second game screen, the item information of the first virtual item is no longer shown, but the item information of the target virtual item is shown, and the display status of the item information of the target virtual item is the first state, and the display status of the item information of other virtual items except the target virtual item shown in the backpack interface shown in the second game screen is the second state.
[0112] Scenario 3: The virtual item pickup animation includes a third game animation, where the third game animation is an animation in which a virtual object puts a reference virtual item back into the backpack and then takes a target virtual item from the virtual item display stand. Based on the fact that the target virtual item is not included in the virtual items included in the backpack, determine the number of virtual items included in the backpack and the capacity of the backpack; based on the number of virtual items included in the backpack being less than the capacity of the backpack and the virtual object shown in the first game screen holding the reference virtual item, and the reference virtual item being different from the target virtual item, obtain the third game animation.
[0113] The process of displaying the second game screen according to the virtual item pickup animation includes: displaying the second game screen according to the third game animation.
[0114] The process of obtaining the third game animation is similar to the process of obtaining the first game animation above. According to the third game animation, the process of displaying the second game screen is similar to the process of displaying the second game screen according to the first game animation above, and will not be elaborated here.
[0115] In response to a trigger operation for the pickup function of the target virtual item, if the reference virtual item held by the virtual object is different from the target virtual item, and the target virtual item is not included in the backpack of the virtual object, and the number of virtual items included in the backpack of the virtual object is less than the capacity of the backpack, put the target virtual item into the backpack of the virtual object. The item information of the target virtual item is displayed in the backpack interface shown in the displayed second game screen, and the display status of the item information of the target virtual item is the first status, and the display status of the item information of other virtual items except the target virtual item shown in the backpack interface shown in the second game screen is the second status.
[0116] Case 4: The virtual item pickup animation includes a fourth game animation, which is an animation where the virtual object places the reference virtual item on the virtual item display stand and picks up the target virtual item from the virtual item display stand. Based on the fact that the target virtual item is not included in the virtual items included in the backpack, determine the number of virtual items included in the backpack and the capacity of the backpack; based on the fact that the number of virtual items included in the backpack is equal to the capacity of the backpack, and the virtual object shown in the first game screen holds the reference virtual item, and the reference virtual item is different from the target virtual item, obtain the fourth game animation.
[0117] The process of displaying the second game screen according to the virtual item pickup animation includes: displaying the second game screen according to the fourth game animation.
[0118] The process of obtaining the fourth game animation is similar to the process of obtaining the first game animation above. According to the fourth game animation, the process of displaying the second game screen is similar to the process of displaying the second game screen according to the first game animation above, and will not be elaborated here.
[0119] In response to a trigger operation for the pickup function of the target virtual item, and the reference virtual item held by the virtual object is different from the target virtual item, and the target virtual item is not included in the backpack of the virtual object, and the number of virtual items included in the backpack of the virtual object is equal to the capacity of the backpack, remove the reference virtual item from the backpack of the virtual object, and put the target virtual item into the backpack of the virtual object. The item information of the target virtual item is displayed in the backpack interface shown in the displayed second game screen, and the display status of the item information of the target virtual item is the first status, and the display status of the item information of other virtual items except the target virtual item shown in the backpack interface shown in the second game screen is the second status.
[0120] In a possible implementation, based on the fact that the target virtual item is included in the virtual items in the backpack and the virtual object displayed in the first game screen does not hold a virtual item, obtain a fifth game animation, where the fifth game animation is an animation of the virtual object taking the target virtual item from the backpack of the virtual object; according to the fifth game animation, display a second game screen.
[0121] The process of obtaining the fifth game animation is similar to the process of obtaining the first game animation above, and the process of displaying the second game screen according to the fifth game animation is similar to the process of displaying the second game screen according to the first game animation above, and will not be elaborated here.
[0122] In a possible implementation, based on the fact that the target virtual item is included in the virtual items in the backpack and the virtual object displayed in the first game screen holds a reference virtual item, where the reference virtual item is different from the target virtual item, obtain a sixth game animation, where the sixth game animation is an animation of the virtual object putting the reference virtual item back into the backpack and taking the target virtual item from the backpack; according to the sixth game animation, display a second game screen.
[0123] The process of obtaining the sixth game animation is similar to the process of obtaining the first game animation above, and the process of displaying the second game screen according to the sixth game animation is similar to the process of displaying the second game screen according to the first game animation above, and will not be elaborated here.
[0124] In a possible implementation, a virtual item display rack is also displayed in the second game screen, and the item information of at least one candidate virtual item is displayed on the virtual item display rack. For example Figure 6 607 in is the virtual item display rack. That is, even if the virtual object takes the target virtual item from the virtual item display rack, the target virtual item still exists on the virtual item display rack, so that other players in the game can also take the target virtual item from the virtual item display rack, making the target virtual item can be picked up repeatedly, and thus making the picking up of virtual items more flexible.
[0125] In a possible implementation, the item information of the target virtual item is not displayed on the virtual item display rack displayed in the second game screen, that is, after the virtual object picks up the target virtual item from the virtual item display rack, the target virtual item disappears from the virtual item display rack. In response to the virtual object putting the target virtual item back on the virtual item display rack, display the item information of the target virtual item on the virtual item display rack, so that the reference object can pick up the target virtual item from the virtual item display rack. The reference object can be the above virtual object or not, and the embodiments of the present application do not limit this.
[0126] In response to a trigger operation for the pickup function of a target virtual item, and when the virtual object displayed in the first game screen holds a reference virtual item, and the target virtual item is the same as the reference virtual item, a second prompt message is displayed, and the second prompt message is used to indicate that the same virtual item cannot be picked up. The content of the second prompt message can be any content, and the embodiments of the present application do not limit this. The second prompt message can be superimposed and displayed on the first game screen, and the embodiments of the present application do not limit the display method of the second prompt message.
[0127] At least one virtual item included in the target game described above is displayed on the virtual item display rack. During the game, when a virtual object wants to pick up a virtual item, the virtual object selects and picks up the virtual item on the virtual item display rack. This method does not require the virtual object to run on the game map to find the virtual item, so that the time required to pick up the virtual item is shorter, thereby improving the efficiency of picking up the virtual item and accelerating the game process.
[0128] Moreover, in this way, the situation where the virtual item picked up by the virtual object is not the virtual item the virtual object wants will not occur, thereby improving the game experience of the virtual object.
[0129] In addition, after the virtual object picks up the target virtual item from the virtual item display rack, the target virtual item that has been picked up is still displayed on the virtual item display rack. Since the target virtual item that has been picked up still exists on the virtual item display rack, other virtual objects can still pick up the target virtual item repeatedly, making the picking up of the virtual item more flexible.
[0130] Figure 7 It is a flowchart of a method for picking up a virtual item provided by an embodiment of the present application. This method can be executed by the terminal device 101 in the implementation environment shown below, and this method includes the following content. Figure 1 The implementation environment shown below, and this method includes the following content.
[0131] Step 701: Display a first game screen, in which a virtual object and a virtual item display rack are displayed. The virtual object does not hold a virtual item, and the virtual item display rack displays the item information of at least one candidate virtual item included in the target game.
[0132] In a possible implementation manner, the process of displaying the first game screen has been described in step 201 above and will not be elaborated here.
[0133] Step 702: In response to a trigger operation for the pickup function of a target virtual item, determine the item information of the virtual items included in the backpack of the virtual object, where the target virtual item is any virtual item among at least one candidate virtual item.
[0134] In a possible implementation, the process of determining the item information of virtual items included in the backpack of the virtual object has been described in step 202 above and will not be elaborated here.
[0135] Step 703: Determine whether the virtual items included in the backpack include the target virtual item.
[0136] In a possible implementation, the process of determining whether the virtual items included in the backpack include the target virtual item has been described in step 202 above and will not be elaborated here.
[0137] Step 704: Based on the fact that the virtual items included in the backpack do not include the target virtual item, determine the quantity of the virtual items included in the backpack and the capacity of the backpack.
[0138] In a possible implementation, the process of determining the quantity of the virtual items included in the backpack and the capacity of the backpack has been described in step 202 above and will not be elaborated here.
[0139] Step 705: Determine whether the quantity of the virtual items included in the backpack is less than the capacity of the backpack.
[0140] In a possible implementation, the process of determining whether the quantity of the virtual items included in the backpack is less than the capacity of the backpack has been described in step 202 above and will not be elaborated here.
[0141] Step 706: Based on the fact that the quantity of the virtual items included in the backpack is less than the capacity of the backpack, obtain the first game animation.
[0142] In a possible implementation, the process of obtaining the first game animation has been described in step 202 above and will not be elaborated here.
[0143] Step 707: According to the first game animation, display the second game screen, where the virtual object holds the target virtual item in the second game screen, and a virtual item display rack is shown in the second game screen.
[0144] In a possible implementation, the process of displaying the second game screen according to the first game animation has been described in step 202 above and will not be elaborated here.
[0145] Step 708: Based on the fact that the quantity of the virtual items included in the backpack is equal to the capacity of the backpack, obtain the second game animation.
[0146] In a possible implementation, the process of obtaining the second game animation has been described in step 202 above and will not be elaborated here.
[0147] Step 709: Display a second game screen according to the second game animation.
[0148] In a possible implementation, the process of displaying the second game screen according to the second game animation has been described in step 202 above and will not be elaborated here.
[0149] Step 710: Obtain a fifth game animation based on the virtual items included in the backpack including the target virtual item.
[0150] In a possible implementation, the process of obtaining the fifth game animation has been described in step 202 above and will not be elaborated here.
[0151] Step 711: Display a second game screen according to the fifth game animation.
[0152] In a possible implementation, the process of displaying the second game screen according to the fifth game animation has been described in step 202 above and will not be elaborated here.
[0153] Figure 8 It is a flowchart of a method for picking up a virtual item provided by an embodiment of the present application. This method can be executed by the terminal device 101 in the implementation environment shown below, and this method includes the following content. Figure 1 shown and will be executed by the terminal device 101 in the implementation environment shown below. This method includes the following content.
[0154] Step 801: Display a first game screen. In the first game screen, a virtual object and a virtual item display rack are shown. The virtual object holds a reference virtual item, and the virtual item display rack shows the item information of at least one candidate virtual item included in the target game.
[0155] In a possible implementation, the process of displaying the first game screen has been described in step 201 above and will not be elaborated here.
[0156] Step 802: In response to a trigger operation for the picking function of the target virtual item, determine the item information of the virtual items included in the backpack of the virtual object. The target virtual item is any virtual item among at least one candidate virtual item.
[0157] In a possible implementation, the process of determining the item information of the virtual items included in the backpack of the virtual object has been described in step 202 above and will not be elaborated here.
[0158] Step 803: Determine whether the virtual items included in the backpack include the target virtual item.
[0159] In a possible implementation, the process of determining whether the virtual items included in the backpack include the target virtual item has been described in step 202 above and will not be elaborated here.
[0160] Step 804: Determine the quantity of virtual items included in the backpack and the capacity of the backpack based on the fact that the virtual items included in the backpack do not include the target virtual item.
[0161] In a possible implementation manner, the process of determining the quantity of virtual items included in the backpack and the capacity of the backpack has been described in the above step 202, and will not be elaborated here.
[0162] Step 805: Determine whether the quantity of virtual items included in the backpack is less than the capacity of the backpack.
[0163] In a possible implementation manner, the process of determining whether the quantity of virtual items included in the backpack is less than the capacity of the backpack has been described in the above step 202, and will not be elaborated here.
[0164] Step 806: Obtain a third game animation based on the fact that the quantity of virtual items included in the backpack is less than the capacity of the backpack.
[0165] In a possible implementation manner, the process of obtaining the third game animation has been described in the above step 202, and will not be elaborated here.
[0166] Step 807: According to the third game animation, display a second game screen, in which a virtual object holds the target virtual item, and a virtual item display rack is shown in the second game screen.
[0167] In a possible implementation manner, the process of displaying the second game screen according to the third game animation has been described in the above step 202, and will not be elaborated here.
[0168] Step 808: Obtain a fourth game animation based on the fact that the quantity of virtual items included in the backpack is equal to the capacity of the backpack.
[0169] In a possible implementation manner, the process of obtaining the fourth game animation has been described in the above step 202, and will not be elaborated here.
[0170] Step 809: According to the fourth game animation, display the second game screen.
[0171] In a possible implementation manner, the process of displaying the second game screen according to the fourth game animation has been described in the above step 202, and will not be elaborated here.
[0172] Step 810: Obtain a sixth game animation based on the fact that the virtual items included in the backpack include the target virtual item.
[0173] In a possible implementation, the process of obtaining the sixth game animation has been described in step 202 above and will not be elaborated here.
[0174] Step 811: Display a second game screen according to the sixth game animation.
[0175] In a possible implementation, the process of displaying a second game screen according to the sixth game animation has been described in step 202 above and will not be elaborated here.
[0176] Figure 9 The following is a schematic structural diagram of a virtual item pickup device provided by an embodiment of the present application. As Figure 9 shown, the device includes:
[0177] A display module 901, configured to display a first game screen of a target game. In the first game screen, a virtual object and a virtual item display rack are shown, and item information of at least one candidate virtual item included in the target game is displayed on the virtual item display rack;
[0178] The display module 901 is further configured to, in response to a trigger operation for the pickup function of a target virtual item, display a second game screen. In the second game screen, a virtual object holding the target virtual item and a virtual item display rack are shown, and the target virtual item is a virtual item picked up by the virtual object from at least one candidate virtual item.
[0179] In a possible implementation, the trigger operation for the pickup function of the target virtual item includes: in response to a trigger operation for the item information of the target virtual item, triggering the pickup function of the target virtual item; or, in response to a trigger operation for the movement function of the virtual object, displaying a pickup control corresponding to the target virtual item, where the pickup control is used to pick up the target virtual item; and in response to a trigger operation for the pickup control, triggering the pickup function of the target virtual item.
[0180] In a possible implementation, the device further includes:
[0181] A determination module 902, configured to, in response to a trigger operation for the movement function of the virtual object, determine the distances between the position of the virtual object after movement and the display positions of the item information of at least one candidate virtual item respectively;
[0182] The display module 901 is configured to, in response to the distance between the position of the virtual object after movement and the display position of the item information of the target virtual item being less than a target distance, display a pickup control corresponding to the target virtual item.
[0183] In a possible implementation, a display module 901 is configured to determine a target area according to the display position of the item information of a target virtual item in response to the distance between the position after the virtual object moves and the display position of the item information of the target virtual item being less than a target distance; and display a pick-up control corresponding to the target virtual item in the target area.
[0184] In a possible implementation, the item name of the target virtual item and a first prompt message for prompting to pick up the target virtual item are further displayed in the target area.
[0185] In a possible implementation, a determination module 902 is configured to determine the item information of the virtual items included in the backpack of the virtual object in response to a trigger operation for the pick-up function of the target virtual item.
[0186] The device further includes:
[0187] An acquisition module 903 is configured to acquire a virtual item pick-up animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack, where the virtual item pick-up animation is an animation of the virtual object taking the target virtual item from a virtual item display rack.
[0188] The display module 901 is configured to display a second game screen according to the virtual item pick-up animation.
[0189] In a possible implementation, the determination module 902 is configured to determine the number of times the target virtual item is picked up in response to a trigger operation for the pick-up function of the target virtual item; and determine the item information of the virtual items included in the backpack of the virtual object when the number of times the target virtual item is picked up is less than a pick-up times threshold.
[0190] In a possible implementation, the virtual item pick-up animation includes a first game animation, and the first game animation is an animation of the virtual object taking the target virtual item from the virtual item display rack.
[0191] The acquisition module 903 is configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the virtual items included in the backpack do not include the target virtual item; and acquire the first game animation based on that the number of virtual items included in the backpack is less than the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item.
[0192] In a possible implementation, the virtual item pick-up animation includes a second game animation, and the second game animation is an animation of the virtual object taking a first virtual item from the backpack, placing the first virtual item on the virtual item display rack, and then taking the target virtual item from the virtual item display rack, where the first virtual item is any one of the virtual items included in the backpack.
[0193] An obtaining module 903, configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the virtual items included in the backpack do not include a target virtual item; and obtain a second game animation based on that the number of virtual items included in the backpack is equal to the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item.
[0194] In a possible implementation manner, the virtual item pickup animation includes a third game animation, and the third game animation is an animation in which the virtual object puts a reference virtual item back into the backpack and takes the target virtual item from the virtual item display rack;
[0195] An obtaining module 903, configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the virtual items included in the backpack do not include a target virtual item; and obtain a third game animation based on that the number of virtual items included in the backpack is less than the capacity of the backpack and the virtual object displayed in the first game screen holds a reference virtual item, and the reference virtual item is different from the target virtual item.
[0196] In a possible implementation manner, the virtual item pickup animation includes a fourth game animation, and the fourth game animation is an animation in which the virtual object places the reference virtual item on the virtual item display rack and takes the target virtual item from the virtual item display rack;
[0197] An obtaining module 903, configured to determine the number of virtual items included in the backpack and the capacity of the backpack based on that the virtual items included in the backpack do not include a target virtual item; and obtain a fourth game animation based on that the number of virtual items included in the backpack is equal to the capacity of the backpack and the virtual object displayed in the first game screen holds a reference virtual item, and the reference virtual item is different from the target virtual item.
[0198] In a possible implementation manner, the item information of the target virtual item is not displayed on the virtual item display rack shown in the second game screen;
[0199] A display module 901 is further configured to, in response to the virtual object putting the target virtual item back on the virtual item display rack, display the item information of the target virtual item on the virtual item display rack.
[0200] In a possible implementation manner, based on that the virtual object displayed in the first game screen does not hold a virtual item, a firing control and a reloading control are further displayed in the second game screen shown, the firing control is used to control the target virtual item to shoot virtual ammunition, and the reloading control is used to increase the number of virtual ammunition included in the target virtual item.
[0201] In a possible implementation manner, the device further includes:
[0202] A transfer module, configured to transfer a reference quantity of virtual ammunition from the virtual ammunition included in the virtual object to a target virtual item in response to a triggering operation on a reloading control and when the quantity of virtual ammunition included in the virtual object is not less than a reference quantity.
[0203] In a possible implementation, the display module 901 is further configured to display a third prompt message based on the quantity of virtual ammunition included in the target virtual item being a target quantity, where the third prompt message is used to prompt that the target virtual item has expired.
[0204] In a possible implementation, a backpack interface of the virtual object is further displayed in the first game screen, and item information of the virtual items obtained by the virtual object is displayed in the backpack interface.
[0205] At least one virtual item included in the target game of the above device is displayed on a virtual item display rack. During the game, when the virtual object wants to pick up a virtual item, the virtual object selects and picks up the virtual item on the virtual item display rack. Since there is no need for the virtual object to run around in the game map to find virtual items, the time required to pick up virtual items is shorter, thereby improving the efficiency of picking up virtual items and accelerating the game process.
[0206] Moreover, since there will be no situation where the virtual item picked up by the virtual object is not the virtual item the virtual object wants, the game experience of the virtual object can be improved.
[0207] It should be understood that when the above-provided device implements its functions, only the above division of each functional module is used for illustration. In practical applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be elaborated here.
[0208] Figure 10 The block diagram of a terminal device 1000 provided by an exemplary embodiment of the present application is shown. The terminal device 1000 can be any electronic device product that can perform human-computer interaction with a user in one or more ways such as a keyboard, a touchpad, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart vehicle machine, a smart TV, a smart speaker, a smart watch, etc.
[0209] Generally, the terminal device 1000 includes: a processor 1001 and a memory 1002.
[0210] The processor 1001 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.
[0211] The memory 1002 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1002 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, and the at least one instruction is used to be executed by the processor 1001 to implement the method for picking up virtual props provided in the method embodiments of the present application.
[0212] In some embodiments, the terminal device 1000 may further optionally include: a peripheral device interface 1003 and at least one peripheral device. The processor 1001, the memory 1002, and the peripheral device interface 1003 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1003 through a bus, signal lines, or a circuit board. Specifically, the peripheral devices include at least one of a radio frequency circuit 1004, a display screen 1005, a camera module 1006, an audio circuit 1007, and a power supply 1009.
[0213] The peripheral device interface 1003 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1001 and the memory 1002. In some embodiments, the processor 1001, the memory 1002, and the peripheral device interface 1003 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1001, the memory 1002, and the peripheral device interface 1003 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.
[0214] The radio frequency circuit 1004 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1004 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1004 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1004 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so on. The radio frequency circuit 1004 can communicate with other terminal devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1004 can also include a circuit related to NFC (Near Field Communication), and this application does not limit this.
[0215] The display screen 1005 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1005 is a touch display screen, the display screen 1005 also has the ability to collect touch signals on or above the surface of the display screen 1005. The touch signals can be input to the processor 1001 as control signals for processing. At this time, the display screen 1005 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1005, which is provided on the front panel of the terminal device 1000; in other embodiments, there may be at least two display screens 1005, which are respectively provided on different surfaces of the terminal device 1000 or are in a folding design; in other embodiments, the display screen 1005 may be a flexible display screen, which is provided on a curved surface or a folding surface of the terminal device 1000. Even further, the display screen 1005 can be set to an irregular non-rectangular shape, that is, an irregular-shaped screen. The display screen 1005 can be prepared using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0216] The camera module 1006 is used to collect images or videos. Optionally, the camera module 1006 includes a front camera and a rear camera. Generally, the front camera is provided on the front panel of the terminal device 1000, and the rear camera is provided on the back of the terminal device 1000. In some embodiments, there are at least two rear cameras, which can be any one of a main camera, a depth-of-field camera, a wide-angle camera, and a telephoto camera, so as to realize the function of background blurring by fusing the main camera and the depth-of-field camera, the function of panoramic shooting and VR (Virtual Reality) shooting by fusing the main camera and the wide-angle camera, or other fusion shooting functions. In some embodiments, the camera module 1006 may further include a flash. The flash can be a single-color-temperature flash or a dual-color-temperature flash. A dual-color-temperature flash refers to a combination of a warm-light flash and a cold-light flash, which can be used for light compensation under different color temperatures.
[0217] The audio circuit 1007 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1001 for processing, or input to the radio frequency circuit 1004 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal device 1000. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1001 or the radio frequency circuit 1004 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for uses such as ranging. In some embodiments, the audio circuit 1007 may also include a headphone jack.
[0218] The power supply 1009 is used to supply power to each component in the terminal device 1000. The power supply 1009 may be alternating current, direct current, a primary battery or a rechargeable battery. When the power supply 1009 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0219] In some embodiments, the terminal device 1000 further includes one or more sensors 1010. The one or more sensors 1010 include but are not limited to: an acceleration sensor 1011, a gyroscope sensor 1012, a pressure sensor 1013, an optical sensor 1015, and a proximity sensor 1016.
[0220] The acceleration sensor 1011 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal device 1000. For example, the acceleration sensor 1011 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1001 can control the display screen 1005 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1011. The acceleration sensor 1011 can also be used for collecting game or user's motion data.
[0221] The gyroscope sensor 1012 can detect the body direction and rotation angle of the terminal device 1000. The gyroscope sensor 1012 can cooperate with the acceleration sensor 1011 to collect the 3D actions of the user on the terminal device 1000. According to the data collected by the gyroscope sensor 1012, the processor 1001 can achieve the following functions: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0222] The pressure sensor 1013 can be disposed on the side frame of the terminal device 1000 and / or the lower layer of the display screen 1005. When the pressure sensor 1013 is disposed on the side frame of the terminal device 1000, it can detect the holding signal of the user on the terminal device 1000, and the processor 1001 can perform left / right hand recognition or shortcut operations according to the holding signal collected by the pressure sensor 1013. When the pressure sensor 1013 is disposed on the lower layer of the display screen 1005, the processor 1001 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1005. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.
[0223] The optical sensor 1015 is used to collect the ambient light intensity. In one embodiment, the processor 1001 can control the display brightness of the display screen 1005 according to the ambient light intensity collected by the optical sensor 1015. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1005 is increased; when the ambient light intensity is low, the display brightness of the display screen 1005 is decreased. In another embodiment, the processor 1001 can also dynamically adjust the shooting parameters of the camera module 1006 according to the ambient light intensity collected by the optical sensor 1015.
[0224] The proximity sensor 1016, also known as the distance sensor, is usually disposed on the front panel of the terminal device 1000. The proximity sensor 1016 is used to collect the distance between the user and the front of the terminal device 1000. In one embodiment, when the proximity sensor 1016 detects that the distance between the user and the front of the terminal device 1000 is gradually decreasing, the processor 1001 controls the display screen 1005 to switch from the lit state to the off state; when the proximity sensor 1016 detects that the distance between the user and the front of the terminal device 1000 is gradually increasing, the processor 1001 controls the display screen 1005 to switch from the off state to the lit state.
[0225] Those skilled in the art can understand that Figure 10 the structure shown in does not limit the terminal device 1000, and it may include more or fewer components than shown in the figure, or combine certain components, or adopt different component arrangements.
[0226] Figure 11A schematic structural diagram of the server provided by an embodiment of the present application. The server 1100 may vary significantly due to different configurations or performances, and may include one or more processors (Central Processing Units, CPUs) 1101 and one or more memories 1102. Among them, at least one program code is stored in the one or more memories 1102, and the at least one program code is loaded and executed by the one or more processors 1101 to implement the method for picking up virtual items provided in the above various method embodiments. Of course, the server 1100 may also have components such as wired or wireless network interfaces, keyboards, and input / output interfaces for input / output. The server 1100 may also include other components for implementing device functions, which will not be elaborated here.
[0227] In an exemplary embodiment, a computer-readable storage medium is also provided. At least one program code is stored in the storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to implement any of the above methods for picking up virtual items.
[0228] Optionally, the above computer-readable storage medium may be a Read-Only Memory (ROM), Random Access Memory (RAM), Compact Disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, etc.
[0229] In an exemplary embodiment, a computer program or a computer program product is also provided. At least one computer instruction is stored in the computer program or the computer program product, and the at least one computer instruction is loaded and executed by a processor to enable a computer to implement any of the above methods for picking up virtual items.
[0230] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals involved in the present application are all authorized by users or fully authorized by all parties. The collection, use, and processing of relevant data need to comply with relevant laws, regulations, and standards of relevant countries and regions. For example, the game screens, game animations, and item information involved in the present application are obtained under full authorization.
[0231] It should be understood that the "plurality" mentioned herein refers to two or more. "And / or" describes the association relationship of associated objects and indicates that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.
[0232] The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments.
[0233] The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for picking up virtual props, characterized in that, The method includes: Displaying a first game screen of a target game, where a virtual object and a virtual prop display rack are shown in the first game screen, and prop information of at least one candidate virtual prop included in the target game is displayed on the virtual prop display rack; In response to a trigger operation for the pickup function of a target virtual prop, displaying a second game screen, where the virtual object holding the target virtual prop and the virtual prop display rack are shown in the second game screen, and the target virtual prop is a virtual prop picked up by the virtual object from the at least one candidate virtual prop.
2. The method according to claim 1, characterized in that The trigger operation for the pickup function of the target virtual prop includes: In response to a trigger operation for the prop information of the target virtual prop, triggering the pickup function of the target virtual prop; Or, in response to a trigger operation for the movement function of the virtual object, displaying a pickup control corresponding to the target virtual prop, where the pickup control is used to pick up the target virtual prop; in response to a trigger operation for the pickup control, triggering the pickup function of the target virtual prop.
3. The method according to claim 2, wherein The displaying a pickup control corresponding to the target virtual prop in response to a trigger operation for the movement function of the virtual object includes: In response to a trigger operation for the movement function of the virtual object, determining the distances between the position of the virtual object after movement and the display positions of the prop information of the at least one candidate virtual prop respectively; In response to the distance between the position of the virtual object after movement and the display position of the prop information of the target virtual prop being less than a target distance, displaying a pickup control corresponding to the target virtual prop.
4. The method according to claim 3, wherein The displaying a pickup control corresponding to the target virtual prop in response to the distance between the position of the virtual object after movement and the display position of the prop information of the target virtual prop being less than a target distance includes: In response to the distance between the position of the virtual object after movement and the display position of the prop information of the target virtual prop being less than a target distance, determining a target area according to the display position of the prop information of the target virtual prop; Displaying a pickup control corresponding to the target virtual prop in the target area.
5. The method according to claim 4, characterized in that, The prop name of the target virtual prop and a first prompt message for prompting to pick up the target virtual prop are also shown in the target area.
6. The method according to any one of claims 1 to 5, characterized in that, The displaying a second game screen in response to a trigger operation for the pickup function of a target virtual prop includes: In response to a trigger operation for the pickup function of the target virtual prop, determining the prop information of the virtual props included in the backpack of the virtual object; According to the prop information of the target virtual prop and the prop information of the virtual props included in the backpack, obtaining a virtual prop pickup animation, where the virtual prop pickup animation is an animation of the virtual object picking up the target virtual prop from the virtual prop display rack; Displaying the second game screen according to the virtual prop pickup animation.
7. The method according to claim 6, wherein The determining the prop information of the virtual props included in the backpack of the virtual object in response to a trigger operation for the pickup function of the target virtual prop includes: In response to a trigger operation for the pickup function of the target virtual item, determine the number of times the target virtual item has been picked up; When the number of times the target virtual item has been picked up is less than the pickup times threshold, determine the item information of the virtual items included in the backpack of the virtual object.
8. The method according to claim 6, wherein The virtual item pickup animation includes a first game animation, and the first game animation is an animation of the virtual object picking up the target virtual item from the virtual item display rack; The obtaining of the virtual item pickup animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack includes: Based on that the virtual items included in the backpack do not include the target virtual item, determine the number of the virtual items included in the backpack and the capacity of the backpack; Based on that the number of the virtual items included in the backpack is less than the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item, obtain the first game animation.
9. The method according to claim 6, wherein The virtual item pickup animation includes a second game animation, and the second game animation is an animation of the virtual object picking up a first virtual item from the backpack, placing the first virtual item on the virtual item display rack, and then picking up the target virtual item from the virtual item display rack, where the first virtual item is any one of the virtual items included in the backpack; The obtaining of the virtual item pickup animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack includes: Based on that the virtual items included in the backpack do not include the target virtual item, determine the number of the virtual items included in the backpack and the capacity of the backpack; Based on that the number of the virtual items included in the backpack is equal to the capacity of the backpack and the virtual object displayed in the first game screen does not hold a virtual item, obtain the second game animation.
10. The method according to claim 6, characterized in that, The virtual item pickup animation includes a third game animation, and the third game animation is an animation of the virtual object putting a reference virtual item back into the backpack and then picking up the target virtual item from the virtual item display rack; The obtaining of the virtual item pickup animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack includes: Based on that the virtual items included in the backpack do not include the target virtual item, determine the number of the virtual items included in the backpack and the capacity of the backpack; Based on that the number of the virtual items included in the backpack is less than the capacity of the backpack and the virtual object displayed in the first game screen holds a reference virtual item, where the reference virtual item is different from the target virtual item, obtain the third game animation.
11. The method according to claim 6, characterized in that, The virtual item pickup animation includes a fourth game animation, and the fourth game animation is an animation of the virtual object placing the reference virtual item on the virtual item display rack and then picking up the target virtual item from the virtual item display rack; Obtaining a virtual item pickup animation according to the item information of the target virtual item and the item information of the virtual items included in the backpack includes: Based on that the virtual items included in the backpack do not include the target virtual item, determining the quantity of the virtual items included in the backpack and the capacity of the backpack; Based on that the quantity of the virtual items included in the backpack is equal to the capacity of the backpack, and the virtual object shown in the first game screen holds a reference virtual item, where the reference virtual item is different from the target virtual item, obtaining the fourth game animation.
12. The method according to any one of claims 1 to 5, characterized in that, The item information of the target virtual item is not shown on the virtual item display rack shown in the second game screen; The method further includes: In response to the virtual object putting the target virtual item back to the virtual item display rack, displaying the item information of the target virtual item on the virtual item display rack.
13. According to the method described in any one of claims 1 to 5, characterized in that, Based on that the virtual object shown in the first game screen does not hold a virtual item, and a firing control and a reloading control are also shown in the second game screen shown, where the firing control is used to control the target virtual item to shoot virtual ammunition, and the reloading control is used to increase the quantity of the virtual ammunition included in the target virtual item.
14. The method according to claim 13, wherein The method further includes: In response to a triggering operation on the reloading control, and when the quantity of the virtual ammunition included in the virtual object is not less than a reference quantity, transferring the reference quantity of virtual ammunition from the virtual ammunition included in the virtual object to the target virtual item.
15. The method according to any one of claims 1 to 5, characterized in that The method further includes: Based on that the quantity of the virtual ammunition included in the target virtual item is a target quantity, displaying a third prompt message for prompting that the target virtual item fails.
16. The method according to any one of claims 1 to 5, characterized in that, The backpack interface of the virtual object is further shown in the first game screen, and the item information of the virtual items obtained by the virtual object is shown in the backpack interface.
17. A pickup device for virtual props, characterized in that, The device includes: A display module, configured to display a first game screen of a target game, where a virtual object and a virtual item display rack are shown in the first game screen, and the item information of at least one candidate virtual item included in the target game is shown on the virtual item display rack; The display module is further configured to, in response to a triggering operation on the pickup function of a target virtual item, display a second game screen, where the virtual object holding the target virtual item and the virtual item display rack are shown in the second game screen, and the target virtual item is a virtual item picked up by the virtual object from the at least one candidate virtual item.
18. A computer device, characterized in that, The computer device includes a processor and a memory, and at least one program code is stored in the memory and is loaded and executed by the processor to enable the computer device to implement the virtual item pickup method as described in any one of claims 1 to 16.
19. A computer-readable storage medium, characterized in that, At least one program code is stored in the computer-readable storage medium and is loaded and executed by a processor to enable a computer to implement the virtual item pickup method as described in any one of claims 1 to 16.
20. A computer program product, characterized in that, At least one computer instruction is stored in the computer program product, and the at least one computer instruction is loaded and executed by a processor so that a computer implements the method for picking up a virtual item as described in any one of claims 1 to 16.