Virtual accessory assembling method and device, computer equipment and storage medium

By displaying the configuration preview area in the virtual scene, users can directly pick up and assemble virtual accessories in the virtual scene, solving the problem of cumbersome operations in the prior art and improving assembly efficiency and user experience.

CN120053974APending Publication Date: 2025-05-30TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311640567.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-30
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

In the prior art, players need to frequently open the backpack interface of virtual characters to assemble virtual accessories, which is complicated to operate and affect assembly efficiency.

Method used

Display the configuration preview area in the virtual scene, including the weapon display area and the accessories display area. Users can intuitively view the assembled virtual accessories on the virtual weapon, and directly pick up and assemble accessories in the virtual material pile.

Benefits of technology

It simplifies the assembly process of virtual accessories and improves assembly efficiency. Users do not need to switch interfaces frequently, and their vision is not blocked, which improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120053974A_ABST
    Figure CN120053974A_ABST
Patent Text Reader

Abstract

The invention provides a virtual accessory assembling method and device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: displaying a virtual scene; under the condition that the virtual role carries a virtual weapon, displaying a configuration preview area in the virtual scene; under the condition that the distance between the virtual character and the virtual material pile meets a condition, displaying a material list of the virtual material pile in the virtual scene; and in response to an assembly operation on any virtual accessory, updating display in the configuration preview area based on the virtual weapon and the virtual accessory indicated by the assembly operation. According to the technical scheme, operation is easy, a user does not need to open other interfaces to assemble the virtual accessories, and the efficiency of assembling the virtual accessories is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a method, apparatus, computer device, and storage medium for assembling virtual accessories. Background Art

[0002] In common shooting competitive games, there is a concept of virtual accessories. Virtual accessories can be virtual magazines, virtual gun stocks, or telescopic sights, etc. Different virtual accessories will bring different enhancements to virtual weapons, thus affecting the player's gaming experience. It can be seen that virtual accessories are extremely important in games. How to assemble virtual accessories onto virtual weapons is the focus of research in this field.

[0003] Currently, the commonly adopted method is: when a virtual character picks up a virtual accessory in a virtual scene, if the virtual accessory is to be assembled onto a certain virtual weapon, the player needs to first open the backpack interface of the virtual character to view the current situation of the virtual accessories assembled on the virtual weapon. Only when the virtual weapon is not fully loaded with the required virtual accessories is it possible to assemble the virtual accessory onto the virtual weapon in the backpack interface. However, assembling by opening the backpack interface is cumbersome and affects the assembly efficiency of virtual accessories. Summary of the Invention

[0004] Embodiments of this application provide a method, apparatus, computer device, and storage medium for assembling virtual accessories, which are simple to operate, do not require the user to open other interfaces to assemble virtual accessories, and improve the efficiency of assembling virtual accessories. The technical solutions are as follows:

[0005] On the one hand, a method for assembling virtual accessories is provided, and the method includes:

[0006] Display a virtual scene, where there are a virtual character and a virtual supply pile in the virtual scene, and the virtual supply pile includes at least one virtual accessory;

[0007] When the virtual character is carrying a virtual weapon, display a configuration preview area in the virtual scene. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories already assembled on the virtual weapon;

[0008] When the distance between the virtual character and the virtual supply pile meets the condition, display a supply list of the virtual supply pile in the virtual scene. The supply list includes the at least one virtual accessory;

[0009] In response to an assembly operation on any virtual accessory, update the display in the configuration preview area based on the virtual weapon and the virtual accessory indicated by the assembly operation.

[0010] On the other hand, an assembly device for virtual accessories is provided, and the device includes:

[0011] A display module for displaying a virtual scene in which there are virtual characters and virtual material piles, and the virtual material piles include at least one virtual accessory;

[0012] The display module is further configured to display a configuration preview area in the virtual scene when the virtual character is carrying a virtual weapon. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories assembled on the virtual weapon;

[0013] The display module is further configured to display a material list of the virtual material piles in the virtual scene when the distance between the virtual character and the virtual material piles meets a condition. The material list includes the at least one virtual accessory;

[0014] An update module for updating the display in the configuration preview area in response to an assembly operation on any virtual accessory, based on the virtual weapon and the virtual accessory indicated by the assembly operation.

[0015] In some embodiments, the display module is configured to obtain a first quantity and a second quantity when the virtual character is carrying a virtual weapon. The first quantity is the number of types of virtual accessories required to be assembled on the virtual weapon, and the second quantity is the number of types of virtual accessories already assembled on the virtual weapon. Based on the first quantity and the second quantity, display the configuration preview area in the virtual scene. The first preview image in the configuration preview area includes icons of the first quantity, and each icon is used to represent a corresponding type of virtual accessory. Among the icons of the first quantity, icons of the second quantity present a first state, and other icons except the icons of the second quantity present a second state.

[0016] In some embodiments, the virtual weapon carried by the virtual character includes a first virtual weapon and a second virtual weapon. The first virtual weapon refers to the virtual weapon used first by the virtual character during interaction, and the second virtual weapon refers to the virtual weapon used second by the virtual character during interaction;

[0017] The display module is configured to, when the distance between the virtual character and the virtual material pile meets the condition, if there is a target virtual accessory in the virtual material pile, display the material list in the virtual scene. The material list includes an assembly control for the target virtual accessory. The target virtual accessory is a virtual accessory that can be assembled onto the second virtual weapon, and the assembly control for the target virtual accessory is used to assemble the target virtual accessory onto the second virtual weapon.

[0018] In some embodiments, the display module is further configured to, in response to a switching operation on the first preview image, display a second preview image in the accessory display area. The second preview image shows a first number of accessory slots, and each accessory slot is used to display the assembled virtual accessories of the corresponding type. The first number is the number of types of virtual accessories required to be assembled on the virtual weapon. Among the first number of accessory slots, a second number of accessory slots display the corresponding virtual accessories, and the second number is the number of types of virtual accessories already assembled on the virtual weapon.

[0019] In some embodiments, the display module is further configured to, for any virtual accessory in the second preview image, in response to a disassembly operation on the virtual accessory, display the accessory slot corresponding to the virtual accessory as empty in the second preview image. The disassembly operation is used to remove the virtual accessory from the virtual weapon and place it in the backpack of the virtual character.

[0020] In some embodiments, the display module is further configured to, for any virtual accessory in the second preview image, in response to a discard operation on the virtual accessory, display the accessory slot corresponding to the virtual accessory as empty in the second preview image. The discard operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene; and display the virtual accessory in the virtual scene.

[0021] In some embodiments, the first virtual weapon and the second virtual weapon carried by the virtual character are displayed in the configuration preview area, and the first virtual accessories already assembled on the first virtual weapon are displayed in the accessory display area. The first virtual accessories belong to the virtual accessories of the target type;

[0022] The display module is further configured to, when the second virtual weapon is capable of equipping virtual accessories of the target type and has not yet equipped the virtual accessories of the target type, in response to a transfer operation on the first virtual accessory in the second preview image, display the accessory slot corresponding to the target type as empty among the multiple accessory slots corresponding to the first virtual weapon in the second preview image, and display the first virtual accessory in the accessory slot corresponding to the target type among the multiple accessory slots corresponding to the second virtual weapon. The transfer operation is used to transfer virtual accessories from one virtual weapon to another virtual weapon.

[0023] In some embodiments, a first virtual weapon and a second virtual weapon carried by the virtual character are displayed in the configuration preview area, and a first virtual accessory equipped on the first virtual weapon and a second virtual accessory equipped on the second virtual weapon are displayed in the accessory display area. The first virtual accessory and the second virtual accessory are virtual accessories of the same type.

[0024] The display module is further configured to, in response to a replacement operation on the first virtual accessory and the second virtual accessory in the second preview image, display the second virtual accessory in the accessory slot corresponding to the first virtual weapon, and display the first virtual accessory in the accessory slot corresponding to the second virtual weapon. The replacement operation is used to replace virtual accessories of the same type on two virtual weapons.

[0025] On the other hand, a computer device is provided. The computer device includes a processor and a memory. The memory is used to store at least one segment of computer program, and the at least one segment of computer program is loaded and executed by the processor to implement the method for equipping virtual accessories in the embodiments of the present application.

[0026] On the other hand, a computer-readable storage medium is provided. At least one segment of computer program is stored in the computer-readable storage medium, and the at least one segment of computer program is loaded and executed by a processor to implement the method for equipping virtual accessories as in the embodiments of the present application.

[0027] On the other hand, a computer program product is provided, including a computer program. The computer program 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 method for equipping virtual accessories provided in the above-mentioned various aspects or various optional implementation manners of the various aspects.

[0028] An embodiment of the present application provides a method for assembling virtual accessories. When a virtual character is carrying a virtual weapon, a configuration preview area can be displayed in a virtual scene. Since the virtual weapon carried by the virtual character is displayed in the weapon display area of the configuration preview area, and a first preview image is displayed in the accessory display area of the configuration preview area, the user can intuitively see the situation of the virtual accessories assembled on the virtual weapon without the need to open other interfaces to view the assembly situation of the virtual accessories on the virtual weapon. Therefore, when picking up virtual accessories from the virtual material pile in the virtual scene, the picked-up virtual accessories can be directly assembled onto the corresponding virtual weapon according to the assembly situation of the virtual accessories on the current virtual weapon. The operation is simple, and there is no need for the user to open other interfaces to assemble the virtual accessories, which improves the efficiency of assembling virtual accessories. Moreover, the above operation is completed in the interface for displaying the virtual scene, enabling the user's field of view to observe the information that appears in the virtual scene at any time, avoiding missing the information in the virtual scene due to blocking the field of view when opening other interfaces, thereby enhancing the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0030] Figure 1 It is a schematic diagram of the implementation environment of a method for assembling virtual accessories according to an embodiment of the present application;

[0031] Figure 2 It is a flowchart of a method for assembling virtual accessories according to an embodiment of the present application;

[0032] Figure 3 It is a flowchart of another method for assembling virtual accessories according to an embodiment of the present application;

[0033] Figure 4 It is a schematic diagram of a virtual scene according to an embodiment of the present application;

[0034] Figure 5 It is a schematic diagram of a configuration preview area according to an embodiment of the present application;

[0035] Figure 6 It is a schematic diagram of a material list according to an embodiment of the present application;

[0036] Figure 7 It is a schematic diagram of an updated configuration preview area according to an embodiment of the present application;

[0037] Figure 8 is a flowchart for assembling a virtual accessory to a second virtual weapon provided according to an embodiment of the present application;

[0038] Figure 9 is a schematic diagram for switching a preview image provided according to an embodiment of the present application;

[0039] Figure 10 is a flowchart for switching a preview image provided according to an embodiment of the present application;

[0040] Figure 11 is a schematic diagram for disassembling a virtual accessory provided according to an embodiment of the present application;

[0041] Figure 12 is a schematic diagram for discarding a virtual accessory provided according to an embodiment of the present application;

[0042] Figure 13 is a schematic diagram for transferring a virtual accessory provided according to an embodiment of the present application;

[0043] Figure 14 is a schematic diagram for replacing a virtual accessory provided according to an embodiment of the present application;

[0044] Figure 15 is a flowchart for adjusting a virtual weapon provided according to an embodiment of the present application;

[0045] Figure 16 is a block diagram of an assembly device for a virtual accessory provided according to an embodiment of the present application;

[0046] Figure 17 is a block diagram of a terminal structure provided according to an embodiment of the present application. Detailed implementation manners

[0047] To make the objectives, technical solutions, and advantages of the present application clearer, the following will further describe in detail the embodiments of the present application in conjunction with the accompanying drawings.

[0048] In the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and effects. It should be understood that there is no logical or chronological dependency between "first", "second", and "nth", nor are the quantity and execution order limited.

[0049] In the present application, the term "at least one" means one or more, and the meaning of "multiple" is two or more.

[0050] It should be noted that the information involved in this application (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions. For example, the virtual weapons and virtual accessories involved in this application are obtained under full authorization.

[0051] For the sake of easy understanding, the terms involved in this application are explained below.

[0052] Virtual scene: It refers to the virtual scene displayed (or provided) when the application runs on the terminal. The virtual scene can be a simulation environment of the real world, a semi-simulated and semi-fictional virtual scene, or a purely fictional virtual scene. The virtual scene can be a two-dimensional virtual scene, a 2.5D 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, and users can control virtual objects to move in this virtual scene.

[0053] Virtual character: It refers to an active object in the virtual world. The active object can be at least one of a virtual person, a virtual animal, and an anime character. In some embodiments, when the virtual world is a three-dimensional virtual world, the virtual character is a three-dimensional solid model, and each virtual character has its own shape and volume in the three-dimensional virtual world, occupying a part 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 bone technology, and the virtual character realizes different external images by wearing different skins. In some embodiments, the virtual character can be implemented using a 2.5D or 2D model, and the embodiments of this application do not limit this.

[0054] Virtual accessory: In the game, virtual accessories are generally randomly placed in various places on the game map, and players can pick them up after approaching. Each virtual weapon (such as a virtual firearm) can be equipped with different numbers and different types of virtual accessories according to its own characteristics. For example, virtual firearm A has 5 slots and can install 5 virtual accessories; while virtual firearm B only has 3 slots and can only install 3 virtual accessories. Virtual accessories can include various types such as virtual muzzle suppressors, virtual muzzles, virtual grips, virtual magazines, virtual gun stocks, and telescopic sights. The same type of virtual accessory may also include multiple models. Taking the virtual muzzle suppressor as an example, the virtual muzzle suppressor also varies by firearm type, and the suppressor of a virtual sniper rifle cannot be installed on other firearms. Installing virtual accessories on virtual weapons will have a certain impact on certain values of the virtual weapons. Special virtual accessories may even change the attack mode of the virtual weapons.

[0055] The assembly method of virtual accessories provided by the embodiments 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 a terminal as an example, the implementation environment of the assembly method of virtual accessories provided by the embodiments of the present application will be introduced. Figure 1 It is a schematic diagram of the implementation environment of an assembly method of virtual accessories provided by the embodiments of the present application. Refer to Figure 1 , this implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 can be directly or indirectly connected through wired or wireless communication methods, and the present application does not limit this.

[0056] In some embodiments, the terminal 101 is a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart voice interaction device, a smart home appliance, a vehicle-mounted terminal, etc., but is not limited thereto. The terminal 101 installs and runs an application program that supports virtual scenarios. The application program can be any one of a first-person shooting game (FPS), a third-person shooting game, a multiplayer online battle arena game (MOBA), a virtual reality application program, a three-dimensional map program, or a multiplayer gunfight survival game. Schematically, the terminal 101 is a terminal used by a user (player). The user uses the terminal 101 to operate a virtual character located in the virtual scenario to perform activities, and the activities include but are not limited to: adjusting the body posture, crawling, walking, running, cycling, jumping, driving, picking up, shooting, attacking, throwing, etc. Schematically, the virtual character is a virtual person, such as a simulated human character or an anime character.

[0057] Those skilled in the art can know that the number of the above terminals can be more or less. For example, the above terminal can be only one, or the above terminals can be dozens or hundreds, or more. The embodiments of the present application do not limit the number and device type of the terminals.

[0058] In some embodiments, the server 102 is an independent physical server, or can also be a server cluster or a distributed system composed of multiple physical servers, and 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. The server 102 is used to provide background services for application programs that support virtual scenarios. In some embodiments, the server 102 undertakes the main computing work, and the terminal 101 undertakes the secondary computing work; or, the server 102 undertakes the secondary computing work, and the terminal 101 undertakes the main computing work; or, the server 102 and the terminal 101 adopt a distributed computing architecture for collaborative computing.

[0059] Figure 2 is a flowchart of a method for assembling virtual accessories provided by an embodiment of the present application. Refer to Figure 2 In the embodiment of the present application, an example in which the execution is performed by the terminal will be described. The method for assembling virtual accessories includes the following steps:

[0060] 201. The terminal displays a virtual scene, in which there are virtual characters and a virtual material pile, and the virtual material pile includes at least one virtual accessory.

[0061] In the embodiment of the present application, the terminal displays virtual characters and a virtual material pile in the virtual scene. The virtual character is the virtual character controlled by the account logged in to the current terminal. The virtual material pile refers to a material pile formed by aggregating multiple virtual materials. The embodiment of the present application does not limit the number of virtual weapons in the virtual material pile. Among the multiple virtual materials in the virtual material pile, in addition to at least one virtual accessory, other virtual items may also be included, and the embodiment of the present application does not limit this. The virtual accessory can be a virtual muzzle, a virtual grip, a virtual magazine, a virtual gunstock, or a sight, etc., and the embodiment of the present application does not limit this. Other virtual items can be virtual food or virtual medicine, etc., and the embodiment of the present application does not limit this.

[0062] 202. When the virtual character is carrying a virtual weapon, the terminal displays a configuration preview area in the virtual scene. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories assembled on the virtual weapon.

[0063] In the embodiments of the present application, a virtual character may carry virtual weapons, and the embodiments of the present application do not limit the number of virtual weapons. The virtual weapons may be virtual firearms, virtual crossbows and arrows, virtual knives, etc., and the embodiments of the present application do not limit this. For any virtual weapon, virtual accessories may be assembled on the virtual weapon, and the embodiments of the present application do not limit the number of virtual accessories that can be assembled on the virtual weapon. When the virtual character carries a virtual weapon, the terminal displays a configuration preview area in the virtual scene, and the embodiments of the present application do not limit the display position and display style of the configuration preview area. The configuration preview area is used to display the situation of virtual accessories assembled on the virtual weapon carried by the virtual character. The configuration preview area includes a weapon display area and an accessory display area. The weapon display area is used to display the virtual weapon carried by the virtual character. The accessory display area is used to display the situation of virtual accessories assembled on each virtual weapon. The terminal displays a first preview image in the accessory display area to visually show the user the number of virtual accessories already assembled on the virtual weapon carried by the virtual character.

[0064] 203. When the distance between the virtual character and the virtual supply pile meets the condition, the terminal displays a supply list of the virtual supply pile in the virtual scene, and the supply list includes at least one virtual accessory.

[0065] In the embodiments of the present application, the virtual character can move in the virtual scene. When the distance between the virtual character and the virtual supply pile meets the condition, 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 condition, the supply list of the virtual supply pile is displayed in the virtual scene. The "condition" may be that the distance between the virtual character and the virtual supply pile is less than a preset distance, or the distance between the virtual character and the virtual supply pile is within a preset distance range, and the embodiments of the present application do not limit this. The supply list is used to display all the virtual supplies in the virtual supply pile so that the user can see at least one virtual accessory existing in the virtual supply pile through the supply list.

[0066] 204. In response to an assembly operation on any virtual accessory, the terminal updates the display in the configuration preview area based on the virtual weapon and virtual accessory indicated by the assembly operation.

[0067] In the embodiments of the present application, when any virtual accessory in the supply list is triggered for an assembly operation, the terminal assembles the virtual accessory onto the virtual weapon indicated by the assembly operation. Then, the terminal updates the display in the configuration preview area. The configuration preview area shows that the number of virtual accessories already assembled on this virtual weapon increases by one, and the number of virtual accessories already assembled on other virtual weapons remains unchanged.

[0068] The embodiment of the present application provides an assembly method for virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in the virtual scene. Since the virtual weapon carried by the virtual character is displayed in the weapon display area in the configuration preview area, and a first preview image is displayed in the accessory display area in the configuration preview area, the user can intuitively see the situation of the virtual accessories assembled on the virtual weapon, without the user opening other interfaces to view the assembly situation of the virtual accessories on the virtual weapon. Therefore, when picking up virtual accessories from the virtual supply pile in the virtual scene, the picked-up virtual accessories can be directly assembled onto the corresponding virtual weapon according to the assembly situation of the virtual accessories on the current virtual weapon. The operation is simple, and there is no need for the user to open other interfaces to assemble the virtual accessories, which improves the efficiency of assembling virtual accessories. Moreover, the above operation is completed in the interface for displaying the virtual scene, enabling the user's field of view to observe the information that appears in the virtual scene at any time, avoiding missing the information in the virtual scene due to blocking the field of view when opening other interfaces, thereby enhancing the user experience.

[0069] Figure 3 is a flowchart of another assembly method for virtual accessories provided by the embodiment of the present application. Refer to Figure 3 , and in the embodiment of the present application, it is described by taking the execution by the terminal as an example. The assembly method for virtual accessories includes the following steps:

[0070] 301. The terminal displays a virtual scene, in which there are a virtual character and a virtual supply pile, and the virtual supply pile includes at least one virtual accessory.

[0071] In the embodiment of the present application, after the virtual game starts, the terminal displays the virtual character and the virtual supply pile in the virtual scene. The terminal can control the virtual character to perform various interactive behaviors such as moving in the virtual scene, picking up virtual items from the virtual supply pile, and fighting with other virtual characters. The interface currently displayed by the terminal for the virtual scene can be called the game interface or the main interface, which carries the main interactive behaviors required for the virtual character to conduct a virtual game. As the virtual character moves in the virtual scene, the field of view of the virtual character changes. That is, as the virtual character moves in the virtual scene, the content of the virtual scene displayed by the terminal also changes continuously. There can be multiple virtual supply piles in the virtual scene, and the 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 in the field of view of the virtual character. That is, the terminal displays the virtual supply pile in the virtual scene.

[0072] For any virtual material stack, the virtual material stack includes a plurality of virtual materials, and the embodiments of the present application do not limit the number of virtual materials. The plurality of virtual materials includes at least one virtual accessory and other virtual items, and the embodiments of the present application do not limit the virtual accessories and other virtual items.

[0073] For example, Figure 4 is a schematic diagram of a virtual scene provided according to an embodiment of the present application. Refer to Figure 4 , the terminal displays a virtual scene. In this virtual scene, there are a virtual character 401 and a virtual material stack 402.

[0074] 302. When the virtual character is carrying a virtual weapon, the terminal displays a configuration preview area in the virtual scene. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories assembled on the virtual weapon.

[0075] In the embodiments of the present application, the virtual character may carry a virtual weapon. The virtual weapon may be picked up by the virtual character from the virtual scene after the virtual game starts, or may be assigned to the virtual character before the virtual game. The embodiments of the present application do not limit the acquisition method of the virtual weapon. When the virtual character is carrying a virtual weapon, the terminal can display a configuration preview area in the virtual scene based on the virtual weapon carried by the virtual character. 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 virtual character in the weapon display area and displays a first preview image in the accessory display area to show the user the situation of virtual accessories assembled on the virtual weapon. The embodiments of the present application do not limit the style of the first preview image.

[0076] In some embodiments, icons capable of reflecting virtual accessories assembled on a virtual weapon are displayed in the first preview image. Correspondingly, the process by which the terminal displays a configuration preview area in the virtual scene includes: when the virtual character is carrying a virtual weapon, the terminal obtains a first quantity and a second quantity. The first quantity is the number of types of virtual accessories required to be assembled on the virtual weapon. That is, 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 already assembled on the virtual weapon. Then, based on the first quantity and the second quantity, the terminal displays a configuration preview area in the virtual scene. The first preview image in the configuration preview area includes the first quantity of icons. Each icon is used to represent a corresponding type of virtual accessory. Among the first quantity of icons, the second quantity of icons present a first state, and the other icons except the second quantity of icons present a second state. The first state is used to indicate that the virtual accessory has been assembled; the second state is used to indicate that the virtual accessory has not been assembled. The solution provided by the embodiments of the present application presents the situation of virtual accessories assembled on the virtual weapon through the style of the icons, and differentiates the unassembled virtual accessories and the assembled virtual accessories on the virtual weapon through icons in different states, more simply and intuitively feedbacking to the user which virtual accessories on the virtual weapon have been assembled and which virtual accessories have not been assembled, without the user having to open other interfaces to view the assembly situation of the virtual accessories on the virtual weapon. Thus, when picking up virtual accessories from the virtual material pile in the virtual scene, the user can directly assemble the picked-up virtual accessories onto the corresponding virtual weapon according to the assembly situation of the virtual accessories on the current virtual weapon, with simple operations and without the user having to open other interfaces to assemble the virtual accessories, improving the efficiency of assembling virtual accessories.

[0077] Among them, the icons can be circular, triangular, or square, and the embodiments of the present application do not limit the shape of the icons. The terminal can use different icon shapes, different icon colors, or different icon brightnesses, etc., to present the first state and the second state of the icons, and the embodiments of the present application do not limit this.

[0078] For example, Figure 5 is a schematic diagram of a configuration preview area provided according to an embodiment of the present application. Refer to Figure 5, the terminal displays a configuration preview area below the virtual scene. The configuration preview area includes a weapon display area 501 and an accessory display area 502. From the weapon display area 501, it can be seen that the virtual character 503 is carrying a first virtual weapon 5011 and a second virtual weapon 5012. From the accessory display area 502, it can be seen that in the first preview image, the first virtual weapon 5011 corresponds to 5 circular icons; the second virtual weapon 5012 corresponds to 4 circular icons. That is, the first virtual weapon 5011 can be equipped with at most 5 virtual accessories. The second virtual weapon 5012 can be equipped with at most 4 virtual accessories. Different circular icons represent different virtual accessories. Taking the first virtual weapon 5011 as an example, the 5 circular icons corresponding to the first virtual weapon 5011 represent a virtual muzzle, a virtual grip, a virtual magazine, a virtual stock, and a scope from left to right in sequence. Among the 5 circular icons corresponding to the first virtual weapon 5011, 3 circular icons are in the first state (black), and 2 circular icons are in the second state (white). That is, 3 virtual accessories have been equipped on the first virtual weapon 5011, which are the virtual grip, the virtual stock, and the scope respectively. The first virtual weapon 5011 still lacks a virtual muzzle and a virtual magazine. The first preview image can reflect the number of virtual accessories already equipped on the virtual weapon and can be regarded as a brief preview of the accessory assembly situation.

[0079] Compared with the backpack interface, the configuration preview area is smaller in size, enabling the user's field of view to observe the information that appears in the virtual scene at any time, avoiding missing the information in the virtual scene due to blocking the field of view when opening the backpack interface, thereby enhancing the user experience. The configuration preview area can also be semi-transparent to further reduce the occlusion of the virtual scene. The embodiments of the present application do not limit the transparency of the configuration preview area.

[0080] 303. When the distance between the virtual character and the virtual supply pile meets the condition, the terminal displays a supply list of the virtual supply pile in the virtual scene, and the supply list includes at least one virtual accessory.

[0081] In the embodiments of the present application, for any virtual supply pile in the 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 condition, the terminal displays a supply list of the virtual supply pile in the virtual scene. All the virtual supplies in the virtual supply pile are displayed in the supply list. The virtual supplies in the virtual supply pile include at least one virtual accessory. For any virtual accessory, the virtual accessory may or may not conform to the specifications of the virtual weapon carried by the virtual character. That is, the virtual accessory can be equipped on the virtual weapon carried by the virtual character or cannot be equipped on the virtual weapon carried by the virtual character. The embodiments of the present application do not limit this.

[0082] In some embodiments, based on whether a virtual accessory can be assembled onto a virtual weapon, the terminal displays a list of items in a virtual supply pile in a virtual scene. For virtual accessories in the item list that can be assembled onto the virtual weapon, there are assembly controls. In response to a trigger operation on the assembly control, the terminal picks up the virtual accessory from the virtual supply pile and assembles the corresponding virtual accessory onto the virtual weapon. For virtual accessories in the item list that cannot be assembled onto the virtual weapon, there are no assembly controls. In response to a selection operation on the virtual accessory, the terminal picks up the virtual accessory from the virtual supply pile and places the virtual accessory in the backpack of the virtual character. The solution provided in the embodiments of the present application only displays assembly controls for virtual accessories that can be assembled onto the virtual weapon, so that the user can intuitively see the virtual accessories that can be assembled, and thus perform assembly through the assembly controls, which can improve the assembly efficiency of virtual accessories.

[0083] Among them, in the process of determining whether a virtual accessory can be assembled onto a virtual weapon, the terminal can detect whether the specifications between the virtual accessory and the virtual weapon match. If the specifications between the virtual accessory and the virtual weapon match, the terminal determines that the virtual accessory can be assembled onto the virtual weapon. Or, when the specifications between the virtual accessory and the virtual weapon match, the terminal can detect whether there are other virtual accessories of the same type as the virtual accessory already assembled on the virtual weapon. If there are other virtual accessories of the same type as the virtual accessory already assembled on the virtual weapon, the terminal determines that the virtual accessory cannot be assembled onto the virtual weapon. That is, the virtual accessory is redundant. If there are no other virtual accessories of the same type as the virtual accessory assembled on the virtual weapon, the terminal determines that the virtual accessory can be assembled onto the virtual weapon.

[0084] Or, when there are other virtual accessories of the same type as the virtual accessory already assembled on the virtual weapon, the terminal can compare the performance of the other assembled virtual accessories with that of the virtual accessory. If the performance of the other assembled virtual accessories is higher than the performance of the virtual accessory, the terminal determines that the virtual accessory cannot be assembled onto the virtual weapon. If the performance of the other assembled virtual accessories is lower than the performance of the virtual accessory, the terminal determines that the virtual accessory can be assembled onto the virtual weapon. In response to the assembly operation on the virtual accessory, the terminal can replace the above-mentioned other virtual accessories with the virtual accessory. When picking up a virtual accessory from the virtual supply pile, if the performance of the virtual accessory is better, this method directly replaces the other virtual accessories already assembled on the virtual weapon with the virtual accessory. The operation is simple, which can not only improve the assembly efficiency of virtual accessories, but also conform to the user's intention and enhance the user experience.

[0085] In the embodiments of the present application, the number of virtual weapons carried by a virtual character is not limited. If the virtual character only carries one virtual weapon, when an assembly operation for a virtual accessory is triggered, the terminal assembles the virtual accessory onto 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 onto the virtual weapon indicated by the assembly operation.

[0086] 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. The second virtual weapon refers to the virtual weapon used second when the virtual character interacts. Among them, the interaction may include various behaviors such as assembling virtual accessories and fighting with other virtual characters, and the embodiments of the present application do not limit this. The first virtual weapon can be called the main weapon; the second virtual weapon can be called the secondary weapon. Generally, virtual accessories will be default-assembled onto the first virtual weapon. Based on whether the virtual accessory can be assembled onto the second virtual weapon, the terminal adds an assembly control for assembling the virtual accessory onto the second virtual weapon in the material list. Correspondingly, when the terminal displays the material list of the virtual material pile in the virtual scene, it includes: when the distance between the virtual character and the virtual material pile meets the condition, if there is a target virtual accessory in the virtual material pile, the terminal displays the material list in the virtual scene. The material list includes an assembly control for the target virtual accessory. The target virtual accessory is a virtual accessory that can be assembled onto the second virtual weapon. The assembly control for the target virtual accessory is used to assemble the target virtual accessory onto the second virtual weapon. That is, the assembly control in the material list is used to assemble the virtual accessory onto the secondary weapon. The solution provided by the embodiments of the present application adds an assembly control for assembling the virtual accessory onto the secondary weapon in the material list, so that the virtual accessory can be directly assembled onto the secondary weapon through this assembly control, without the user having to open other interfaces to assemble the virtual accessory onto the secondary weapon, with simple operation and improved efficiency of assembling virtual accessories.

[0087] For example, Figure 6 is a schematic diagram of a material list provided according to an embodiment of the present application. Refer to Figure 6 , the terminal displays the material list 601 in the virtual scene. The material list 601 includes options for multiple virtual materials. Due to the limitation of the size of the material list 601, Figure 6The selection of virtual accessory 1 and the option of virtual accessory 2 among multiple virtual supplies are only exemplarily shown. In response to the sliding operation on the virtual supplies in the supply list 601, the terminal can display other virtual supplies in the supply list 601. Taking virtual accessory 1 as an example, the options of virtual accessory 1 include the icon and assembly control of virtual accessory 1. The icon of virtual accessory 1 is used to present the style of the virtual accessory. The assembly control of virtual accessory 1 is used to assemble the virtual accessory 1 to the second virtual weapon 602. The terminal can also display a close control 603 of the supply list 601 in the virtual scene. In response to the triggering operation of the close control 603, the terminal closes the display of the supply list 601.

[0088] 304. In response to an assembly operation on any virtual accessory, the terminal updates the display in the configuration preview area based on the virtual weapon and virtual accessory indicated by the assembly operation.

[0089] In an embodiment of the present application, in the case where the virtual character carries only one virtual weapon, in response to the assembly operation of any virtual accessory, the terminal can directly assemble the virtual accessory to the virtual weapon. In the case of carrying 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, so as to assemble the virtual accessory to the virtual weapon indicated by the assembly operation. For any virtual accessory, if the trigger position of the assembly operation is located on the assembly control of the virtual accessory, the terminal determines that the virtual weapon indicated by the assembly operation is the second virtual weapon (secondary weapon). If the trigger position of the assembly operation is located in other trigger areas outside 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). That is, in response to the trigger operation of the assembly control in the options of any virtual accessory, the terminal assembles the virtual accessory to the second virtual weapon. In response to other trigger areas other than the assembly control in the options of any virtual accessory, the terminal assembles the virtual accessory to the first virtual weapon. Then, the terminal updates the display in the configuration preview area according to the latest situation of the virtual accessory assembled on the virtual weapon.

[0090] For example, Figure 7 is a schematic diagram of an update configuration preview area provided according to an embodiment of the present application. Figure 7 , taking virtual accessory 1 as an example, when the assembly control 702 in the option 701 of 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 corresponding to the second virtual weapon 703 in the accessory display area in the configuration preview area from the second state (white) to the first state (black), as can be seen in Figure 7In (b) thereof. When other trigger areas (such as the icon of the virtual accessory 1) in option 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 corresponding to the second virtual weapon 704 in the accessory display area of the configuration preview area from the second state (white) to the first state (black), which is the same as Figure 7 in (b) thereof, and will not be elaborated here.

[0091] To more clearly describe the process of assembling a virtual accessory onto a second virtual weapon (secondary weapon), the following describes this process again with reference to the accompanying drawings. Figure 8 is a flowchart of assembling a virtual accessory onto a second virtual weapon provided according to an embodiment of the present application. Refer to Figure 8 . When the distance between the virtual character and any virtual material pile meets the condition, the terminal determines whether there is a virtual accessory in the virtual material pile. When there is a virtual accessory in the virtual material pile, the terminal determines whether the virtual accessory can be assembled onto the second virtual weapon (secondary weapon). When the virtual accessory can be assembled onto the second virtual weapon, the terminal displays a material list of the virtual material pile in the virtual scene. The material list includes the assembly control of the virtual accessory. Then, the terminal determines whether the user clicks on the option of the virtual accessory. When the option of the virtual accessory is clicked, the clicked position is determined. When the clicked position is within the assembly control, the terminal assembles the virtual accessory onto the second virtual weapon. When the clicked position is within other trigger areas except the assembly control, the terminal assembles the virtual accessory onto the first virtual weapon (primary weapon).

[0092] 305. In response to a switching operation on the first preview image, the terminal displays a second preview image in the accessory display area. The second preview image shows a first number of accessory slots, and each accessory slot is used to display the corresponding type of assembled virtual accessory. The first number is the number of types of virtual accessories required to be assembled on the virtual weapon. There are corresponding virtual accessories displayed in a second number of the first number of accessory slots, and the second number is the number of types of virtual accessories already assembled on the virtual weapon.

[0093] In the embodiments of the present application, in addition to viewing the number of virtual accessories assembled on the virtual weapon through the accessory display area, the user can also view the types of virtual accessories assembled on the virtual weapon through the accessory display area. That is to say, the user can also view which virtual accessories are assembled on the virtual weapon through the accessory display area. When a switching operation is triggered on the first preview image in the accessory display area, the terminal displays a second preview image in the accessory display area. The switching operation can be a sliding operation such as a swiping up operation or a swiping down operation, or a clicking operation such as a single click operation or a double click operation. The embodiments of the present application do not limit this. The second preview image includes the accessory slots for the virtual accessories required to be assembled on the virtual weapon. For the assembled virtual accessories, the terminal displays the icons of the virtual accessories in the accessory slots corresponding to the virtual accessories in the second preview image to show the styles of the assembled virtual accessories to the user. For the unassembled virtual accessories, the terminal shows that the accessory slots corresponding to the virtual accessories in the second preview image are empty.

[0094] For example, Figure 9 is a schematic diagram of switching preview images provided according to an embodiment of the present application. Refer to Figure 9 , Figure 9 In (a) of Figure 9 exemplarily shows the first preview image in the accessory display area. In response to the swiping up operation on the first preview image, the terminal displays a second preview image in the accessory display area. Figure 9 In (b) of

[0095] exemplarily shows the second preview image in the accessory display area. For any virtual weapon, the terminal displays the accessory slots for the virtual accessories required to be assembled on the virtual weapon in the second preview image. As can be seen from (b) of Figure 10 In the second preview image, the accessory slots for 5 virtual accessories required to be assembled on the first virtual weapon 901 and the accessory slots for 4 virtual accessories required to be assembled on the second virtual weapon 902 are shown. As can be seen from the second preview image, virtual accessories such as a virtual grip 9011, a virtual magazine 9012, and a scope 9013 are assembled on the first virtual weapon 901. Virtual accessories such as a virtual magazine 9021 and a scope 9023 are assembled on the second virtual weapon 902. The second preview image can reflect the styles (forms) of the virtual accessories assembled on the virtual weapon and can be regarded as a detailed preview of the accessory assembly situation. 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 swiping down operation. The embodiments of the present application do not limit this.

[0095] To more clearly describe the process of switching preview images in the embodiments of the present application, the following further describes this process with reference to the accompanying drawings. Figure 10 is a flowchart of switching preview images provided according to an embodiment of the present application. Refer to Figure 10, when the 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 5. Subsequently, the terminal can display circular icons corresponding to the corresponding number (5) in the first preview image. Then, the terminal determines whether virtual accessories have been assembled on the virtual weapon. Subsequently, the terminal can display the circular icons corresponding to the assembled virtual accessories in the first preview image as yellow, and display the circular icons corresponding to the unassembled virtual accessories in the first preview image as gray. Based on the above process, the terminal displays the first preview image in the accessory display area. Then, the terminal detects in real time whether the user presses a finger. When the user presses a finger, the terminal determines that the user's finger has moved upward in the Y-axis direction (vertical direction) by more than a first preset distance. The first preset distance can be the width of 5 pixels, and the embodiments of the present application do not limit the size of the first preset distance. That is, the terminal determines whether the user has triggered a swiping-up operation on the first preview image. When the user's finger has moved upward in the Y-axis direction by more than the first preset distance, the terminal switches the first preview image in the accessory display area to a second preview image. Then, the terminal detects in real time whether the user presses a finger. When the user presses a finger, the terminal determines that the user's finger has moved downward in the Y-axis direction by more than the first preset distance. That is, the terminal determines whether the user has triggered a swiping-down operation on the second preview image. When the user's finger has moved downward in the Y-axis direction by more than the first preset distance, the terminal switches the second preview image in the accessory display area to the first preview image.

[0096] In the second preview image, the user can perform operations such as disassembling, discarding, transferring, and replacing virtual accessories on the virtual weapon, thereby realizing the adjustment of virtual accessories on the virtual weapon, without the user opening other interfaces to adjust the virtual accessories, improving the efficiency of adjusting virtual accessories.

[0097] In some embodiments, the terminal can disassemble virtual accessories on the virtual weapon through the second preview image. Correspondingly, for any virtual accessory in the second preview image, in response to the disassembly operation of the virtual accessory, the terminal displays the accessory slot corresponding to the virtual accessory as empty in the second preview image. 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 embodiments of the present application do not limit the disassembly operation. Optionally, the disassembly operation is a click operation. Correspondingly, 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 the accessory slot corresponding to the virtual accessory as empty in the second preview image.

[0098] For example, Figure 11 is a schematic diagram of disassembling a virtual accessory provided according to an embodiment of the present application. Refer to Figure 11, in response to a click operation on the 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 that the accessory slot corresponding to the virtual accessory 1101 is empty in the second preview image. Among them, when the user's finger presses on the virtual accessory 1101, the terminal highlights the accessory slot of the virtual accessory 1101 to show the user which virtual accessory to operate has been selected. Among them, the terminal can choose a color different from the accessory slots of the unselected virtual accessories to highlight the accessory slot of the selected virtual accessory; or, the terminal can choose a brightness different from the accessory slots of the unselected virtual accessories to highlight the accessory slot of the selected virtual accessory. The embodiments of the present application do not limit the highlighting method.

[0099] In some embodiments, the terminal can discard any virtual accessory assembled on the virtual weapon through the second preview image. Accordingly, for any virtual accessory in the second preview image, in response to a discard operation on the virtual accessory, the terminal displays that the accessory slot corresponding to the virtual accessory is empty in the second preview image. The discard operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene. Then, the terminal can display the virtual accessory in the virtual scene. The embodiments of the present application do not limit the discard operation. Optionally, the discard operation is a swiping-up operation. Accordingly, for any virtual accessory in the second preview image, in response to a swiping-up operation on the virtual accessory, the terminal removes the virtual accessory from the virtual weapon and places it in the virtual scene.

[0100] For example, Figure 12 is a schematic diagram of discarding a virtual accessory provided according to an embodiment of the present application. Refer to Figure 12 , in response to a swiping-up operation on the virtual accessory 1201, the terminal removes the virtual accessory 1201 from the virtual weapon 1202 and places it in the virtual scene. The terminal displays that the accessory slot corresponding to the virtual accessory 1201 is empty in the second preview image. Among them, the terminal continuously detects whether the user presses a finger. In the case where the user presses a finger, if the user's finger presses within the accessory slot corresponding to the virtual accessory 1201 and the user's finger moves upward in the Y-axis direction by more than a second preset distance. The first preset distance can be the width of 15 pixels. The embodiments of the present application do not limit the size of the second preset distance. That is, the terminal determines whether the user has triggered a swiping-up operation on the virtual accessory 1201. In response to a swiping-up operation on the virtual accessory 1201, the terminal discards the virtual accessory 1201 in the virtual scene.

[0101] In some embodiments, the terminal can transfer virtual accessories on a certain virtual weapon to another virtual weapon through a second preview image. Optionally, a first virtual weapon and a second virtual weapon carried by a virtual character are displayed in a configuration preview area. A first virtual accessory assembled on the first virtual weapon is displayed in an accessory display area. The first virtual accessory belongs to the virtual accessories of the target type. Correspondingly, in the case that the second virtual weapon can assemble the virtual accessories of the target type and has not assembled the virtual accessories of the target type, in response to a transfer operation on the first virtual accessory in the second preview image, the terminal displays the accessory slot corresponding to the target type as empty among the multiple accessory slots corresponding to the first virtual weapon in the second preview image; and displays the first virtual accessory 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 virtual accessories on one virtual weapon to another virtual weapon. The transfer operation can be a drag operation on the virtual accessory, and the embodiments of the present application do not limit this. The first virtual weapon and the second virtual weapon in the above transfer process do not distinguish between the main weapon and the secondary weapon, and the transfer of virtual weapons can be achieved.

[0102] For example, Figure 13 is a schematic diagram of transferring virtual accessories provided according to an embodiment of the present application. Refer to Figure 13 , a telescopic sight 1302 is assembled on the first virtual weapon 1301. The second virtual weapon 1303 can assemble a telescopic sight and has not assembled a telescopic sight yet. In response to a transfer operation (drag operation) on the telescopic sight 1302, the terminal displays the accessory slot corresponding to the telescopic sight as empty among the multiple accessory slots corresponding to the first virtual weapon 1301 in the second preview image; and displays the telescopic sight 1302 in the accessory slot corresponding to the telescopic sight among the multiple accessory slots corresponding to the second virtual weapon 1303. Wherein, the transfer operation can be a drag operation on the virtual accessory (telescopic sight 1302), and the embodiments of the present application do not limit this.

[0103] In some embodiments, the terminal can replace virtual accessories on any two virtual weapons through a second preview image. Optionally, a first virtual weapon and a second virtual weapon carried by a virtual character are displayed in a configuration preview area. A first virtual accessory assembled on the first virtual weapon and a second virtual accessory assembled on the second virtual weapon are displayed in an accessory display area. The first virtual accessory and the second virtual accessory are of the same type of virtual accessories. Correspondingly, in response to a replacement operation on the first virtual accessory and the second virtual accessory in the second preview image, the terminal displays the second virtual accessory in the accessory slot corresponding to the first virtual weapon; and displays the first virtual accessory in the accessory slot corresponding to the second virtual weapon. The replacement operation is used to replace the virtual accessories of the same type on two virtual weapons.

[0104] For example, Figure 14It is a schematic diagram of replacing virtual accessories provided according to an embodiment of the present application. Refer to Figure 14 , a four - fold scope 1402 is assembled on the first virtual weapon 1401. An eight - fold scope 1404 is assembled on the second virtual weapon 1403. Both the four - fold scope 1402 and the eight - fold scope 1404 belong to aiming scopes. In response to the replacement operation of the four - fold scope 1402 and the eight - fold scope 1404, the terminal displays the eight - fold scope 1404 in the accessory slot corresponding to the first virtual weapon 1401; and displays the four - fold scope 1402 in the accessory slot corresponding to the second virtual weapon 1402. Among them, in response to the dragging operation of the four - fold scope 1402, if the four - fold scope 1402 is dragged to the accessory slot where the eight - fold scope 1404 is located, the terminal determines that the replacement operation between the four - fold scope 1402 and the eight - fold scope 1404 is triggered. Or, in response to the dragging operation of the eight - fold scope 1404, if the eight - fold scope 1404 is dragged to the accessory slot where the four - fold scope 1402 is located, the terminal determines that the replacement operation between the four - fold scope 1402 and the eight - fold scope 1404 is triggered.

[0105] To more clearly describe the process of adjusting the virtual weapon in the embodiments of the present application, the following further describes this process in conjunction with the accompanying drawings. Figure 15 It is a flowchart of adjusting a virtual weapon provided according to an embodiment of the present application. Refer to Figure 15, the terminal displays a second preview image in the accessory display area. Then, the terminal continuously detects whether the user presses a finger. When the user presses a finger, the terminal determines the position where the user's finger is pressed. If the user's finger presses on the border (A hot zone) of the accessory slot of the virtual accessory, when the user's finger moves downward in the Y-axis direction by more than a first preset distance (e.g., the 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 inside an empty accessory slot (B hot zone), the terminal determines that the user's operation is ineffective and does not produce any effect. If the user's finger presses inside an accessory slot with a virtual accessory (C hot zone), the following three situations may occur in subsequent operations. First, when the user releases the finger without any operation, that is, a click operation (disassembly operation) on the virtual accessory is triggered, the terminal disassembles the virtual accessory from the virtual weapon. Second, if the user's finger moves upward in the Y-axis direction by more than a second preset distance (e.g., the width of 15 pixels), that is, a discard operation on the virtual accessory is triggered, the terminal disassembles the virtual accessory from the virtual weapon and discards it into the virtual scene. Third, if the user's finger moves in the X-axis direction (horizontal direction), the terminal determines whether the virtual accessory can be assembled onto another virtual weapon. When the virtual accessory can be assembled onto another virtual weapon, the terminal determines whether the player's finger moves to the accessory slot corresponding to another virtual weapon and releases the finger. The terminal determines whether there is another virtual accessory in the accessory slot of the other virtual weapon. If there is another virtual accessory, the terminal replaces the two virtual accessories; if there is no other virtual accessory, the terminal assembles the virtual accessory onto the other virtual weapon.

[0106] The embodiment of the present application provides an assembly method for virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in the virtual scene. Since the virtual weapon carried by the virtual character is displayed in the weapon display area in the configuration preview area, and a first preview image is displayed in the accessory display area in the configuration preview area, the user can intuitively see the situation of the virtual accessories assembled on the virtual weapon without the user opening other interfaces to view the assembly situation of the virtual accessories on the virtual weapon. Therefore, when picking up a virtual accessory from the virtual material pile in the virtual scene, the picked-up virtual accessory can be directly assembled onto the corresponding virtual weapon according to the assembly situation of the virtual accessories on the current virtual weapon. The operation is simple, and there is no need for the user to open other interfaces to assemble the virtual accessories, which improves the efficiency of assembling virtual accessories. Moreover, in the configuration preview area, adjustment operations such as disassembling, discarding, transferring, and replacing virtual accessories can also be performed. Similarly, there is no need for the user to open other interfaces to adjust the virtual accessories, which also improves the efficiency of assembling virtual accessories. That is to say, all the user's requirements and operations for virtual accessories can be completed on the main interface, and there is no need to open the backpack interface anymore, reducing the operation process. At the same time, the above operations are completed on the main interface that displays the virtual scene, enabling the user's field of vision to observe the information that appears in the virtual scene at any time, avoiding missing the information in the virtual scene due to opening other interfaces and blocking the field of vision, thereby enhancing the user experience and allowing the user to focus more on the game. In addition, the above adjustment operations can all be achieved by simple interaction gestures such as clicking, dragging, and swiping up and down, without any other complex interaction operations and understandings, reducing the user's learning cost and also being able to increase the user experience, facilitating better participation in the game.

[0107] Figure 16 It is a block diagram of an assembly device for virtual accessories provided according to an embodiment of the present application. The assembly device for virtual accessories is used to execute the steps when the above-mentioned assembly method for virtual accessories is executed. Refer to Figure 16 The assembly device for virtual accessories includes: a display module 1601 and an update module 1602.

[0108] The display module 1601 is used to display a virtual scene, in which there are a virtual character and a virtual material pile, and the virtual material pile includes at least one virtual accessory;

[0109] The display module 1601 is further used to display a configuration preview area in the virtual scene when the virtual character carries a virtual weapon. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories assembled on the virtual weapon;

[0110] The display module 1601 is further configured to display a list of materials of the virtual material pile in the virtual scene when the distance between the virtual character and the virtual material pile meets the condition, and the list of materials includes at least one virtual accessory;

[0111] The update module 1602 is configured to update the display in the configuration preview area based on the virtual weapon and the virtual accessory indicated by the assembly operation in response to an assembly operation on any virtual accessory.

[0112] In some embodiments, the display module 1601 is configured to, when the virtual character carries a virtual weapon, obtain a first quantity and a second quantity. The first quantity is the number of types of virtual accessories required to be assembled on the virtual weapon, and the second quantity is the number of types of virtual accessories already assembled on the virtual weapon; based on the first quantity and the second quantity, display a configuration preview area in the virtual scene. The first preview image in the configuration preview area includes icons of the first quantity, and each icon is used to represent a corresponding type of virtual accessory. Among the icons of the first quantity, icons of the second quantity present a first state, and the other icons except the icons of the second quantity present a second state.

[0113] 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 in the first order when the virtual character interacts, and the second virtual weapon refers to the virtual weapon used in the second order when the virtual character interacts;

[0114] The display module 1601 is configured to, when the distance between the virtual character and the virtual material pile meets the condition, if there is a target virtual accessory in the virtual material pile, display a list of materials in the virtual scene. The list of materials includes an assembly control for the target virtual accessory, and the target virtual accessory is a virtual accessory that can be assembled on the second virtual weapon. The assembly control for the target virtual accessory is used to assemble the target virtual accessory onto the second virtual weapon.

[0115] In some embodiments, the display module 1601 is further configured to, in response to a switching operation on the first preview image, display a second preview image in the accessory display area. The second preview image shows accessory slots of the first quantity, and each accessory slot is used to display the corresponding type of assembled virtual accessory. The first quantity is the number of types of virtual accessories required to be assembled on the virtual weapon. Among the accessory slots of the first quantity, the accessory slots of the second quantity display the corresponding virtual accessories, and the second quantity is the number of types of virtual accessories already assembled on the virtual weapon.

[0116] In some embodiments, the display module 1601 is further configured to, for any virtual accessory in the second preview image, in response to a disassembly operation on the virtual accessory, display the corresponding accessory slot for the virtual accessory as empty in the second preview image. The disassembly operation is used to remove the virtual accessory from the virtual weapon and place it in the backpack of the virtual character.

[0117] In some embodiments, the display module 1601 is further configured to, for any virtual accessory in the second preview image, in response to a discard operation on the virtual accessory, display the corresponding accessory slot for the virtual accessory as empty in the second preview image. The discard operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene; and display the virtual accessory in the virtual scene.

[0118] In some embodiments, a first virtual weapon and a second virtual weapon carried by the virtual character are displayed in the configuration preview area, and a first virtual accessory assembled on the first virtual weapon is displayed in the accessory display area. The first virtual accessory belongs to the virtual accessories of the target type.

[0119] The display module 1601 is configured to, when the second virtual weapon is capable of assembling the virtual accessories of the target type and has not yet assembled the virtual accessories of the target type, in response to a transfer operation on the first virtual accessory in the second preview image, display the accessory slot corresponding to the target type as empty in the multiple accessory slots corresponding to the first virtual weapon in the second preview image, and display the first virtual accessory in the accessory slot corresponding to the target type in the multiple accessory slots corresponding to the second virtual weapon. The transfer operation is used to transfer the virtual accessory on one virtual weapon to another virtual weapon.

[0120] In some embodiments, a first virtual weapon and a second virtual weapon carried by the virtual character are displayed in the configuration preview area, and a first virtual accessory assembled on the first virtual weapon and a second virtual accessory assembled on the second virtual weapon are displayed in the accessory display area. The first virtual accessory and the second virtual accessory are virtual accessories of the same type.

[0121] The display module 1601 is configured to, in response to a replacement operation on the first virtual accessory and the second virtual accessory in the second preview image, display the second virtual accessory in the accessory slot corresponding to the first virtual weapon, and display the first virtual accessory in the accessory slot corresponding to the second virtual weapon. The replacement operation is used to replace the virtual accessories of the same type on the two virtual weapons.

[0122] The embodiment of the present application provides an assembly device for virtual accessories. When a virtual character carries a virtual weapon, a configuration preview area can be displayed in the virtual scene. Since the virtual weapon carried by the virtual character is displayed in the weapon display area in the configuration preview area, and a first preview image is displayed in the accessory display area in the configuration preview area, the user can intuitively see the situation of the virtual accessories assembled on the virtual weapon, without the user opening other interfaces to view the assembly situation of the virtual accessories on the virtual weapon. Therefore, when picking up virtual accessories from the virtual material pile in the virtual scene, the picked-up virtual accessories can be directly assembled onto the corresponding virtual weapon according to the assembly situation of the virtual accessories on the current virtual weapon. The operation is simple, without the user opening other interfaces to assemble the virtual accessories, improving the efficiency of assembling virtual accessories. Moreover, the above operation is completed in the interface for displaying the virtual scene, enabling the user's field of view to observe the information that appears in the virtual scene at any time, avoiding missing the information in the virtual scene due to blocking the field of view by opening other interfaces, thereby enhancing the user experience.

[0123] It should be noted that when the above-mentioned assembly device for virtual accessories runs the application program, only the division of the above-mentioned functional modules is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the above-mentioned assembly device for virtual accessories provided by the embodiment of the present application and the embodiment of the assembly method for virtual accessories belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.

[0124] Figure 17 It is a structural block diagram of a terminal 1700 provided according to an embodiment of the present application. The terminal 1700 can be a portable mobile terminal, such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 (Moving Picture Experts Group Audio Layer IV) player, a notebook computer or a desktop computer. The terminal 1700 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.

[0125] Generally, the terminal 1700 includes a processor 1701 and a memory 1702.

[0126] The processor 1701 may include one or more processing cores, such as a quad-core processor, an octa-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 used to process data in the wake state, also known as the CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 1701 may be integrated with a GPU (Graphics Processing Unit), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1701 may further include an AI (Artificial Intelligence) processor, and the AI processor is used to process computational operations related to machine learning.

[0127] The memory 1702 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 1702 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1702 is used to store at least one computer program, and the at least one computer program is used to be executed by the processor 1701 to implement the virtual accessory assembly method provided in the method embodiments of the present application.

[0128] In some embodiments, the terminal 1700 may further optionally include: a peripheral device interface 1703 and at least one peripheral device. The processor 1701, the memory 1702, and the peripheral device interface 1703 may be connected through a bus or signal lines. Each peripheral device may be connected to the peripheral device interface 1703 through a bus, signal lines, or a circuit board. Specifically, the peripheral devices 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.

[0129] The peripheral device interface 1703 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 1701 and the memory 1702. In some embodiments, the processor 1701, the memory 1702, and the peripheral device interface 1703 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1701, the memory 1702, and the peripheral device interface 1703 can be implemented on a separate chip or circuit board, and this embodiment does not limit this.

[0130] The radio frequency circuit 1704 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1704 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1704 converts an electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. In some embodiments, the radio frequency circuit 1704 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so on. The radio frequency circuit 1704 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G, and 5G), a wireless local area network, and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1704 may further include a circuit related to NFC (Near Field Communication), and this application does not limit this.

[0131] The display screen 1705 is used to display the UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1705 is a touch display screen, the display screen 1705 also has the ability to collect touch signals on or above the surface of the display screen 1705. The touch signals can be input to the processor 1701 as control signals for processing. At this time, the display screen 1705 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1705, which is disposed on the front panel of the terminal 1700; in other embodiments, there may be at least two display screens 1705, which are respectively disposed on different surfaces of the terminal 1700 or are in a foldable design; in other embodiments, the display screen 1705 may be a flexible display screen, which is disposed on the curved surface or the folding surface of the terminal 1700. Even, the display screen 1705 can also be set to an irregular non-rectangular shape, that is, a special-shaped screen. The display screen 1705 can be prepared from materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0132] The camera module 1706 is used to collect images or videos. In some embodiments, the camera module 1706 includes a front camera and a rear camera. Generally, the front camera is disposed on the front panel of the terminal, and the rear camera is disposed on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth camera, a wide-angle camera, and a telephoto camera respectively, so as to realize the function of background blurring by fusing the main camera and the depth camera, the function of panoramic shooting by fusing the main camera and the wide-angle camera, and the VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera module 1706 may further include a flash. The flash can be a single-color temperature flash or a two-color temperature flash. The two-color temperature flash refers to the combination of a warm light flash and a cold light flash, which can be used for light compensation under different color temperatures.

[0133] The audio circuit 1707 may include a microphone and a speaker. The microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals for input to the processor 1701 for processing, or input to the radio frequency circuit 1704 to achieve voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1700. The microphone may also be an array microphone or an omnidirectional collection microphone. The speaker is used to convert the electrical signal from the processor 1701 or the radio frequency circuit 1704 into sound waves. The speaker may be a traditional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into inaudible sound waves for uses such as ranging. In some embodiments, the audio circuit 1707 may further include a headphone jack.

[0134] The power supply 1708 is used to supply power to each component in the terminal 1700. The power supply 1708 may be alternating current, direct current, a primary battery or a rechargeable battery. When the power supply 1708 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charging technology.

[0135] In some embodiments, the terminal 1700 further includes one or more sensors 1709. The one or more sensors 1709 include but are not limited to: an acceleration sensor 1710, a gyroscope sensor 1711, a pressure sensor 1712, an optical sensor 1713, and a proximity sensor 1714.

[0136] The acceleration sensor 1710 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 1700. For example, the acceleration sensor 1710 can be used to detect the components of the gravitational acceleration on the three coordinate axes. The processor 1701 can control the display screen 1705 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1710. The acceleration sensor 1710 can also be used for collecting game or user's motion data.

[0137] The gyroscope sensor 1711 can detect the body direction and rotation angle of the terminal 1700. The gyroscope sensor 1711 can cooperate with the acceleration sensor 1710 to collect the 3D actions of the user on the terminal 1700. According to the data collected by the gyroscope sensor 1711, the processor 1701 can achieve the following functions: motion sensing (such as changing the UI according to the user's tilting operation), image stabilization during shooting, game control, and inertial navigation.

[0138] The pressure sensor 1712 can be disposed on the side frame of the terminal 1700 and / or the lower layer of the display screen 1705. When the pressure sensor 1712 is disposed on the side frame of the terminal 1700, it can detect the holding signal of the user on the terminal 1700, and the processor 1701 can perform left / right hand recognition or quick operation according to the holding signal collected by the pressure sensor 1712. When the pressure sensor 1712 is disposed on the lower layer of the display screen 1705, the processor 1701 can control the operable controls on the UI interface according to the pressure operation of the user on the display screen 1705. The operable controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.

[0139] The optical sensor 1713 is used to collect the ambient light intensity. In one embodiment, the processor 1701 can control the display brightness of the display screen 1705 according to the ambient light intensity collected by the optical sensor 1713. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1705 is increased; when the ambient light intensity is low, the display brightness of the display screen 1705 is decreased. In another embodiment, the processor 1701 can also dynamically adjust the shooting parameters of the camera module 1706 according to the ambient light intensity collected by the optical sensor 1713.

[0140] The proximity sensor 1714, also known as the distance sensor, is usually disposed on the front panel of the terminal 1700. The proximity sensor 1714 is used to collect the distance between the user and the front of the terminal 1700. In one embodiment, when the proximity sensor 1714 detects that the distance between the user and the front of the terminal 1700 is gradually decreasing, the processor 1701 controls the display screen 1705 to switch from the lit state to the off state; when the proximity sensor 1714 detects that the distance between the user and the front of the terminal 1700 is gradually increasing, the processor 1701 controls the display screen 1705 to switch from the off state to the lit state.

[0141] Those skilled in the art can understand that Figure 17 the structure shown in does not limit the terminal 1700, and it may include more or fewer components than shown in the figure, or combine some components, or adopt different component arrangements.

[0142] The embodiments of the present application also provide a computer-readable storage medium, in which at least one segment of computer program is stored. The at least one segment of 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 in the above embodiments. For example, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.

[0143] The embodiments of the present application also provide a computer program product, including a computer program, which is stored in a computer-readable storage medium. The processor of the 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 virtual accessory assembly method provided in the above various optional implementation manners.

[0144] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program mentioned above can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, or an optical disc, etc.

[0145] The above are only the optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for assembling virtual accessories, characterized in that, the method includes: displaying a virtual scene, in which there are virtual characters and virtual material piles, and the virtual material piles include at least one virtual accessory; when the virtual character carries a virtual weapon, a configuration preview area is displayed in the virtual scene, the configuration preview area includes a weapon display area and an accessory display area, the virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area, and the first preview image is used to represent the number of virtual accessories assembled on the virtual weapon; when the distance between the virtual character and the virtual material pile meets the condition, a material list of the virtual material pile is displayed in the virtual scene, and the material list includes the at least one virtual accessory; in response to an assembly operation on any virtual accessory, based on the virtual weapon and the virtual accessory indicated by the assembly operation, the display in the configuration preview area is updated.

2. The method according to claim 1, characterized in that, the step of displaying a configuration preview area in the virtual scene when the virtual character carries a virtual weapon 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 required to be assembled on 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, the configuration preview area is displayed in the virtual scene, and the first preview image in the configuration preview area includes the first quantity of icons, each icon being used to represent a corresponding type of virtual accessory, and the second quantity of icons among the first quantity of icons are in a first state, and the other icons except the second quantity of icons are in a second state.

3. The method according to claim 1, characterized in that, 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; the step of displaying a material list of the virtual material pile in the virtual scene when the distance between the virtual character and the virtual material pile meets the condition includes: when the distance between the virtual character and the virtual material pile meets the condition, if there is a target virtual accessory in the virtual material pile, the material list is displayed in the virtual scene, and the material list includes an assembly control for the target virtual accessory, and the target virtual accessory is a virtual accessory that can be assembled on the second virtual weapon, and the assembly control for the target virtual accessory is used to assemble the target virtual accessory onto the second virtual weapon.

4. The method according to claim 1, characterized in that, the method further includes: In response to a switching operation on the first preview image, a second preview image is displayed in the accessory display area. The second preview image shows a first number of accessory slots, and each accessory slot is used to display the assembled virtual accessories of the corresponding type. The first number is the number of types of virtual accessories required to be assembled for the virtual weapon. In the first number of accessory slots, a second number of accessory slots display the corresponding virtual accessories, and the second number is the number of types of virtual accessories already assembled on the virtual weapon.

5. The method according to claim 4, wherein, the method further includes: For any virtual accessory in the second preview image, in response to a disassembling operation on the virtual accessory, the accessory slot corresponding to the virtual accessory is displayed as empty in the second preview image. The disassembling operation is used to remove the virtual accessory from the virtual weapon and place it in the backpack of the virtual character.

6. The method according to claim 4, wherein, the method further includes: For any virtual accessory in the second preview image, in response to a discarding operation on the virtual accessory, the accessory slot corresponding to the virtual accessory is displayed as empty in the second preview image. The discarding operation is used to remove the virtual accessory from the virtual weapon and place it in the virtual scene; The virtual accessory is displayed in the virtual scene.

7. The method according to claim 4, wherein, The first virtual weapon and the second virtual weapon carried by the virtual character are displayed in the configuration preview area, and the first virtual accessory assembled on the first virtual weapon is displayed in the accessory display area. The first virtual accessory belongs to the virtual accessories of the target type; the method further includes: When the second virtual weapon can assemble the virtual accessories of the target type and has not yet assembled the virtual accessories of the target type, in response to a transfer operation on the first virtual accessory in the second preview image, in the plurality of accessory slots corresponding to the first virtual weapon in the second preview image, the accessory slot corresponding to the target type is displayed as empty, and in the accessory slot corresponding to the target type in the plurality of accessory slots corresponding to the second virtual weapon, the first virtual accessory is displayed. The transfer operation is used to transfer the virtual accessories on one virtual weapon to another virtual weapon.

8. The method according to claim 4, wherein, The first virtual weapon and the second virtual weapon carried by the virtual character are displayed in the configuration preview area, and the first virtual accessory assembled on the first virtual weapon and the second virtual accessory assembled on the second virtual weapon are displayed in the accessory display area. 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 on the first virtual accessory and the second virtual accessory in the second preview image, the second virtual accessory is displayed in the accessory slot corresponding to the first virtual weapon, and the first virtual accessory is displayed in the accessory slot corresponding to the second virtual weapon. The replacement operation is used to replace virtual accessories of the same type on two virtual weapons.

9. An assembly device for virtual accessories, characterized in that the device comprises: a display module, configured to display a virtual scene, in which there are virtual characters and virtual supply piles, and at least one virtual accessory is included in the virtual supply piles; the display module is further configured to, when the virtual character is carrying a virtual weapon, display a configuration preview area in the virtual scene. The configuration preview area includes a weapon display area and an accessory display area. The virtual weapon is displayed in the weapon display area, and a first preview image is displayed in the accessory display area. The first preview image is used to represent the number of virtual accessories already assembled on the virtual weapon; the display module is further configured to, when the distance between the virtual character and the virtual supply pile meets a condition, display a supply list of the virtual supply pile in the virtual scene. The supply list includes the at least one virtual accessory; an update module, configured to, in response to an assembly operation on any virtual accessory, update the display in the configuration preview area based on the virtual weapon and the virtual accessory indicated by the assembly operation.

10. A computer device, characterized in that the computer device includes a processor and a memory. The memory is used to store at least one segment of computer program, and the at least one segment of computer program is loaded and executed by the processor to perform the virtual accessory assembly method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store at least one segment of computer program, and the at least one segment of computer program is used to perform the virtual accessory assembly method according to any one of claims 1 to 8.

12. A computer program product, including a computer program, characterized in that when the computer program is executed by a processor, it implements the virtual accessory assembly method according to any one of claims 1 to 8.