Weapon switching method and apparatus for virtual game

By introducing main controls and auxiliary controls into the graphical user interface of the shooting game, rapid switching of virtual weapons is achieved, which solves the problem of inconvenient virtual weapon switching operations in the existing technology and improves the efficiency and convenience of weapon switching in the game.

WO2024198191A1PCT designated stage expired Publication Date: 2024-10-03NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Application Number
PCT/CN2023/111502
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-27
Filing Date
2023-08-07
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

The switching operation of virtual weapons in existing shooting games is inconvenient, cannot achieve fast switching, and is prone to accidental touches. It is limited by the length of the interface and the large distance between weapons, resulting in inconvenient operation.

Method used

By introducing a main control and multiple auxiliary controls into the graphical user interface, the main control displays the currently used virtual weapon, and the auxiliary controls display the properties of the virtual weapon. Users can quickly change virtual weapons through switching operations and perform game behaviors when attacking.

Benefits of technology

It enables rapid switching of multiple virtual weapons of virtual characters in the game interface, improving the agility and ease of operation of weapon switching and reducing the possibility of accidental touches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023111502_03102024_PF_FP_ABST
    Figure CN2023111502_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A weapon switching method for a virtual game, comprising: displaying on a graphical user interface a game interface corresponding to a virtual object controlled by a terminal device, the game interface displaying a switching control comprising a main control and at least two auxiliary controls distributed around the main control; in response to a switching operation in respect of the switching control, determining a target auxiliary control from amongst the at least two auxiliary controls, controlling a virtual weapon corresponding to the target auxiliary control to serve as the virtual weapon which is currently used by the virtual object, and controlling the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control; and, in response to an attack operation, controlling the virtual object to control the currently-used virtual weapon so as to execute a game behavior.
Need to check novelty before this filing date? Find Prior Art

Description

A weapon switching method and device for a virtual game

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This disclosure claims priority to Chinese patent application number 202310325638.1, filed on March 27, 2023, entitled “A method and device for switching weapons in a virtual game”, the entire contents of which are incorporated herein by reference. Technical Field

[0003] The present disclosure relates to the field of game technology, and in particular to a weapon switching method and device for a virtual game. Background Art

[0004] In existing shooting games, weapon switching is usually pre-set within the game. When players enter the game, they are presented with a default battle layout that includes weapon switching.

[0005] Weapon switching requires immediacy and high frequency, requiring players to react quickly and make informed decisions based on the current situation to switch weapons during intense matches. Therefore, convenient and flexible weapon switching is highly sought after by shooter gamers.

[0006] Currently, virtual weapons possessed by a virtual character are usually displayed at the bottom center of the game interface. A virtual character can have two to three weapons, and the virtual weapons can be displayed in a tiled manner on the left and right.

[0007] However, this type of tiled display of virtual weapons is, on the one hand, limited by the length of the interface and cannot display too many weapons; on the other hand, in the weapon switching operation, due to the large span between weapons, the weapon switching operation is less convenient, and it is impossible to switch weapons quickly, and it is easy to make accidental touches during the operation.

[0008] Summary of the Invention

[0009] According to one aspect of the present disclosure, a method for switching weapons in a virtual game is provided, wherein a graphical user interface is provided through a terminal device, and the method includes:

[0010] A game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, and the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0011] In response to a switching operation on the switching control, determining a target auxiliary control from at least two auxiliary controls, controlling the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and controlling the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0012] In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior.

[0013] According to one aspect of the present disclosure, a weapon switching device for a virtual game is provided, wherein a graphical user interface is provided through a terminal device, and the device includes:

[0014] A game interface display module, configured to display a game interface corresponding to a virtual object controlled by a terminal device in a graphical user interface, wherein the game interface displays a switch control; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control being configured to display a weapon identifier of a virtual weapon currently used by the virtual object, the at least two auxiliary controls each corresponding to a virtual weapon and being configured to display a weapon attribute identifier of the corresponding virtual weapon, the currently used virtual weapon being one of the virtual weapons corresponding to the at least two auxiliary controls;

[0015] a weapon switching module, configured to, in response to a switching operation on a switching control, determine a target auxiliary control from at least two auxiliary controls, control the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and control the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0016] The attack module is used to control the virtual object to control the currently used virtual weapon to perform game behavior in response to the attack operation.

[0017] According to one aspect of the present disclosure, an electronic device is provided, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the weapon switching method of the virtual game as described above is implemented.

[0018] According to one aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the weapon switching method of the virtual game as described above is implemented.

[0019] The embodiments of the present disclosure have the following advantages:

[0020] In an embodiment of the present disclosure, a game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, and a switch control including a main control and at least two auxiliary controls distributed around the main control is displayed in the game interface; in response to a switching operation on the switch control, a target auxiliary control is determined from at least two auxiliary controls, and the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character, and the main control is controlled to display the weapon identifier of the virtual weapon corresponding to the target auxiliary control; in response to an attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior, thereby realizing the display of multiple virtual weapons of the virtual character through the switch control in the game interface, and the virtual weapons can be quickly switched through the switch control, thereby improving the agility of weapon switching. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] FIG1A is a flowchart of a method for switching weapons in a virtual game according to an embodiment of the present disclosure;

[0022] FIG1B is a schematic diagram of a switching control provided by an embodiment of the present disclosure;

[0023] FIG2A is a flowchart of another method for switching weapons in a virtual game according to an embodiment of the present disclosure;

[0024] FIG2B is a schematic diagram of another switching control provided by an embodiment of the present disclosure;

[0025] FIG2C is a schematic diagram of a switching operation provided by an embodiment of the present disclosure;

[0026] FIG2D is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0027] FIG2E is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;

[0028] FIG3A is a flowchart of another method for switching weapons in a virtual game according to an embodiment of the present disclosure;

[0029] FIG3B is a schematic diagram of a second game screen provided by an embodiment of the present disclosure;

[0030] FIG3C is a schematic diagram of another second game screen provided by an embodiment of the present disclosure;

[0031] FIG3D is a schematic diagram of another second game screen provided by an embodiment of the present disclosure;

[0032] FIG4A is a schematic diagram of a graphical user interface provided by an embodiment of the present disclosure;

[0033] FIG4B is a schematic diagram of another graphical user interface provided by an embodiment of the present disclosure;

[0034] FIG5 is a schematic diagram of the structure of a weapon switching device for a virtual game provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] To make the above-mentioned purposes, features, and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below with reference to the accompanying drawings and specific embodiments. It is apparent that the embodiments described are only a portion of the embodiments of the present disclosure, not all of them. All other embodiments derived by persons of ordinary skill in the art based on the embodiments of the present disclosure without inventive effort are also within the scope of protection of the present disclosure.

[0036] The following is an introduction to the terms involved in the embodiments of the present disclosure:

[0037] Virtual games: Virtual games can refer to two-dimensional or three-dimensional games. Virtual games can be games corresponding to game applications in terminals (mobile phones, PCs, cloud terminals, etc.).

[0038] Game interface: It is the terminal interface displayed (or provided) when the application runs a virtual game on a terminal (mobile phone, PC, cloud, etc.). The game interface can present game scenes and controls for users to operate the game.

[0039] Avatar: An image of a person or object that can interact with a game scene, or an animated object within the game scene. This animated object can be a virtual person, virtual animal, or cartoon character. A avatar is a virtual image that represents the game user within the game scene.

[0040] The game scene may include multiple virtual characters, each of which has its own shape and volume in the game scene and occupies a portion of the space in the virtual scene. In team competition games, two or more virtual characters can form a game team in the game scene and compete with other game teams or individuals.

[0041] 1A shows a flowchart of a method for switching weapons in a virtual game according to an embodiment of the present disclosure. The method may include the following steps, wherein a graphical user interface is provided by a terminal device:

[0042] Step 101: Displaying a game interface corresponding to a virtual object controlled by a terminal device in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, and the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, wherein the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0043] After a user launches a virtual game through a terminal device, a graphical user interface (GUI) of the virtual game may be displayed on the terminal device. The virtual character in the virtual game may possess two or more weapons, and a switch control may be displayed in the GUI for switching the weapon currently used by the virtual character.

[0044] The switching control may include a main control and at least two auxiliary controls distributed around the main control. For example, the switching control may be a roulette-style control. Each auxiliary control may correspond to a virtual weapon carried by a virtual character. The weapon types of virtual weapons may include but are not limited to guns, artillery shells, arrows and other offensive virtual weapons in virtual games.

[0045] In one example, the main control can be set to a circle or other shapes. The main control can display a weapon identifier, which can be a legend of the currently used weapon or the weapon name. In one example, the same weapon can have different legends in different configuration states, so that the legend in the switch control can change in real time according to the actual configuration state of the currently used weapon.

[0046] In one example, the auxiliary controls can be set as fan-shaped controls surrounding the circular main control unit, or can be set to other shapes; the auxiliary controls can be divided into auxiliary controls corresponding to the virtual weapons being used by the virtual character and auxiliary controls corresponding to the virtual weapons held by the virtual character to be used.

[0047] In one example, in a graphical user interface, the auxiliary control corresponding to the virtual weapon being used by the virtual character can be distinguished from the auxiliary controls corresponding to other virtual weapons to be used by adding prominent elements or adjusting the size of the auxiliary control (such as enlarging the auxiliary control) or the position (such as increasing the distance between the auxiliary control and the main control), wherein the prominent elements may include but are not limited to brightness elements, color elements, identification elements and other elements.

[0048] The auxiliary control can display the corresponding weapon attribute identifiers, such as ammunition information and attribute information. Ammunition information can include information about the magazine's loadout, the current magazine's remaining ammunition, and the weapon's remaining ammunition. Attribute information can include weapon accessory information (such as silencers, smoke suppressors, magazine types, and scopes), as well as the virtual weapon's own attributes (e.g., charged or charged firearms). Accessory information can include currently installed accessories and switchable accessories. The auxiliary control can also display weapon name information and a weapon legend.

[0049] In actual applications, a switch control can be divided into different states. In different states, the switch control has different information in its auxiliary control. In actual applications, the auxiliary control display content of the switch control can be set according to actual needs.

[0050] In one example, during the game, the switch control can be adjusted in real time according to the weapons held by the virtual character. For example, when the virtual character holds three weapons, the switch control can be set to present three auxiliary controls; when the virtual character holds four weapons, the switch control can be automatically adjusted from three auxiliary controls to four auxiliary controls.

[0051] As shown in Figure 1B, this is a schematic diagram of a switch control for a graphical user interface of a virtual game. The center of the switch control is a circular main control, which displays a weapon legend of the virtual weapon currently used by the virtual character. Surrounding the main control are three fan-shaped auxiliary controls, which correspond to the three virtual weapons A, B, and C carried by the virtual character respectively; the fan-shaped auxiliary controls can display the ammunition information of the virtual weapons.

[0052] Among them, the fan-shaped auxiliary control located directly above is highlighted, which is the auxiliary control corresponding to the virtual weapon A currently used by the virtual character. The auxiliary control displays the number of bullets in the magazine 99 and the remaining amount of bullets 999.

[0053] The auxiliary control on the left is an auxiliary control corresponding to the virtual weapon B to be used carried by the virtual character, and the auxiliary control displays the remaining ammunition information 90 of the virtual weapon.

[0054] The auxiliary control on the right is the auxiliary control corresponding to the virtual weapon C to be used by the virtual character, and the auxiliary control displays the remaining ammunition information of 0 for the virtual weapon.

[0055] In one example, when the ammunition of a virtual weapon is exhausted, the number of the remaining ammunition information may be displayed in a specific color (eg, red).

[0056] By displaying switching controls in the game interface, users can intuitively determine the multiple weapons that the virtual character can use. Compared with the tiled display in the existing technology, switching controls can save display space, reduce the intervals between weapons, and facilitate weapon switching operations.

[0057] Step 102: In response to a switching operation on a switching control, a target auxiliary control is determined from at least two auxiliary controls, a virtual weapon corresponding to the target auxiliary control is switched to a virtual weapon currently used by the virtual character, and the main control is controlled to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0058] The switch control in the graphical user interface can provide virtual game users with the function of quickly switching virtual weapons. When the virtual game user needs to switch virtual weapons, the switch control can be pre-set to perform switching operations, such as single-click operation, double-click operation, long press operation, sliding operation, etc. It should be noted that the switching operation is not limited to the above examples, and the user can set the switching operation according to actual needs.

[0059] The terminal device can respond to the switching operation, determine the target auxiliary control from multiple auxiliary controls, and then replace the virtual weapon currently used by the virtual game user with the virtual weapon corresponding to the target auxiliary control. At the same time, it updates the weapon identification displayed in the main control. Specifically, the weapon identification of the virtual weapon corresponding to the target auxiliary control is displayed in the main control.

[0060] In one embodiment of the present disclosure, when the switching operation is a double-click operation, the target auxiliary control is the auxiliary control corresponding to the virtual weapon determined according to the preset weapon switching rule.

[0061] Among them, the preset weapon switching rule can be the switching rule of virtual weapons preset by the virtual game user, or it can be the switching rule of virtual weapons defaulted by the terminal system. The switching rule can be related to the priority of weapon use. For example, the virtual game user pre-sets the priority of weapon use as virtual weapon B>virtual weapon A>virtual weapon C. When the virtual game user has virtual weapon A, virtual weapon B, and virtual weapon C at the same time, the virtual game user double-clicks the switch button of the graphical user interface while currently using virtual weapon A. According to the weapon switching rule, virtual weapon A can be switched to virtual weapon B.

[0062] In another example, if the default weapon switching rule of the virtual game system is to switch to the virtual weapon that is most suitable for the current game scene, when the virtual game user double-clicks the switching control, the terminal device can determine the target auxiliary control that is most suitable for the current game scene from multiple auxiliary controls in combination with the current game scene, and then execute the weapon switching when the virtual weapon currently used by the virtual game user is not the most suitable virtual weapon.

[0063] In another example, the preset switching order can also be to switch the weapon currently used by the user to the weapon the user switched to last time. For example: after the user switches weapon A to weapon B, when the user double-clicks the switch control, the weapon B currently used by the virtual character will be automatically switched to weapon A.

[0064] The preset switching order can also be to switch the user's current weapon to the most powerful weapon of the same type held by the user. For example, if the avatar is currently equipped with pistol A and, while exploring the game, picks up pistol B, which is more powerful than pistol A, the avatar can automatically equip weapon B by double-clicking the switch control.

[0065] It should be noted that the virtual game user can set the weapon switching order according to actual needs and is not limited to the above examples.

[0066] In one embodiment of the present disclosure, the switch control can be used not only for switching virtual weapons, but also for switching weapon attributes of virtual weapons. When the switch control is used for switching attributes of virtual weapons, the specific switching steps are: in response to an attribute adjustment operation of the virtual weapon currently used by the virtual character based on the switch control, adjusting the weapon attribute information of the virtual weapon;

[0067] The weapon attribute information includes any one or more of the following: preset attribute information of the virtual weapon, and attribute information of the virtual weapon after being equipped with weapon accessories.

[0068] Among them, the accessories of virtual weapons may include but are not limited to silencers, smoke suppressors, magazines, scopes and other accessories; the attribute information of weapon accessories may include the status of the accessories (such as whether the scope is installed, whether the scope is open), the type of accessories (such as magazine type, scope type); the attribute information of the weapon itself may refer to the weapon attributes set for different weapon types in the virtual game, such as charged firearms, fired firearms, etc.

[0069] Step 103 : In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform a game action.

[0070] After the virtual weapon is switched, the user can perform an attack operation in the virtual game, and the terminal device responds to the attack operation, thereby controlling the virtual character in the virtual game to attack with the virtual weapon.

[0071] For example, when the virtual weapon is a firearm, the user can click a shooting button in the terminal device to perform an attack operation, and the terminal device can respond to the attack operation and control the virtual object to perform a shooting action using the virtual weapon.

[0072] In an embodiment of the present disclosure, a game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, and a switch control including a main control and at least two auxiliary controls distributed around the main control is displayed in the game interface; in response to a switching operation on the switch control, a target auxiliary control is determined from at least two auxiliary controls, and the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character, and the main control is controlled to display the weapon identifier of the virtual weapon corresponding to the target auxiliary control; in response to an attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior, thereby realizing the display of multiple virtual weapons of the virtual character through the switch control in the game interface, and the virtual weapons can be quickly switched through the switch control, thereby improving the agility of weapon switching.

[0073] 2A , there is shown a flowchart of another method for switching weapons in a virtual game according to an embodiment of the present disclosure, which may include the following steps:

[0074] Step 201: Displaying a game interface corresponding to a virtual object controlled by a terminal device in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, and the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, wherein the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0075] Step 202: In response to a touch operation on a switch control, the switch control is switched from a first control state to a second control state for display, wherein when the switch control is in the second control state, the plurality of auxiliary controls are used to display ammunition information and weapon identification of a virtual weapon carried by the virtual character;

[0076] Among them, the state of the switch control can be divided into a first control state and a second control state, wherein the distribution area of ​​the first control state is smaller than the distribution area of ​​the second control state, and the second control state can be used to display detailed information of weapons in multiple auxiliary controls to facilitate users to select weapons. The first control state is the normal display state of the switch control, that is, when the user does not operate the switch control, the switch control is displayed in the graphical user interface in the first control state.

[0077] Among them, the switching operation may include a touch operation and a release operation for the switching control. The touch operation is a virtual game control operation triggered by the user touching the switching control, and the release operation is an operation in which the user changes from touching the switching control to not touching the switching control.

[0078] During the virtual weapon switching process, when the user performs a touch operation on the switching control, the switching control can be switched from the first control state to the second control state for display, so as to present more detailed weapon information to the user, such as the ammunition information and weapon identification of the virtual weapon.

[0079] Step 203: In response to a detachment operation on the switch control in the second control state, a target auxiliary control is determined from at least two auxiliary controls according to the detachment operation.

[0080] When a detach operation is performed on a switch control, the target auxiliary control can be determined based on the detach operation. Specifically, the target auxiliary control can be determined based on the area where the detach operation occurs. For example, when the user releases the switch control after performing a switch operation and is within the effective area of ​​auxiliary control 1, auxiliary control 1 can be used as the target auxiliary control.

[0081] In one embodiment of the present disclosure, when the switch control is in the second control state, the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control is switched to a cancel control; in response to the detachment operation acting on the cancel control, the cancellation of the switching operation for the currently used virtual weapon is determined.

[0082] In actual application, when the switch control is in the second control state, the main control may be a cancel control. When the disengagement operation is performed on the area where the cancel control is located, the current virtual weapon switching is canceled.

[0083] As shown in Figure 2B, this is a schematic diagram of the switch control in the second control state. When the switch control is in the second control state, the switch control is proportionally enlarged from the first control state as a whole, the weapon identifier in the main control is replaced by a cancel control, and multiple auxiliary controls can display weapon details such as weapon identifiers in addition to displaying ammunition information.

[0084] In one embodiment of the present disclosure, the switching operation also includes a sliding operation, which is an operation continuous with the touch operation, and the release operation is an operation continuous with the sliding operation. The sliding operation is an operation greater than a preset sliding threshold, and the preset sliding threshold is the minimum sliding distance from the first action position of the touch operation to the second action position responding to the release operation.

[0085] In actual applications, the switching operation is composed of multiple continuous operations, which may include touch operation, slide operation and release operation. The three operations are performed in the order of touch-slide-release to realize the switching operation of the switch control.

[0086] The position at which the touch operation ends is the starting point of the sliding operation, and the position at which the touch operation ends is the end point of the sliding operation. The straight-line distance from the starting point to the end point of the sliding operation is the sliding distance of the sliding operation.

[0087] The preset sliding threshold is the minimum sliding distance for implementing the switching operation on the target auxiliary control. The preset sliding thresholds of multiple auxiliary controls can be the same or different. For example, the preset sliding thresholds can be arranged according to the historical switching frequency of each virtual weapon.

[0088] Among them, in response to a switching operation on a combined control, a target auxiliary control is determined from at least two auxiliary controls, and the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character, including: after detecting a touch operation on the switching control, determining the first action position of the touch operation; and judging whether the first action position is a preset area in the main control, when the first action position is the preset area, determining the sliding distance of the sliding operation, and judging whether the sliding distance is greater than a preset sliding threshold; when it is determined that the sliding distance is greater than the sliding threshold, determining the target auxiliary control from multiple auxiliary controls according to the sliding end point, and controlling the virtual weapon corresponding to the target auxiliary control to be switched to the virtual weapon currently used by the virtual character.

[0089] In one embodiment of the present disclosure, the preset sliding threshold corresponding to each auxiliary control can be configured according to the switching frequency of the virtual weapon corresponding to the auxiliary control.

[0090] When the switching frequency of a virtual weapon is higher than the preset frequency, the virtual weapon is used frequently, and a preset sliding threshold can be set within a first preset range. When the switching frequency of the virtual weapon is not higher than the preset frequency, a preset sliding threshold can be set within a second preset range, wherein the maximum value of the first preset range is less than or equal to the minimum value of the second preset range. For example, when the switching frequency of a virtual weapon is high, the weapon needs to be switched quickly, and its preset sliding distance is smaller, such as setting it to 50-80px; when the switching frequency of a virtual weapon is low and lower than the second preset range, a longer preset sliding distance can be set, such as setting the virtual weapon to more than 80px.

[0091] As shown in FIG2C , this is a schematic diagram of a switching operation for a switching control. As shown in FIG2C , the switching control is a circular wheel control. The area where the first circle from the center of the wheel is located can be set as a preset area for triggering the switching operation, and the point on the second circle from the center to the outside can be set as the position closest to the preset area for triggering the switching of virtual weapons.

[0092] When the user acts within the middle circle, the action point can be set to the center of the middle circle. When the user starts to slide, sliding from the action point to the first circle (as shown on the left side of Figure 2C), the user's disengagement operation cannot trigger the switching of virtual weapons; when the user continues to slide to the point on the second circle (as shown on the right side of Figure 2C), the user can trigger the switching of virtual weapons by performing a disengagement operation; when the user does not perform a disengagement operation when sliding to the point on the second circle, and continues to slide up a certain distance and then disengages, the switching of virtual weapons can still be triggered.

[0093] The sliding distance shown on the right side of FIG2C is the minimum sliding distance of the sliding operation, and the minimum sliding distance is used as a preset sliding threshold to determine whether the user operation can trigger the switching of virtual weapons.

[0094] Step 204: Control the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and switch the switching control from the second control state to the first control state for display;

[0095] After the user performs the disengagement operation, the terminal device can control the virtual character to switch weapons, and after the weapon switching is completed, the switching control can be switched from the second control state to the first control state.

[0096] Step 205 : In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform a game action.

[0097] In one embodiment of the present disclosure, the switching control can also trigger a bullet reload. The bullet reload method is: when a touch operation on the switching control is detected, in response to the touch duration of the touch operation being less than a first time threshold, the bullets of one or more virtual weapons corresponding to the multiple auxiliary controls are reloaded.

[0098] Among them, users can set the bullet reload according to actual needs. For example, when the application clicks the main control of the switch control, the bullet is replaced for the currently used virtual weapon or all the virtual weapons held by the virtual character; for example, when the user clicks a certain auxiliary control of the switch control, the bullet is replaced for the virtual weapon corresponding to the auxiliary control.

[0099] In actual applications, after executing the bullet change, the bullet quantity information of each virtual weapon in the switch control is updated accordingly.

[0100] In one embodiment of the present disclosure, the switching control can also integrate the triggering of the layout setting corresponding to the switching control to realize the fast layout switching control. The method includes: in response to the touch duration of the touch operation being greater than the second time threshold, determining to trigger the first adjustment operation for the switching control; the second time threshold is greater than the first time threshold.

[0101] The first adjustment operation is an operation for starting a switch control setting mode. When the first adjustment operation is triggered, the graphical user interface can be controlled to display a second game screen corresponding to the switch control in response to the first adjustment operation on the switch control, wherein the second game screen is a setting interface for the switch control.

[0102] In one embodiment of the present disclosure, the specific process of step 202 and step 203 is: in response to a sliding operation performed continuously after the touch operation when the touch duration of the touch operation is greater than the first time threshold, during the sliding operation, the switching control is switched from the first control state to the second control state for display, and after the release operation, the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character.

[0103] It should be noted that the first time threshold and the second time threshold can be set according to user needs and are not subject to excessive restrictions here.

[0104] The above process is exemplarily described below with reference to FIG. 2D and FIG. 2E :

[0105] Figure 2D is a schematic diagram of a graphical user interface when the switching control is in the first control state. The graphical user interface can display movement controls, bullet reload controls, shooting controls, and switching controls in the first control state. The movement controls are used to control the movement of the virtual character in the game scene, the bullet reload controls are used to replenish ammunition for the firearms held by the virtual character, and the shooting controls are used to control the virtual character to use virtual weapons to attack.

[0106] When the user performs a switching operation on the switch control in the first control state in Figure 2D, and the touch duration of the user's touch operation on the main control is greater than the second time threshold (such as the second time threshold is 0.2 seconds), the control state of the switch control changes from the first control state to the second control state, so that its graphical user interface switches from Figure 2D to Figure 2E. Figure 2E is a schematic diagram of the graphical user interface of the switch control in the second control state, and the moving control, bullet reload control, shooting control and the switch control in the second control state can be displayed on the graphical user interface.

[0107] Among them, when the switch control is in the second control state, the switch control distribution area becomes larger, wherein the main control displays a cancel button for canceling weapon switching, and the external auxiliary control surrounding the main control extends outward to enlarge the auxiliary control distribution area. In addition to displaying the ammunition information displayed in the first control state, the auxiliary control can also display the weapon legend of the weapon corresponding to the auxiliary control.

[0108] After the touch operation, the user continues to slide from the main control to the auxiliary control surrounding the main control, and performs a detachment operation, that is, the user releases the switch control, then the weapon currently used by the virtual character can be switched to the weapon corresponding to the auxiliary control. At the same time, after the user releases the switch control, the control state of the switch control is switched from the second control state to the first control state.

[0109] When the user slides to the auxiliary control according to the sliding operation and does not release it, but continues to slide the auxiliary control to the cancel button of the main control and then releases it, the weapon switching will not be performed, and after the user releases it, the switching control will switch from the second control state to the first control state.

[0110] In the disclosed embodiment, when a touch operation is performed on the switch control, the switch control switches from the first control state to the second control state, allowing the user to easily view the details of the virtual weapon being carried and switch weapons. During the touch phase, the switch control switches to the second control state, displaying weapon details to assist the user in switching weapons. During the disconnect phase, the switch control returns to the first control state, avoiding excessive interface usage and improving the user's gaming experience.

[0111] 3A , there is shown a flowchart of another method for switching weapons in a virtual game according to an embodiment of the present disclosure, which may include the following steps:

[0112] Step 301: Displaying a game interface corresponding to a virtual object controlled by a terminal device in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, and the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, wherein the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0113] Step 302: In response to a switching operation on a switching control, a target auxiliary control is determined from at least two auxiliary controls, a virtual weapon corresponding to the target auxiliary control is switched to a virtual weapon currently used by the virtual character, and the main control is controlled to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0114] Step 303, in response to the attack operation, controlling the virtual object to control the currently used virtual weapon to perform a game action;

[0115] Step 304 , in response to the first adjustment operation on the switch control, controlling the graphical user interface to display a second game screen corresponding to the switch control;

[0116] Among them, the first adjustment operation is an operation to trigger the switching control setting interface. The first adjustment operation can be a single-click operation, a pressing operation, etc. For example, after continuously pressing the switching control for 3S, the switching control setting interface is entered.

[0117] When the virtual game user performs a first adjustment operation on the switching control, the terminal device responds to the first adjustment operation, and the graphical user interface displays a second game screen, which is a game interface for setting the switching control.

[0118] Step 305, in response to the second adjustment operation for the second game screen, adjust the interaction parameters of the switching control according to the second adjustment operation, and generate an adjusted switching control according to the interaction parameters, wherein the interaction parameters include at least one of the following parameters: display parameters, response parameters.

[0119] In the second game screen, when the user performs a second adjustment operation, the interaction parameters of the switching control can be adjusted according to the second adjustment operation, and the adjusted switching control can be generated.

[0120] In one embodiment of the present disclosure, the second game screen covers the game interface with a preset transparency so that the distribution of other controls of the game interface except the switch control can be determined in the second game screen, and in the second game screen, other controls in the game interface are in an unavailable state.

[0121] In one embodiment of the present disclosure, an exit control for the second game screen is displayed in the second game screen, and the method further includes: in response to a confirmation operation for the exit control, controlling the graphical user interface to hide the second game screen and display the game interface.

[0122] The confirmation operation can be any one of a click operation and a long press operation for the exit control. It should be noted that the confirmation operation is not limited to the above examples, and the user can set the confirmation operation according to actual needs.

[0123] In one embodiment of the present disclosure, a save control for adjusting the switching control is displayed in the second game screen, and the method further includes: in response to a confirmation operation for the save control, controlling the graphical user interface to save the adjustment for the second game screen.

[0124] The confirmation operation can be any one of a click operation and a long press operation for the exit control. It should be noted that the confirmation operation is not limited to the above examples, and the user can set the confirmation operation according to actual needs.

[0125] In one embodiment of the present disclosure, displaying a size adjustment control for adjusting the size of a switching control in the second game screen also includes: in the second game screen, in response to a size adjustment operation on the size adjustment control, adjusting the size of the switching control according to the size adjustment operation.

[0126] In actual application, in the second game screen, the size adjustment control is used to adjust the size of the switch control on the graphical user interface. In the second game screen, the user acts on the size adjustment control to achieve scaling adjustment of the size of the switch control.

[0127] In one embodiment of the present disclosure, the method further includes: in the second game screen, in response to a position adjustment operation on the switch control, adjusting the position of the switch control.

[0128] In the second game screen, a position adjustment operation can be performed on the switch control, wherein the position adjustment operation can be: in the second game screen, select the switch control, and drag the switch control to move the position of the switch control to a suitable area.

[0129] In one embodiment of the present disclosure, the method further includes: in the second game screen, in response to a click operation on the main control, switching the control from the first control state to the second control state for display.

[0130] In one embodiment of the present disclosure, the method further includes: in the second game screen, in response to a rotation operation on the switch control, adjusting the angle information of the switch control, and maintaining the weapon identification and bullet amount information in the multiple auxiliary controls in a preset direction.

[0131] In actual application, in the second game screen, the switch control can be rotated to adjust the angle of the switch control. After the angle is rotated, the weapon logo displayed in the auxiliary control can still maintain the preset direction.

[0132] In one embodiment of the present disclosure, the method also includes: in the second game screen, in response to a click operation on the first target auxiliary control, highlighting the first target auxiliary control, and switching the bullet information in other auxiliary controls to a replacement control; in response to a click operation on the target replacement control, swapping the position of the auxiliary control corresponding to the target replacement control with the first target auxiliary control.

[0133] In actual applications, when the user clicks on the target auxiliary control, the target auxiliary control can be selected. At the same time, a replacement control can be presented in other unselected auxiliary controls in the switch control. When the user performs a replacement operation on the target replacement control, the position of the target auxiliary control and the auxiliary control corresponding to the target replacement control are swapped.

[0134] In one example, when the user selects a target auxiliary control, a prominent element may be added to the target auxiliary control. The prominent element may include a brightness element, a color element, an identification element, and the like.

[0135] In one embodiment of the present disclosure, the method also includes: in the second game screen, in response to a click operation on the first target auxiliary control, highlighting the area adjustment auxiliary line of the first target auxiliary control; in response to the click operation on the first target auxiliary control, in response to the adjustment operation on the area adjustment auxiliary line, adjusting the area distribution of the first target auxiliary control.

[0136] In actual applications, in the second game screen, the regional distribution of auxiliary controls may also be adjusted.

[0137] The larger the area of ​​the target auxiliary control, the higher the success rate of switching, which can support more frequent switching operations. By adjusting the area of ​​the weapon, players can help in specific gameplay situations where certain firearms are restricted or used infrequently. At the same time, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual applications, real-time dynamic adjustments can be made based on player needs and player mechanics.

[0138] The following is an exemplary description of the adjustment operation of the switch control when the switch control is in the setting mode with reference to FIG. 3B to FIG. 3D :

[0139] When the user presses and holds the switch control for 3 seconds without releasing it, the switch control may enter the wheel setting mode, as shown in FIG3B .

[0140] After entering this mode, in the game interface, the transparency of the interactive buttons (such as the move button, shoot button, and reload button) except for the switch controls is reduced, in order to make the roulette settings clearer and more convenient.

[0141] In the roulette setting mode, the second game interface can display an exit button and a save settings button; when the user clicks the exit button, the second game interface can be exited and returned to the first game interface; when the user clicks the save settings, the current adjustments to the switch controls can be saved and applied to the first game interface.

[0142] In this mode, a roulette wheel size adjustment scroll bar may be displayed in the second game screen for adjusting the roulette wheel size. When the user slides the scroll bar, the roulette wheel size is adjusted.

[0143] In FIG3B , when the switch control is selected, the user can adjust the position of the switch control in the graphical user interface by dragging the selected switch control.

[0144] When the switch control is clicked, the switch control switches from the first control state to the second control state, as shown in FIG3C . Clicking the main control selects the entire switch control, and the switch control can be rotated to adjust to any viewing angle.

[0145] Click the auxiliary control and select the target auxiliary control, as shown in Figure 3C. At this time, the selected target auxiliary control is highlighted and the adjustment auxiliary line is displayed, and the replacement control is presented in the unselected auxiliary control in the switch control; when the user clicks the target replacement button, the auxiliary control position is replaced; when the user drags the adjustment auxiliary line, the distribution area of ​​the target auxiliary control can be adjusted.

[0146] As shown in Figure 3D, in the roulette mode, when the switch control is in the second control state, the switch control can be selected and rotated. After adjusting the angle of the switch control, the virtual weapon icon and bullet information in the auxiliary control and the cancel button of the main control can maintain the preset angle.

[0147] In the embodiment of the present disclosure, in a virtual game, the setting mode of the switch control can be quickly entered through the switch control, so as to facilitate adjustment of the graphical user interface layout of the switch control.

[0148] The following provides an application scenario for an embodiment of the present disclosure. FIG4A shows a schematic diagram of a graphical user interface. The interface includes a game scene and virtual objects within the game scene, which are not shown in FIG4A . Players control the movement of virtual objects within the game scene. The interface in FIG4A shows various controls, which are displayed above the game scene.

[0149] Reference numeral 1000 represents a backpack control. Touching this control triggers the display of the backpack interface in the graphical user interface, allowing users to view the backpack's items. These items may include, but are not limited to, medicine, weapons, accessories, and armor. In an optional embodiment, the backpack control is edged with lines to indicate the amount of items in the backpack. Touch operations on the backpack control may include clicks, double-clicks, long presses, and swipes.

[0150] 1002 is a mobile control, and the circle filled with shadow is the joystick in the mobile control. In an optional embodiment, the mobile control is configured with a mobile response area, wherein the mobile response area can be the same size as the mobile control, that is, the area in the graphical user interface corresponding to the mobile control is the mobile response area. In an optional embodiment, the size of the mobile response area can be larger than the size of the mobile control, that is, the mobile control is set in the mobile response area, and in terms of distance, the graphical user interface is divided into left and right areas from the middle, wherein the left area is the mobile response area of ​​the mobile control. The mobile control instruction is triggered by the touch operation acting on the mobile response area of ​​the mobile control, and the movement direction of the virtual object is controlled according to the mobile control instruction. Among them, the touch operation acting on the mobile response area of ​​the mobile control can be operations such as clicking, double-clicking, long pressing, and sliding.

[0151] When it is detected that the touch operation that triggers the movement control instruction meets the preset conditions, the "sprint" instruction is triggered to control the virtual object to automatically run continuously in the game scene. As shown in Figure 4A, in an optional embodiment, when the touch operation that triggers the movement control instruction meets the preset conditions, the touch operation acting on the joystick area slides along a preset direction to a preset distance or a preset area (such as the position indicated by the arrow above the joystick). For example, when the touch operation drags the joystick upward, the sprint control 1006 appears. When the sprint control is triggered, the virtual object enters the fast running mode. At the same time, the 1030 control is also a sprint control. When the 1030 control is clicked, the virtual object enters the fast running mode. In an optional embodiment, when the touch operation that triggers the movement control instruction meets the preset conditions, the touch operation acting on the joystick area meets a preset duration, or meets a preset pressure, etc.

[0152] 1004 and 1014 are both attack controls. Touching the attack response area of ​​the attack control triggers attack commands, controlling the virtual character to execute attack actions within the game scene according to the attack commands. The attack actions triggered by the attack control correspond to the current state of the virtual object. For example, when the virtual object is equipped with a ranged weapon, the attack control triggers a shooting action. That is, the left hand can trigger control 1004 to execute a shooting action, while the right hand can trigger control 1014 to execute a shooting action. When the virtual character is equipped with a melee weapon, the attack control triggers a slashing action, etc. In an optional embodiment, only one of the attack controls 1004 and 1014 is displayed. The display position of the attack control can be adjusted based on a position setting command, which can be triggered in the settings interface or during the game. The touch operation on the attack control can include a click, double-click, long press, or swipe.

[0153] 1008 and 1010 are gesture controls. Touching these gesture controls triggers gesture adjustment commands to adjust the virtual object's posture in the game scene. Activating 1008 controls the weapon's position at the virtual object's left arm, allowing the virtual object to stand with its head turned to the left. Activating 1010 controls the weapon's position at the virtual object's right arm, allowing the virtual object to stand with its head turned to the right. 1008 and 1010 are primarily used to control the virtual object's posture when it's hiding behind obstacles like walls and trees. Touch operations on gesture controls can include tapping, double-clicking, long pressing, and sliding.

[0154] In addition, control 1016 is a reload control. Triggering the reload control adds bullets to the currently used weapon. After reloading, the bullet count is at its maximum. Among them, the touch operations acting on the weapon slot can be click, double-click, long press, swipe, etc.

[0155] Controls 1018 and 1020 are action controls. Touch operations applied to these control controls control the virtual object to perform corresponding actions in the game scene. For example, triggering 1018 can cause the virtual object to crouch, while triggering 1020 can cause the virtual object to lie prone. Control 1022 can cause the virtual object to jump. Touch operations applied to the action controls can include tapping, double-clicking, long pressing, and sliding.

[0156] Control 1024 is used to control the current game scene to enter scope mode. When a first touch operation on control 1024 is detected, the game scene enters scope mode. In scope mode, a sighting lens is displayed in the game scene, and the game scene as seen through the sighting lens is also displayed. This improves shooting accuracy. When a second touch operation on control 1024 is detected, the game scene exits scope mode. In an alternative embodiment, the first and second touch operations are independent touch operations. For example, clicking control 1024 enters scope mode, and clicking control 1024 again exits scope mode, re-displaying the game scene with the virtual camera following the virtual object. In an alternative embodiment, the first and second touch operations can be the start and end operations of a single touch operation. For example, when control 1024 is touched, the game scene enters scope mode. While the control is held down, the game scene remains in scope mode. Scope mode exits when the touch that triggered the touch operation leaves the touch detection area.

[0157] Control 1026 is used to control the shooting parameters of the virtual camera presenting the game screen, thereby adjusting the field of view of the game scene displayed in the graphical user interface. In an optional embodiment, it is determined that a touch operation applied to control 1026 is detected, and the shooting parameters of the virtual camera are adjusted based on the touch operation. The shooting parameters include but are not limited to the position, direction, and viewing angle of the virtual camera. The touch operation applied to control 1026 can be a click, double-click, long press, or slide.

[0158] Control 1028 is a marker control. Touching the marker control allows you to mark virtual objects in the game scene. Control 1032 is a settings control. Clicking control 1032 displays a settings menu for configuring basic game functions. Touch operations on control 1028 include tapping, double-clicking, long pressing, and sliding.

[0159] Controls 1034 and 1036 are message controls, where 1034 can be used to view system notifications, and 1036 can be used to view messages sent by teammates or send messages to teammates. 1038 is a mini-map that displays the location of the virtual objects controlled by the player, and can also display the locations of some other players' virtual objects.

[0160] 1040 is a switching control in the embodiment of the present disclosure, which is used by the user to switch the virtual weapon currently used by the virtual character. The switching control is composed of a main control and multiple auxiliary controls distributed around the main control. Among them, the main control can display the weapon legend of the weapon currently used by the user, and the multiple auxiliary controls can display the weapon's ammunition information.

[0161] Based on the above application scenarios, the player can execute the weapon switching method of the virtual game in this embodiment through the switching control 1040.

[0162] In another application scenario, as shown in FIG4B , in addition to the controls described in FIG4A , the graphical user interface may also include a control 1012 , which is a weapon slot. Triggering the weapon slot switches the player's weapon. The "Continuous Fire" button on the left indicates the current shooting mode. In "Continuous Fire" mode, multiple bullets are fired continuously. In addition to "Continuous Fire" mode, you can also switch to "Single Fire" mode. In "Single Fire" mode, a single bullet is fired. The shaded bar on the lower side displays the amount of bullets in the weapon. During shooting, the amount of bullets decreases continuously. When the amount of bullets reaches zero, the bullet can be automatically reloaded, at which point the amount of bullets is at its maximum.

[0163] It should be noted that for the method embodiments, for the sake of simplicity, they are expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present disclosure are not limited by the order of the actions described, because according to the embodiments of the present disclosure, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present disclosure.

[0164] 5 , a schematic diagram of the structure of a weapon switching device for a virtual game provided by an embodiment of the present disclosure is shown, which may specifically include the following modules:

[0165] A game interface display module 501 is used to display a game interface corresponding to a virtual object controlled by a terminal device in a graphical user interface, and a switching control is displayed in the game interface; wherein the switching control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display the weapon identification of the virtual weapon currently used by the virtual object, and the at least two auxiliary controls respectively correspond to a virtual weapon and are configured to display the weapon attribute identification of the corresponding virtual weapon, and the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls; a weapon switching module 502 is used to respond to a switching operation on the switching control, determine a target auxiliary control from at least two auxiliary controls, control the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and control the main control to display the weapon identification of the virtual weapon corresponding to the target auxiliary control; an attack module 503 is used to respond to an attack operation and control the virtual object to control the currently used virtual weapon to perform game behavior.

[0166] In this embodiment, multiple virtual weapons of a virtual character are displayed in the game interface through a switching control, and the virtual weapons can be quickly switched through the switching control, thereby improving the agility of weapon switching.

[0167] In one embodiment of the present disclosure, a switching operation includes a touch operation and a detachment operation on a switching control. The weapon switching module 502 includes: a control state switching display submodule, configured to, in response to a touch operation on the switching control, switch the switching control from a first control state to a second control state for display, wherein when the switching control is in the second control state, a plurality of auxiliary controls are configured to display ammunition information and a weapon identifier of a virtual weapon carried by a virtual character; a target auxiliary control determination submodule, configured to, in response to a detachment operation on the switching control in the second control state, determine a target auxiliary control from at least two auxiliary controls according to the detachment operation;

[0168] The weapon switching submodule is used to control the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and to switch the switching control from the second control state to the first control state for display.

[0169] In the disclosed embodiment, when a touch operation is performed on the switch control, the switch control switches from the first control state to the second control state, allowing the user to easily view the details of the virtual weapon being carried and switch weapons. During the touch phase, the switch control switches to the second control state, displaying weapon details to assist the user in switching weapons. During the disconnect phase, the switch control returns to the first control state, avoiding excessive interface usage and improving the user's gaming experience.

[0170] In one embodiment of the present disclosure, the device also includes: a cancel control display submodule, which is used to switch the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control to a cancel control when the switching control is in the second control state; and a cancel switching submodule, which is used to respond to the disengagement operation acting on the cancel control and determine to cancel the switching operation for the currently used virtual weapon.

[0171] By switching the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control to a cancel control and acting on the cancel control through a disengagement operation, the virtual weapon switching operation can be canceled, making it easier for players to adjust virtual weapons in real time.

[0172] In one embodiment of the present disclosure, the switching operation also includes a sliding operation, which is an operation continuous with the touch operation, and the release operation is an operation continuous with the sliding operation. The sliding operation is an operation greater than a preset sliding threshold, and the preset sliding threshold is the minimum sliding distance from the first action position of the touch operation to the second action position responding to the release operation.

[0173] In this embodiment, the switching operation is composed of multiple continuous operations, which may include touch operation, sliding operation and release operation. The three operations are performed in the order of touch-slide-release to realize the switching operation of the switching control. The virtual weapons can be quickly switched through the switching control, which improves the agility of weapon switching.

[0174] In one embodiment of the present disclosure, the preset sliding threshold corresponding to each auxiliary control is configured according to the switching frequency of the virtual weapon corresponding to the auxiliary control.

[0175] When the switching frequency of a virtual weapon is high, the weapon needs to be switched quickly and its preset sliding distance is short. Conversely, when the switching frequency of a virtual weapon is low and below the second preset range, a longer preset sliding distance can be set. Usually, virtual weapons with high switching frequencies are virtual weapons frequently used by players. Therefore, this process makes it easy for players to quickly switch to frequently used virtual weapons, further realizing the rapid switching of virtual weapons.

[0176] In one embodiment of the present disclosure, the apparatus further includes:

[0177] The weapon attribute adjustment module is used to adjust the weapon attribute information of the virtual weapon in response to the attribute adjustment operation of the virtual weapon currently used by the virtual character based on the switching control; wherein the weapon attribute information includes any one or more of the following: the preset attribute information of the virtual weapon, and the attribute information of the virtual weapon after being equipped with weapon accessories.

[0178] In this embodiment, the weapon attribute information of the virtual weapon can also be adjusted by switching the control, so that the user can strengthen the virtual weapon through the weapon attribute information adjustment, which is convenient for the user to better play the game and simplify the operation.

[0179] In one embodiment of the present disclosure, when the switching operation is a double-click operation, the target auxiliary control is the auxiliary control corresponding to the virtual weapon determined according to the preset weapon switching rule.

[0180] By presetting the weapon switching rules, players no longer need to click on the corresponding virtual weapons separately. Instead, they only need to double-click multiple times to switch virtual weapons in sequence, thereby improving the smoothness of weapon switching.

[0181] In one embodiment of the present disclosure, the device also includes: a bullet reload trigger module, which is used to reload one or more virtual weapons corresponding to multiple auxiliary controls in response to the touch duration of the touch operation being less than a first time threshold when a touch operation on the switch control is detected; a first adjustment trigger module, which is used to determine to trigger a first adjustment operation on the switch control in response to the touch duration of the touch operation being greater than a second time threshold; the second time threshold is greater than the first time threshold; a weapon switching trigger module, which is used to respond to a sliding operation performed continuously after the touch operation when the touch duration of the touch operation is greater than the first time threshold, and during the sliding operation, switch the switch control from the first control state to the second control state for display, and after the operation is released, control the virtual weapon corresponding to the target auxiliary control to be switched to the virtual weapon currently used by the virtual character.

[0182] By detecting the touch duration of the touch operation on the switching control and triggering different operations respectively, the technical problem of occupying a large space caused by implementing different functions through different controls can be avoided. This process can implement multiple different functions through one switching control, thereby improving the utilization rate of the interactive interface.

[0183] In one embodiment of the present disclosure, the device also includes: a first adjustment operation response module, which is used to respond to a first adjustment operation on the switching control and control the graphical user interface to display a second game screen corresponding to the switching control; a second adjustment operation response module, which is used to respond to a second adjustment operation on the second game screen, adjust the interaction parameters of the switching control according to the second adjustment operation, and generate an adjusted switching control according to the interaction parameters, wherein the interaction parameters include at least one of the following parameters: display parameters and response parameters.

[0184] In one embodiment of the present disclosure, the second game screen covers the game interface with a preset transparency so that the distribution of other controls of the game interface except the switch control can be determined in the second game screen, and in the second game screen, other controls in the game interface are in an unavailable state.

[0185] In one embodiment of the present disclosure, an exit control for the second game screen is displayed in the second game screen, and the device also includes: an exit control response module, which is used to control the graphical user interface to hide the second game screen and display the game interface in response to a confirmation operation for the exit control.

[0186] A save control for adjusting the switching control is displayed in the second game screen. The method further includes: in response to a confirmation operation on the save control, controlling the graphical user interface to save the adjustment for the second game screen.

[0187] In this embodiment, the user's adjustment to the second game screen can be saved through the save control, so that the game screen can be adjusted quickly and efficiently next time.

[0188] In one embodiment of the present disclosure, a size adjustment control for adjusting the size of the switching control is displayed in the second game screen, and the device also includes: a size adjustment module for adjusting the size of the switching control in response to the size adjustment operation on the size adjustment control in the second game screen according to the size adjustment operation.

[0189] In this embodiment, the resizing operation of the resize control can adjust the size of the switch control in real time to adapt to different user needs, allowing players to adjust the size in real time based on their usage habits, further improving the user's gaming experience. Furthermore, the larger the area of ​​the target auxiliary control, the higher the success rate of the switch, which can support more frequent switching operations.

[0190] In one embodiment of the present disclosure, the device further includes: a position adjustment module, configured to adjust the position of the switch control in response to a position adjustment operation on the switch control in the second game screen.

[0191] In this embodiment, the position of the switch control is adjusted by performing a position adjustment operation on the switch control, so that the user can adjust the position of the switch control based on his or her own usage habits, thereby further improving the user's gaming experience.

[0192] In one embodiment of the present disclosure, the device further includes: a control state switching module for switching the control from the first control state to the second control state for display in response to a click operation on the main control in the second game screen.

[0193] In this embodiment, by clicking on the main control, the switch control can be quickly switched from the first control state to the second control state for display, so that players can timely understand the current usage of virtual weapons and further enhance the user's gaming experience.

[0194] In one embodiment of the present disclosure, the device also includes: a switch control angle adjustment module, which is used to adjust the angle information of the switch control in response to a rotation operation on the switch control in the second game screen, and to maintain the weapon identification and bullet amount information in multiple auxiliary controls in a preset direction.

[0195] In this embodiment, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual application, real-time dynamic adjustment can be made according to the needs and player mechanism of the player to further enhance the user's gaming experience.

[0196] In one embodiment of the present disclosure, the device also includes: a replacement control display module, which is used to highlight the first target auxiliary control in the second game screen in response to a click operation on the first target auxiliary control, and switch the bullet information in other auxiliary controls to the replacement control; an auxiliary control position interchange module, which is used to interchange the position of the auxiliary control corresponding to the target replacement control with the first target auxiliary control in response to a click operation on the target replacement control.

[0197] In actual applications, when the user clicks on the target auxiliary control, the target auxiliary control can be selected. At the same time, a replacement control can be presented in other unselected auxiliary controls in the switch control. When the user performs a replacement operation on the target replacement control, the position of the target auxiliary control and the auxiliary control corresponding to the target replacement control are swapped.

[0198] In one embodiment of the present disclosure, the device also includes: an auxiliary line display module, which is used to highlight the area adjustment auxiliary line of the first target auxiliary control in the second game screen in response to a click operation on the first target auxiliary control; an auxiliary control difference distribution adjustment module, which is used to adjust the area distribution of the first target auxiliary control in response to a click operation on the first target auxiliary control and an adjustment operation on the area adjustment auxiliary line.

[0199] The larger the area of ​​the target auxiliary control, the higher the success rate of switching, which can support more frequent switching operations. By adjusting the area of ​​the weapon, players can help in specific gameplay situations where certain firearms are restricted or used infrequently. At the same time, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual applications, real-time dynamic adjustments can be made based on player needs and player mechanics.

[0200] In one embodiment of the present disclosure, the main control is a circular control, and the auxiliary control is a fan-shaped control surrounding the circular control.

[0201] The main control is set to a circle, and the other auxiliary controls representing weapon logos are fan-shaped controls surrounding the circular control. This makes it easier for players to quickly switch virtual weapons, thereby improving the agility of weapon switching.

[0202] An embodiment of the present disclosure further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, the following steps are implemented:

[0203] A game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, and the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0204] In response to a switching operation on the switching control, determining a target auxiliary control from at least two auxiliary controls, controlling the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and controlling the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0205] In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior.

[0206] In the disclosed embodiment, multiple virtual weapons of a virtual character can be displayed in a game interface through a switching control, and virtual weapons can be quickly switched through the switching control, thereby improving the agility of weapon switching.

[0207] Optionally, the switching operation includes a touch operation and a release operation on the switching control. In response to the switching operation on the switching control, determining a target auxiliary control from the at least two auxiliary controls, and controlling the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character include:

[0208] In response to a touch operation on the switch control, the switch control is switched from a first control state to a second control state for display, wherein when the switch control is in the second control state, the plurality of auxiliary controls are used to display ammunition information and weapon identification of the virtual weapon carried by the virtual character;

[0209] In response to a detach operation on the switch control in the second control state, determining a target auxiliary control from at least two auxiliary controls according to the detach operation;

[0210] The control switches the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and switches the switch control from the second control state to the first control state for display.

[0211] In the disclosed embodiment, when a touch operation is performed on the switch control, the switch control switches from the first control state to the second control state, allowing the user to easily view the details of the virtual weapon being carried and switch weapons. During the touch phase, the switch control switches to the second control state, displaying weapon details to assist the user in switching weapons. During the disconnect phase, the switch control returns to the first control state, avoiding excessive interface usage and improving the user's gaming experience.

[0212] Optionally, it also includes:

[0213] When the switch control is in the second control state, the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control is switched to a cancel control;

[0214] In response to the disengagement operation acting on the cancel control, the switching operation of the currently used virtual weapon is determined to be canceled.

[0215] By switching the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control to a cancel control and acting on the cancel control through a disengagement operation, the virtual weapon switching operation can be canceled, making it easier for players to adjust virtual weapons in real time.

[0216] Optionally, the switching operation also includes a sliding operation, which is an operation continuous with the touch operation, and a disengagement operation is an operation continuous with the sliding operation. The sliding operation is an operation greater than a preset sliding threshold, and the preset sliding threshold is the minimum sliding distance from the first action position of the touch operation to the second action position responding to the disengagement operation.

[0217] In this embodiment, the switching operation is composed of multiple continuous operations, which may include touch operation, sliding operation and release operation. The three operations are performed in the order of touch-slide-release to realize the switching operation of the switching control. The virtual weapons can be quickly switched through the switching control, which improves the agility of weapon switching.

[0218] Optionally, the preset sliding threshold corresponding to each auxiliary control is configured according to the switching frequency of the virtual weapon corresponding to the auxiliary control.

[0219] When the switching frequency of a virtual weapon is high, the weapon needs to be switched quickly and its preset sliding distance is short. Conversely, when the switching frequency of a virtual weapon is low and below the second preset range, a longer preset sliding distance can be set. Usually, virtual weapons with high switching frequencies are virtual weapons frequently used by players. Therefore, this process makes it easy for players to quickly switch to frequently used virtual weapons, further realizing the rapid switching of virtual weapons.

[0220] Optionally, it also includes:

[0221] In response to an attribute adjustment operation on a virtual weapon currently used by the virtual character based on the switching control, adjusting weapon attribute information of the virtual weapon;

[0222] The weapon attribute information includes any one or more of the following:

[0223] The preset attribute information of the virtual weapon and the attribute information of the virtual weapon after it is equipped with weapon accessories.

[0224] In this embodiment, the weapon attribute information of the virtual weapon can also be adjusted by switching the control, so that the user can strengthen the virtual weapon through the weapon attribute information adjustment, which is convenient for the user to better play the game and simplify the operation.

[0225] Optionally, when the switching operation is a double-click operation, the target auxiliary control is the auxiliary control corresponding to the virtual weapon determined according to a preset weapon switching rule.

[0226] By presetting the weapon switching rules, players no longer need to click on the corresponding virtual weapons separately. Instead, they only need to double-click multiple times to switch virtual weapons in sequence, thereby improving the smoothness of weapon switching.

[0227] Optionally, it also includes:

[0228] When a touch operation on the switch control is detected, in response to a touch duration of the touch operation being less than a first time threshold, reloading one or more virtual weapons corresponding to the plurality of auxiliary controls;

[0229] In response to a touch duration of the touch operation being greater than a second time threshold, determining to trigger a first adjustment operation on the switching control; the second time threshold being greater than the first time threshold;

[0230] In response to a sliding operation performed continuously after the touch operation when the touch duration of the touch operation is greater than the first time threshold, during the sliding operation, the switching control is switched from the first control state to the second control state for display, and after the release operation, the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character.

[0231] By detecting the touch duration of the touch operation on the switching control and triggering different operations respectively, the technical problem of occupying a large space caused by implementing different functions through different controls can be avoided. This process can implement multiple different functions through one switching control, thereby improving the utilization rate of the interactive interface.

[0232] Optionally, it also includes:

[0233] In response to a first adjustment operation on the switch control, controlling the graphical user interface to display a second game screen corresponding to the switch control;

[0234] In response to a second adjustment operation on the second game screen, the interaction parameters of the switching control are adjusted according to the second adjustment operation, and the adjusted switching control is generated according to the interaction parameters, wherein the interaction parameters include at least one of the following parameters: display parameters and response parameters.

[0235] Optionally, the second game screen covers the game interface with a preset transparency so that the distribution of other controls of the game interface except the switch control can be determined in the second game screen, and in the second game screen, other controls in the game interface are in an unavailable state.

[0236] Optionally, an exit control for the second game screen is displayed in the second game screen, and the method further includes:

[0237] In response to a confirmation operation on the exit control, the graphical user interface is controlled to hide the second game screen and display the game interface.

[0238] Optionally, a save control adjusted for the switch control is displayed in the second game screen, and the method further includes:

[0239] In response to a confirmation operation for saving the control, the graphical user interface is controlled to save the adjustment for the second game screen.

[0240] In this embodiment, the user's adjustment to the second game screen can be saved through the save control, so that the game screen can be adjusted quickly and efficiently next time.

[0241] Optionally, displaying a size adjustment control for adjusting the size of the switching control in the second game screen further includes:

[0242] In the second game screen, in response to a size adjustment operation on the size adjustment control, the size of the switch control is adjusted according to the size adjustment operation.

[0243] In this embodiment, the resizing operation of the resize control can adjust the size of the switch control in real time to adapt to different user needs, allowing players to adjust the size in real time based on their usage habits, further improving the user's gaming experience. Furthermore, the larger the area of ​​the target auxiliary control, the higher the success rate of the switch, which can support more frequent switching operations.

[0244] Optionally, it also includes:

[0245] In the second game screen, in response to a position adjustment operation on the switch control, the position of the switch control is adjusted.

[0246] In this embodiment, the position of the switch control is adjusted by performing a position adjustment operation on the switch control, so that the user can adjust the position of the switch control based on his or her own usage habits, thereby further improving the user's gaming experience.

[0247] Optionally, it also includes:

[0248] In the second game screen, in response to a click operation on the main control, the switch control is switched from the first control state to the second control state for display.

[0249] In this embodiment, by clicking on the main control, the switch control can be quickly switched from the first control state to the second control state for display, so that players can timely understand the current usage of virtual weapons and further enhance the user's gaming experience.

[0250] Optionally, it also includes:

[0251] In the second game screen, in response to the rotation operation on the switch control, the angle information of the switch control is adjusted, and the weapon identification and bullet amount information in the multiple auxiliary controls are maintained in the preset direction.

[0252] In this embodiment, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual application, real-time dynamic adjustment can be made according to the needs and player mechanism of the player to further enhance the user's gaming experience.

[0253] Optionally, it also includes:

[0254] In the second game screen, in response to a click operation on the first target auxiliary control, the first target auxiliary control is highlighted, and bullet amount information in other auxiliary controls is switched to a replacement control;

[0255] In response to a click operation on the target replacement control, the positions of the auxiliary control corresponding to the target replacement control and the first target auxiliary control are swapped.

[0256] In actual applications, when the user clicks on the target auxiliary control, the target auxiliary control can be selected. At the same time, a replacement control can be presented in other unselected auxiliary controls in the switch control. When the user performs a replacement operation on the target replacement control, the position of the target auxiliary control and the auxiliary control corresponding to the target replacement control are swapped.

[0257] Optionally, it also includes:

[0258] In the second game screen, in response to a click operation on the first target auxiliary control, an area adjustment auxiliary line of the first target auxiliary control is highlighted;

[0259] In response to a click operation on the first target auxiliary control and in response to an adjustment operation on the area adjustment auxiliary line, the area distribution of the first target auxiliary control is adjusted.

[0260] The larger the area of ​​the target auxiliary control, the higher the success rate of switching, which can support more frequent switching operations. By adjusting the area of ​​the weapon, players can help in specific gameplay situations where certain firearms are restricted or used infrequently. At the same time, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual applications, real-time dynamic adjustments can be made based on player needs and player mechanics.

[0261] Optionally, the main control is a circular control, and the auxiliary control is a fan-shaped control surrounding the circular control.

[0262] The main control is set to a circle, and the other auxiliary controls representing weapon logos are fan-shaped controls surrounding the circular control. This makes it easier for players to quickly switch virtual weapons, thereby improving the agility of weapon switching.

[0263] In an embodiment of the present disclosure, a game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, and a switch control including a main control and at least two auxiliary controls distributed around the main control is displayed in the game interface; in response to a switching operation on the switch control, a target auxiliary control is determined from at least two auxiliary controls, and the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character, and the main control is controlled to display the weapon identifier of the virtual weapon corresponding to the target auxiliary control; in response to an attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior, thereby realizing the display of multiple virtual weapons of the virtual character through the switch control in the game interface, and the virtual weapons can be quickly switched through the switch control, thereby improving the agility of weapon switching.

[0264] An embodiment of the present disclosure further provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the following steps are implemented:

[0265] A game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, wherein a switch control is displayed in the game interface; wherein the switch control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, the at least two auxiliary controls each correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, and the currently used virtual weapon is one of the virtual weapons corresponding to the at least two auxiliary controls;

[0266] In response to a switching operation on the switching control, determining a target auxiliary control from at least two auxiliary controls, controlling the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and controlling the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control;

[0267] In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior.

[0268] In this embodiment, multiple virtual weapons of a virtual character are displayed in the game interface through a switching control, and the virtual weapons can be quickly switched through the switching control, thereby improving the agility of weapon switching.

[0269] Optionally, the switching operation includes a touch operation and a release operation on the switching control. In response to the switching operation on the switching control, determining a target auxiliary control from the at least two auxiliary controls, and controlling the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character include:

[0270] In response to a touch operation on the switch control, the switch control is switched from a first control state to a second control state for display, wherein when the switch control is in the second control state, the plurality of auxiliary controls are used to display ammunition information and weapon identification of the virtual weapon carried by the virtual character;

[0271] In response to a detach operation on the switch control in the second control state, determining a target auxiliary control from at least two auxiliary controls according to the detach operation;

[0272] The control switches the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and switches the switch control from the second control state to the first control state for display.

[0273] In the disclosed embodiment, when a touch operation is performed on the switch control, the switch control switches from the first control state to the second control state, allowing the user to easily view the details of the virtual weapon being carried and switch weapons. During the touch phase, the switch control switches to the second control state, displaying weapon details to assist the user in switching weapons. During the disconnect phase, the switch control returns to the first control state, avoiding excessive interface usage and improving the user's gaming experience.

[0274] Optionally, it also includes:

[0275] When the switch control is in the second control state, the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control is switched to a cancel control;

[0276] In response to the disengagement operation acting on the cancel control, the switching operation of the currently used virtual weapon is determined to be canceled.

[0277] By switching the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control to a cancel control and acting on the cancel control through a disengagement operation, the virtual weapon switching operation can be canceled, making it easier for players to adjust virtual weapons in real time.

[0278] Optionally, the switching operation also includes a sliding operation, which is an operation continuous with the touch operation, and a disengagement operation is an operation continuous with the sliding operation. The sliding operation is an operation greater than a preset sliding threshold, and the preset sliding threshold is the minimum sliding distance from the first action position of the touch operation to the second action position responding to the disengagement operation.

[0279] In this embodiment, the switching operation is composed of multiple continuous operations, which may include touch operation, sliding operation and release operation. The three operations are performed in the order of touch-slide-release to realize the switching operation of the switching control. The virtual weapons can be quickly switched through the switching control, which improves the agility of weapon switching.

[0280] Optionally, the preset sliding threshold corresponding to each auxiliary control is configured according to the switching frequency of the virtual weapon corresponding to the auxiliary control.

[0281] When the switching frequency of a virtual weapon is high, the weapon needs to be switched quickly and its preset sliding distance is short. Conversely, when the switching frequency of a virtual weapon is low and below the second preset range, a longer preset sliding distance can be set. Usually, virtual weapons with high switching frequencies are virtual weapons frequently used by players. Therefore, this process makes it easy for players to quickly switch to frequently used virtual weapons, further realizing the rapid switching of virtual weapons.

[0282] Optionally, it also includes:

[0283] In response to an attribute adjustment operation on a virtual weapon currently used by the virtual character based on the switching control, adjusting weapon attribute information of the virtual weapon;

[0284] The weapon attribute information includes any one or more of the following:

[0285] The preset attribute information of the virtual weapon and the attribute information of the virtual weapon after it is equipped with weapon accessories.

[0286] In this embodiment, the weapon attribute information of the virtual weapon can also be adjusted by switching the control, so that the user can strengthen the virtual weapon through the weapon attribute information adjustment, which is convenient for the user to better play the game and simplify the operation.

[0287] Optionally, when the switching operation is a double-click operation, the target auxiliary control is the auxiliary control corresponding to the virtual weapon determined according to a preset weapon switching rule.

[0288] By presetting the weapon switching rules, players no longer need to click on the corresponding virtual weapons separately. Instead, they only need to double-click multiple times to switch virtual weapons in sequence, thereby improving the smoothness of weapon switching.

[0289] Optionally, it also includes:

[0290] When a touch operation on a switch control is detected, in response to the touch duration of the touch operation being less than a first time threshold, one or more virtual weapons corresponding to the multiple auxiliary controls are reloaded; in response to the touch duration of the touch operation being greater than a second time threshold, it is determined that a first adjustment operation on the switch control is triggered; the second time threshold is greater than the first time threshold; in response to a sliding operation performed continuously after the touch operation when the touch duration of the touch operation is greater than the first time threshold, during the sliding operation, the switch control is switched from the first control state to the second control state for display, and after the operation is released, the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character.

[0291] By detecting the touch duration of the touch operation on the switching control and triggering different operations respectively, the technical problem of occupying a large space caused by implementing different functions through different controls can be avoided. This process can implement multiple different functions through one switching control, thereby improving the utilization rate of the interactive interface.

[0292] Optionally, it also includes: responding to a first adjustment operation on the switching control, controlling the graphical user interface to display a second game screen corresponding to the switching control; responding to a second adjustment operation on the second game screen, adjusting the interaction parameters of the switching control according to the second adjustment operation, and generating an adjusted switching control according to the interaction parameters, wherein the interaction parameters include at least one of the following parameters: display parameters, response parameters.

[0293] Optionally, the second game screen covers the game interface with a preset transparency so that the distribution of other controls of the game interface except the switch control can be determined in the second game screen, and in the second game screen, other controls in the game interface are in an unavailable state.

[0294] Optionally, an exit control for the second game screen is displayed in the second game screen, and the method further includes:

[0295] In response to a confirmation operation on the exit control, the graphical user interface is controlled to hide the second game screen and display the game interface.

[0296] Optionally, a save control adjusted for the switch control is displayed in the second game screen, and the method further includes:

[0297] In response to a confirmation operation for saving the control, the graphical user interface is controlled to save the adjustment for the second game screen.

[0298] In this embodiment, the user's adjustment to the second game screen can be saved through the save control, so that the game screen can be adjusted quickly and efficiently next time.

[0299] Optionally, displaying a size adjustment control for adjusting the size of the switching control in the second game screen further includes:

[0300] In the second game screen, in response to a size adjustment operation on the size adjustment control, the size of the switch control is adjusted according to the size adjustment operation.

[0301] In this embodiment, the resizing operation of the resize control can adjust the size of the switch control in real time to adapt to different user needs, allowing players to adjust the size in real time based on their usage habits, further improving the user's gaming experience. Furthermore, the larger the area of ​​the target auxiliary control, the higher the success rate of the switch, which can support more frequent switching operations.

[0302] Optionally, it also includes:

[0303] In the second game screen, in response to a position adjustment operation on the switch control, the position of the switch control is adjusted.

[0304] In this embodiment, the position of the switch control is adjusted by performing a position adjustment operation on the switch control, so that the user can adjust the position of the switch control based on his or her own usage habits, thereby further improving the user's gaming experience.

[0305] Optionally, it also includes:

[0306] In the second game screen, in response to a click operation on the main control, the switch control is switched from the first control state to the second control state for display.

[0307] In this embodiment, by clicking on the main control, the switch control can be quickly switched from the first control state to the second control state for display, so that players can timely understand the current usage of virtual weapons and further enhance the user's gaming experience.

[0308] Optionally, it also includes:

[0309] In the second game screen, in response to the rotation operation on the switch control, the angle information of the switch control is adjusted, and the weapon identification and bullet amount information in the multiple auxiliary controls are maintained in the preset direction.

[0310] In this embodiment, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual application, real-time dynamic adjustment can be made according to the needs and player mechanism of the player to further enhance the user's gaming experience.

[0311] Optionally, it also includes:

[0312] In the second game screen, in response to a click operation on the first target auxiliary control, the first target auxiliary control is highlighted, and the bullet information in other auxiliary controls is switched to a replacement control; in response to a click operation on the target replacement control, the auxiliary control corresponding to the target replacement control is swapped with the position of the first target auxiliary control.

[0313] In actual applications, when the user clicks on the target auxiliary control, the target auxiliary control can be selected. At the same time, a replacement control can be presented in other unselected auxiliary controls in the switch control. When the user performs a replacement operation on the target replacement control, the position of the target auxiliary control and the auxiliary control corresponding to the target replacement control are swapped.

[0314] Optionally, it also includes:

[0315] In the second game screen, in response to a click operation on the first target auxiliary control, the area adjustment auxiliary line of the first target auxiliary control is highlighted; in response to a click operation on the first target auxiliary control, in response to an adjustment operation on the area adjustment auxiliary line, the area distribution of the first target auxiliary control is adjusted.

[0316] The larger the area of ​​the target auxiliary control, the higher the success rate of switching, which can support more frequent switching operations. By adjusting the area of ​​the weapon, players can help in specific gameplay situations where certain firearms are restricted or used infrequently. At the same time, by adjusting the switching angle, the switching efficiency of other weapons can be improved. In actual applications, real-time dynamic adjustments can be made based on player needs and player mechanics.

[0317] Optionally, the main control is a circular control, and the auxiliary control is a fan-shaped control surrounding the circular control.

[0318] The main control is set to a circle, and the other auxiliary controls representing weapon logos are fan-shaped controls surrounding the circular control. This makes it easier for players to quickly switch virtual weapons, thereby improving the agility of weapon switching.

[0319] In an embodiment of the present disclosure, a game interface corresponding to a virtual object controlled by a terminal device is displayed in a graphical user interface, and a switch control including a main control and at least two auxiliary controls distributed around the main control is displayed in the game interface; in response to a switching operation on the switch control, a target auxiliary control is determined from at least two auxiliary controls, and the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character, and the main control is controlled to display the weapon identifier of the virtual weapon corresponding to the target auxiliary control; in response to an attack operation, the virtual object is controlled to control the currently used virtual weapon to perform game behavior, thereby realizing the display of multiple virtual weapons of the virtual character through the switch control in the game interface, and the virtual weapons can be quickly switched through the switch control, thereby improving the agility of weapon switching.

[0320] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0321] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0322] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, apparatuses, or computer program products. Therefore, the embodiments of the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the embodiments of the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0323] The embodiments of the present disclosure are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device produce a device for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0324] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0325] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0326] Although the preferred embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they are aware of the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present disclosure.

[0327] Finally, it should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or terminal device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or terminal device that includes the element.

[0328] The above is a detailed introduction to the weapon switching method and device for a virtual game. Specific examples are used herein to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method and core ideas of the present disclosure. At the same time, for those skilled in the art, according to the ideas of the present disclosure, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present disclosure.

Claims

1. A weapon switching method for a virtual game, providing a graphical user interface through a terminal device, the method comprising: A game interface corresponding to the virtual object controlled by the terminal device is displayed in the graphical user interface, and a switching control is displayed in the game interface; wherein the switching control includes a main control and at least two auxiliary controls distributed around the main control, the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, the at least two auxiliary controls respectively correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, and the currently used virtual weapon is one of the virtual weapons respectively corresponding to the at least two auxiliary controls; In response to a switching operation on the switching control, a target auxiliary control is determined from the at least two auxiliary controls, a virtual weapon corresponding to the target auxiliary control is controlled to be switched to a virtual weapon currently used by the virtual character, and the main control is controlled to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control; In response to the attack operation, the virtual object is controlled to control the currently used virtual weapon to perform a game behavior.

2. The method according to claim 1, wherein: The switching operation includes a touch operation and a detachment operation on the switching control, and in response to the switching operation on the switching control, determining a target auxiliary control from the at least two auxiliary controls, and controlling the switching of a virtual weapon corresponding to the target auxiliary control to a virtual weapon currently used by the virtual character, including: In response to a touch operation on the switch control, the switch control is switched from a first control state to a second control state for display, wherein when the switch control is in the second control state, the plurality of auxiliary controls are used to display bullet quantity information and weapon identification of the virtual weapon carried by the virtual character; In response to a disengagement operation on the switch control in the second control state, determining a target auxiliary control from the at least two auxiliary controls according to the disengagement operation; Control the virtual weapon corresponding to the target auxiliary control to be switched to the virtual weapon currently used by the virtual character, and switch the switching control from the second control state to the first control state for display.

3. The method according to claim 2, wherein: Also includes: When the switching control is in the second control state, the weapon identifier of the virtual weapon currently used by the virtual object displayed by the main control is switched to a cancel control; In response to the disengagement operation acting on the cancel control, it is determined to cancel the switching operation of the currently used virtual weapon.

4. The method according to claim 2, wherein: The switching operation also includes a sliding operation, the sliding operation is an operation continuous with the touch operation, the disengagement operation is an operation continuous with the sliding operation, the sliding operation is an operation greater than a preset sliding threshold, and the preset sliding threshold is a minimum sliding distance from a first action position of the touch operation to a second action position in response to the disengagement operation.

5. The method according to claim 4, wherein: The preset sliding threshold corresponding to each auxiliary control is configured according to the switching frequency of the virtual weapon corresponding to the auxiliary control.

6. The method according to claim 1, wherein: Also includes: In response to the attribute adjustment operation of the virtual weapon currently used by the virtual character based on the switching control, adjusting the weapon attribute information of the virtual weapon; The weapon attribute information includes any one or more of the following: The preset attribute information of the virtual weapon and the attribute information of the virtual weapon after being equipped with weapon accessories.

7. The method according to claim 1, wherein: When the switching operation is a double-click operation, the target auxiliary control is an auxiliary control corresponding to the virtual weapon determined according to a preset weapon switching rule.

8. The method according to claim 2, wherein: Also includes: When a touch operation on the switching control is detected, in response to a touch duration of the touch operation being less than a first time threshold, reloading one or more virtual weapons corresponding to the plurality of auxiliary controls; In response to the touch duration of the touch operation being greater than a second time threshold, determining to trigger a first adjustment operation for the switching control; the second time threshold being greater than the first time threshold; In response to a sliding operation performed continuously after the touch operation when the touch duration of the touch operation is greater than a first time threshold, during the sliding operation, the switching control is switched from a first control state to a second control state for display, and after the release operation, the virtual weapon corresponding to the target auxiliary control is controlled to be switched to the virtual weapon currently used by the virtual character.

9. The method according to claim 1 or 8, wherein: Also includes: In response to a first adjustment operation on the switching control, controlling the graphical user interface to display a second game screen corresponding to the switching control; In response to a second adjustment operation on the second game screen, an interaction parameter of the switching control is adjusted according to the second adjustment operation, and an adjusted switching control is generated according to the interaction parameter, wherein the interaction parameter includes at least one of the following parameters: Display parameters and response parameters.

10. The method according to claim 9, wherein: The second game screen covers the game interface with a preset transparency so that the distribution of other controls of the game interface except the switching control can be determined in the second game screen, and in the second game screen, other controls in the game interface are in an unavailable state.

11. The method according to claim 9, wherein: An exit control for the second game screen is displayed in the second game screen, and the method further includes: In response to a confirmation operation on the exit control, the graphical user interface is controlled to hide the second game screen and display the game interface.

12. The method according to claim 9, wherein: The second game screen displays a save control adjusted for the switch control, and the method further includes: In response to a confirmation operation on the save control, the graphical user interface is controlled to save the adjustment on the second game screen.

13. The method according to claim 9, wherein: Displaying a size adjustment control for adjusting the size of the switching control in the second game screen also includes: In the second game screen, in response to a size adjustment operation on the size adjustment control, the size of the switching control is adjusted according to the size adjustment operation.

14. The method according to claim 9, wherein: Also includes: In the second game screen, in response to a position adjustment operation on the switching control, the position of the switching control is adjusted.

15. The method according to claim 9, wherein: Also includes: In the second game screen, in response to a click operation on the main control, the switching control is switched from the first control state to the second control state for display.

16. The method according to claim 15, wherein: Also includes: In the second game screen, in response to a rotation operation on the switching control, the angle information of the switching control is adjusted, and the weapon identification and bullet amount information in the multiple auxiliary controls are maintained in a preset direction.

17. The method according to claim 15, wherein: Also includes: In the second game screen, in response to a click operation on the first target auxiliary control, the first target auxiliary control is highlighted, and bullet amount information in other auxiliary controls is switched to a replacement control; In response to a click operation on the target replacement control, the positions of the auxiliary control corresponding to the target replacement control and the first target auxiliary control are swapped.

18. The method according to claim 15, wherein: Also includes: In the second game screen, in response to a click operation on a first target auxiliary control, an area adjustment auxiliary line of the first target auxiliary control is highlighted; In response to a click operation on the first target auxiliary control and in response to an adjustment operation on the area adjustment auxiliary line, the area distribution of the first target auxiliary control is adjusted.

19. The method according to claim 1, wherein: The main control is a circular control, and the auxiliary control is a fan-shaped control surrounding the circular control.

20. A weapon switching device for a virtual game, providing a graphical user interface through a terminal device, the device comprising: a game interface display module, configured to display a game interface corresponding to the virtual object controlled by the terminal device in the graphical user interface, wherein a switching control is displayed in the game interface; wherein the switching control includes a main control and at least two auxiliary controls distributed around the main control, wherein the main control is configured to display a weapon identifier of a virtual weapon currently used by the virtual object, wherein the at least two auxiliary controls respectively correspond to a virtual weapon and are configured to display a weapon attribute identifier of the corresponding virtual weapon, wherein the currently used virtual weapon is one of the virtual weapons respectively corresponding to the at least two auxiliary controls; a weapon switching module, configured to, in response to a switching operation on the switching control, determine a target auxiliary control from the at least two auxiliary controls, control the switching of the virtual weapon corresponding to the target auxiliary control to the virtual weapon currently used by the virtual character, and control the main control to display a weapon identifier of the virtual weapon corresponding to the target auxiliary control; The attack module is used to control the virtual object to control the currently used virtual weapon to perform game behavior in response to the attack operation.

21. An electronic device comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the weapon switching method of the virtual game as claimed in any one of claims 1 to 19 is implemented.

22. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the weapon switching method of a virtual game according to any one of claims 1 to 19.

Citation Information

Patent Citations

  • Game button switching method and game button switching device of mobile intelligent terminal

    CN106730810A

  • Shooting processing method and device in game and electronic equipment

    CN112973115A

  • Display control method and device in game and electronic equipment

    CN113975805A

  • Virtual game weapon switching method and device

    CN116392822A

Cited By

  • Game control method and device, electronic equipment and storage medium

    CN119701352A