Virtual-accessory equipment method and apparatus, and computer device and storage medium
By displaying the configuration preview area in the virtual scene, users can intuitively view and adjust the accessories on the virtual weapon, solving the problem of cumbersome operations in the prior art and improving assembly efficiency and user experience.
Patent Information
- Application Number
- PCT/CN2024/118053
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-30
- Filing Date
- 2024-09-10
- Publication Date
- 2025-06-05
AI Technical Summary
In the prior art, players need to frequently open the backpack of virtual characters to view and assemble accessories on virtual weapons, which are cumbersome and affect assembly efficiency.
Provides a method of assembling virtual accessories. By displaying the configuration preview area in a virtual scene, users can intuitively view the assembly status of virtual accessories on virtual weapons, and perform assembly, disassembly, transfer and replacement operations in the interface.
It improves the efficiency of human-computer interaction, and users do not need to frequently switch interfaces, and can view and adjust accessories on virtual weapons in real time, improving the user experience.
Smart Images

Figure CN2024118053_05062025_PF_FP_ABST
Abstract
Description
Virtual accessory assembly method, device, computer equipment and storage medium
[0001] This application claims priority to the Chinese patent application filed on November 30, 2023, with application number 202311640567.0 and invention name “Assembly method, device, computer equipment and storage medium for virtual accessories”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer equipment, and storage medium for assembling virtual accessories. Background Art
[0003] Common competitive shooting games feature the concept of virtual accessories. These can include virtual magazines, virtual stocks, or scopes. Different virtual accessories can provide varying benefits to virtual weapons, impacting the player's gaming experience. This demonstrates the crucial importance of virtual accessories in gaming. Attaching virtual accessories to virtual weapons is a key area of research in this field.
[0004] Summary of the Invention
[0005] The present application provides a method, apparatus, computer device, and storage medium for assembling a virtual accessory. The technical solution is as follows:
[0006] In one aspect, a method for assembling a virtual accessory is provided, which is executed by a computer device, and the method includes:
[0007] Displaying a virtual scene, wherein the virtual scene includes a virtual character and virtual accessories;
[0008] In a case where the virtual character carries a virtual weapon, a configuration preview area is displayed in the virtual scene, wherein the configuration preview area displays the virtual weapon and a first preview image, wherein the first preview image indicates the number of virtual accessories assembled on the virtual weapon;
[0009] In response to an assembly operation on any virtual accessory in the virtual scene, the virtual accessory is assembled to the virtual weapon indicated by the assembly operation, and the first preview image in the configuration preview area is updated.
[0010] In another aspect, a device for assembling a virtual accessory is provided, the device comprising:
[0011] A display module, configured to display a virtual scene containing virtual characters and virtual accessories;
[0012] The display module is further configured to display a configuration preview area in the virtual scene when the virtual character carries a virtual weapon, wherein the configuration preview area displays the virtual weapon and a first preview image, wherein the first preview image indicates the number of virtual accessories assembled on the virtual weapon;
[0013] An updating module is configured to, in response to an assembly operation on any virtual accessory in the virtual scene, assemble the virtual accessory to the virtual weapon indicated by the assembly operation, and update the first preview image in the configuration preview area.
[0014] On the other hand, a computer device is provided, which includes a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded and executed by the processor to implement the assembly method of virtual accessories in an embodiment of the present application.
[0015] On the other hand, a computer-readable storage medium is provided, in which at least one computer program is stored. The at least one computer program is loaded and executed by a processor to implement the assembly method of virtual accessories as in the embodiment of the present application.
[0016] On the other hand, a computer program product is provided, including a computer program, which is stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the assembly method of virtual accessories provided in the above-mentioned various aspects or various optional implementations of each aspect.
[0017] An embodiment of the present application provides a method for assembling virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in a virtual scene. Since the configuration preview area displays the virtual weapon carried by the virtual character and a first preview image, the user can intuitively see the assembly status of the virtual accessories on the virtual weapon without the user having to open other interfaces to view the assembly status of the virtual accessories on the virtual weapon, thereby improving the efficiency of human-computer interaction. In addition, when the virtual accessories in the virtual scene are assembled to the virtual weapon, the first preview image displayed in the configuration preview area can be synchronously updated to ensure the real-time and accuracy of the first preview image. In addition, the above operations are completed in the interface displaying the virtual scene, so that the user's field of vision can observe the information appearing in the virtual scene at any time, avoiding missing information in the virtual scene due to blocking the field of vision due to opening other interfaces, improving the display effect, and thus enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] FIG1 is a schematic diagram of an implementation environment of a virtual accessory assembly method provided according to an embodiment of the present application;
[0019] FIG2 is a flow chart of a method for assembling a virtual accessory according to an embodiment of the present application;
[0020] FIG3 is a flowchart of another method for assembling a virtual accessory according to an embodiment of the present application;
[0021] FIG4 is a schematic diagram of a virtual scene provided according to an embodiment of the present application;
[0022] FIG5 is a schematic diagram of a configuration preview area provided according to an embodiment of the present application;
[0023] FIG6 is a schematic diagram of a material list provided according to an embodiment of the present application;
[0024] FIG7 is a schematic diagram of an update configuration preview area provided according to an embodiment of the present application;
[0025] FIG8 is a flow chart of assembling a virtual accessory to a second virtual weapon according to an embodiment of the present application;
[0026] FIG9 is a schematic diagram of a switching preview image provided according to an embodiment of the present application;
[0027] FIG10 is a flowchart of a switching preview image provided according to an embodiment of the present application;
[0028] FIG11 is a schematic diagram of disassembling a virtual accessory according to an embodiment of the present application;
[0029] FIG12 is a schematic diagram of discarding a virtual accessory according to an embodiment of the present application;
[0030] FIG13 is a schematic diagram of transferring a virtual accessory according to an embodiment of the present application;
[0031] FIG14 is a schematic diagram of a replacement virtual accessory provided according to an embodiment of the present application;
[0032] FIG15 is a flowchart of adjusting a virtual weapon according to an embodiment of the present application;
[0033] FIG16 is a block diagram of a virtual accessory assembly device according to an embodiment of the present application;
[0034] FIG17 is a structural block diagram of a terminal provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] In this application, the terms "first," "second," and the like are used to distinguish identical or similar items with substantially the same purpose or function. It should be understood that "first," "second," and "nth" do not have a logical or temporal dependency, nor do they limit the quantity or order of execution. In this application, the term "at least one" means one or more, and "a plurality" means two or more.
[0036] 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 used for analysis, storage, display, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the virtual weapons and virtual accessories involved in this application are obtained with full authorization.
[0037] In the related art, if a player wants to know the assembly status of virtual accessories on a virtual weapon, the player needs to first open the virtual character's backpack to check the current assembly status of the virtual accessories on the virtual weapon. In addition, when the player wants to adjust the virtual accessories assembled on the virtual weapon, he also needs to open the virtual character's backpack and assemble the virtual accessories for the virtual weapon in the backpack. However, opening the backpack to view the assembly status of virtual accessories and assemble virtual accessories is cumbersome and affects assembly efficiency. Based on this, an embodiment of the present application provides a method for assembling virtual accessories, which can view the assembly status of virtual accessories or assemble virtual accessories without opening the virtual character's backpack. The following embodiment describes the method of the embodiment of the present application in detail.
[0038] For ease of understanding, the terms involved in this application are explained below.
[0039] Virtual scene: refers to the virtual scene displayed (or provided) when the application is running on the terminal. This virtual scene can be a simulation of the real world, a virtual scene that is semi-simulated and semi-fictitious, or a purely fictitious virtual scene. The virtual scene can be a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene. For example, the virtual scene can include the sky, land, ocean, etc. The land can include environmental elements such as deserts and cities. Users can control the movement of virtual objects in the virtual scene.
[0040] A virtual character refers to an movable object in a virtual world. The movable object can be at least one of a virtual person, a virtual animal, and an animated character. In some embodiments, when the virtual world is a three-dimensional virtual world, the virtual character is a three-dimensional model. Each virtual character has its own shape and volume in the three-dimensional virtual world and occupies a portion of the space in the three-dimensional virtual world. In some embodiments, the virtual character is a three-dimensional character constructed based on three-dimensional human skeleton technology, and the virtual character achieves different external appearances by wearing different skins. In some embodiments, the virtual character can be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.
[0041] Virtual Accessories: Virtual accessories are typically randomly placed throughout the game map, allowing players to pick them up upon approach. Each virtual weapon (e.g., a virtual firearm) can be equipped with varying numbers and types of virtual accessories based on its unique characteristics. For example, virtual firearm A has five slots for five virtual accessories, while virtual firearm B has only three slots for three virtual accessories. Virtual accessories can include virtual muzzle suppressors, virtual muzzles, virtual grips, virtual magazines, virtual stocks, and scopes. The same virtual accessory may also have multiple models. For example, virtual muzzle suppressors are also classified by firearm type; a virtual sniper rifle's silencer cannot be equipped on other firearms. Equipping a virtual weapon with a virtual accessory will affect certain stats of the virtual weapon. Special virtual accessories can even alter the weapon's attack mode.
[0042] The method for assembling virtual accessories provided in the embodiment of the present application can be executed by a computer device. In some embodiments, the computer device is a terminal or a server. First, taking the computer device as an example of a terminal, the implementation environment of the method for assembling virtual accessories provided in the embodiment of the present application is introduced. Figure 1 is a schematic diagram of the implementation environment of the method for assembling virtual accessories provided in accordance with the embodiment of the present application. Referring to Figure 1, the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, and the present application does not impose any restrictions on this.
[0043] In some embodiments, terminal 101 is a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, smart voice interaction device, smart home appliance, car terminal, etc., but is not limited to this. Terminal 101 installs and runs an application that supports virtual scenes. The application can be any one of a first-person shooter game (First-Person Shooting game, FPS), a third-person shooter game, a multiplayer online tactical competitive game (Multiplayer Online Battle Arena games, MOBA games), a virtual reality application, a three-dimensional map program, or a multiplayer gun battle survival game. Schematically, terminal 101 is a terminal used by a user (player). The user uses terminal 101 to operate a virtual character in a virtual scene to perform activities, which include but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, and throwing. Schematically, the virtual character is a virtual character, such as a simulated character or an anime character.
[0044] Those skilled in the art will appreciate that the number of the above-mentioned terminals may be more or less. For example, the above-mentioned terminal may be only one, or the above-mentioned terminals may be dozens or hundreds, or a larger number. The embodiments of the present application do not limit the number of terminals and device types.
[0045] In some embodiments, server 102 is an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), big data and artificial intelligence platforms. Server 102 is used to provide background services for applications that support virtual scenes. In some embodiments, server 102 undertakes the main computing work and terminal 101 undertakes the secondary computing work; or, server 102 undertakes the secondary computing work and terminal 101 undertakes the main computing work; or, server 102 and terminal 101 adopt a distributed computing architecture for collaborative computing.
[0046] FIG2 is a flowchart of a method for assembling a virtual accessory according to an embodiment of the present application. Referring to FIG2 , the method is described in the embodiment of the present application by taking the method executed by a terminal as an example. The method for assembling a virtual accessory includes the following steps:
[0047] 201. The terminal displays a virtual scene, in which virtual characters and virtual accessories exist.
[0048] In an embodiment of the present application, the terminal displays a virtual character and a virtual supply pile in a virtual scene, and the virtual supply pile includes at least one virtual accessory. The virtual character is a virtual character controlled by the account currently logged in to the terminal. The virtual supply pile refers to a supply pile aggregated from multiple virtual supplies. The embodiment of the present application does not limit the number of virtual supplies in the virtual supply pile. Among the multiple virtual supplies in the virtual supply pile, in addition to at least one virtual accessory, other virtual supplies may also be included. Virtual accessories may be virtual muzzles, virtual grips, virtual magazines, virtual stocks or scopes, etc. Other virtual supplies may be virtual food or virtual medicine, etc., which are not limited in the embodiment of the present application.
[0049] 202. When the virtual character carries a virtual weapon, the terminal displays a configuration preview area in the virtual scene. The configuration preview area displays the virtual weapon and a first preview image. The first preview image indicates the number of virtual accessories assembled on the virtual weapon.
[0050] In an embodiment of the present application, a virtual character may carry a virtual weapon, and the embodiment of the present application does not limit the number of virtual weapons. A virtual weapon may be a virtual firearm, a virtual crossbow, or a virtual knife, etc., and the embodiment of the present application does not limit this. For any virtual weapon, the virtual weapon may be equipped with virtual accessories, and the embodiment of the present application does not limit the number of virtual accessories that can be equipped on the virtual weapon. When a virtual character carries a virtual weapon, the terminal displays a configuration preview area in the virtual scene, and the embodiment of the present application does not limit the display position and display style of the configuration preview area. The configuration preview area is used to display the situation where virtual accessories are equipped on the virtual weapon carried by the virtual character.
[0051] In some embodiments, the configuration preview area includes a weapon display area and an accessory display area. The weapon display area is used to display the virtual weapons carried by the avatar. The accessory display area is used to display the virtual accessories equipped on each virtual weapon. The terminal displays a first preview image in the accessory display area to intuitively show the user the number of virtual accessories equipped on the virtual weapon carried by the avatar. In other words, the virtual weapons and the first preview image can be displayed in different areas.
[0052] In some embodiments, the virtual character may carry multiple virtual weapons, each of which has a corresponding first preview image. The first preview image of any virtual weapon indicates the number of virtual accessories that have been assembled on the virtual weapon.
[0053] 203. In response to an assembly operation on any virtual accessory in the virtual scene, the terminal assembles the virtual accessory to the virtual weapon indicated by the assembly operation and updates the first preview image in the configuration preview area.
[0054] In this embodiment of the present application, when an assembly operation is triggered for any virtual accessory in the virtual scene, the terminal assembles the virtual accessory onto the virtual weapon indicated by the assembly operation. The terminal then updates the display in the configuration preview area, specifically, the first preview image in the configuration preview area. The first preview image in the configuration preview area shows the number of virtual accessories already assembled on the virtual weapon increased by one, while the number of virtual accessories already assembled on other virtual weapons remains unchanged.
[0055] In some embodiments, the terminal displays a virtual supply pile in a virtual scene. When the distance between the virtual character and the virtual supply pile meets a condition, the terminal displays a supply list of the virtual supply pile in the virtual scene. The supply list includes at least one virtual accessory. In response to an assembly operation on any virtual accessory in the supply list, the terminal assembles the virtual accessory to the virtual weapon indicated by the assembly operation and updates the first preview image in the configuration preview area.
[0056] In an embodiment of the present application, a virtual character can move in a virtual scene. When the distance between the virtual character and the virtual supply pile meets the conditions, the terminal displays a supply list of the virtual supply pile in the virtual scene. That is, when the virtual character approaches the virtual supply pile, once the distance between the virtual character and the virtual supply pile meets the conditions, the supply list of the virtual supply pile is displayed in the virtual scene. The "condition" can be that the distance between the virtual character and the virtual supply pile is less than a preset distance, or that the distance between the virtual character and the virtual supply pile is within a preset distance range. This embodiment of the present application does not limit this. The supply list is used to display all virtual supplies in the virtual supply pile, so that the user can see at least one virtual accessory in the virtual supply pile through the supply list.
[0057] An embodiment of the present application provides a method for assembling virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in a virtual scene. Since the configuration preview area displays the virtual weapon carried by the virtual character and a first preview image, the user can intuitively see the assembly status of the virtual accessories on the virtual weapon without the user having to open other interfaces to view the assembly status of the virtual accessories on the virtual weapon, thereby improving the efficiency of human-computer interaction. In addition, when the virtual accessories in the virtual scene are assembled to the virtual weapon, the first preview image displayed in the configuration preview area can be synchronously updated to ensure the real-time and accuracy of the first preview image. In addition, the above operations are completed in the interface displaying the virtual scene, so that the user's field of vision can observe the information appearing in the virtual scene at any time, avoiding missing information in the virtual scene due to blocking the field of vision due to opening other interfaces, improving the display effect, and thus enhancing the user experience.
[0058] FIG3 is a flow chart of another virtual accessory assembly method provided in accordance with an embodiment of the present application. Referring to FIG3 , the embodiment of the present application is described by taking the method executed by a terminal as an example. The virtual accessory assembly method includes the following steps:
[0059] 301. The terminal displays a virtual scene, in which virtual characters and virtual accessories exist.
[0060] In some embodiments, the terminal displays a virtual character and a virtual supply pile in a virtual scene, where the virtual supply pile includes at least one virtual accessory.
[0061] In an embodiment of the present application, after a virtual game begins, the terminal displays a virtual character and a virtual supply pile in a virtual scene. The terminal can manipulate the virtual character to perform various interactive actions within the virtual scene, such as picking up virtual supplies from the virtual supply pile and engaging in combat with other virtual characters. The interface currently displaying the virtual scene on the terminal can be referred to as the game interface or main interface, hosting the primary interactive actions required for the virtual character to engage in a virtual game. As the virtual character moves within the virtual scene, the virtual character's field of view changes. In other words, as the virtual character moves within the virtual scene, the content of the virtual scene displayed by the terminal also continuously changes. The virtual scene may include multiple virtual supply piles, and this embodiment of the present application does not limit the number of virtual supply piles. For any virtual supply pile, as the distance between the virtual character and the virtual supply pile gradually decreases, the virtual supply pile appears within the virtual character's field of view. In other words, the terminal displays the virtual supply pile within the virtual scene.
[0062] For any virtual goods pile, the virtual goods pile includes multiple virtual goods, and the embodiment of the present application does not limit the number of virtual goods. The multiple virtual goods include at least one virtual accessory and other virtual goods, and the embodiment of the present application does not limit the virtual accessories and other virtual goods.
[0063] For example, Figure 4 is a schematic diagram of a virtual scene provided according to an embodiment of the present application. Referring to Figure 4 , a terminal displays a virtual scene, in which a virtual character 401 and a virtual material pile 402 exist.
[0064] 302. When the virtual character carries a virtual weapon, the terminal displays a configuration preview area in the virtual scene. The configuration preview area displays the virtual weapon and a first preview image. The first preview image indicates the number of virtual accessories assembled on the virtual weapon.
[0065] In an embodiment of the present application, a virtual character may carry a virtual weapon. This virtual weapon may be picked up by the virtual character from the virtual scene after the virtual game begins, or may be assigned to the virtual character before the virtual game begins. This embodiment of the present application does not limit the method of obtaining the virtual weapon. If the virtual character carries a virtual weapon, the terminal may display a configuration preview area in the virtual scene based on the virtual weapon carried by the virtual character.
[0066] In some embodiments, the configuration preview area can be divided into a weapon display area and an accessory display area. The terminal displays the virtual weapon carried by the avatar in the weapon display area and displays a first preview image in the accessory display area to show the user how the virtual accessories are assembled on the virtual weapon. This embodiment of the application does not limit the style of the first preview image.
[0067] In some embodiments, the first preview image displays icons that reflect virtual accessories installed on the virtual weapon. Accordingly, the terminal displays a configuration preview area in the virtual scene, including: when the virtual character is carrying a virtual weapon, displaying the virtual weapon and the first preview image in the configuration preview area, wherein the first preview image includes a first number of icons, where the first number is the number of types of virtual accessories required to be installed on the virtual weapon; when the virtual weapon is already equipped with a second number of virtual accessories, displaying the second number of icons in the first state in the first preview image, and displaying the remaining icons in the second state.
[0068] That is, when a virtual character carries a virtual weapon, the terminal obtains a first quantity and a second quantity. The first quantity is the number of types of virtual accessories that need to be assembled with the virtual weapon, or in other words, the first quantity is the maximum number of types of virtual accessories that can be assembled on the virtual weapon. The second quantity is the number of types of virtual accessories that are already assembled on the virtual weapon. Then, based on the first and second quantities, the terminal displays a configuration preview area in the virtual scene. The first preview image in the configuration preview area includes a first number of icons. Among the first number of icons, a second number of icons are presented in the first state, and the remaining icons other than the second number of icons are presented in the second state. The first state is used to indicate that the virtual accessories are assembled; the second state is used to indicate that the virtual accessories are not assembled. The user can then intuitively see how many icons are presented in the first state, thereby knowing how many virtual accessories are already assembled on the virtual weapon, and can also intuitively see how many icons are presented in the second state, thereby knowing how many virtual accessories are still not assembled on the virtual weapon.
[0069] The solution provided in the embodiment of the present application presents the status of virtual accessories assembled on a virtual weapon through the style of icons, and uses icons in different states to distinguish between unassembled virtual accessories and assembled virtual accessories on the virtual weapon, thereby providing users with simpler and more intuitive feedback on how many virtual accessories are assembled and how many are not assembled on the virtual weapon. The user does not need to open other interfaces to view the assembly status of the virtual accessories on the virtual weapon, thereby improving the efficiency of human-computer interaction.
[0070] For example, the icon can be circular, triangular, or square, and the embodiments of the present application do not limit the shape of the icon. For example, the terminal can use different icon shapes, different icon colors, or different icon brightness to present the first state and second state of the icon. For example, the icon in the first state is presented in black, and the icon in the second state is presented in white, etc., and the embodiments of the present application do not limit this.
[0071] In some embodiments, each icon corresponds to a virtual accessory. If the virtual weapon is already equipped with the second number of virtual accessories, for any icon in the first preview image, if the virtual weapon is already equipped with the virtual accessory corresponding to the icon, the icon is displayed in the first state; if the virtual weapon is not equipped with the virtual accessory corresponding to the icon, the icon is displayed in the second state.
[0072] That is, each icon is used to represent a virtual accessory of the corresponding type. One icon represents a virtual accessory. If the virtual weapon has been equipped with the virtual accessory corresponding to the icon, the icon will be displayed in the first state. If the virtual weapon is not equipped with the virtual accessory corresponding to the icon, the icon will be displayed in the second state. In the solution of the embodiment of the present application, by viewing the first preview image, the user can not only intuitively know the number of virtual accessories equipped with the virtual weapon, but also intuitively know which virtual accessories the virtual weapon has been equipped with and which virtual accessories are not equipped with. Furthermore, when picking up a virtual accessory in a virtual scene, it is possible to determine which virtual accessory to pick up and assemble to which virtual weapon based on the assembly status of the virtual accessories on the current virtual weapon. The operation is simple and does not require the user to open other interfaces to assemble virtual accessories, thereby improving the efficiency of assembling virtual accessories.
[0073] For example, Figure 5 is a schematic diagram of a configuration preview area provided according to an embodiment of the present application. Referring to Figure 5 , the terminal displays the configuration preview area below the virtual scene. The configuration preview area includes a weapon display area 501 and an accessory display area 502. As shown in weapon display area 501, virtual character 503 carries a first virtual weapon 5011 and a second virtual weapon 5012, each with its own corresponding first preview image. As shown in accessory display area 502, the first preview image of first virtual weapon 5011 includes five circular icons, while the first preview image of second virtual weapon 5012 includes four circular icons. This means that first virtual weapon 5011 can be equipped with up to five virtual accessories, while second virtual weapon 5012 can be equipped with up to four virtual accessories. Different circular icons represent different types of virtual accessories. Taking first virtual weapon 5011 as an example, the five circular icons corresponding to first virtual weapon 5011, from left to right, represent a virtual muzzle, a virtual grip, a virtual magazine, a virtual stock, and a scope. Of the five circular icons corresponding to the first virtual weapon 5011, three are in the first state (black), and two are in the second state (white). In other words, the first virtual weapon 5011 is already equipped with three virtual accessories: a virtual grip, a virtual buttstock, and a scope. The first virtual weapon 5011 is still missing two virtual accessories: a virtual muzzle and a virtual magazine. The first preview image reflects the number and types of virtual accessories already installed on the virtual weapon and can be considered a brief preview of the accessory assembly status.
[0074] Compared to the avatar's backpack interface, the configuration preview area is smaller, allowing the user to readily observe information appearing in the virtual scene, avoiding missing information in the virtual scene due to the backpack interface obstructing the user's field of view, thereby improving the user experience. The configuration preview area can also be translucent to further reduce obstruction of the virtual scene. This embodiment of the application does not restrict the transparency of the configuration preview area.
[0075] 303. The terminal displays at least one virtual accessory in the virtual scene.
[0076] In some embodiments, when the distance between the virtual character and the virtual supply pile meets a condition, the terminal displays a supply list of the virtual supply pile in the virtual scene, where the supply list includes at least one virtual accessory.
[0077] In an embodiment of the present application, for any virtual supply pile in a virtual scene, as the virtual character approaches the virtual supply pile, when the distance between the virtual character and the virtual supply pile meets the conditions, the terminal displays a supply list of the virtual supply pile in the virtual scene. The supply list displays all virtual supplies in the virtual supply pile. The virtual supplies in the virtual supply pile include at least one virtual accessory, and the at least one virtual accessory includes a first virtual accessory. For any virtual accessory, the virtual accessory may or may not meet the specifications of the virtual weapon carried by the virtual character. That is, the virtual accessory may be applicable to the virtual weapon carried by the virtual character and can be equipped on the virtual weapon carried by the virtual character, or it may not be applicable to the virtual weapon carried by the virtual character and cannot be equipped on the virtual weapon carried by the virtual character. The embodiment of the present application does not limit this.
[0078] In some embodiments, the terminal displays a material list of a virtual material pile in a virtual scene based on the compatibility of the virtual accessories with the virtual weapon. If the virtual accessories in the material list are applicable to the virtual weapon carried by the virtual character, the assembly control of the virtual accessory is displayed. In response to the triggering operation of the assembly control, the terminal picks up the virtual accessory from the virtual material pile and assembles the virtual accessory to the virtual weapon. If the virtual accessory in the material list is not applicable to the virtual weapon carried by the virtual character, the assembly control of the virtual accessory is not displayed. In response to the picking operation of the virtual accessory, the terminal picks up the virtual accessory from the virtual material pile and places the virtual accessory in the backpack of the virtual character. The solution provided in the embodiment of the present application only displays the assembly control for virtual accessories that can be assembled to virtual weapons, so that the user can intuitively see the virtual accessories that can be assembled, and thus assemble them through the assembly control, which can improve the assembly efficiency of virtual accessories.
[0079] When determining whether to display the assembly control for the virtual accessory, the terminal may detect whether the specifications of the virtual accessory and the virtual weapon match. If the specifications of the virtual accessory and the virtual weapon match, the terminal determines that the virtual accessory is suitable for the virtual weapon and displays the assembly control for the virtual accessory.
[0080] Alternatively, if a virtual accessory is suitable for a virtual weapon carried by a virtual character, and the virtual weapon is not currently equipped with any other virtual accessories of the same type, the assembly controls for the virtual accessory will be displayed. In other words, if the specifications of the virtual accessory match those of the virtual weapon, the terminal can detect whether any other virtual accessories of the same type are already equipped on the virtual weapon. If any other virtual accessories of the same type are already equipped on the virtual weapon, the assembly controls for the virtual accessory will not be displayed. In other words, the virtual accessory is redundant. If no other virtual accessories of the same type are currently equipped on the virtual weapon, the assembly controls for the virtual accessory will be displayed.
[0081] Alternatively, if a virtual accessory is suitable for a virtual weapon carried by a virtual character, and the performance of other virtual accessories of the same type currently installed on the virtual weapon is lower than that of the virtual accessory, the assembly controls for the virtual accessory are displayed. That is, when other virtual accessories of the same type as the virtual accessory are already installed on the virtual weapon, the terminal can compare the performance of the other installed virtual accessories with that of the virtual accessory. If the performance of the other installed virtual accessories is higher than that of the virtual accessory, the assembly controls for the virtual accessory are not displayed. If the performance of the other installed virtual accessories is lower than that of the virtual accessory, the assembly controls for the virtual accessory are displayed. In response to the assembly operation for the virtual accessory, the terminal can replace the other virtual accessories with the virtual accessory. This method allows for the direct replacement of other virtual accessories already installed on the virtual weapon with the virtual accessory if the virtual accessory has better performance when picking up the virtual accessory from the virtual supply pile. This method is simple to operate, not only improves the efficiency of virtual accessory assembly, but also meets the user's intent and enhances the user experience.
[0082] This embodiment of the present application does not limit the number of virtual weapons a virtual character can carry. If the virtual character carries only one virtual weapon, when an assembly operation for a virtual accessory is triggered, the terminal assembles the virtual accessory to the virtual weapon. If the virtual character carries two or more virtual weapons, when an assembly operation for a virtual accessory is triggered, the terminal assembles the virtual accessory to the virtual weapon indicated by the assembly operation.
[0083] In some embodiments, the virtual weapons carried by the avatar include a first virtual weapon and a second virtual weapon. The first virtual weapon and the second virtual weapon each have a first preview image. The first virtual weapon is the virtual weapon currently being used by the avatar, and the second virtual weapon is the virtual weapon not currently being used by the avatar. In other words, the first virtual weapon refers to the virtual weapon that is used first by the avatar during an interaction. The second virtual weapon refers to the virtual weapon that is used second by the avatar during an interaction.
[0084] Interactions can include various actions, such as assembling virtual accessories and battling other virtual characters, and are not limited in this embodiment of the present application. The first virtual weapon can be referred to as a primary weapon; the second virtual weapon can be referred to as a secondary weapon. Generally, virtual accessories are attached to the first virtual weapon by default. In this embodiment of the present application, a method for quickly attaching virtual accessories to the second virtual weapon is provided. Step 303 includes the following steps 3031.
[0085] 3031. The terminal displays the first virtual accessory in the virtual scene and displays an assembly control of the first virtual accessory, where the assembly control is used to assemble the first virtual accessory to the second virtual weapon.
[0086] Exemplarily, when the distance between the virtual character and the virtual supply pile in the virtual scene meets a condition, a supply list of the virtual supply pile is displayed in the virtual scene, and the supply list includes the first virtual accessory.
[0087] For example, if the first virtual accessory is applicable to the second virtual weapon, the assembly control of the first virtual accessory is displayed in the virtual scene. If the first virtual accessory is not applicable to the second virtual weapon, the assembly control of the first virtual accessory is not displayed in the virtual scene.
[0088] Based on the compatibility between the first virtual accessory and the second virtual weapon, the terminal displays an assembly control for assembling the first virtual accessory to the second virtual weapon. In other words, the assembly control is used to assemble the first virtual accessory to the secondary weapon. The solution provided in the embodiment of the present application adds an assembly control for assembling the first virtual accessory to the secondary weapon, allowing the first virtual accessory to be directly assembled to the secondary weapon through this assembly control, eliminating the need for the user to open a separate interface to assemble the first virtual accessory to the secondary weapon. This simplifies operation and improves the efficiency of assembling virtual accessories.
[0089] For example, Figure 6 is a schematic diagram of a material list provided according to an embodiment of the present application. Referring to Figure 6, the terminal displays a material list 601 in a virtual scene. The material list 601 includes multiple options for virtual materials. Due to the size limitation of the material list 601, Figure 6 only exemplarily shows the trigger area of virtual accessory 1 and the trigger area of virtual accessory 2 among the multiple virtual materials. In response to a sliding operation on the virtual materials in the material list 601, the terminal can display other virtual materials in the material list 601. Taking virtual accessory 1 as an example, the trigger area of the virtual accessory 1 includes an icon and an assembly control of the virtual accessory 1. The icon of the virtual accessory 1 is used to present the style of the virtual accessory. The assembly control of the virtual accessory 1 is used to assemble the virtual accessory 1 to the second virtual weapon 602. For example, the prompt text "Assemble to secondary weapon" can be displayed on the assembly control of the virtual accessory 1.
[0090] The terminal may also display a close control 603 for the material list 601 in the virtual scene. In response to a triggering operation on the close control 603, the terminal closes the display of the material list 601.
[0091] 304. In response to an assembly operation on any virtual accessory in the virtual scene, the terminal assembles the virtual accessory to the virtual weapon indicated by the assembly operation and updates the first preview image in the configuration preview area.
[0092] In an embodiment of the present application, if the avatar carries only one virtual weapon, in response to an assembly operation on any virtual accessory, the terminal can directly assemble the virtual accessory onto the virtual weapon. If the avatar carries two or more virtual weapons, the terminal can determine the virtual weapon indicated by the assembly operation based on the trigger position of the assembly operation, and then assemble the virtual accessory onto the virtual weapon indicated by the assembly operation.
[0093] In some embodiments, as in step 3031 above, the terminal displays the first virtual accessory and the assembly control of the first virtual accessory. Then step 304 includes the following step 3041 or step 3042.
[0094] 3041. In response to a triggering operation on an assembly control, assemble the first virtual accessory to the second virtual weapon, and update the first preview image of the second virtual weapon.
[0095] For the first virtual accessory, if the trigger position of the assembly operation is located on the assembly control of the first virtual accessory, the terminal determines that the virtual weapon indicated by the assembly operation is the second virtual weapon (secondary weapon), and therefore assembles the first virtual accessory to the second virtual weapon, and at the same time updates the first preview image of the second virtual weapon to prompt that the number of virtual accessories assembled with the second virtual weapon has changed.
[0096] 3042. In response to the picking operation on the first virtual accessory, assemble the first virtual accessory to the first virtual weapon, and update the first preview image of the first virtual weapon.
[0097] Exemplarily, the picking operation on the first virtual accessory may be a trigger operation performed within a trigger area other than the assembly control of the first virtual accessory. For the first virtual accessory, if the trigger position of the assembly operation is located within a trigger area other than the assembly control of the virtual accessory, the terminal determines that the virtual weapon indicated by the assembly operation is the first virtual weapon (primary weapon), and therefore assembles the first virtual accessory to the first virtual weapon, while updating the first preview image of the first virtual weapon to indicate that the number of virtual accessories assembled to the first virtual weapon has changed.
[0098] That is, in response to a triggering operation on the assembly control in the options for any virtual accessory, the terminal assembles the virtual accessory to the second virtual weapon. In response to a triggering operation on any virtual accessory in the options other than the assembly control, the terminal assembles the virtual accessory to the first virtual weapon. The terminal then updates the display in the configuration preview area based on the latest status of the virtual accessory assembly on the virtual weapon.
[0099] For example, Figure 7 is a schematic diagram of an updated configuration preview area provided according to an embodiment of the present application. Referring to Figure 7, taking virtual accessory 1 as an example, when the assembly control 702 in the trigger area 701 of the virtual accessory 1 is triggered, the terminal assembles the virtual accessory 1 into the second virtual weapon 703. The terminal updates the first circular icon in the first preview image of the second virtual weapon 703 in the accessory display area from the second state (white) to the first state (black), as shown in (b) in Figure 7. When other trigger areas (such as the icon of the virtual accessory 1) in the trigger area 701 of the virtual accessory 1 except the assembly control 702 are triggered, the terminal assembles the virtual accessory 1 into the first virtual weapon 704. The terminal updates the first circular icon in the first preview image of the second virtual weapon 704 in the accessory display area from the second state (white) to the first state (black), which is the same as (b) in Figure 7 and will not be repeated.
[0100] To more clearly describe the process of assembling a first virtual accessory to a second virtual weapon (secondary weapon), the process is described again below with reference to the accompanying figures. Figure 8 is a flowchart of assembling a virtual accessory to a second virtual weapon, according to an embodiment of the present application. Referring to Figure 8 , if the distance between the virtual character and any virtual supply pile meets a condition, the terminal determines whether the virtual accessory is present in the virtual supply pile. If the virtual accessory is present in the virtual supply pile, the terminal determines whether the virtual accessory can be assembled to the second virtual weapon (secondary weapon). If the virtual accessory can be assembled to the second virtual weapon, the terminal displays a list of supplies in the virtual supply pile in the virtual scene, including the assembly control for the virtual accessory. The terminal then determines whether the user has clicked a trigger area for the virtual accessory. If the trigger area for the virtual accessory is clicked, the terminal determines the clicked location. If the clicked location is within the assembly control, the terminal assembles the virtual accessory to the second virtual weapon. If the clicked location is within a trigger area other than the assembly control, the terminal assembles the virtual accessory to the first virtual weapon (primary weapon).
[0101] 305. In response to the switching operation on the first preview image, the terminal switches the first preview image to a second preview image, where a first number of accessory slots are displayed in the second preview image, where the first number is the number of types of virtual accessories required to be assembled with the virtual weapon. When the virtual weapon is assembled with a second number of virtual accessories, the assembled virtual accessories of the virtual weapon are displayed in the second number of accessory slots in the second preview image, and no virtual accessories are displayed in the remaining accessory slots.
[0102] The terminal displays a first preview image in the accessory display area. In response to a switch operation on the first preview image, a second preview image is displayed in the accessory display area. The second preview image includes accessory slots for virtual accessories required to be assembled with the virtual weapon. A second number of accessory slots within the first number of accessory slots display virtual accessories, where the second number represents the number of types of virtual accessories assembled on the virtual weapon. That is, in this embodiment of the present application, in addition to being able to view the number of virtual accessories assembled on the virtual weapon, the user can also intuitively see the types of virtual accessories assembled on the virtual weapon and which virtual accessories are assembled.
[0103] Exemplarily, the switching operation may be a sliding operation such as an upward sliding operation or a downward sliding operation, or a clicking operation such as a single-click operation or a double-click operation, and the embodiment of the present application does not limit this.
[0104] In some embodiments, each accessory slot corresponds to a virtual accessory. If the virtual weapon is already equipped with the second number of virtual accessories, for any accessory slot in the second preview image, if the virtual weapon is already equipped with the virtual accessory corresponding to the accessory slot, the virtual accessory corresponding to the equipped accessory slot of the virtual weapon is displayed in the accessory slot; if the virtual weapon is not equipped with the virtual accessory corresponding to the accessory slot, no virtual accessory is displayed in the accessory slot.
[0105] Each accessory slot represents a corresponding type of virtual accessory. If a virtual weapon is already equipped with the virtual accessory corresponding to that slot, the virtual weapon will display the virtual accessory in that slot. If the virtual weapon is not equipped with the virtual accessory corresponding to that slot, no virtual accessory will be displayed in the slot. Specifically, for equipped virtual accessories, the terminal displays the virtual accessory in the corresponding slot in the second preview image, showing the user the appearance of the equipped virtual accessory. For unequipped virtual accessories, the terminal displays the corresponding slot in the second preview image as empty. In this embodiment of the present application, by viewing the second preview image, the user can not only intuitively determine the number of virtual accessories equipped with the virtual weapon, but also which virtual accessories are already equipped and which virtual accessories are still missing. Furthermore, when picking up a virtual accessory in the virtual scene, the user can determine which virtual accessory to assemble to which virtual weapon based on the virtual accessories currently installed. This simple operation eliminates the need for the user to open other interfaces to assemble virtual accessories, thereby improving the efficiency of virtual accessory assembly.
[0106] For example, Figure 9 is a schematic diagram of switching preview images according to an embodiment of the present application. Referring to Figure 9, (a) in Figure 9 exemplarily illustrates a first preview image in the accessory display area. In response to a swipe up operation on the first preview image, the terminal displays a second preview image in the accessory display area. Figure 9 (b) exemplarily illustrates a second preview image in the accessory display area. For any virtual weapon, the terminal displays the accessory slots for the virtual accessories required to assemble the virtual weapon in the second preview image of the virtual weapon. As shown in Figure 9 (b), the second preview image of the first virtual weapon 901 displays the accessory slots for the five virtual accessories required to assemble the first virtual weapon 901, while the second preview image of the second virtual weapon 902 displays the accessory slots for the four virtual accessories required to assemble the second virtual weapon 902. As can be seen from the second preview image, the first virtual weapon 901 is already equipped with virtual accessories such as a virtual grip 9011, a virtual magazine 9012, and a scope 9013. The second virtual weapon 902 is already equipped with virtual accessories such as a virtual magazine 9021 and a scope 9023. The second preview image can reflect the style (form) of the virtual accessories installed on the virtual weapon and can be regarded as a detailed preview of the accessory assembly status. In response to the switching operation on the second preview image, the terminal displays the first preview image in the accessory display area. The switching operation can be a swipe down operation, which is not limited in this embodiment of the application.
[0107] To more clearly describe the process of switching preview images in an embodiment of the present application, the process is further described below with reference to the accompanying drawings. Figure 10 is a flowchart of switching preview images according to an embodiment of the present application. Referring to Figure 10, if a virtual character is carrying a virtual weapon, the terminal determines the number of virtual accessories required to be assembled on the virtual weapon. For example, the number of virtual accessories required to be assembled on the virtual weapon is five. The terminal can subsequently display five circular icons in the first preview image. The terminal then determines whether the virtual weapon has already been assembled with the virtual accessories. The terminal can then display the circular icons corresponding to the assembled virtual accessories in the first preview image in yellow and the circular icons corresponding to the unassembled virtual accessories in the first preview image in gray. Based on the above process, the terminal displays the first preview image in the accessories display area. The terminal then detects in real time whether the user has pressed a finger. If the user has pressed a finger, the terminal determines that the user's finger has moved upward in the Y-axis (vertical direction) by more than a first preset distance. The first preset distance can be a width of five pixels, and the embodiment of the present application does not limit the size of the first preset distance. In other words, the terminal determines whether the user has triggered a swipe-up operation on the first preview image. If the user's finger moves upward in the Y-axis direction exceeding a first preset distance, the terminal switches the first preview image in the accessory display area to the second preview image. The terminal then detects in real time whether the user has pressed their finger. If the user has pressed their finger, the terminal determines that the user's finger has moved downward in the Y-axis direction exceeding a first preset distance. In other words, the terminal determines whether the user has triggered a swipe down operation on the second preview image. If the user's finger has moved downward in the Y-axis direction exceeding the first preset distance, the terminal switches the second preview image in the accessory display area to the first preview image.
[0108] In the second preview, users can remove, discard, transfer, and replace virtual accessories on the virtual weapon, thereby adjusting the virtual accessories on the virtual weapon without opening other interfaces to adjust the virtual accessories, which improves the efficiency of virtual accessory adjustment. The following describes the process of removing, discarding, transferring, and replacing virtual accessories.
[0109] In some embodiments, a virtual accessory on a virtual weapon can be removed by performing an operation in the second preview image. Accordingly, in response to a removal operation on any virtual accessory in the second preview image, the virtual accessory is removed from the virtual weapon and placed in the avatar's backpack, with the accessory slot corresponding to the virtual accessory displayed as empty in the second preview image.
[0110] That is, for any virtual accessory in the second preview image, in response to the disassembly operation on the virtual accessory, the terminal displays in the second preview image that the accessory slot corresponding to the virtual accessory is empty. The disassembly operation is used to remove the virtual accessory from the virtual weapon and place it in the backpack of the virtual character. The embodiment of the present application does not limit the disassembly operation. Optionally, the disassembly operation is a click operation. Accordingly, for any virtual accessory in the second preview image, in response to the click operation on the virtual accessory, the terminal removes the virtual accessory from the virtual weapon and places it in the backpack of the virtual character. The terminal displays in the second preview image that the accessory slot corresponding to the virtual accessory is empty.
[0111] For example, FIG11 is a schematic diagram of a virtual accessory disassembly provided according to an embodiment of the present application. Referring to FIG11 , in response to a click operation on a virtual accessory 1101, the terminal removes the virtual accessory 1101 from the virtual weapon 1102 and places it in the backpack of the virtual character. The terminal displays in the second preview image that the accessory slot corresponding to the virtual accessory 1101 is empty. When the user's finger presses the virtual accessory 1101, the terminal highlights the accessory slot of the virtual accessory 1101 to show the user that the virtual accessory to be operated has been selected. For example, the color of the accessory slot of the unselected virtual accessory is different from the color of the accessory slot of the selected virtual accessory to highlight the accessory slot of the selected virtual accessory; or the brightness of the accessory slot of the unselected virtual accessory is different from the brightness of the accessory slot of the selected virtual accessory to highlight the accessory slot of the selected virtual accessory. The embodiment of the present application does not limit the method of highlighting.
[0112] In some embodiments, any virtual accessory already attached to the virtual weapon can be discarded by performing an operation on the second preview image. Accordingly, in response to a discard operation on any virtual accessory in the second preview image, the virtual accessory is removed from the virtual weapon and placed in the virtual scene, with the accessory slot corresponding to the virtual accessory displayed as empty in the second preview image.
[0113] That is, for any virtual accessory in the second preview image, in response to a discard operation on the virtual accessory, the terminal displays the accessory slot corresponding to the virtual accessory in the second preview image as empty. The discard operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene. The terminal can then display the virtual accessory in the virtual scene. The embodiment of the present application does not limit the discard operation. Optionally, the discard operation is a swipe up operation. Accordingly, for any virtual accessory in the second preview image, in response to a swipe up operation on the virtual accessory, the terminal removes the virtual accessory from the virtual weapon and places it in the virtual scene.
[0114] For example, Figure 12 is a schematic diagram of discarding a virtual accessory according to an embodiment of the present application. Referring to Figure 12, in response to a swipe-up operation on virtual accessory 1201, the terminal removes virtual accessory 1201 from virtual weapon 1202 and places it in the virtual scene. The terminal displays in the second preview image that the accessory slot corresponding to virtual accessory 1201 is empty. The terminal detects in real time whether the user has pressed a finger. If the user presses a finger, and the user's finger is pressed in the accessory slot corresponding to virtual accessory 1201, and the user's finger moves upward in the Y-axis direction beyond a second preset distance, it is determined that the user has performed a swipe-up operation on virtual accessory 1201. The first preset distance can be a width of 15 pixels, and the embodiment of the present application does not limit the size of the second preset distance. In response to the swipe-up operation on virtual accessory 1201, the terminal discards virtual accessory 1201 in the virtual scene.
[0115] In some embodiments, a virtual accessory on a virtual weapon can be transferred to another virtual weapon by performing an operation on the second preview image. Optionally, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon each having a corresponding second preview image, and the first virtual weapon is equipped with the second virtual accessory. Accordingly, in response to the operation of transferring the second virtual accessory from the second preview image of the first virtual weapon to the second preview image of the second virtual weapon, the second virtual accessory on the first virtual weapon is transferred to the second virtual weapon, the second virtual accessory is removed from the second preview image of the first virtual weapon, and the second virtual accessory is displayed in the second preview image of the second virtual weapon.
[0116] That is, the weapon display area displays the first virtual weapon and the second virtual weapon carried by the virtual character. The accessory display area displays a second preview image of the first virtual weapon and a second preview image of the second virtual weapon, and the second preview image of the first virtual weapon displays the second virtual accessory already equipped on the first virtual weapon. In response to a transfer operation on the second virtual accessory in the second preview image of the first virtual weapon, the terminal displays the accessory slot corresponding to the second virtual accessory in the second preview image of the first virtual weapon as empty, and displays the second virtual accessory in the accessory slot corresponding to the second virtual accessory in the second preview image of the second virtual weapon.
[0117] Exemplarily, each accessory slot in the second preview image corresponds to a virtual accessory, and the second virtual accessory belongs to a target type of virtual accessory. Accordingly, when the second virtual weapon is compatible with the target type of virtual accessory and has not yet been equipped with the target type of virtual accessory, in response to a transfer operation on the second virtual accessory in the second preview image of the first virtual weapon, the terminal displays the accessory slot corresponding to the target type in the second preview image of the first virtual weapon as empty, and displays the second virtual accessory in the accessory slot corresponding to the target type in the second preview image of the second virtual weapon. The transfer operation is used to transfer a virtual accessory from one virtual weapon to another virtual weapon.
[0118] The transfer operation may be a drag-and-drop operation for a virtual accessory, which is not limited in the embodiments of the present application. For example, in response to the operation of dragging the second virtual accessory from the accessory slot corresponding to the target type in the second preview image of the first virtual weapon to the accessory slot corresponding to the target type in the second preview image of the second virtual weapon, the terminal transfers the second virtual accessory on the first virtual weapon to the second virtual weapon. The terminal displays the accessory slot corresponding to the target type in the second preview image of the first virtual weapon as empty, and displays the second virtual accessory in the accessory slot corresponding to the target type in the second preview image of the second virtual weapon.
[0119] The above transfer process only takes the transfer of virtual accessories from the first virtual weapon to the second virtual weapon as an example. In addition, the virtual accessories from the second virtual weapon can also be transferred to the first virtual weapon in the same way, which will not be repeated here.
[0120] For example, Figure 13 is a schematic diagram of transferring a virtual accessory according to an embodiment of the present application. Referring to Figure 13 , a first virtual weapon 1301 is equipped with a scope 1302. A second virtual weapon 1303 is capable of being equipped with a scope, but has not yet been equipped with one. In response to a drag operation on scope 1302, the terminal transfers scope 1302 from first virtual weapon 1301 to second virtual weapon 1303, displays the accessory slot corresponding to the scope as empty in the second preview image of first virtual weapon 1301, and displays scope 1302 in the accessory slot corresponding to the scope in the second preview image of second virtual weapon 1303.
[0121] In some embodiments, the terminal replaces the virtual accessories on any two virtual weapons through the second preview image. Optionally, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon correspond to their respective second preview images, the first virtual weapon is equipped with a third virtual accessory, and the second virtual weapon is equipped with a fourth virtual accessory. Accordingly, in response to the replacement operation of the third virtual accessory in the second preview image of the first virtual weapon and the fourth virtual accessory in the second preview image of the second virtual weapon, the third virtual accessory on the first virtual weapon and the fourth virtual accessory on the second virtual weapon are interchanged, the fourth virtual accessory is displayed in the second preview image of the first virtual weapon, and the third virtual accessory is displayed in the second preview image of the second virtual weapon.
[0122] That is, the weapon display area displays the first virtual weapon and the second virtual weapon carried by the virtual character. The accessory display area displays a second preview image of the first virtual weapon and a second preview image of the second virtual weapon. The second preview image of the first virtual weapon displays the third virtual accessory that has been equipped with the first virtual weapon, and the second preview image of the second virtual weapon displays the fourth virtual accessory that has been equipped with the second virtual weapon. The third virtual accessory and the fourth virtual accessory are virtual accessories of the same type. Accordingly, in response to a replacement operation on the third virtual accessory and the fourth virtual accessory, the terminal displays the fourth virtual accessory in the second preview image of the first virtual weapon and the third virtual accessory in the second preview image of the second virtual weapon. The replacement operation is used to replace virtual accessories of the same type on two virtual weapons.
[0123] Exemplarily, each accessory slot in the second preview image corresponds to a virtual accessory, and the third virtual accessory and the fourth virtual accessory both belong to a target type of virtual accessories. The third virtual accessory is displayed in the accessory slot corresponding to the target type in the second preview image of the first virtual weapon, and the fourth virtual accessory is displayed in the accessory slot corresponding to the target type in the second preview image of the second virtual weapon. In response to the replacement operation of the third virtual accessory and the fourth virtual accessory, the terminal swaps the third virtual accessory on the first virtual weapon with the fourth virtual accessory on the second virtual weapon, displays the fourth virtual accessory in the accessory slot corresponding to the target type in the second preview image of the first virtual weapon, and displays the third virtual accessory in the accessory slot corresponding to the target type in the second preview image of the second virtual weapon.
[0124] The replacement operation may be a drag-and-drop operation on a virtual accessory, which is not limited in the embodiments of the present application. For example, the above-mentioned replacement operation on the third virtual accessory and the fourth virtual accessory refers to the operation of dragging the third virtual accessory from the accessory slot corresponding to the target type in the second preview image of the first virtual weapon to the accessory slot corresponding to the target type in the second preview image of the second virtual weapon, or the operation of dragging the fourth virtual accessory from the accessory slot corresponding to the target type in the second preview image of the second virtual weapon to the accessory slot corresponding to the target type in the second preview image of the first virtual weapon.
[0125] For example, Figure 14 is a schematic diagram of a virtual accessory replacement method provided in accordance with an embodiment of the present application. Referring to Figure 14 , a first virtual weapon 1401 is equipped with a quadruple scope 1402. A second virtual weapon 1403 is equipped with an octave scope 1404. Both quadruple scope 1402 and octave scope 1404 are scopes. In response to a replacement operation on quadruple scope 1402 and octave scope 1404, the terminal displays octave scope 1404 in the second preview image of first virtual weapon 1401 and quadruple scope 1402 in the second preview image of second virtual weapon 1402. In response to a drag operation on quadruple scope 1402, if quadruple scope 1402 is dragged to the accessory slot where octave scope 1404 is located, the terminal determines that the replacement operation between quadruple scope 1402 and octave scope 1404 has been triggered. Alternatively, in response to the drag operation on the octave scope 1404, if the octave scope 1404 is dragged to the accessory slot where the quadruple scope 1402 is located, the terminal determines that the replacement operation between the quadruple scope 1402 and the octave scope 1404 is triggered.
[0126] To more clearly describe the process of adjusting a virtual weapon in an embodiment of the present application, the process is further described below with reference to the accompanying drawings. Figure 15 is a flowchart of adjusting a virtual weapon according to an embodiment of the present application. Referring to Figure 15, the terminal displays a second preview image in the accessory display area. The terminal then detects in real time whether the user has pressed a finger. If the user has pressed a finger, the terminal determines the location of the finger press. If the user's finger presses on the border of the accessory slot of the virtual accessory (hot zone A), when the user's finger moves downward in the Y-axis direction beyond a first preset distance (e.g., a width of 5 pixels), the terminal switches the second preview image in the accessory display area to the first preview image. If the user's finger presses on an empty accessory slot (hot zone B), the terminal determines that the user's operation is useless and has no effect. If the user's finger presses on an accessory slot containing a virtual accessory (hot zone C), subsequent operations may fall into the following three scenarios. First, if the user releases the finger without performing any operation, that is, the removal operation for the virtual accessory is triggered, the terminal removes the virtual accessory from the virtual weapon. The second is that if the user's finger moves upward in the Y-axis direction and exceeds a second preset distance (for example, a width of 15 pixels), that is, the discard operation for the virtual accessory is triggered, and the terminal removes the virtual accessory from the virtual weapon and discards it into the virtual scene. The third is that if the user's finger moves in the X-axis direction (horizontal direction), the terminal determines whether the virtual accessory can be assembled on another virtual weapon. In the case that the virtual accessory can be assembled on another virtual weapon, the terminal determines whether the user's finger moves to the accessory slot of another virtual weapon and releases it. The terminal determines whether there are other virtual accessories in the accessory slot of another virtual weapon. If there are other virtual accessories, the terminal replaces the two virtual accessories; if there are no other virtual accessories, the terminal assembles the virtual accessory on another virtual weapon.
[0127] An embodiment of the present application provides a method for assembling virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in a virtual scene. Because the configuration preview area displays the virtual weapon carried by the virtual character and a first preview image, the user can intuitively see the assembly status of the virtual accessories on the virtual weapon, eliminating the need for the user to open other interfaces to view the assembly status of the virtual accessories on the virtual weapon, thereby improving the efficiency of human-computer interaction. Furthermore, when the virtual accessories in the virtual scene are assembled to the virtual weapon, the first preview image displayed in the configuration preview area can be synchronously updated to ensure the real-time and accuracy of the first preview image.
[0128] Moreover, the first preview image and the second preview image displayed in the configuration preview area can not only reflect the number of virtual accessories equipped with the virtual weapon, but also reflect the types of virtual accessories of the virtual weapon equipment or the specific virtual accessories equipped. In this way, the user can know which virtual accessories have been equipped with the virtual weapon without opening other interfaces. Therefore, when picking up virtual accessories in the virtual scene, the picked up virtual accessories can be directly assembled to the corresponding virtual weapon according to the assembly status of the virtual accessories on the current virtual weapon. The operation is simple and the efficiency of assembling virtual accessories is improved.
[0129] Moreover, in the configuration preview area, virtual accessories can also be disassembled, discarded, transferred, and replaced, and there is no need for users to open other interfaces to adjust virtual accessories, which further improves the efficiency of assembling virtual accessories. Since the user's viewing and adjustment needs for virtual accessories are unified in the main interface, there is no need to open the backpack interface, thus reducing the operation process and improving the efficiency of human-computer interaction. At the same time, the above operations are completed in the main interface that displays the virtual scene, so that the user's field of vision can observe the information appearing in the virtual scene at any time, avoiding missing the information in the virtual scene due to blocking the field of vision due to opening other interfaces, thereby improving the user experience and allowing users to focus more on the game. In addition, the above adjustment operations can be achieved by simple interactive gestures such as clicking, dragging, and sliding up and down, without the need for any other complex interactive operations and understanding, which reduces the user's learning cost, further increases the user experience, and facilitates better participation in the game.
[0130] FIG16 is a block diagram of a virtual accessory assembly device according to an embodiment of the present application. The virtual accessory assembly device is used to execute the steps of the virtual accessory assembly method described above. Referring to FIG16 , the virtual accessory assembly device includes: a display module 1601 and an update module 1602.
[0131] The display module 1601 is used to display a virtual scene, in which virtual characters and virtual accessories are present;
[0132] The display module 1601 is further configured to display a configuration preview area in the virtual scene when the virtual character carries a virtual weapon, wherein the configuration preview area displays the virtual weapon and a first preview image, wherein the first preview image indicates the number of virtual accessories assembled on the virtual weapon;
[0133] The updating module 1602 is configured to, in response to an assembly operation on any virtual accessory in the virtual scene, assemble the virtual accessory to the virtual weapon indicated by the assembly operation, and update the first preview image in the configuration preview area.
[0134] In some embodiments, the display module 1601 is configured to:
[0135] In the case where the virtual character carries a virtual weapon, the virtual weapon and a first preview image are displayed in the configuration preview area, wherein the first preview image includes a first number of icons, where the first number is the number of types of virtual accessories required to be assembled with the virtual weapon;
[0136] When the virtual weapon has been equipped with a second number of virtual accessories, the second number of icons are displayed in the first preview image in the first state, and the remaining icons are displayed in the second state.
[0137] In some embodiments, each icon corresponds to a virtual accessory, and the display module 1601 is used to:
[0138] When the virtual weapon has been equipped with the second number of virtual accessories, for any icon in the first preview image, if the virtual weapon has been equipped with the virtual accessories corresponding to the icon, the icon will be displayed in the first state; if the virtual weapon has not been equipped with the virtual accessories corresponding to the icon, the icon will be displayed in the second state.
[0139] In some embodiments, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, where the first virtual weapon is the virtual weapon currently being used by the virtual character, and the second virtual weapon is the virtual weapon not currently being used by the virtual character. The first virtual weapon and the second virtual weapon each have a first preview image corresponding thereto. The display module 1601 is configured to:
[0140] Displaying a first virtual accessory in a virtual scene and displaying an assembly control of the first virtual accessory, where the assembly control is used to assemble the first virtual accessory to a second virtual weapon;
[0141] In response to a triggering operation on an assembly control, the first virtual accessory is assembled to the second virtual weapon, and the first preview image of the second virtual weapon is updated; or, in response to a picking operation on the first virtual accessory, the first virtual accessory is assembled to the first virtual weapon, and the first preview image of the first virtual weapon is updated.
[0142] In some embodiments, the display module 1601 is configured to display a supply list of the virtual supply pile in the virtual scene when a distance between the virtual character and the virtual supply pile in the virtual scene satisfies a condition, where the supply list includes the first virtual accessory.
[0143] In some embodiments, the display module 1601 is configured to display an assembly control of the first virtual accessory in the virtual scene when the first virtual accessory is applicable to the second virtual weapon.
[0144] In some embodiments, the display module 1601 is further configured to:
[0145] In response to a switching operation on the first preview image, the first preview image is switched to a second preview image, wherein the second preview image displays a first number of accessory slots, where the first number is the number of types of virtual accessories required to be assembled with the virtual weapon;
[0146] When the virtual weapon has been equipped with a second number of virtual accessories, the virtual accessories equipped with the virtual weapon are displayed in the second number of accessory slots in the second preview image, and no virtual accessories are displayed in the remaining accessory slots.
[0147] In some embodiments, each accessory slot corresponds to a virtual accessory, and the display module 1601 is used to: when the virtual weapon has been equipped with a second number of virtual accessories, for any accessory slot in the second preview image, if the virtual weapon has been equipped with the virtual accessory corresponding to the accessory slot, then the virtual accessory corresponding to the accessory slot that the virtual weapon has been equipped with is displayed in the accessory slot; if the virtual weapon is not equipped with the virtual accessory corresponding to the accessory slot, then no virtual accessory is displayed in the accessory slot.
[0148] In some embodiments, the display module 1601 is also used to respond to the disassembly operation of any virtual accessory in the second preview image, remove the virtual accessory from the virtual weapon, place the removed virtual accessory in the backpack of the virtual character, and display the accessory slot corresponding to the virtual accessory in the second preview image as empty.
[0149] In some embodiments, the display module 1601 is also used to respond to a discard operation on any virtual accessory in the second preview image, remove the virtual accessory from the virtual weapon, place the removed virtual accessory in the virtual scene, and display the accessory slot corresponding to the virtual accessory in the second preview image as empty.
[0150] In some embodiments, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon have respective second preview images, and the first virtual weapon is equipped with a second virtual accessory; the display module 1601 is used to respond to the operation of transferring the second virtual accessory in the second preview image of the first virtual weapon to the second preview image of the second virtual weapon, transfer the second virtual accessory on the first virtual weapon to the second virtual weapon, cancel the display of the second virtual accessory in the second preview image of the first virtual weapon, and display the second virtual accessory in the second preview image of the second virtual weapon.
[0151] In some embodiments, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon have respective second preview images, the first virtual weapon is equipped with a third virtual accessory, and the second virtual weapon is equipped with a fourth virtual accessory; the display module 1601 is used to respond to a replacement operation of the third virtual accessory in the second preview image of the first virtual weapon and the fourth virtual accessory in the second preview image of the second virtual weapon, interchange the third virtual accessory on the first virtual weapon with the fourth virtual accessory on the second virtual weapon, display the fourth virtual accessory in the second preview image of the first virtual weapon, and display the third virtual accessory in the second preview image of the second virtual weapon.
[0152] An embodiment of the present application provides a device for assembling virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in a virtual scene. Since the configuration preview area displays the virtual weapon carried by the virtual character and a first preview image, the user can intuitively see the assembly status of the virtual accessories on the virtual weapon without the user having to open other interfaces to view the assembly status of the virtual accessories on the virtual weapon, thereby improving the efficiency of human-computer interaction. In addition, when the virtual accessories in the virtual scene are assembled to the virtual weapon, the first preview image displayed in the configuration preview area can be synchronously updated to ensure the real-time and accuracy of the first preview image. In addition, the above operations are completed in the interface displaying the virtual scene, so that the user's field of vision can observe the information appearing in the virtual scene at any time, avoiding missing information in the virtual scene due to blocking the field of vision due to opening other interfaces, improving the display effect, and thus enhancing the user experience.
[0153] It should be noted that the virtual accessory assembly device provided in the above embodiment, when running an application, is merely illustrated by the division of the aforementioned functional modules. In actual applications, the aforementioned functions can be assigned to different functional modules as needed, i.e., the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the virtual accessory assembly device provided in the above embodiment and the virtual accessory assembly method embodiment are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0154] Figure 17 is a block diagram of a terminal 1700 according to an embodiment of the present application. Terminal 1700 may be a portable mobile terminal, such as a smartphone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer, or a desktop computer. Terminal 1700 may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, or other similar names.
[0155] Typically, the terminal 1700 includes a processor 1701 and a memory 1702 .
[0156] The processor 1701 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1701 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1701 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1701 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0157] Memory 1702 may include one or more computer-readable storage media, which may be non-transitory. Memory 1702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in memory 1702 is used to store at least one computer program, which is executed by processor 1701 to implement the virtual accessory assembly method provided in the method embodiment of the present application.
[0158] In some embodiments, terminal 1700 may optionally include a peripheral device interface 1703 and at least one peripheral device. Processor 1701, memory 1702, and peripheral device interface 1703 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1703 via a bus, signal lines, or circuit boards. Specifically, the peripheral device may include at least one of a radio frequency circuit 1704, a display screen 1705, a camera assembly 1706, an audio circuit 1707, and a power supply 1708.
[0159] In some embodiments, the terminal 1700 further includes one or more sensors 1709 , including but not limited to: an acceleration sensor 1710 , a gyroscope sensor 1711 , a pressure sensor 1712 , an optical sensor 1713 , and a proximity sensor 1714 .
[0160] Those skilled in the art will understand that the structure shown in FIG17 does not constitute a limitation on the terminal 1700 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0161] The present application also provides a computer-readable storage medium that stores at least one computer program. The at least one computer program is loaded and executed by a processor of a computer device to implement the operations performed by the computer device in the virtual accessory assembly method of the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.
[0162] The present application also provides a computer program product, including a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the virtual accessory assembly method provided in the various optional implementations described above.
[0163] An embodiment of the present application also provides a method for assembling virtual accessories, the method comprising: displaying a virtual scene, wherein a virtual character and a virtual supply pile exist in the virtual scene, and the virtual supply pile includes at least one virtual accessory; when the virtual character carries a virtual weapon, displaying a configuration preview area in the virtual scene, the configuration preview area including a weapon display area and an accessory display area, the virtual weapon being displayed in the weapon display area, and a first preview image being displayed in the accessory display area, the first preview image being used to indicate the number of virtual accessories assembled on the virtual weapon; when the distance between the virtual character and the virtual supply pile meets a condition, displaying a supply list of the virtual supply pile in the virtual scene, the supply list including the at least one virtual accessory; in response to an assembly operation on any virtual accessory, updating the display in the configuration preview area based on the virtual weapon and the virtual accessory indicated by the assembly operation.
[0164] In some embodiments, when the virtual character carries a virtual weapon, displaying a configuration preview area in the virtual scene includes: when the virtual character carries a virtual weapon, obtaining a first quantity and a second quantity, the first quantity being the number of types of virtual accessories that need to be assembled with the virtual weapon, and the second quantity being the number of types of virtual accessories already assembled on the virtual weapon; based on the first quantity and the second quantity, displaying the configuration preview area in the virtual scene, the first preview image in the configuration preview area including the first quantity of icons, each icon being used to represent a corresponding type of virtual accessory, the second quantity of icons among the first quantity of icons presenting a first state, and the other icons except the second quantity of icons presenting a second state.
[0165] In some embodiments, the virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon refers to the virtual weapon used first when the virtual character interacts, and the second virtual weapon refers to the virtual weapon used second when the virtual character interacts; when the distance between the virtual character and the virtual supply pile meets the condition, displaying the supply list of the virtual supply pile in the virtual scene includes: when the distance between the virtual character and the virtual supply pile meets the condition, if there is a target virtual accessory in the virtual supply pile, displaying the supply list in the virtual scene, the supply list including the assembly control of the target virtual accessory, the target virtual accessory being a virtual accessory that can be assembled on the second virtual weapon, and the assembly control of the target virtual accessory being used to assemble the target virtual accessory to the second virtual weapon.
[0166] In some embodiments, the method further includes: in response to a switching operation on the first preview image, displaying a second preview image in the accessory display area, wherein the second preview image displays a first number of accessory slots, each accessory slot is used to display a corresponding type of assembled virtual accessories, the first number being the number of types of virtual accessories required to be assembled on the virtual weapon, and corresponding virtual accessories are displayed in a second number of accessory slots among the first number of accessory slots, and the second number being the number of types of virtual accessories assembled on the virtual weapon.
[0167] In some embodiments, the method further includes: for any virtual accessory in the second preview image, in response to a disassembly operation on the virtual accessory, displaying in the second preview image that the accessory slot corresponding to the virtual accessory is empty, and the disassembly operation is used to remove the virtual accessory from the virtual weapon and place it in the backpack of the virtual character.
[0168] In some embodiments, the method further includes: for any virtual accessory in the second preview image, in response to a discard operation on the virtual accessory, displaying in the second preview image that an accessory slot corresponding to the virtual accessory is empty, wherein the discard operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene;
[0169] Displaying the virtual accessory in the virtual scene. In some embodiments, the configuration preview area displays a first virtual weapon and a second virtual weapon carried by the virtual character, and the accessory display area displays a first virtual accessory equipped with the first virtual weapon, where the first virtual accessory belongs to a target category of virtual accessories. The method further includes:
[0170] When the second virtual weapon is capable of being equipped with virtual accessories of the target type but has not yet been equipped with virtual accessories of the target type, in response to a transfer operation on the first virtual accessory in the second preview image, the accessory slot corresponding to the target type is displayed as empty among the multiple accessory slots corresponding to the first virtual weapon in the second preview image, and the first virtual accessory is displayed in the accessory slot corresponding to the target type among the multiple accessory slots corresponding to the second virtual weapon, wherein the transfer operation is used to transfer the virtual accessory on one virtual weapon to another virtual weapon.
[0171] In some embodiments, the configuration preview area displays a first virtual weapon and a second virtual weapon carried by the virtual character, and the accessory display area displays a first virtual accessory equipped with the first virtual weapon and a second virtual accessory equipped with the second virtual weapon, and the first virtual accessory and the second virtual accessory are virtual accessories of the same type; the method further includes: in response to a replacement operation of the first virtual accessory and the second virtual accessory in the second preview image, displaying the second virtual accessory in the accessory slot corresponding to the first virtual weapon, and displaying the first virtual accessory in the accessory slot corresponding to the second virtual weapon, and the replacement operation is used to replace virtual accessories of the same type on the two virtual weapons.
[0172] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.
[0173] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for assembling a virtual accessory, executed by a computer device, the method comprising: Displaying a virtual scene, wherein a virtual character and virtual accessories exist in the virtual scene; In the case where the virtual character carries a virtual weapon, a configuration preview area is displayed in the virtual scene, wherein the virtual weapon and a first preview image are displayed in the configuration preview area, and the first preview image indicates the number of virtual accessories assembled on the virtual weapon; In response to an assembly operation on any virtual accessory in the virtual scene, the virtual accessory is assembled to the virtual weapon indicated by the assembly operation, and the first preview image in the configuration preview area is updated.
2. The method according to claim 1, wherein: In the case where the virtual character carries a virtual weapon, displaying a configuration preview area in the virtual scene includes: In the case where the virtual character carries a virtual weapon, the virtual weapon and the first preview image are displayed in the configuration preview area, wherein the first preview image includes a first number of icons, and the first number is the number of types of virtual accessories required to be assembled with the virtual weapon; When the virtual weapon has been equipped with a second number of virtual accessories, the second number of icons are displayed in the first preview image in a first state, and the remaining icons are displayed in a second state.
3. The method according to claim 1 or 2, wherein: Each icon corresponds to a virtual accessory, and when the virtual weapon has been equipped with a second number of virtual accessories, the second number of icons are displayed in the first preview image in a first state, and the remaining icons are displayed in a second state, including: In the case that the virtual weapon has been equipped with a second number of virtual accessories, for any icon in the first preview image, if the virtual weapon has been equipped with the virtual accessories corresponding to the icon, the icon will be displayed in the first state; if the virtual weapon is not equipped with the virtual accessories corresponding to the icon, the icon will be displayed in the second state.
4. The method according to any one of claims 1 to 3, wherein: The virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon is the virtual weapon currently being used by the virtual character, the second virtual weapon is the virtual weapon currently not being used by the virtual character, and the first virtual weapon and the second virtual weapon have respective first preview images corresponding thereto; In response to an assembly operation on any virtual accessory in the virtual scene, assembling the virtual accessory to the virtual weapon indicated by the assembly operation, and updating the first preview image in the configuration preview area, comprises: Displaying a first virtual accessory in the virtual scene, and displaying an assembly control of the first virtual accessory, wherein the assembly control is used to assemble the first virtual accessory to the second virtual weapon; In response to a triggering operation on the assembly control, the first virtual accessory is assembled to the second virtual weapon, and the first preview image of the second virtual weapon is updated; or, in response to a picking operation on the first virtual accessory, the first virtual accessory is assembled to the first virtual weapon, and the first preview image of the first virtual weapon is updated.
5. The method according to any one of claims 1 to 4, wherein: The displaying of the first virtual accessory in the virtual scene includes: When the distance between the virtual character and the virtual supply pile in the virtual scene satisfies a condition, a supply list of the virtual supply pile is displayed in the virtual scene, and the supply list includes the first virtual accessory.
6. The method according to any one of claims 1 to 5, wherein: The assembly control for displaying the first virtual accessory includes: In the case where the first virtual accessory is applicable to the second virtual weapon, the second virtual accessory is displayed in the virtual scene. An assembly control for a virtual accessory.
7. The method according to any one of claims 1 to 6, wherein: The method further comprises: In response to a switching operation on the first preview image, the first preview image is switched to a second preview image, wherein a first number of accessory slots is displayed in the second preview image, where the first number is the number of types of virtual accessories required to be assembled with the virtual weapon; In the case where the virtual weapon has been equipped with a second number of virtual accessories, the virtual accessories equipped with the virtual weapon are displayed in the second number of accessory slots in the second preview image, and no virtual accessories are displayed in the remaining accessory slots.
8. The method according to any one of claims 1 to 7, wherein: Each accessory slot corresponds to a virtual accessory, and when the virtual weapon has been equipped with a second number of virtual accessories, the virtual accessories equipped with the virtual weapon are displayed in the second number of accessory slots in the second preview image, and no virtual accessories are displayed in the remaining accessory slots, including: In the case that the virtual weapon has been equipped with a second number of virtual accessories, for any accessory slot in the second preview image, if the virtual weapon has been equipped with the virtual accessory corresponding to the accessory slot, the virtual accessory corresponding to the accessory slot that the virtual weapon has been equipped with will be displayed in the accessory slot; if the virtual weapon is not equipped with the virtual accessory corresponding to the accessory slot, no virtual accessory will be displayed in the accessory slot.
9. The method according to any one of claims 1 to 8, wherein: The method further comprises: In response to a disassembly operation on any virtual accessory in the second preview image, the virtual accessory is removed from the virtual weapon, and the removed virtual accessory is placed in the backpack of the virtual character, and the accessory slot corresponding to the virtual accessory is displayed as empty in the second preview image.
10. The method according to any one of claims 1 to 9, wherein: The method further comprises: In response to a discard operation on any virtual accessory in the second preview image, the virtual accessory is removed from the virtual weapon, the removed virtual accessory is placed in the virtual scene, and the accessory slot corresponding to the virtual accessory is displayed as empty in the second preview image.
11. The method according to any one of claims 1 to 10, wherein: The virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon have respective second preview images, and the first virtual weapon is equipped with a second virtual accessory; the method further includes: In response to the operation of transferring the second virtual accessory in the second preview image of the first virtual weapon to the second preview image of the second virtual weapon, the second virtual accessory on the first virtual weapon is transferred to the second virtual weapon, the second virtual accessory is canceled from the second preview image of the first virtual weapon, and the second virtual accessory is displayed in the second preview image of the second virtual weapon.
12. The method according to any one of claims 1 to 11, wherein: The virtual weapons carried by the virtual character include a first virtual weapon and a second virtual weapon, the first virtual weapon and the second virtual weapon have respective second preview images, the first virtual weapon is equipped with a third virtual accessory, and the second virtual weapon is equipped with a fourth virtual accessory; the method further includes: In response to a replacement operation of the third virtual accessory in the second preview image of the first virtual weapon and the fourth virtual accessory in the second preview image of the second virtual weapon, the third virtual accessory on the first virtual weapon and the fourth virtual accessory on the second virtual weapon are swapped, the fourth virtual accessory is displayed in the second preview image of the first virtual weapon, and the third virtual accessory is displayed in the second preview image of the second virtual weapon.
13. A virtual accessory assembly device, the device comprising: A display module, used for displaying a virtual scene, wherein the virtual scene includes a virtual character and virtual accessories; The display module is further configured to display a configuration preview area in the virtual scene when the virtual character carries a virtual weapon, wherein the configuration preview area displays the virtual weapon and a first preview image, wherein the first preview image indicates the number of virtual accessories assembled on the virtual weapon; The updating module is used for responding to an assembly operation on any virtual accessory, assembling the virtual accessory to the virtual weapon indicated by the assembly operation, and updating the first preview image in the configuration preview area.
14. A computer device, comprising a processor and a memory, wherein the memory is used to store at least one computer program, and the at least one computer program is loaded by the processor and executes the method for assembling virtual accessories according to any one of claims 1 to 12.
15. A computer-readable storage medium, wherein the computer-readable storage medium is used to store at least one computer program, wherein the at least one computer program is used to execute the virtual accessory assembly method according to any one of claims 1 to 12. 16 . A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for assembling a virtual accessory according to claim 1 is implemented.
Citation Information
Patent Citations
Method, device and storage medium for selecting accessories in virtual environment
CN109045695A
Display method of virtual element in virtual environment, display device of virtual element in virtual environment, and readable storage medium
CN110448907A
Prop pickup method, terminal, electronic equipment and readable storage medium
CN112791390A
Virtual object control method and device, terminal and storage medium
CN113680053A
Interaction processing method and device in game, electronic equipment and storage medium
CN115328354A