Accessory assembly method, device, storage medium and computer equipment

By automatically assembling virtual weapon accessories in a virtual shooting environment, the problem of frequent replacement of accessories in different shooting scenarios is solved, and the operation efficiency is improved.

CN113101661BActive Publication Date: 2024-11-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110506789.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-10
Publication Date
2024-11-08
Estimated Expiration
2041-05-10

AI Technical Summary

Technical Problem

In the prior art, users need to frequently replace accessories for virtual weapons in different shooting scenarios, resulting in an increase in operating time.

Method used

By displaying the graphical user interface, in response to the user's adjustment operation instructions, it automatically determines and assembles virtual weapon accessories suitable for the current shooting parameters, reducing the operation steps for accessories replacement.

Benefits of technology

Reduces the operating time required for adding or switching virtual weapon accessories and improves operating efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113101661B_ABST
    Figure CN113101661B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses an accessory assembly method, device, storage medium and computer equipment, the method comprising: displaying a graphical user interface, the graphical user interface comprising at least part of a virtual scene and at least part of a virtual object located in the virtual scene; responding to an adjustment operation instruction, determining corresponding target shooting parameters, the target shooting parameters comprising at least one of the following: shooting range, shooting distance, shooting accuracy; determining the target accessories of a virtual weapon being used by a virtual object according to the target shooting parameters, the target accessories being accessories currently owned by the virtual object; assembling the target accessories to the virtual weapon; responding to an attack instruction, executing an attack operation according to the target accessories and the virtual weapon. In this way, by adjusting the operation instruction, the attack attribute of the current virtual weapon is adjusted, thereby reducing the operation time required for assembling or switching weapon accessories.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to an accessory assembly method, device, computer-readable storage medium, and computer equipment. Background Art

[0002] In recent years, with the development and popularization of computer equipment technology, more and more applications with three-dimensional virtual environments have emerged, such as virtual reality applications, three-dimensional map programs, military simulation programs, first-person shooting games (First person shooting game, FPS), multiplayer online tactical competitive games (Multiplayer Online Battle Arena Games, MOBA), etc.

[0003] In the prior art, taking FPS games as an example, when a user controls a virtual weapon to perform a shooting operation, the attack attributes required by the virtual weapon are different for different shooting scenes. For example, in a close-range shooting scene, the attack attributes required by the virtual weapon are high damage, a large range, and a short shooting distance.

[0004] During the research and practice of the prior art, the inventor of the present application discovered that in the prior art, users need to open their backpacks to add or switch weapon accessories or directly switch virtual weapons for different shooting scenarios. When there are many accessories or virtual weapons carried, the required operation time also increases. Summary of the invention

[0005] The embodiments of the present application provide an accessory assembly method and device, which can reduce the operation time required for adding or switching weapon accessories, or switching virtual weapons.

[0006] To solve the above technical problems, the present application provides the following technical solutions:

[0007] A method for assembling accessories, comprising:

[0008] displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene;

[0009] In response to the adjustment operation instruction, determining corresponding target shooting parameters, wherein the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy;

[0010] Determine, according to the target shooting parameter, a target accessory of the virtual weapon being used by the virtual object, the target accessory being an accessory currently possessed by the virtual object;

[0011] Assembling the target accessory to the virtual weapon;

[0012] In response to the attack instruction, an attack operation is performed according to the target accessory and the virtual weapon.

[0013] An accessory assembly device, comprising:

[0014] A display module, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene and at least a portion of virtual objects located in the virtual scene;

[0015] A first determination module is used to determine corresponding target shooting parameters in response to the adjustment operation instruction, wherein the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy;

[0016] A second determination module is used to determine a target accessory of the virtual weapon being used by the virtual object according to the target shooting parameter, wherein the target accessory is an accessory currently owned by the virtual object;

[0017] An assembly module, used for assembling the target accessories to the virtual weapon;

[0018] The response module is used to respond to the attack instruction and perform the attack operation according to the target accessory and the virtual weapon.

[0019] In some embodiments, the second determining module includes:

[0020] A first acquisition submodule is used to acquire a designated accessory that matches the target shooting parameter;

[0021] A first judgment submodule is used to judge whether the specified accessory exists in the accessories currently owned by the virtual object, and obtain a judgment result;

[0022] The first determination submodule is configured to determine, based on the determination result, a target accessory of the virtual weapon being used by the virtual object.

[0023] In some embodiments, the first determining submodule includes:

[0024] a first determining unit, configured to determine the designated accessory among the accessories currently possessed by the virtual object as a target accessory if the determination result is that the designated accessory exists among the accessories currently possessed by the virtual object;

[0025] a second determining unit, configured to determine the non-existent designated accessory as a missing accessory, and determine a missing accessory type corresponding to the missing accessory if the judgment result is that the designated accessory does not exist in the accessories currently owned by the virtual object;

[0026] A first acquisition unit, configured to acquire candidate accessories of the missing accessory type from accessories currently owned by the virtual object;

[0027] The third determining unit is configured to determine the candidate accessory as a target accessory.

[0028] In some embodiments, the first determining submodule further includes:

[0029] A second acquisition unit is used to acquire accessories in a portion of the virtual scene located in the viewing direction of the virtual object to obtain an accessories set;

[0030] A first judging unit, configured to judge whether the missing accessory exists in the accessory set;

[0031] A generating unit is used to generate prompt information if the missing accessory exists in the accessory set, wherein the prompt information is used to prompt that the missing accessory exists in a part of the virtual scene located in the viewing direction of the virtual object.

[0032] In some embodiments, the first determining submodule further includes:

[0033] A picking unit, configured to pick up the missing accessory when the missing accessory exists within the search range of the virtual object in the virtual scene;

[0034] A second judgment unit, configured to judge whether the missing accessory type exists in the accessory types of accessories currently assembled on the virtual object;

[0035] an uninstallation unit, configured to uninstall the installed accessories corresponding to the missing accessory type and assemble the missing accessory if the missing accessory type exists in the accessory types of the accessories currently assembled to the virtual object;

[0036] The assembling unit is configured to assemble the missing accessory if the missing accessory type does not exist in the accessory types of accessories currently assembled to the virtual object.

[0037] In some embodiments, the assembly module comprises:

[0038] The assembly submodule is used to unload the assembled accessories and assemble the target accessories.

[0039] In some embodiments, the graphical user interface includes a targeting mark, and the first determination module includes:

[0040] A first adjustment submodule is configured to adjust the aiming range of the aiming mark in response to an adjustment operation instruction to obtain an adjusted target aiming range; and

[0041] The second adjustment submodule is used to adjust the shooting parameters in response to the adjustment operation instruction to obtain the adjusted target shooting parameters.

[0042] In some embodiments, the second adjustment submodule includes:

[0043] A third acquisition unit is used to acquire the current shooting parameters of the current virtual weapon;

[0044] a fourth determining unit, configured to determine a shooting adjustment parameter in response to the adjustment operation instruction;

[0045] The fifth determining unit is used to determine the adjusted target shooting parameters based on the current shooting parameters and the shooting adjustment parameters.

[0046] In some embodiments, the graphical user interface includes an adjustment control, and the first determining module includes:

[0047] The receiving submodule is used to receive an adjustment operation for the adjustment control and trigger an adjustment operation instruction.

[0048] In some embodiments, the adjustment operation instruction is a sliding operation of at least two fingers on the user interface;

[0049] The first adjustment submodule includes:

[0050] A fourth acquisition unit, configured to acquire a first touch position and a second touch position of the sliding operation on the user interface;

[0051] a fifth acquiring unit, configured to acquire a target touch distance between the first touch position and the second touch position;

[0052] The adjustment unit is used to adjust the aiming range of the aiming mark based on the target touch distance to obtain an adjusted target aiming range.

[0053] In some embodiments, the first adjustment submodule further includes:

[0054] A third judgment unit is used to judge whether the sliding operation stays on the user interface for a time period greater than a preset time period before sliding;

[0055] a hiding unit, configured to hide the aiming mark at a preset time interval if the sliding operation stays on the user interface for a time period longer than a preset time period before sliding, and to generate a prompt message in a designated area of ​​the user interface, wherein the prompt message is used to prompt an adjustment method of the aiming mark;

[0056] The execution unit is used to return to the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface when it is detected that the sliding operation slides on the user interface.

[0057] In some embodiments, the adjustment unit is used to:

[0058] Determine a target touch distance interval corresponding to the target touch distance in a plurality of touch distance intervals;

[0059] Determine the target aiming range corresponding to the target touch distance interval according to the first mapping relationship;

[0060] The aiming range of the aiming mark is adjusted based on the center point of the aiming mark until the aiming range matches the target aiming range.

[0061] In some embodiments, the graphical user interface further includes a first response area and a second response area, and the touch operation is a pressing operation on the first response area or the second response area;

[0062] The first adjustment submodule includes:

[0063] A sixth acquisition unit, configured to acquire a pressing duration of the pressing operation in the first response area or the second response area;

[0064] an increasing unit, configured to increase the aiming range of the aiming mark based on the pressing duration when detecting that the pressing operation acts within the first response area, so as to obtain an increased target aiming range;

[0065] A reducing unit is used to reduce the aiming range of the aiming mark based on the pressing duration when it is detected that the pressing operation acts in the second response area, so as to obtain a reduced target aiming range.

[0066] In some embodiments, the enlarging unit is used to:

[0067] Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship;

[0068] Taking the center point of the aiming mark as a reference, increasing the aiming range of the aiming mark on the user interface until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range;

[0069] The reducing unit is used for:

[0070] Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship;

[0071] Taking the center point of the aiming mark as a reference, the aiming range of the aiming mark is reduced until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

[0072] A computer-readable storage medium stores a plurality of instructions, wherein the instructions are suitable for a processor to load to execute the steps in the above-mentioned accessory assembly method.

[0073] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the accessory assembly method as described above when executing the program.

[0074] The embodiment of the present application displays a graphical user interface, the graphical user interface includes at least part of a virtual scene and at least part of a virtual object located in the virtual scene; in response to an adjustment operation instruction, the corresponding target shooting parameter is determined, the target shooting parameter includes at least one of the following: shooting range, shooting distance, shooting accuracy; according to the target shooting parameter, the target accessory of the virtual weapon being used by the virtual object is determined, the target accessory is the accessory currently owned by the virtual object; the target accessory is assembled to the virtual weapon; in response to an attack instruction, an attack operation is performed according to the target accessory and the virtual weapon. In this way, by adjusting the operation instruction, the attack attribute of the current virtual weapon is adjusted, thereby reducing the operation time required for assembling or switching weapon accessories. BRIEF DESCRIPTION OF THE DRAWINGS

[0075] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0076] Figure 1a A system schematic diagram of an accessory assembly system provided in an embodiment of the present application.

[0077] Figure 1b A first flow chart of the accessory assembly method provided in an embodiment of the present application.

[0078] Figure 1c A schematic diagram of a user interface provided for an embodiment of the present application.

[0079] Figure 1d A schematic diagram of a graphical user interface provided by an embodiment of the present application when a user adjusts an aiming mark.

[0080] Figure 1eA schematic diagram of adjustment for a user when adjusting an aiming mark provided in an embodiment of the present application.

[0081] Figure 1f A schematic diagram of adjusting the aiming mark by pressing operation provided in an embodiment of the present application.

[0082] Figure 1g A schematic diagram of adjusting the aiming range by adjusting the progress bar provided in an embodiment of the present application.

[0083] Figure 1h A schematic diagram of a prompt when there are missing accessories in the virtual scene provided in an embodiment of the present application.

[0084] Figure 2a A second flow chart of the accessory assembly method provided in an embodiment of the present application.

[0085] Figure 2b A third flow chart of the accessory assembly method provided in an embodiment of the present application.

[0086] Figure 3 A schematic diagram of the structure of an accessory assembly device provided in an embodiment of the present application;

[0087] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0088] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0089] The embodiments of the present application provide an accessory assembly method, device, storage medium and computer equipment. Specifically, the accessory assembly method of the embodiments of the present application can be executed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal device can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and basic cloud computing services such as big data and artificial intelligence platforms.

[0090] For example, when the accessory assembly method is run on a terminal, the terminal device stores a game application and presents part of the game scene in the game through a display component. The terminal device is used to interact with the user through a graphical user interface, for example, the game application is downloaded and installed and run by the terminal device. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to operation instructions, and control the display of the graphical user interface on the touch display screen.

[0091] For example, when the accessory assembly method is run on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operation mode, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the accessory assembly method are completed on the cloud gaming server. The game screen presentation is completed on the client side of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a PDA, a personal digital assistant, etc., but the terminal device for assembling game accessories is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.

[0092] See also Figure 1a , Figure 1a A system diagram of an accessory assembly device provided in an embodiment of the present application. The system may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by the user can be connected to the servers of different games through the network 4000. The terminal 1000 is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the terminal 1000 has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at multiple points of one or more touch-controlled display screens. In addition, when the system includes multiple terminals 1000, multiple servers 2000, and multiple networks 4000, different terminals 1000 can be connected to each other through different networks 4000 and different servers 2000. The network 4000 can be a wireless network or a wired network, such as a wireless network such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, different terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals 1000 and connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases 3000, which are coupled to different servers 2000, and information related to the game environment can be continuously stored in the databases 3000 when different users are online playing multi-player games.

[0093] The embodiment of the present application provides an accessory assembly method, which can be executed by a terminal or a server. The embodiment of the present application takes the accessory assembly method executed by a terminal as an example for explanation. Among them, the terminal includes a display component and a processor, and the display component is used to present a graphical user interface and receive an operation instruction generated by a user acting on the display component. When the user operates the graphical user interface through the display component, the graphical user interface can control the local content of the terminal by responding to the received operation instruction, and can also control the content of the opposite server by responding to the received operation instruction. For example, the operation instruction generated by the user acting on the graphical user interface includes an instruction for starting a game application, and the processor is configured to start the game application after receiving the instruction to start the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on a touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously at multiple points on the screen. The user uses a finger to perform a touch operation on the graphical user interface, and when the graphical user interface detects the touch operation, the different virtual objects in the graphical user interface of the game are controlled to perform actions corresponding to the touch operation. For example, the game can be any of the games such as casual games, action games, role-playing games, strategy games, sports games, puzzle games, first person shooting games (First person shooting games, FPS), etc. Among them, the game can include a virtual scene of the game drawn on a graphical user interface. In addition, the virtual scene of the game can include one or more virtual objects controlled by a user (or player), such as a virtual character. In addition, the virtual scene of the game can also include one or more obstacles, such as railings, gullies, walls, etc., to limit the movement of virtual objects, such as limiting the movement of one or more objects to a specific area within the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide help to the player, provide virtual services, increase the score related to the player's performance, etc. In addition, the graphical user interface can also present one or more indicators to provide indication information to the player. For example, the game can include a virtual object controlled by a player and one or more other virtual objects (such as an enemy character). In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects can be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a man-machine battle mode. For example, a virtual object has various skills or abilities that a game player can use to achieve a goal. For example, a virtual object has one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities can be activated by the game player using one of a plurality of preset touch operations with the touch display screen of the terminal.The processor may be configured to present a corresponding game screen in response to an operation instruction generated by a user's touch operation.

[0094] It should be noted that Figure 1a The system diagram of the accessory assembly system shown is merely an example. The accessory assembly system and scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art will appreciate that with the evolution of the accessory assembly system and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0095] In this embodiment, the description will be made from the perspective of an accessory assembly device, which can be specifically integrated into a computer device having a storage unit and a microprocessor installed therein and having computing capabilities.

[0096] See also Figure 1b , Figure 1b The first flow chart of the accessory assembly method provided in the embodiment of the present application. The accessory assembly method includes:

[0097] In step 101 , a graphical user interface is displayed, where the graphical user interface includes at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene.

[0098] Among them, the graphical user interface displays part of the virtual scene in the game scene. The virtual scene is a virtual environment provided when the application is running on the terminal. It can be a simulated environment of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The environmental picture displayed on the graphical user interface is the environmental picture presented when the virtual object observes the three-dimensional virtual environment. The user controls the virtual object in the game scene through the terminal, and the virtual object can observe the three-dimensional virtual environment through the camera model. Taking FPS games as an example, when in the first-person perspective, the camera model is located at the head or neck of the first virtual object, and when in the third-person perspective, the camera model is located behind the first virtual object. Therefore, some virtual objects, such as arms or the upper body of virtual objects, are also included in the graphical user interface. The graphical user interface is the environmental picture presented by observing the three-dimensional virtual environment through a camera model at a certain perspective.

[0099] For details, please refer to Figure 1c , Figure 1cA user interface schematic diagram provided by an embodiment of the present application. The user interface is presented by the screen of the terminal 1000, and includes a virtual object 100 controlled by the user, an aiming mark 200 for prompting the aiming position of the virtual weapon in the user interface, a cursor control 300 for prompting the user of the current direction information of the virtual object 100, a movement control 400 for controlling the movement of the virtual object 100 in the three-dimensional virtual environment, an aiming control 500 that can be used by the first virtual object 100 when attacking, a map control 600 for prompting the user of the position of the first virtual object 100 in the three-dimensional virtual environment, and an attack control 700 for controlling the first virtual object 100 to perform an attack operation in the three-dimensional virtual environment. Among them, an indication control 301 is also provided in the cursor control 300, which is used to indicate the direction of the first virtual object 100 in the cursor control 300.

[0100] In step 102, in response to the adjustment operation instruction, the corresponding target shooting parameters are determined, and the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy.

[0101] The user can adjust the shooting parameters of the virtual weapon used by the current virtual object through adjustment operations. The target shooting parameters include but are not limited to: shooting range, shooting distance, and shooting accuracy.

[0102] In some embodiments, the graphical user interface includes a sighting mark, and the step of determining the corresponding target shooting parameter in response to the adjustment operation instruction includes:

[0103] (1) in response to the adjustment operation instruction, adjusting the aiming range of the aiming mark to obtain an adjusted target aiming range; and

[0104] (2) In response to the adjustment operation instruction, the shooting parameters are adjusted to obtain the adjusted target shooting parameters.

[0105] Among them, since the parameters of the virtual weapon will change according to the user's adjustment operation, the aiming mark corresponding to the virtual weapon will also change accordingly. For example, the aiming range corresponding to the aiming mark is expanded or reduced. Therefore, the aiming range of the aiming mark can be adjusted while adjusting the shooting parameters of the virtual weapon according to the adjustment operation instruction of the adjustment operation.

[0106] Specifically, Figure 1c The aiming mark 200 in the figure is a cross-shaped aiming mark composed of two line segments arranged at intervals in the horizontal direction and two line segments arranged at intervals in the vertical direction, and the four line segments are at a certain distance from the center point of the user interface, so as to form a cross-shaped aiming mark as shown in FIG. Figure 1cThe aiming range A shown in the figure is a circular area or an elliptical area formed by connecting the center point of the user interface with the outer boundary and one end of the four line segments close to the center point of the user interface. The aiming mark 200 can also be a circular aiming mark formed by connecting the center of the user interface with a certain distance as the radius, and the circular area is the circular area formed by the four line segments in the cross-shaped aiming mark. The shape of the aiming mark is not limited here.

[0107] Specifically, the user can adjust the aiming range of the aiming mark 200 through adjustment operations. For example, the two horizontal line segments and the two vertical line segments in the cross-shaped aiming mark are adjusted to move away from or closer to each other; the size of the circular area of ​​the circular aiming mark is adjusted, etc., so as to achieve the change of the aiming range when the virtual weapon aims at the target object.

[0108] In some embodiments, the step of adjusting the shooting parameters in response to the adjustment operation instruction to obtain the adjusted target shooting parameters includes:

[0109] (1.1) Obtain the current shooting parameters of the current virtual weapon;

[0110] (1.2) determining a shooting adjustment parameter in response to an adjustment operation instruction;

[0111] (1.3) Determine adjusted target shooting parameters based on the current shooting parameters and the shooting adjustment parameters.

[0112] Among them, the method of adjusting the shooting parameters of the virtual weapon can be: obtaining the current shooting parameters corresponding to the current virtual weapon, for example: the shooting range is a, the shooting distance is b, and the shooting accuracy is c; then determining the shooting adjustment parameters according to the adjustment operation instructions, for example: the adjustment amount of the shooting range is d, the adjustment amount of the shooting distance is e, and the adjustment amount of the shooting accuracy is f; thereby, based on the current shooting parameters and the shooting adjustment parameters, it can be determined that the adjusted target shooting parameters are the final shooting parameters determined according to the current shooting parameters and the shooting adjustment parameters.

[0113] Specifically, when the adjustment operation instruction is used to increase the shooting adjustment parameter, the adjusted target shooting parameter is the sum of the current shooting parameter and the shooting adjustment parameter, for example: the shooting range in the target shooting parameter is a+d, the shooting distance is b+e, and the shooting accuracy is c+f; when the adjustment operation instruction is used to reduce the shooting adjustment parameter, the adjusted target shooting parameter is the difference between the current shooting parameter and the shooting adjustment parameter, for example: the shooting range in the target shooting parameter is ad, the shooting distance is be, and the shooting accuracy is cf. For the specific situation where some parameters are increased and some parameters are decreased, appropriate changes can be made, which are not limited here.

[0114] In some embodiments, the graphical user interface includes an adjustment control, and before the step of adjusting the aiming range of the aiming mark in response to the adjustment operation instruction, the step further includes:

[0115] An adjustment operation for the adjustment control is received, and an adjustment operation instruction is triggered.

[0116] Among them, Figure 1d As shown, Figure 1d A schematic diagram of a graphical user interface provided by an embodiment of the present application when a user adjusts an aiming mark. An adjustment control for guiding the user to adjust the aiming mark is provided in the graphical user interface. A paragraph can be provided in advance in the adjustment control to guide the user to adjust the aiming mark, for example: slide toward the center to change the aiming mark. Thus, when the user performs an adjustment operation on the adjustment control, an adjustment operation for the adjustment control can be received, triggering an adjustment operation instruction.

[0117] In some embodiments, the adjustment operation is a sliding operation of at least two fingers on the user interface;

[0118] The step of adjusting the aiming range of the aiming mark in response to the aiming mark adjustment operation on the user interface to obtain the adjusted target aiming range includes:

[0119] (1) obtaining a first touch position and a second touch position of the sliding operation on the user interface;

[0120] (2) obtaining a target touch distance between the first touch position and the second touch position;

[0121] (3) Adjusting the aiming range of the aiming mark based on the target touch distance to obtain an adjusted target aiming range.

[0122] Among them, Figure 1e As shown, Figure 1e A schematic diagram of the user adjusting the aiming mark provided in an embodiment of the present application. The user can slide on the user interface with at least two fingers to increase or decrease the target aiming range of the aiming mark. The user can adjust the aiming mark by sliding with at least two fingers of one hand (thumb and index finger), or by sliding with two fingers of both hands (left thumb and right thumb), and the sliding operation is not limited here.

[0123] Specifically, the sliding operation will form at least one first touch position T1 and a second touch position T2 on the user interface. There is a target touch distance between the first touch position and the second touch position (there is a target touch distance L between TI and T2). The aiming range of the aiming mark is adjusted according to the target touch distance to obtain an adjusted target aiming range.

[0124] Among them, a coordinate system can be established for the user interface. When a sliding operation forms at least a first touch position T1 and a second touch position T2 on the user interface, the target touch distance between the first touch position and the second touch position can be obtained by obtaining the coordinates of the first touch position and the second touch position.

[0125] In some implementations, before the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface, the method further includes:

[0126] (1) determining whether the sliding operation stays on the user interface for a time period greater than a preset time period before sliding;

[0127] (2) if the sliding operation stays on the user interface for a time period longer than a preset time period before the sliding operation, hiding the aiming mark at a preset time interval and generating a prompt message in a designated area of ​​the user interface, the prompt message being used to prompt an adjustment method of the aiming mark;

[0128] (3) When it is detected that the sliding operation is sliding on the user interface, return to the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface.

[0129] In order to prevent the user's sliding operation from adjusting other content in the game, a touch feedback function can be designed for the aiming mark adjustment operation, thereby prompting the user that the aiming range of the aiming mark is currently being adjusted.

[0130] Specifically, it can be determined whether the time that the sliding operation stays on the user interface before sliding is greater than the preset time; if the time that the sliding operation stays on the user interface before sliding is greater than the preset time, the aiming mark can be triggered to hide at a preset time interval, thereby achieving a looming display state of the aiming mark, so as to prompt the user that the current sliding operation is an aiming mark adjustment operation for the aiming mark.

[0131] If the sliding operation stays on the user interface for longer than a preset time before sliding, the computer device may be triggered to vibrate, thereby providing vibration feedback to the user. In addition, when the aiming mark is displayed in a half-displayed state, a prompt effect may be displayed in a designated area of ​​the user interface to prompt the user to adjust the aiming range of the aiming mark, such as moving two fingers away from each other to increase the aiming range, or moving two fingers closer together to reduce the aiming range.

[0132] In some implementations, the step of adjusting the aiming range of the aiming mark based on the target touch distance to obtain an adjusted target aiming range includes:

[0133] (1.1) determining a target touch distance interval corresponding to the target touch distance in a plurality of touch distance intervals;

[0134] (1.2) determining the target aiming range corresponding to the target touch distance interval according to the first mapping relationship;

[0135] (1.3) Using the center point of the aiming mark as a reference, adjust the aiming range of the aiming mark until the aiming range matches the target aiming range.

[0136] Among them, multiple touch distance intervals and multiple aiming ranges corresponding to the multiple touch distance intervals can be set in advance, wherein the aiming range is the area of ​​the circular area or elliptical area of ​​the aiming range. For example, Figure 1c The circular area of ​​the aiming range A in the target touch distance interval is represented by the area of ​​the circular area of ​​the aiming range A in the target touch distance interval. Different touch distance intervals correspond to different aiming ranges. Therefore, a target touch distance interval can be selected according to the target touch distance in the multiple touch distance intervals. And according to the mapping relationship between the touch distance interval and the aiming range (the first preset), the target aiming range corresponding to the target touch distance interval is determined.

[0137] Specifically, after determining the target aiming range, the aiming mark can be adjusted until the aiming range of the aiming mark matches the target aiming range. Since the center point of the aiming mark coincides with the center point of the user interface, the aiming range of the aiming mark can be adjusted based on the center point of the aiming mark.

[0138] In some embodiments, the user interface further includes a first response area and a second response area, and the touch operation is a pressing operation on the first response area or the second response area;

[0139] The step of adjusting the aiming range of the aiming mark in response to the touch operation on the response area to obtain an adjusted target aiming range includes:

[0140] (1) obtaining a pressing duration of the pressing operation in the first response area or the second response area;

[0141] (2) when it is detected that the pressing operation acts within the first response area, increasing the aiming range of the aiming mark based on the pressing duration to obtain an increased target aiming range;

[0142] (3) When it is detected that the pressing operation is applied to the second response area, the aiming range of the aiming mark is reduced based on the pressing duration to obtain a reduced target aiming range.

[0143] Among them, a response area for adjusting the aiming mark can be set on the user interface. Since the aiming range can be increased or decreased when adjusting the aiming range, different response areas can be set for different adjustment functions. Therefore, the first response area can be set to receive the user's pressing operation to increase the aiming range; the second response area can be set to receive the user's pressing operation to decrease the aiming range.

[0144] Specifically, Figure 1f As shown, Figure 1f A schematic diagram of adjusting the aiming mark by pressing operation provided in an embodiment of the present application. The first response area and the second response area can receive a user's pressing operation for adjusting the aiming mark by setting corresponding controls in the user interface, wherein a reduction control 800 for reducing the aiming range and an increase control 900 for increasing the aiming range are reserved in the user interface, the first response area is the display area of ​​the increase control 900, and the second response area is the display area of ​​the reduction control 800. The target aiming range after increase or decrease can be determined by continuously pressing the reduction control 800 or the increase control 900.

[0145] In some embodiments, when it is detected that the pressing operation acts on the first response area, the step of increasing the aiming range of the aiming mark based on the pressing duration to obtain an increased target aiming range includes:

[0146] (1.1) determining a target adjustment range corresponding to the pressing duration according to the second mapping relationship;

[0147] (1.2) taking the center point of the aiming mark as a reference, increasing the aiming range of the aiming mark on the user interface until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range;

[0148] The step of reducing the aiming range of the aiming mark based on the pressing duration to obtain a reduced target aiming range when the pressing operation is detected to act within the second response area includes:

[0149] (1.3) determining a target adjustment range corresponding to the pressing duration according to the second mapping relationship;

[0150] (1.4) Taking the center point of the aiming mark as a reference, reduce the aiming range of the aiming mark until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

[0151] Among them, the correspondence relationship between the pressing duration and the adjustment range (second mapping relationship) is set in advance, so as to determine the target adjustment range corresponding to the pressing duration on the first response area or the second response area. When the pressing operation acts on the first response area, the target adjustment range that needs to be increased is determined by the correspondence relationship between the pressing duration and the adjustment range, so that the adjustment range is increased with the center point of the aiming mark as the reference until the adjustment range matches the target adjustment range, and the target aiming range is obtained; when the pressing operation acts on the second response area, the target adjustment range that needs to be reduced is determined by the correspondence relationship between the pressing duration and the adjustment range, so that the adjustment range is reduced with the center point of the aiming mark as the reference until the adjustment range matches the target adjustment range, and the target aiming range is obtained.

[0152] Among them, the method of determining the shooting adjustment parameters by adjusting the operation instructions is similar to the method of determining the target adjustment range of the aiming mark by adjusting the operation instructions, which will not be repeated here.

[0153] In some embodiments, Figure 1g As shown, Figure 1g A schematic diagram of adjusting the aiming range by adjusting the progress bar provided in an embodiment of the present application. The user interface also includes a progress bar 10, which is white or transparent. The user adjusts the length of the color bar of a specified color (gray or black, etc.) in the progress bar by sliding, thereby determining the target aiming range based on the ratio of the color bar length to the progress bar length.

[0154] For example, the length of the progress bar itself is 4 cm, and the user adjusts the length of the color bar to 2 cm by sliding. The length of the color bar accounts for half of the length of the progress bar itself. Therefore, based on this ratio, half of the maximum aiming range can be determined as the target aiming range.

[0155] In some implementations, the shooting attributes of the virtual weapon may be adjusted based on the target aiming range, including:

[0156] (1) determining a target aiming range interval corresponding to the target aiming range in a plurality of aiming range intervals;

[0157] (2) determining a target attack attribute of the virtual weapon corresponding to the target aiming range interval according to the third mapping relationship;

[0158] (3) Equip the current virtual weapon with the target accessory according to its attack attribute or replace the current virtual weapon.

[0159] Among them, multiple aiming range intervals are set, and the corresponding relationship (third mapping relationship) between each aiming range interval and the attack attribute of the virtual weapon is set. The purpose of setting the aiming range interval is to determine different aiming range intervals according to different attack attributes. For example, the attack attributes corresponding to the interval with a larger aiming range are large recoil, short range, and slow rate of fire (shotgun); the attack attributes corresponding to the interval with a larger aiming range are small recoil, long range, and fast rate of fire (assault rifle). Therefore, the corresponding attack attribute can be determined according to the aiming range interval where the target aiming range is located, so as to install virtual weapon accessories or replace the currently used virtual weapon.

[0160] In some implementations, the step of assembling the shooting attribute of the current virtual weapon according to the target accessory includes:

[0161] (1.1) Determine the target virtual weapon accessories corresponding to the target shooting attribute;

[0162] (1.2) Installing the target virtual weapon accessory on the current virtual weapon so that the shooting attribute of the current virtual weapon is the target shooting attribute.

[0163] In order to adapt to different shooting properties, it is necessary to replace or install different virtual weapon accessories on the same virtual weapon. For example, installing large-caliber muzzle accessories and light short barrels can achieve shooting properties with large recoil, short range and slow rate of fire; installing small-caliber muzzle accessories, tactical stock accessories, fast expansion magazine accessories, vertical grip accessories, etc. can achieve shooting properties with small recoil, long range and fast rate of fire.

[0164] Specifically, the corresponding relationship between the shooting attribute and the virtual weapon accessories can be set in advance, so as to determine the target virtual weapon accessories corresponding to the target shooting attribute according to the corresponding relationship. According to the target virtual weapon accessories, when the same type of accessories exist in the current virtual weapon and the target virtual weapon accessories need to be replaced, the accessories in the current virtual weapon can be disassembled and recycled into the backpack, and the virtual weapon accessories corresponding to the type of accessories in the target virtual weapon accessories can be installed. When one or more of the target virtual weapon accessories are missing in the backpack, a prompt message can be generated to prompt the user that the target virtual weapon accessories are missing and ask whether to buy them. If a purchase instruction is received, the missing target virtual weapon accessories are automatically purchased from the game store, or when the virtual object controlled by the user collects materials in the three-dimensional virtual environment, the missing target virtual weapon accessories are set as the materials that need to be collected first, so that when there are missing target virtual weapon accessories near the user, the accessories are displayed in different colors, so as to prompt the user to collect the missing target virtual weapon accessories.

[0165] In some implementations, the current virtual weapon may also be replaced according to the target shooting attribute, including:

[0166] (1.1) Determine the target virtual weapon type corresponding to the target shooting attribute;

[0167] (1.2) Determine whether the current virtual weapon type is the target virtual weapon type;

[0168] (1.3) When the current weapon type is not the target virtual weapon type and there is a virtual weapon of the target virtual weapon type, the current virtual weapon is replaced with a virtual weapon of the target virtual weapon type.

[0169] If the shooting attribute is adjusted by switching virtual weapons, the corresponding relationship between the shooting attribute and the virtual weapon type is set. For example, if the shooting attribute is large recoil, short range, and slow firing rate, the corresponding virtual weapon type is a shotgun; if the shooting attribute is small recoil, long range, and fast firing rate, the corresponding virtual weapon type is an assault rifle. Thus, according to the corresponding relationship between the shooting attribute and the virtual weapon type, the target virtual weapon type corresponding to the target shooting attribute is determined.

[0170] Specifically, after determining the target virtual weapon type, it is necessary to determine whether the virtual weapon type used by the virtual object currently controlled by the user is the target virtual weapon type, and it is also necessary to determine whether the virtual object's backpack carries a virtual weapon of the target virtual weapon type. When the current weapon type is not the target virtual weapon type, and there is a virtual weapon of the target virtual weapon type, the virtual weapon currently used by the virtual object is replaced with a virtual weapon of the target virtual weapon type, thereby realizing the gun switching function.

[0171] In step 103, the target accessories of the virtual weapon being used by the virtual object are determined according to the target shooting parameters, and the target accessories are accessories currently possessed by the virtual object.

[0172] Among them, the change of the virtual weapon shooting parameters is determined by changing the weapon accessories that the virtual weapon has been equipped with. Therefore, the target accessories required by the virtual weapon can be determined according to the target shooting parameters. The target accessories are the accessories currently in the backpack of the virtual object or have been equipped.

[0173] In some implementations, the step of determining the target accessory of the virtual weapon being used by the virtual object according to the target shooting parameter includes:

[0174] (1) obtaining a designated accessory that matches the target shooting parameters;

[0175] (2) determining whether the specified accessory exists among the accessories currently owned by the virtual object, and obtaining a determination result;

[0176] (3) Based on the determination result, determine the target accessory of the virtual weapon being used by the virtual object.

[0177] The corresponding relationship between shooting parameters and accessories can be set in advance, so that the designated accessories matching the target shooting parameters can be determined according to the corresponding relationship. For example, the designated accessories matching the target shooting parameters of shooting range a, shooting distance b, and shooting accuracy c are: vertical grip, red dot sight, small-caliber barrel.

[0178] Specifically, after determining the designated accessory, it is necessary to determine whether the designated accessory exists among the accessories already owned by the user, and determine different target accessories based on different determination results.

[0179] In some implementations, the step of determining the target accessory of the virtual weapon being used by the virtual object based on the judgment result includes:

[0180] (1.1) If the judgment result is that the designated accessory exists in the accessories currently owned by the virtual object, the designated accessory in the accessories currently owned by the virtual object is determined as the target accessory;

[0181] (1.2) If the judgment result is that the designated accessory does not exist in the accessories currently owned by the virtual object, the non-existent designated accessory is determined as a missing accessory, and the missing accessory type corresponding to the missing accessory is determined;

[0182] (1.3) obtaining candidate accessories of the missing accessory type from among the accessories currently owned by the virtual object;

[0183] (1.4) Determine the candidate accessory as the target accessory.

[0184] Among them, when the judgment result is that the specified accessory exists in the accessories currently owned by the virtual object, it means that the specified accessory virtual object has been collected, and the specified accessory in the owned accessories can be directly determined as the target accessory; when the judgment result is that the specified accessory exists in the accessories currently owned by the virtual object, it means that the specified accessory virtual object has not been collected, and it is necessary to determine the missing accessories and the missing accessory type of the missing accessories. And obtain the candidate accessories whose accessory type is the missing accessory type in the accessories currently owned by the virtual object, and determine the candidate accessories as the target accessories.

[0185] For example, if the missing accessory is a vertical grip, then the missing accessory type of the missing accessory is a grip, and candidate accessories with a grip type among the accessories currently owned by the virtual object are obtained to obtain a triangular grip. The triangular grip is then determined as the target accessory, thereby replacing the vertical grip to achieve a shooting effect similar to the target shooting parameters.

[0186] In some implementations, after the step of determining the non-existent designated accessory as a missing accessory, the method further includes:

[0187] (1.1) obtaining accessories in a portion of the virtual scene located in the viewing direction of the virtual object to obtain an accessories set;

[0188] (1.2) Determine whether the missing accessory exists in the accessory set;

[0189] (1.3) If the missing accessory exists in the accessory set, a prompt message is generated, where the prompt message is used to prompt that the missing accessory exists in a portion of the virtual scene located within the viewing direction of the virtual object.

[0190] Among them, Figure 1h As shown, Figure 1h A schematic diagram of a prompt when there are missing accessories in the virtual scene provided in an embodiment of the present application. Among them, when the user controls the virtual object to view the virtual scene in a certain viewing direction, a portion of the virtual scene displayed in the viewing direction will be displayed in the graphical user interface. Therefore, in order to assist the user to quickly obtain the missing accessories, the accessories in the partial virtual scene located within the viewing direction of the virtual object can be obtained to obtain an accessory set; determine whether there are missing accessories in the accessory set, and if so, a prompt message can be generated to prompt that the missing accessories exist in the partial virtual scene located within the viewing direction of the virtual object.

[0191] For example, Figure 1h If the missing accessory is a vertical handle, and a vertical handle 50 and a triangular handle 60 exist in the virtual scene in which the perspective of the virtual object is facing inward, a specific mark 70 can be displayed above the vertical handle 50. The specific mark 70 can carry a color, such as yellow, so that the user can quickly find the missing accessory based on the specific mark 70.

[0192] In some implementations, after the step of determining the non-existent designated accessory as a missing accessory, the method further includes:

[0193] (1.1) When the missing accessory exists within the search range of the virtual object in the virtual scene, picking up the missing accessory;

[0194] (1.2) determining whether the missing accessory type exists among the accessory types of the accessories currently assembled on the virtual object;

[0195] (1.3) If the missing accessory type exists in the accessory types of the accessories currently assembled to the virtual object, uninstall the assembled accessories corresponding to the missing accessory type and assemble the missing accessory;

[0196] (1.4) If the missing accessory type does not exist in the accessory types of the accessories currently equipped to the virtual object, assemble the missing accessory.

[0197] When a virtual object collects equipment in a virtual scene, it will set the search range of the virtual object in advance with the virtual object as the center and a specified distance as the radius. When it is detected that there is a missing accessory within the search range, the missing accessory can be automatically picked up; it is determined whether the current virtual weapon is equipped with an accessory of the missing accessory type. If so, the assembled accessories corresponding to the missing accessory type are automatically uninstalled, and the missing accessories are assembled, thereby achieving the effect of automatically assembling the missing accessories. If the missing accessory type does not exist in the accessory type of the accessories currently assembled by the virtual object, the missing accessory is directly assembled.

[0198] In step 104, the target accessories are assembled to the virtual weapon.

[0199] When the target accessories are determined, the target accessories are assembled on the virtual weapon so that the virtual weapon can achieve the target shooting attribute.

[0200] In some embodiments, the step of assembling the target accessory to the virtual weapon includes:

[0201] Uninstall the assembled component and assemble the target component.

[0202] Among them, all accessories currently equipped on the virtual weapon can be uninstalled and the target accessories can be automatically equipped; it is also possible to assemble the unassembled target accessories by determining whether there are target accessories already equipped on the virtual weapon.

[0203] In step 104, in response to the attack instruction, an attack operation is performed according to the target accessory and the virtual weapon.

[0204] Among them, after the target accessories are assembled to the virtual weapon, it can respond to the attack instructions generated by the user's operation and perform attack operations.

[0205] As can be seen from the above, the embodiment of the present application displays a graphical user interface, the graphical user interface includes at least part of a virtual scene and at least part of a virtual object located in the virtual scene; in response to an adjustment operation instruction, the corresponding target shooting parameters are determined, and the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy; according to the target shooting parameters, the target accessories of the virtual weapon being used by the virtual object are determined, and the target accessories are accessories currently owned by the virtual object; the target accessories are assembled to the virtual weapon; in response to an attack instruction, an attack operation is performed according to the target accessories and the virtual weapon. In this way, by adjusting the operation instruction, the attack attribute of the current virtual weapon is adjusted, thereby reducing the operation time required for assembling or switching weapon accessories.

[0206] In combination with the method described in the above embodiment, the method will be further described in detail with examples below.

[0207] See also Figure 2a , Figure 2a A second flow chart of the accessory assembly method provided in the embodiment of the present application. The method flow may include:

[0208] In step 401 , a computer device displays a graphical user interface, where the graphical user interface includes at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene.

[0209] Among them, the graphical user interface displays part of the virtual scene in the game scene. The virtual scene is a virtual environment provided when the application is running on the terminal. It can be a simulated environment of the real world, a semi-simulated and semi-fictitious environment, or a purely fictitious environment. The environmental picture displayed on the graphical user interface is the environmental picture presented when the virtual object observes the three-dimensional virtual environment. The user controls the virtual object in the game scene through the terminal, and the virtual object can observe the three-dimensional virtual environment through the camera model. Taking FPS games as an example, when in the first-person perspective, the camera model is located at the head or neck of the first virtual object, and when in the third-person perspective, the camera model is located behind the first virtual object. Therefore, some virtual objects, such as arms or the upper body of virtual objects, are also included in the graphical user interface. The graphical user interface is the environmental picture presented by observing the three-dimensional virtual environment through a camera model at a certain perspective.

[0210] For details, please refer to Figure 1c , Figure 1cA user interface schematic diagram provided by an embodiment of the present application. The user interface is presented by the screen of the terminal 1000, and includes a virtual object 100 controlled by the user, an aiming mark 200 for prompting the aiming position of the virtual weapon in the user interface, a cursor control 300 for prompting the user of the current direction information of the virtual object 100, a movement control 400 for controlling the movement of the virtual object 100 in the three-dimensional virtual environment, an aiming control 500 that can be used by the first virtual object 100 when attacking, a map control 600 for prompting the user of the position of the first virtual object 100 in the three-dimensional virtual environment, and an attack control 700 for controlling the first virtual object 100 to perform an attack operation in the three-dimensional virtual environment. Among them, an indication control 301 is also provided in the cursor control 300, which is used to indicate the direction of the first virtual object 100 in the cursor control 300.

[0211] In step 402, the computer device adjusts the aiming range of the aiming mark in response to the adjustment operation instruction to obtain the adjusted target aiming range; and adjusts the shooting parameters in response to the adjustment operation instruction to obtain the adjusted target shooting parameters.

[0212] The user can adjust the shooting parameters of the virtual weapon used by the current virtual object through adjustment operations. The target shooting parameters include but are not limited to: shooting range, shooting distance, and shooting accuracy.

[0213] Specifically, since the parameters of the virtual weapon will change according to the user's adjustment operation, the aiming mark corresponding to the virtual weapon will also change accordingly. For example, the aiming range corresponding to the aiming mark may be expanded or reduced. Therefore, the aiming range of the aiming mark may be adjusted while adjusting the shooting parameters of the virtual weapon according to the adjustment operation instruction of the adjustment operation.

[0214] Specifically, Figure 1c The aiming mark 200 in the figure is a cross-shaped aiming mark composed of two line segments arranged at intervals in the horizontal direction and two line segments arranged at intervals in the vertical direction, and the four line segments are at a certain distance from the center point of the user interface, so as to form a cross-shaped aiming mark as shown in FIG. Figure 1c The aiming range A shown in the figure is a circular area or an elliptical area formed by connecting the center point of the user interface with the outer boundary and one end of the four line segments close to the center point of the user interface. The aiming mark 200 can also be a circular aiming mark formed by connecting the center of the user interface with a certain distance as the radius, and the circular area is the circular area formed by the four line segments in the cross-shaped aiming mark. The shape of the aiming mark is not limited here.

[0215] Specifically, the user can adjust the aiming range of the aiming mark 200 through adjustment operations. For example, the two horizontal line segments and the two vertical line segments in the cross-shaped aiming mark are adjusted to move away from or closer to each other; the size of the circular area of ​​the circular aiming mark is adjusted, etc., so as to achieve the change of the aiming range when the virtual weapon aims at the target object.

[0216] Among them, the method of adjusting the shooting parameters of the virtual weapon can be: obtaining the current shooting parameters corresponding to the current virtual weapon, for example: the shooting range is a, the shooting distance is b, and the shooting accuracy is c; then determining the shooting adjustment parameters according to the adjustment operation instructions, for example: the adjustment amount of the shooting range is d, the adjustment amount of the shooting distance is e, and the adjustment amount of the shooting accuracy is f; thereby, based on the current shooting parameters and the shooting adjustment parameters, it can be determined that the adjusted target shooting parameters are the final shooting parameters determined according to the current shooting parameters and the shooting adjustment parameters.

[0217] Specifically, when the adjustment operation instruction is used to increase the shooting adjustment parameter, the adjusted target shooting parameter is the sum of the current shooting parameter and the shooting adjustment parameter, for example: the shooting range in the target shooting parameter is a+d, the shooting distance is b+e, and the shooting accuracy is c+f; when the adjustment operation instruction is used to reduce the shooting adjustment parameter, the adjusted target shooting parameter is the difference between the current shooting parameter and the shooting adjustment parameter, for example: the shooting range in the target shooting parameter is ad, the shooting distance is be, and the shooting accuracy is cf. For the specific situation where some parameters are increased and some parameters are decreased, appropriate changes can be made, which are not limited here.

[0218] In step 403, the computer device obtains a designated accessory that matches the target shooting parameters.

[0219] The corresponding relationship between shooting parameters and accessories can be set in advance, so that the designated accessories matching the target shooting parameters can be determined according to the corresponding relationship. For example, the designated accessories matching the target shooting parameters of shooting range a, shooting distance b, and shooting accuracy c are: vertical grip, red dot sight, small-caliber barrel.

[0220] In step 404, the computer device determines whether the designated accessories exist in the accessories currently owned by the virtual object, and obtains a determination result.

[0221] After the designated accessories are determined, it is necessary to determine whether the designated accessories exist among the accessories already owned by the user, and different target accessories are determined based on different determination results.

[0222] In step 405, if the result of the determination is that the designated accessory exists in the accessories currently possessed by the virtual object, the computer device determines the designated accessory in the accessories currently possessed by the virtual object as the target accessory.

[0223] If the result of the judgment is that the specified accessory exists in the accessories currently owned by the virtual object, it means that all virtual objects of the specified accessories have been collected, and the specified accessory in the owned accessories can be directly determined as the target accessory.

[0224] In step 406, if the result of the determination is that the designated accessory does not exist in the accessories currently possessed by the virtual object, the computer device determines the non-existent designated accessory as a missing accessory, and determines the missing accessory type corresponding to the missing accessory.

[0225] When the judgment result is that the designated accessory exists in the accessories currently owned by the virtual object, it means that the designated accessory virtual object has not been fully collected, and it is necessary to determine the missing accessories and the missing accessory type of the missing accessories.

[0226] In step 407, the computer device obtains a candidate accessory whose accessory type is the missing accessory type from the accessories currently owned by the virtual object, and determines the candidate accessory as the target accessory.

[0227] Among them, candidate accessories whose accessory type is the missing accessory type among the accessories currently possessed by the virtual object are obtained.

[0228] For example, if the missing part is a vertical grip, the missing part type of the missing part is grip.

[0229] In step 408 , the computer device uninstalls the assembled component and assembles the target component.

[0230] For example, a candidate accessory of the type of grip is obtained from the accessories currently possessed by the virtual object, and a triangular grip is obtained. The triangular grip is then determined as the target accessory to replace the vertical grip, thereby achieving a shooting effect similar to the target shooting parameters.

[0231] In step 409, the computer device obtains accessories in a portion of the virtual scene that is located in the viewing direction of the virtual object to obtain an accessories set.

[0232] Among them, Figure 1h As shown, Figure 1hA schematic diagram of a virtual scene with missing accessories provided in an embodiment of the present application. When a user controls a virtual object to view a virtual scene in a certain viewing direction, a portion of the virtual scene displayed in the viewing direction will be displayed in the graphical user interface. Therefore, in order to assist the user in quickly obtaining the missing accessories, the accessories in the portion of the virtual scene located within the viewing direction of the virtual object can be obtained to obtain an accessories set.

[0233] In step 410 , the computer device determines whether there is a missing accessory in the accessory set.

[0234] Among them, it is determined whether there are any missing accessories in the accessory set.

[0235] In step 411, if there are missing accessories in the accessory set, the computer device generates prompt information, where the prompt information is used to prompt that there are missing accessories in a portion of the virtual scene located in the viewing direction of the virtual object.

[0236] If so, a prompt message may be generated to indicate that the missing accessory exists in a portion of the virtual scene within the viewing direction of the virtual object.

[0237] For example, Figure 1h If the missing accessory is a vertical handle, and a vertical handle 50 and a triangular handle 60 exist in the virtual scene in which the perspective of the virtual object is facing inward, a specific mark 70 can be displayed above the vertical handle 50. The specific mark 70 can carry a color, such as yellow, so that the user can quickly find the missing accessory based on the specific mark 70.

[0238] In step 412 , when there is a missing accessory within the search range of the virtual object in the virtual scene, the computer device picks up the missing accessory.

[0239] When a virtual object collects equipment in a virtual scene, it will set the search range of the virtual object with the virtual object as the center and the specified distance as the radius. When missing parts are detected within the search range, the missing parts can be automatically picked up.

[0240] In step 413 , the computer device determines whether there is a missing accessory type among the accessory types of accessories currently assembled on the virtual object.

[0241] Here, it is determined whether the current virtual weapon is equipped with accessories of the missing accessory type.

[0242] In step 414 , if there is a missing accessory type among the accessory types of the accessories currently assembled to the virtual object, the computer device uninstalls the assembled accessories corresponding to the missing accessory type and assembles the missing accessories.

[0243] If it exists, the assembled accessories corresponding to the missing accessories type are automatically uninstalled, and the missing accessories are assembled, thereby achieving the effect of automatically assembling the missing accessories.

[0244] In step 415 , if the missing accessory type does not exist in the accessory types of the accessories currently assembled to the virtual object, the computer device assembles the missing accessory.

[0245] If the missing accessory type does not exist in the accessory types of the accessories currently assembled to the virtual object, the missing accessory is directly assembled.

[0246] In step 416, the computer device responds to the attack instruction and executes the attack operation according to the target accessory and the virtual weapon.

[0247] Among them, after the target accessories are assembled to the virtual weapon, it can respond to the attack instructions generated by the user's operation and perform attack operations.

[0248] See also Figure 2b , Figure 2b The third flow diagram of the accessory assembly method provided in the embodiment of the present application. The flow diagram is an execution process in which the user adjusts the aiming range of the aiming mark by pressing an operation, and then changes the current virtual weapon (switches the virtual weapon). The method flow may include:

[0249] In step 501, a computer device displays a user interface, where the user interface includes an environment screen presented when observing a three-dimensional virtual environment, and a targeting mark.

[0250] Among them, step 501 is the same as step 401 and will not be described in detail here.

[0251] In step 502, the computer device obtains the pressing duration of the pressing operation in the first response area or the second response area.

[0252] Among them, a response area for adjusting the aiming mark can be set on the user interface. Since the aiming range can be increased or decreased when adjusting the aiming range, different response areas can be set for different adjustment functions. Therefore, the first response area can be set to receive the user's pressing operation to increase the aiming range; the second response area can be set to receive the user's pressing operation to decrease the aiming range.

[0253] Specifically, Figure 1e As shown, Figure 1eA schematic diagram of adjusting the aiming mark by pressing operation provided in an embodiment of the present application. The first response area and the second response area can receive a user's pressing operation for adjusting the aiming mark by setting corresponding controls in the user interface, wherein a reduction control 800 for reducing the aiming range and an increase control 900 for increasing the aiming range are reserved in the user interface, the first response area is the display area of ​​the increase control 900, and the second response area is the display area of ​​the reduction control 800. The target aiming range after increase or decrease can be determined by continuously pressing the reduction control 800 or the increase control 900.

[0254] In step 503, when the computer device detects that a pressing operation is performed within the first response area, a target adjustment range corresponding to the pressing duration is determined according to the second mapping relationship.

[0255] The corresponding relationship between the pressing duration and the adjustment range (second mapping relationship) is set in advance, so as to determine the target adjustment range corresponding to the pressing duration on the first response area or the second response area. When the pressing operation acts on the first response area, the target adjustment range to be increased is determined by the corresponding relationship between the pressing duration and the adjustment range.

[0256] In step 504, the computer device increases the aiming range of the aiming mark on the user interface based on the center point of the aiming mark, until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

[0257] Among them, taking the center point of the aiming mark as a reference, the adjustment range is increased until the adjustment range matches the target adjustment range to obtain the target aiming range.

[0258] In step 505, when the computer device detects that a pressing operation is performed within the second response area, a target adjustment range corresponding to the pressing duration is determined according to the second mapping relationship.

[0259] The corresponding relationship between the pressing duration and the adjustment range (second mapping relationship) is set in advance, so as to determine the target adjustment range corresponding to the pressing duration on the first response area or the second response area. When the pressing operation acts on the second response area, the target adjustment range to be reduced is determined by the corresponding relationship between the pressing duration and the adjustment range.

[0260] In step 506, the computer device reduces the aiming range of the aiming mark based on the center point of the aiming mark until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

[0261] Among them, taking the center point of the aiming mark as a reference, the adjustment range is reduced until the adjustment range matches the target adjustment range to obtain the target aiming range.

[0262] In step 507, the computer device determines a target aiming range interval corresponding to the target aiming range among the plurality of aiming range intervals.

[0263] In step 508, the computer device determines the target attack attribute of the virtual weapon corresponding to the target aiming range interval according to the third mapping relationship.

[0264] Among them, step 507 and step 508 are the same as step 409 and step 410, and are not described in detail here.

[0265] In step 509, the computer device determines the target virtual weapon type corresponding to the target attack attribute.

[0266] If the attack attribute is adjusted by switching virtual weapons, the corresponding relationship between the attack attribute and the virtual weapon type is set. For example, if the attack attribute is large recoil, short range, and slow firing rate, the corresponding virtual weapon type is a shotgun; if the attack attribute is small recoil, long range, and fast firing rate, the corresponding virtual weapon type is an assault rifle. Thus, according to the corresponding relationship between the attack attribute and the virtual weapon type, the target virtual weapon type corresponding to the target attack attribute is determined.

[0267] In step 510, the computer device determines whether the current virtual weapon type is the target virtual weapon type.

[0268] After the target virtual weapon type is determined, it is necessary to determine whether the virtual weapon type used by the virtual object currently controlled by the user is the target virtual weapon type.

[0269] In step 511 , when the current weapon type is not the target virtual weapon type and there is a virtual weapon of the target virtual weapon type, the computer device replaces the current virtual weapon with a virtual weapon of the target virtual weapon type.

[0270] If the current weapon type is not the target virtual weapon type, it is necessary to determine whether the virtual object's backpack carries a virtual weapon of the target virtual weapon type. If the current weapon type is not the target virtual weapon type and there is a virtual weapon of the target virtual weapon type, the virtual weapon currently used by the virtual object is replaced with a virtual weapon of the target virtual weapon type, thereby realizing the gun switching function.

[0271] As can be seen from the above, the embodiment of the present application displays a graphical user interface, the graphical user interface includes at least part of a virtual scene and at least part of a virtual object located in the virtual scene; in response to an adjustment operation instruction, the corresponding target shooting parameters are determined, and the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy; according to the target shooting parameters, the target accessories of the virtual weapon being used by the virtual object are determined, and the target accessories are accessories currently owned by the virtual object; the target accessories are assembled to the virtual weapon; in response to an attack instruction, an attack operation is performed according to the target accessories and the virtual weapon. In this way, by adjusting the operation instruction, the attack attribute of the current virtual weapon is adjusted, thereby reducing the operation time required for assembling or switching weapon accessories.

[0272] In order to better implement the accessory assembly method provided in the embodiment of the present application, the embodiment of the present application also provides a device based on the above-mentioned accessory assembly method. The meanings of the terms are the same as those in the above-mentioned accessory assembly method, and the specific implementation details can refer to the description in the method embodiment.

[0273] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of an accessory assembly device provided in an embodiment of the present application, wherein the accessory assembly device may include a display module 601, a first determination module 602 and a second determination module 603, an assembly module 604 and a response module 605, etc.

[0274] A display module 601, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene and at least a portion of virtual objects located in the virtual scene;

[0275] A first determination module 602 is used to determine corresponding target shooting parameters in response to the adjustment operation instruction, wherein the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy;

[0276] A second determination module 603 is used to determine the target accessories of the virtual weapon being used by the virtual object according to the target shooting parameter, wherein the target accessories are accessories currently owned by the virtual object;

[0277] An assembly module 604, for assembling the target accessories to the virtual weapon;

[0278] The response module 605 is used to respond to the attack instruction and perform the attack operation according to the target accessory and the virtual weapon.

[0279] In some implementations, the second determining module 603 includes:

[0280] A first acquisition submodule is used to acquire a designated accessory that matches the target shooting parameter;

[0281] A first judgment submodule is used to judge whether the specified accessory exists in the accessories currently owned by the virtual object, and obtain a judgment result;

[0282] The first determination submodule is configured to determine, based on the determination result, a target accessory of the virtual weapon being used by the virtual object.

[0283] In some implementations, the first determining submodule includes:

[0284] a first determining unit, configured to determine the designated accessory among the accessories currently possessed by the virtual object as a target accessory if the determination result is that the designated accessory exists among the accessories currently possessed by the virtual object;

[0285] a second determining unit, configured to determine the non-existent designated accessory as a missing accessory, and determine a missing accessory type corresponding to the missing accessory if the judgment result is that the designated accessory does not exist in the accessories currently owned by the virtual object;

[0286] A first acquisition unit, configured to acquire candidate accessories of the missing accessory type from accessories currently owned by the virtual object;

[0287] The third determining unit is configured to determine the candidate accessory as a target accessory.

[0288] In some implementations, the first determining submodule further includes:

[0289] A second acquisition unit is used to acquire accessories in a portion of the virtual scene located in the viewing direction of the virtual object to obtain an accessories set;

[0290] A first judging unit, configured to judge whether the missing accessory exists in the accessory set;

[0291] A generating unit is used to generate prompt information if the missing accessory exists in the accessory set, wherein the prompt information is used to prompt that the missing accessory exists in a part of the virtual scene located in the viewing direction of the virtual object.

[0292] In some implementations, the first determining submodule further includes:

[0293] A picking unit, configured to pick up the missing accessory when the missing accessory exists within the search range of the virtual object in the virtual scene;

[0294] A second judgment unit, configured to judge whether the missing accessory type exists in the accessory types of accessories currently assembled on the virtual object;

[0295] an uninstallation unit, configured to uninstall the installed accessories corresponding to the missing accessory type and assemble the missing accessory if the missing accessory type exists in the accessory types of the accessories currently assembled to the virtual object;

[0296] The assembling unit is configured to assemble the missing accessory if the missing accessory type does not exist in the accessory types of accessories currently assembled to the virtual object.

[0297] In some embodiments, the assembly module 604 includes:

[0298] The assembly submodule is used to unload the assembled accessories and assemble the target accessories.

[0299] In some embodiments, the graphical user interface includes a targeting mark, and the first determination module includes:

[0300] A first adjustment submodule is configured to adjust the aiming range of the aiming mark in response to an adjustment operation instruction to obtain an adjusted target aiming range; and

[0301] The second adjustment submodule is used to adjust the shooting parameters in response to the adjustment operation instruction to obtain the adjusted target shooting parameters.

[0302] In some implementations, the second adjustment submodule includes:

[0303] A third acquisition unit is used to acquire the current shooting parameters of the current virtual weapon;

[0304] a fourth determining unit, configured to determine a shooting adjustment parameter in response to the adjustment operation instruction;

[0305] The fifth determining unit is used to determine the adjusted target shooting parameters based on the current shooting parameters and the shooting adjustment parameters.

[0306] In some implementations, the graphical user interface includes an adjustment control, and the first determination module includes:

[0307] The receiving submodule is used to receive an adjustment operation for the adjustment control and trigger an adjustment operation instruction.

[0308] In some embodiments, the adjustment operation instruction is a sliding operation of at least two fingers on the user interface;

[0309] The first adjustment submodule includes:

[0310] A fourth acquisition unit, configured to acquire a first touch position and a second touch position of the sliding operation on the user interface;

[0311] a fifth acquiring unit, configured to acquire a target touch distance between the first touch position and the second touch position;

[0312] The adjustment unit is used to adjust the aiming range of the aiming mark based on the target touch distance to obtain an adjusted target aiming range.

[0313] In some implementations, the first adjustment submodule further includes:

[0314] A third judgment unit is used to judge whether the sliding operation stays on the user interface for a time period greater than a preset time period before sliding;

[0315] a hiding unit, configured to hide the aiming mark at a preset time interval if the sliding operation stays on the user interface for a time period longer than a preset time period before sliding, and to generate a prompt message in a designated area of ​​the user interface, wherein the prompt message is used to prompt an adjustment method of the aiming mark;

[0316] The execution unit is used to return to the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface when it is detected that the sliding operation slides on the user interface.

[0317] In some embodiments, the adjustment unit is used to:

[0318] Determine a target touch distance interval corresponding to the target touch distance in a plurality of touch distance intervals;

[0319] Determine the target aiming range corresponding to the target touch distance interval according to the first mapping relationship;

[0320] The aiming range of the aiming mark is adjusted based on the center point of the aiming mark until the aiming range matches the target aiming range.

[0321] In some embodiments, the graphical user interface further includes a first response area and a second response area, and the touch operation is a pressing operation on the first response area or the second response area;

[0322] The first adjustment submodule includes:

[0323] A sixth acquisition unit, configured to acquire a pressing duration of the pressing operation in the first response area or the second response area;

[0324] an increasing unit, configured to increase the aiming range of the aiming mark based on the pressing duration when detecting that the pressing operation acts within the first response area, so as to obtain an increased target aiming range;

[0325] A reducing unit is used to reduce the aiming range of the aiming mark based on the pressing duration when it is detected that the pressing operation acts on the second response area, so as to obtain a reduced target aiming range.

[0326] In some embodiments, the enlarging unit is used to:

[0327] Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship;

[0328] Taking the center point of the aiming mark as a reference, increasing the aiming range of the aiming mark on the user interface until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range;

[0329] The reducing unit is used for:

[0330] Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship;

[0331] Taking the center point of the aiming mark as a reference, the aiming range of the aiming mark is reduced until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

[0332] As can be seen from the above, the embodiment of the present application displays a graphical user interface through a display module 601, and the graphical user interface includes at least part of a virtual scene and at least part of a virtual object located in the virtual scene; the first determination module 602 determines the corresponding target shooting parameters in response to the adjustment operation instruction, and the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy; the second determination module 603 determines the target accessories of the virtual weapon being used by the virtual object according to the target shooting parameters, and the target accessories are accessories currently owned by the virtual object; the assembly module 604 assembles the target accessories to the virtual weapon; the response module 605 responds to the attack instruction and performs an attack operation according to the target accessories and the virtual weapon. In this way, by adjusting the operation instruction, the attack attribute of the current virtual weapon is adjusted, thereby reducing the operation time required for assembling or switching weapon accessories.

[0333] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0334] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 4 As shown, Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 700 includes a processor 701 having one or more processing cores, a memory 702 having one or more computer-readable storage media, and a computer program stored in the memory 702 and executable on the processor. The processor 701 is electrically connected to the memory 702. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0335] The processor 701 is the control center of the computer device 700. It uses various interfaces and lines to connect the various parts of the entire computer device 700, executes various functions of the computer device 700 and processes data by running or loading software programs and / or modules stored in the memory 702, and calling data stored in the memory 702, thereby monitoring the computer device 700 as a whole.

[0336] In the embodiment of the present application, the processor 701 in the computer device 700 will load instructions corresponding to the processes of one or more application programs into the memory 702 according to the following steps, and the processor 701 will run the application programs stored in the memory 702 to implement various functions:

[0337] Displaying a graphical user interface, the graphical user interface includes at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene; in response to an adjustment operation instruction, determining corresponding target shooting parameters, the target shooting parameters including at least one of the following: shooting range, shooting distance, and shooting accuracy; determining a target accessory of a virtual weapon being used by the virtual object based on the target shooting parameters, the target accessory being an accessory currently owned by the virtual object; assembling the target accessory to the virtual weapon; and in response to an attack instruction, performing an attack operation based on the target accessory and the virtual weapon.

[0338] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0339] Optional, such as Figure 4As shown, the computer device 700 further includes: a touch screen 703, a radio frequency circuit 704, an audio circuit 705, an input unit 706, and a power supply 707. The processor 701 is electrically connected to the touch screen 703, the radio frequency circuit 704, the audio circuit 705, the input unit 706, and the power supply 707, respectively. Those skilled in the art will appreciate that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0340] The touch display screen 703 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 703 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 701, and can receive the command sent by the processor 701 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 701 to determine the type of touch event, and then the processor 701 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 703 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 703 can also be used as a part of the input unit 706 to realize the input function.

[0341] In the embodiment of the present application, the processor 701 executes the game application to generate a graphical user interface on the touch display screen 703. The virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display screen 703 is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface.

[0342] The RF circuit 704 may be used to send and receive RF signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.

[0343] The audio circuit 705 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 705 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 705 and converted into audio data, and then the audio data is output to the processor 701 for processing, and then sent to another computer device through the radio frequency circuit 704, or the audio data is output to the memory 702 for further processing. The audio circuit 705 may also include an earplug jack to provide communication between an external headset and the computer device.

[0344] The input unit 706 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0345] The power supply 707 is used to supply power to various components of the computer device 700. Optionally, the power supply 707 can be logically connected to the processor 701 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 707 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0346] although Figure 4 Not shown, the computer device 700 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0347] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0348] As can be seen from the above, the computer device provided in this embodiment displays a graphical user interface, wherein the graphical user interface includes at least part of a virtual scene and at least part of a virtual object located in the virtual scene; in response to an adjustment operation instruction, the corresponding target shooting parameter is determined, wherein the target shooting parameter includes at least one of the following: shooting range, shooting distance, and shooting accuracy; the target accessory of the virtual weapon being used by the virtual object is determined according to the target shooting parameter, wherein the target accessory is an accessory currently owned by the virtual object; the target accessory is assembled to the virtual weapon; and in response to an attack instruction, an attack operation is performed according to the target accessory and the virtual weapon. In this way, the attack attribute of the current virtual weapon is adjusted by adjusting the operation instruction, thereby reducing the operation time required for assembling or switching weapon accessories.

[0349] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0350] To this end, an embodiment of the present application provides a computer-readable storage medium, in which multiple computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any skill control method provided in the embodiment of the present application. For example, the computer program can execute the following steps:

[0351] Displaying a graphical user interface, the graphical user interface includes at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene; in response to an adjustment operation instruction, determining corresponding target shooting parameters, the target shooting parameters including at least one of the following: shooting range, shooting distance, and shooting accuracy; determining a target accessory of a virtual weapon being used by the virtual object based on the target shooting parameters, the target accessory being an accessory currently owned by the virtual object; assembling the target accessory to the virtual weapon; and in response to an attack instruction, performing an attack operation based on the target accessory and the virtual weapon.

[0352] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0353] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0354] Since the computer program stored in the storage medium can execute the steps in any one of the accessory assembly methods provided in the embodiments of the present application, the beneficial effects that can be achieved by any one of the accessory assembly methods provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0355] The above is a detailed introduction to an accessory assembly method, device, storage medium and computer equipment provided in an embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for assembling accessories, characterized in that: include: Displaying a graphical user interface, the graphical user interface including at least a portion of a virtual scene and at least a portion of a virtual object located in the virtual scene, the graphical user interface including an aiming mark and an adjustment control; receiving an adjustment operation for the adjustment control, triggering an adjustment operation instruction, and adjusting the aiming range of the aiming mark in response to the adjustment operation instruction to obtain an adjusted target aiming range; and In response to the adjustment operation instruction, adjusting the shooting parameters to obtain adjusted target shooting parameters, wherein the target shooting parameters include at least one of the following: shooting range, shooting distance, and shooting accuracy; Obtaining a designated accessory that matches the target shooting parameters; Determine whether the specified accessory exists among the accessories currently owned by the virtual object, and obtain a determination result; Based on the determination result, determining a target accessory of the virtual weapon being used by the virtual object, the target accessory being an accessory currently owned by the virtual object; Assembling the target accessory to the virtual weapon; In response to the attack instruction, an attack operation is performed according to the target accessory and the virtual weapon.

2. The accessory assembly method according to claim 1, characterized in that: The step of determining the target accessory of the virtual weapon being used by the virtual object based on the judgment result includes: If the judgment result is that the designated accessory exists in the accessories currently owned by the virtual object, determining the designated accessory in the accessories currently owned by the virtual object as the target accessory; If the judgment result is that the designated accessory does not exist in the accessories currently owned by the virtual object, the designated accessory that does not exist is determined as a missing accessory, and the missing accessory type corresponding to the missing accessory is determined; Obtain candidate accessories of the missing accessory type from accessories currently owned by the virtual object; The candidate accessory is determined as a target accessory.

3. The accessory assembly method according to claim 2, characterized in that: After the step of determining the non-existent designated accessory as a missing accessory, the method further includes: Acquire accessories in a portion of the virtual scene that is within the viewing direction of the virtual object to obtain an accessories set; Determine whether the missing accessory exists in the accessory set; If the missing accessory exists in the accessory set, prompt information is generated, where the prompt information is used to prompt that the missing accessory exists in a portion of the virtual scene located within the viewing direction of the virtual object.

4. The accessory assembly method according to claim 2, characterized in that: After the step of determining the non-existent designated accessory as a missing accessory, the method further includes: When the missing accessory exists within the search range of the virtual object in the virtual scene, picking up the missing accessory; Determining whether the missing accessory type exists among the accessory types of accessories currently assembled on the virtual object; If the missing accessory type exists in the accessory types of the accessories currently assembled to the virtual object, uninstall the assembled accessories corresponding to the missing accessory type and assemble the missing accessories; If the missing accessory type does not exist in the accessory types of the accessories currently equipped to the virtual object, the missing accessory is equipped.

5. The accessory assembly method according to claim 1, characterized in that: The step of assembling the target accessory to the virtual weapon comprises: Uninstall the assembled component and assemble the target component.

6. The accessory assembly method according to claim 1, characterized in that: The step of adjusting the shooting parameters in response to the adjustment operation instruction to obtain the adjusted target shooting parameters includes: Get the current shooting parameters of the current virtual weapon; In response to the adjustment operation instruction, determining a shooting adjustment parameter; Based on the current shooting parameters and the shooting adjustment parameters, an adjusted target shooting parameter is determined.

7. The accessory assembly method according to claim 1, characterized in that: The adjustment operation instruction is a sliding operation of at least two fingers on the user interface; The step of adjusting the aiming range of the aiming mark in response to the adjustment operation instruction to obtain the adjusted target aiming range includes: Acquire a first touch position and a second touch position of the sliding operation on the user interface; Acquire a target touch distance between the first touch position and the second touch position; The aiming range of the aiming mark is adjusted based on the target touch distance to obtain an adjusted target aiming range.

8. The accessory assembly method according to claim 7, characterized in that: Before the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface, the method further includes: Determine whether the sliding operation stays on the user interface for a time period greater than a preset time period before sliding; If the sliding operation stays on the user interface for a time period longer than a preset time period before sliding, hiding the aiming mark at a preset time interval, and generating a prompt message in a designated area of ​​the user interface, the prompt message being used to prompt an adjustment method of the aiming mark; When it is detected that the sliding operation slides on the user interface, the step of returning to the step of obtaining the first touch position and the second touch position of the sliding operation on the user interface is performed.

9. The accessory assembly method according to claim 7, characterized in that: The step of adjusting the aiming range of the aiming mark based on the target touch distance to obtain an adjusted target aiming range includes: Determine a target touch distance interval corresponding to the target touch distance in a plurality of touch distance intervals; Determine the target aiming range corresponding to the target touch distance interval according to the first mapping relationship; The aiming range of the aiming mark is adjusted based on the center point of the aiming mark until the aiming range matches the target aiming range.

10. The accessory assembly method according to claim 1, characterized in that: The graphical user interface further includes a first response area and a second response area, and the adjustment operation is a pressing operation on the first response area or the second response area; The step of adjusting the aiming range of the aiming mark in response to the adjustment operation instruction to obtain the adjusted target aiming range includes: Acquire a pressing duration of the pressing operation in the first response area or the second response area; When it is detected that the pressing operation acts on the first response area, the aiming range of the aiming mark is increased based on the pressing duration to obtain an increased target aiming range; When it is detected that the pressing operation is applied to the second response area, the aiming range of the aiming mark is reduced based on the pressing duration to obtain a reduced target aiming range.

11. The accessory assembly method according to claim 10, characterized in that: The step of increasing the aiming range of the aiming mark based on the pressing duration to obtain an increased target aiming range when the pressing operation is detected to be applied to the first response area includes: Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship; Taking the center point of the aiming mark as a reference, increasing the aiming range of the aiming mark on the user interface until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range; The step of reducing the aiming range of the aiming mark based on the pressing duration to obtain a reduced target aiming range when the pressing operation is detected to be applied to the second response area includes: Determining a target adjustment range corresponding to the pressing duration according to a second mapping relationship; Taking the center point of the aiming mark as a reference, the aiming range of the aiming mark is reduced until the adjustment range matches the target adjustment range, thereby obtaining the target aiming range.

12. An accessory assembly device, characterized in that: include: A display module, configured to display a graphical user interface, wherein the graphical user interface includes at least a portion of a virtual scene and at least a portion of virtual objects located in the virtual scene, and the graphical user interface includes an aiming mark and an adjustment control; A first determination module is configured to receive an adjustment operation for the adjustment control, trigger an adjustment operation instruction, and adjust the aiming range of the aiming mark in response to the adjustment operation instruction to obtain an adjusted target aiming range; and adjust a shooting parameter in response to the adjustment operation instruction to obtain an adjusted target shooting parameter, wherein the target shooting parameter includes at least one of the following: a shooting range, a shooting distance, and a shooting accuracy; A second determination module is used to obtain a designated accessory that matches the target shooting parameter, determine whether the designated accessory exists in the accessories currently owned by the virtual object, obtain a determination result, and determine a target accessory of the virtual weapon being used by the virtual object based on the determination result, the target accessory being the accessory currently owned by the virtual object; An assembly module, used for assembling the target accessories to the virtual weapon; The response module is used to respond to the attack instruction and perform the attack operation according to the target accessory and the virtual weapon.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in the accessory assembly method according to any one of claims 1 to 11.

14. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the accessory assembly method according to any one of claims 1 to 11 are implemented.