Virtual weapon attack method, device, storage medium, and computer device

The method and device enhance nautical-themed mobile game simulations by enabling individual control of virtual weapons through oriented attack controls, improving combat realism and user interaction.

JP2026502898APending Publication Date: 2026-01-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025537650
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2022-12-27
Filing Date
2023-06-01
Publication Date
2026-01-27

Smart Images

  • Figure 2026502898000001_ABST
    Figure 2026502898000001_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, storage medium, and computer device for attacking a virtual weapon, the method including the steps of: displaying a graphical user interface including a target virtual carrier on which a virtual weapon is positioned in different weapon orientations located in a virtual scene, a first type of attack control, and a second type of attack control, wherein the second type of attack control is installed in a different control orientation of the first type of attack control, and the control orientation of one second type of attack control corresponds to the weapon orientation of one virtual weapon; when an attack target is present within the attack range of a first target virtual weapon of the virtual weapon, determining a first target second type of attack control whose control orientation corresponds to the first target weapon orientation of the first target virtual weapon; controlling the first target second type of attack control to update an initial display format of the first target second type of attack control to a first display effect pattern and display it; and controlling the first target virtual weapon to perform a second type of attack against the attack target in response to a first control operation on the first target second type of attack control. The user's control operation of the second type attack control allows one or more virtual weapons on the ship to be individually controlled and attacked, improving the simulation quality when the user plays.
Need to check novelty before this filing date? Find Prior Art

Description

Cross-Citation of Related Applications

[0001] This disclosure claims priority to a Chinese patent application bearing application number 202211690791.6, filed on December 27, 2022, entitled "Virtual Weapon Attack Method, Apparatus, Storage Medium, and Computer Device," the entire contents of which are incorporated herein by reference. [Technical Field]

[0002] The present disclosure relates to the computer field, and more particularly to a virtual weapon attack method, apparatus, computer-readable storage medium, and computer device. [Background technology]

[0003] In recent years, with the development and widespread use of computer device technology, many nautical games have appeared, including naval combat modules. In these games, many ships are equipped with virtual weapons in multiple positions, such as a bow gun, a left front gun, a right front gun, and a left rear gun.

[0004] In the related art, many nautical-themed mobile games have a naval combat module, but because mobile games only allow two-finger input, the ship must navigate, making it very difficult to participate in naval combat. Therefore, the combat mode of many current nautical-themed mobile games is very simple, and attacks are performed by the ship as a whole. In the course of research and practice on the related art, the inventors discovered that each ship in the game is equipped with virtual weapons with different orientations, and attacks are performed by the ship as a whole, making it impossible to individually control one or more virtual weapons on the ship to attack. Summary of the Invention

[0005] The problem you are trying to solve The embodiments of the present disclosure provide a method and device for attacking virtual weapons, which can individually control and attack one or more virtual weapons on a ship, thereby improving the simulation quality during user play.

[0006] technical solution According to a first aspect, an embodiment of the present disclosure provides a virtual weapon attack method, the virtual weapon attack method comprising: a step of displaying a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein virtual weapons are arranged at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons; When an attack target exists within the attack range of a first target virtual weapon of the virtual weapon, a step of determining a first target second type attack control in which the control orientation corresponds to a first target weapon orientation of the first target virtual weapon based on the correspondence relationship between the control orientation and the weapon orientation; a step of controlling the display of the first target second type attack control by updating the initial display method to a first display effect pattern, the first display effect pattern being different from the initial display method; and controlling the first target virtual weapon to perform a second type attack against the target to be attacked in response to a first control operation on the first target second type attack control.

[0007] According to a second aspect, an embodiment of the present disclosure further provides a virtual weapon attack device, the virtual weapon attack device comprising: a first display module, a first determination module, an update module, and a first control module; The first display module is configured to display a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein virtual weapons are disposed at different weapon orientations of the target virtual carrier, the second type of attack control is disposed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons; the first determination module is configured to determine a first target second type attack control in which the control orientation corresponds to a first target weapon orientation of the first target virtual weapon based on the correspondence between the control orientation and the weapon orientation when an attack target exists within an attack range of a first target virtual weapon of the virtual weapon; The update module is configured to control the first target second type attack control to update its initial display mode to a first display effect pattern and display the first display effect pattern, and the first display effect pattern is different from the initial display mode; The first control module is configured to control the first target virtual weapon to perform a second type attack against the target to be attacked in response to a first control operation on the first target second type attack control.

[0008] According to a third aspect, an embodiment of the present disclosure further provides a computer-readable storage medium having a plurality of instructions stored thereon, the instructions being configured to execute steps in the above-described virtual weapon attack method when loaded by a processor.

[0009] According to a fourth aspect, an embodiment of the present disclosure further provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein, when the processor executes the program, the steps of the virtual weapon attack method described above are realized.

[0010] Effect of the invention An embodiment of the present disclosure displays a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein a virtual weapon is disposed at a different weapon orientation of the target virtual carrier, the second type of attack control is disposed at a different control orientation of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the virtual weapon is and when a target to be attacked exists within the attack range of a first target virtual weapon in the ship, the system determines a first target second type attack control that corresponds to the control orientation and the first target weapon orientation of the first target virtual weapon based on the correspondence between the control orientation and the weapon orientation, and controls the first target second type attack control to update and display an initial display format of the first target second type attack control to a first display effect pattern that is different from the initial display format, and controls the first target virtual weapon to perform a second type attack against the target to be attacked in response to a first control operation on the first target second type attack control. This allows the user to individually control and attack one or more virtual weapons on the ship by operating the second type attack control, improving the simulation when the user plays the game. [Brief explanation of the drawings]

[0011] In order to more clearly explain the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the drawings required in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and those skilled in the art can also obtain other drawings based on these drawings without any creative efforts. [Figure 1a] 1 is a system diagram of a virtual weapon attack method according to an embodiment of the present disclosure. FIG. [Figure 1b] 1 is a flowchart of a virtual weapon attack method according to one embodiment of the present disclosure. [Figure 1c]FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. [Figure 1d] FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. [Figure 1e] FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. [Figure 1f] FIG. 2 is a schematic diagram of a graphical user interface according to one embodiment of the present disclosure. [Figure 1g] FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. [Figure 1h] FIG. 2 is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. [Figure 2] 1 is a structural schematic diagram of an attack device of a virtual weapon according to an embodiment of the present disclosure; [Figure 3] FIG. 1 is a structural schematic diagram of a computer device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE INVENTION

[0012] Hereinafter, the technical solutions in the embodiments of the present disclosure will be clearly and completely described with reference to the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some embodiments of the present disclosure, and are not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative efforts also fall within the scope of protection of the present disclosure.

[0013] The present disclosure provides a virtual weapon attack method, device, storage medium, and computer device. Specifically, the virtual weapon attack method according to the present disclosure may be executed by a computer device, which may be a device such as a terminal or a server. The terminal may be a terminal device such as a smartphone, tablet computer, laptop, touchscreen, game console, personal computer (PC), or personal digital assistant (PDA). The terminal device may further include a client, which may be a game application client, a browser client running a game program, or an instant messaging client. The server may be an independent physical server, a server cluster or a distributed system consisting of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms.

[0014] For example, when the attack method of the virtual weapon is executed on the terminal, the terminal stores a game application program and displays a part of a game scene in the game through a display component. The terminal is configured to interact with a user through a graphical user interface, for example, by downloading and installing the game application program. The terminal may provide the graphical user interface to the user in a variety of ways, for example, by rendering the graphical user interface on a display screen of the terminal, or by presenting the graphical user interface through holographic projection. For example, the terminal may include a touch display and a processor, the touch display presenting the graphical user interface and receiving operation commands generated by a user interacting with the graphical user interface, the graphical user interface including a game screen, and the processor configured to execute the game, generate the graphical user interface, respond to the operation commands, and control the display of the graphical user interface on the touch display.

[0015] For example, if the attack method of the virtual weapon is executed by a server, it may be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In cloud gaming, the entity that executes the game application program and the entity that presents the game screen are separated, and the storage and execution of the attack method of the virtual weapon are completed on the cloud game server. The game screen is completed on the cloud game client, which is mainly used to receive and transmit game data and present the game screen. For example, the cloud game client may be a display device with data transmission capabilities close to the user, such as a mobile terminal, television, computer, palmtop computer, or personal digital assistant (PDA), but the terminal device that performs the attack of the virtual weapon is the cloud game server. When playing a game, the user operates the client game client to send operation commands to the cloud game server. The cloud game server executes the game based on the operation commands, encodes and compresses data such as the game screen, and returns it to the client game client via a network. Finally, the client game client decodes the data and outputs the game screen.

[0016] Referring to FIG. 1a, FIG. 1a is a system schematic diagram of a virtual weapon attack method according to one embodiment of the present disclosure. The system may include at least one computer device 1000, at least one server 2000, at least one database 3000, and a network 4000. A user's computer device 1000 can be connected to different game servers via the network 4000. The computer device 1000 is any device having computing hardware capable of supporting and executing software products corresponding to the game. The computer device 1000 also has one or more multi-touch sensitive screens for sensing and acquiring inputs of touch or slide operations performed by a user at multiple points on one or more touch displays. Furthermore, when the system includes multiple computer devices 1000, multiple servers 2000, and multiple networks 4000, the different computer devices 1000 may be connected to each other via different networks 4000 or different servers 2000. The network 4000 may be a wireless network or a wired network. For example, a wireless network may be a wireless LAN (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. Different computer devices 1000 may be connected to other terminals, servers, etc. using their own Bluetooth networks or hotspot networks. For example, multiple users may be connected via an appropriate network and go online via different computer devices 1000 to synchronize with each other, thereby supporting multi-user gaming. The system may also include multiple databases 3000, each coupled to a different server 2000, and information about the game environment may be continuously stored in the database 3000 when different users play a multi-user game online.

[0017] An embodiment of the present disclosure provides a method for attacking with a virtual weapon, which is executed by a terminal or a server. The embodiment of the present disclosure will be described by taking an example in which the method for attacking with a virtual weapon is executed by a terminal. The terminal includes a display component and a processor, and the display component is configured to present a graphical user interface and receive operation instructions generated by a user interacting with the display component. When a user interacts with the graphical user interface through the display component, the graphical user interface may control local content of the terminal in response to the received operation instructions, or may control content of a remote server in response to the received operation instructions. For example, the operation instructions generated by the user interacting with the graphical user interface include an instruction for launching a game application program, and the processor is configured to launch the game application program after receiving the instruction for launching the game application program provided by the user. The processor is also configured to render and draw the graphical user interface related to the game on a touch display. The touch display is a multi-touch sensitive screen capable of sensing touch or slide operations performed simultaneously at multiple points on the screen. A user performs a touch operation on a graphical user interface with a finger, and when the graphical user interface detects the touch operation, it controls different virtual objects in the graphical user interface of a game to perform actions corresponding to the touch operation. For example, the game may be any game such as a leisure game, an action game, a role-playing game, a policy game, a sports game, a puzzle game, or a first-person shooting game (FPS). Here, the game may include a virtual game scene depicted in the graphical user interface. The virtual game scene may also include one or more virtual objects, such as virtual characters, controlled by the user.The virtual scene of the game may also include one or more obstacles, such as railings, ditches, walls, etc., that restrict the movement of virtual objects, e.g., restricting the movement of one or more objects to a specific area within the virtual scene. Optionally, the virtual scene of the game may further include one or more elements, such as skills, scores, character health, energy, etc., to provide help to the user, provide virtual services, increase scores associated with user performance, etc. The graphical user interface may also display one or more indicators to provide instructional information to the user. For example, the game may include a virtual object controlled by the user and one or more other virtual objects (e.g., enemy characters). In one embodiment, one or more other virtual objects are controlled by other users of the game. For example, one or more other virtual objects may be controlled by a computer, such as a robot, using an artificial intelligence (AI) algorithm, realizing a human-machine battle mode. For example, the virtual objects may have various skills or abilities that allow game users to achieve their goals. For example, the virtual objects may have one or more weapons, tools, etc., to eliminate other objects from the game. Such skills or abilities can be activated by a user of the game using one of a plurality of preset touch operations with the touch display of the terminal, and the processor may be configured to display a corresponding game screen in response to an operation command generated by the user's touch operation.

[0018] It should be noted that the system schematic diagram of the virtual weapon attack system shown in FIG. 1a is merely an example, and the virtual weapon attack system and scenes described in the embodiments of the present disclosure are intended to more clearly explain the technical solutions of the embodiments of the present disclosure and do not limit the technical solutions of the embodiments of the present disclosure. Those skilled in the art will recognize that with the evolution of virtual weapon attack systems and the emergence of new business scenarios, the technical solutions of the embodiments of the present disclosure can be similarly applied to similar technical problems.

[0019] In this embodiment, the description will be given from the perspective of a virtual weapon attack device, but the virtual weapon attack device may specifically be integrated into a computer device that has a storage unit, a microprocessor installed, and computing power.

[0020] 1b, which is a flowchart of a virtual weapon attack method according to an embodiment of the present disclosure, includes the following steps:

[0021] In step 101, a graphical user interface is displayed, the graphical user interface including at least a portion of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control, wherein virtual weapons are placed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack controls corresponds to the weapon orientation of one of the virtual weapons.

[0022] Here, the graphical user interface displays a 3D virtual scene in a game scene. The 3D virtual scene is a virtual scene provided when an application program is executed on a terminal. It may be a simulation scene of the real world, a scene that is a combination of half simulation and half fiction, or a purely fictional scene. The scene screen displayed in the graphical user interface is the scene screen displayed when a virtual object observes the 3D virtual scene. A user manipulates a virtual object in the game scene through a terminal, and the virtual object's observation of the 3D virtual scene can be achieved using a camera model. For example, in an FPS game, in first-person viewing, the camera model is located at the head or neck of the target virtual object, and only the arms of the virtual character are displayed in the graphical user interface. In third-person viewing, the camera model is located behind the target virtual object, and only the upper body of the virtual character is displayed in the graphical user interface. The graphical user interface observes the scene screen displayed in the 3D virtual scene at a certain viewing angle using the camera model. Specifically, refer to FIG. 1c, which is a schematic diagram of a graphical user interface according to one embodiment of the present disclosure. The graphical user interface is displayed on the screen of the computer device 1000, and includes at least a part of a virtual scene collected by a camera model, a target virtual carrier 10 located in the virtual scene, and a first type attack controller. L 20 and the second type of attack controller L 1c, virtual weapons, for example, virtual weapon 11 (bow gun), virtual weapon 12 (right front gun), and virtual weapon 13 (left front gun), are arranged in different weapon orientations of the target virtual carrier 10, where the virtual weapon 11 is arranged just before the target virtual carrier 10, the virtual weapon 12 is arranged at the right front of the target virtual carrier 10, and the virtual weapon 13 is arranged at the left front of the target virtual carrier 10, and the just before, the right front, and the left front are weapon orientations.

[0023] Specifically, the second type of attack control L 30 is the first type attack controller L 20 different controls L One of the second type attack controllers is provided in the direction L The controller L The orientation corresponds to the weapon orientation of one of the virtual weapons. As shown in FIG. 1c, L For example, the left side of 20 is just before 45° upwards. L 31 is the first type of attacking controller L 20 Last minute The second type of attack controller is installed in L 32 is the first type of attacking control L It is installed in front of the right of No. 20 and is the second type of attack controller. L 33 is the first type of attacking control L 20 (the front, right front and left front are the control directions), which correspond to the front, right front and left front of the weapon direction, thereby L 31 corresponds to virtual weapon 11, and the second type of attack controller L 32 corresponds to virtual weapon 12, and the second type of attack controller L 33 corresponds to virtual weapon 13.

[0024] Graphical User Interface It should be understood that the above controls may include other functional controls and marks, and these are determined according to the specific game content and are not limited thereto.

[0025] In step 102, if an attack target exists within the attack range of a first target virtual weapon of the virtual weapon, a first target second type attack control is determined in which the control orientation corresponds to the first target weapon orientation of the first target virtual weapon based on the correspondence between the control orientation and the weapon orientation.

[0026] Here, the first target virtual weapon is a virtual weapon that has an attack target within its attack range, and the first target virtual weapon is a virtual weapon that has an attack target within its attack range. L Based on the correspondence between the direction and the weapon direction, a second type of attack control corresponding to the first target virtual weapon is L can be determined.

[0027] For example, if the first target virtual weapon is virtual weapon 11 and its weapon direction is "forward," the first type attack control L Second type of attack control against L The control direction of the first target is the immediate front, L The second type of attack control L It is 31.

[0028] In step 103, the initial display manner of the first target second type attack control is updated to a first display effect pattern, and the first display effect pattern is different from the initial display manner.

[0029] As shown in Figure 1c, the user can control the second type of attack. L In order to know which virtual weapon has an attack target in its attack range, a first target second type attack controller corresponding to the first target virtual weapon having an attack target in its attack range is provided. L The first display effect pattern is displayed (for example, the second type of attack control in Figure 1c). L 31 is displayed with a highlight effect), the second type of attack controller L Among them, the first target second type attack control L Other second-class attack controllers L The attack is displayed in a second display effect pattern that is distinct from the first display effect pattern (for example, the second type attack control in Figure 1c). L 32 and Type 2 Attack Control L 33 off effect display).

[0030] In step 104, in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack on the target to be attacked.

[0031] Here, the attack method of the virtual weapon can be divided into two types: normal attack and skill attack. The first type of attack is a normal attack, the second type of attack is a skill attack, and the first type of attack control is L is the attack control of a normal attack. L The second type of attack control L is the attack control of the skill attack L is.

[0032] Specifically, the user controls the first target second type of attack. L When the first control operation is performed on the first target, the second type attack control L The first target virtual weapon corresponding to the first target is controlled to perform a second type of attack on the target to be attacked, that is, the first target virtual weapon is controlled to perform a skill attack on the target to be attacked.

[0033] In some embodiments, the method further comprises: The first type of attack control L The method further includes the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon.

[0034] Here, the user controls the first type of attack. L When a second control operation is performed on the first target virtual weapon, the first target virtual weapon is controlled to perform a first type of attack on the target to be attacked, that is, the first target virtual weapon is controlled to perform a normal attack on the target to be attacked.

[0035] In some embodiments, the first type attack controller L before the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, When the target to be attacked is within the attack range of the first target virtual weapon of the virtual weapon, the first type attack controller L and establishing a mapping relationship between the first target weapon orientation and the first target weapon orientation; The first type of attack control L and a step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, (1) The first type of attack control L In response to a second control operation on the first type attack controller, L determining a first target weapon azimuth having a mapping relationship established therebetween; (2) determining a first target virtual weapon disposed in the first target weapon direction, and controlling the first target virtual weapon to perform a first type attack on the target to be attacked.

[0036] Here, for the first target virtual weapon that has an attack target within its attack range, the first type attack control by the user is performed. L The second control operation on the first target virtual weapon is for triggering the first type attack on the target to be attacked, and the user controls the first type attack controller. L Each time the second control operation is performed on the first target virtual weapon, the first target virtual weapon may be changed. For example, the previous first target virtual weapon was a bow gun, and the current first target virtual weapon is a left front gun and a right front gun. L Each time the corresponding first target virtual weapon is controlled by the second control operation to perform a first type attack, the first type attack controller L In response to a second control operation on the first target virtual weapon, before controlling the first target virtual weapon to perform a first type attack on the target to be attacked, if the target to be attacked is within an attack range of the first target virtual weapon, a first type attack control L and the first target weapon azimuth by establishing a mapping relationship. L If a second control operation is responded to, the first type of attack control La first target weapon orientation in which a mapping relationship is established; a first target virtual weapon positioned at the first target weapon orientation based on the first target weapon orientation; and the first target virtual weapon being controlled to perform a first type of attack against the attack target, wherein the number of first target virtual weapons may be one or more.

[0037] For example, if the number of first target virtual weapons is two, and the first target virtual weapons are the left front gun and the right front gun, the first target weapon direction is the left front and the right front, and the left front and the right front and the first type attack control L (Here, the left front and right front are used as a set of first target weapon orientations, and the first type attack control L A single mapping relationship can be established between the left front and the first type attack control. L The mapping relationship between the right front and the first type attack control L The first type of attack control can be achieved by establishing a mapping relationship with the first type of attack control. That is, two mapping relationships can be established. The specific method for establishing the mapping relationship is not limited here. L In response to a second control operation on the first type attack control L The first target weapon orientation for which a mapping relationship has been established is determined to be the left front and right front, the first target virtual weapons positioned at the left front and right front are determined to be the left front gun and the right front gun, and the left front gun and the right front gun are controlled to perform a first type attack on the target to be attacked.

[0038] In some embodiments, the first type attack controller L includes a plurality of first control icon patterns, and each of the first control icon patterns includes a different display number of virtual weapon marks; The first type of attack control L before the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, (1) determining the number of virtual weapons in the first target virtual weapon; (2) determining a target first control icon pattern from the plurality of first control icon patterns based on a correspondence relationship between the number of the virtual weapons and the number of displayed items; (3) displaying the first type attack control with the target first control icon pattern.

[0039] Here, as shown in FIG. 1d, FIG. 1d is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. In order to allow a user to know how many first target virtual weapons are simultaneously within the attack range of the first target virtual weapon, L By displaying a corresponding number of virtual weapon marks, the number of virtual weapons of the first target virtual weapon can be notified to the user.

[0040] Specifically, the first type of attack control L The first type attack control includes a plurality of first control icon patterns, each of which includes a different number of virtual weapon marks. L In response to a second control operation on the target, before controlling the first target virtual weapon to perform a first type attack on the attack target, the number of virtual weapons of the first target virtual weapon is determined, a target first control icon pattern is determined from a plurality of first control icon patterns based on the correspondence between the number of virtual weapons and the number to be displayed, and the first type attack control is displayed using the target first control icon pattern.

[0041] For example, in FIG. 1d, if the target to be attacked is within the attack range of both the virtual weapon 11 and the virtual weapon 12 at the same time, and there are two first target virtual weapons (the virtual weapon 11 and the virtual weapon 12), the first type attack controller will L The first control icon pattern 20 is a virtual weapon mark including two display quantities. Specifically, there may be multiple attack targets, each within the attack range of a different virtual weapon, but this is not limited thereto.

[0042] In some embodiments, the method further comprises: (1) The first type of attack control L Starting from the first target, the second type attack control L determining the number of virtual weapons of the first target virtual weapon in response to a third control operation ending in (2) When the number of the first target virtual weapons is one, the method further includes the step of controlling the first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0043] Here, as shown in FIG. 1e, FIG. 1e is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. L and second type attack control L The first type of attack control L Starting from the first target, the second type attack control L When the third control operation ending with is performed, the number of virtual weapons of the first target virtual weapon is determined, and if the number of virtual weapons of the first target virtual weapon is only one, the first target virtual weapon is controlled to simultaneously perform the first type attack and the second type attack on the attack target.

[0044] Specifically, the third control operation may be a slide operation, and the first type attack control L Starting from the first target, the second type attack control L That is, the first type of attack control L First target second type attack control L The third control operation may be a click operation, and the first type attack control L Starting from the first target, the second type attack control L That is, the first type of attack control L Click to control the first target and the second type of attack within the preset period. L Click .

[0045] In some embodiments, the method further comprises: (1) If the number of virtual weapons of the first target is not one, a plurality of first target second type attack controllers L The third control operation acts on the designated first target second type attack controller. L determining a (2) The controller L Based on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L determining a designated first target virtual weapon corresponding to the designated target control orientation of the first target virtual weapon; (3) controlling the designated first target virtual weapon to perform a first type attack and a second type attack against the attack target.

[0046] Here, if the number of virtual weapons of the first target is not one, the specified first target second type attack controller on which the third control operation acts is L and further determining the controller L Based on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L By determining the designated first target virtual weapon corresponding to the designated target control orientation, the designated first target virtual weapon is controlled to perform a first type attack and a second type attack against the target to be attacked.

[0047] For example, in FIG. 1e, if the attack target 40 is within the attack range of both the virtual weapon 11 and the virtual weapon 12, the number of virtual weapons of the first target virtual weapon is two. In this case, the second type attack controller L 31 and Type 2 Attack Control L 32 are all in the first display state, and the user's third control operation is the first type attack control. L Starting with 20, the second type of attack control L If it ends at 31, the third control operation will be applied to the designated first target, second type attack control. L is the second type of attack control L 31. Controller LBased on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L When the designated first target virtual weapon corresponding to the designated target control orientation is determined as the virtual weapon 11, the virtual weapon 11 is controlled to simultaneously perform the first type attack and the second type attack on the attack target 40.

[0048] In some embodiments, the method further comprises: The method further includes controlling the first target virtual weapon to perform a first type of attack against the target to be attacked, and controlling the designated first target virtual weapon to perform a second type of attack against the target to be attacked.

[0049] Here, if the number of virtual weapons of the first target virtual weapon is not one, the third control operation may be further used to control the first target virtual weapon to perform a first type of attack against the attack target, and to control the specified first target virtual weapon to perform a second type of attack against the attack target.

[0050] For example, in FIG. 1e, the virtual weapons 11 and 12 are controlled to perform a first type of attack against the target 40 to be attacked, and the virtual weapon 11 is controlled to perform a second type of attack against the target 40 to be attacked.

[0051] In some embodiments, the first type attack controller L The step of providing a visual angle direction mark on the outer edge of (1) obtaining a current viewing angle orientation and determining a second target virtual weapon within the current viewing angle orientation; (2) The controller L Based on the correspondence between the direction and the weapon direction, L A second target second type attack controller having a corresponding direction and a second target weapon direction of the second target virtual weapon. L determining a (3) Controlling the visual angle direction mark to control the second target second type attack L The method further includes the step of directing the

[0052] Here, in order to make the current viewing angle direction more intuitively related to the virtual weapon, we will use the first type of attack control. L In addition, content that maps viewing angles has been added. L The outer edge of the marker is marked with a visual direction mark. L The outer edge of the controller 20 can be slid, so that the viewing angle direction mark faces a different direction. Specifically, refer to FIG. 1f, which is a schematic diagram of a graphical user interface according to one embodiment of the present disclosure. The controller 20 obtains a current viewing angle direction of the virtual character controlled by the user, determines a second target virtual weapon within the current viewing angle direction, and controls the controller 20 to select the second target virtual weapon. L Based on the correspondence between the direction and the weapon direction, L A second target second type attack controller having a corresponding direction and a second target weapon direction of the second target virtual weapon. L and the visual angle direction mark is determined to be the second target second type attack control. L For example, as shown in FIG. 1f, the second target virtual weapon in the current viewing direction is virtual weapon 11, and the controller L Based on the correspondence between the direction and the weapon direction, a second target second type attack control corresponding to the virtual weapon 11 is L The second type of attack control L If it is determined to be 31, the visual direction mark 50 is a second type attack control. L It is controlled to go towards 31.

[0053] In some embodiments, the virtual weapon includes a plurality of weapon types, each of the second type attack controllers. L The second control icon pattern corresponds to the weapon type of the corresponding virtual weapon.

[0054] Here, in order to enrich the gameplay of the game, different types of virtual weapons can be installed on the target virtual carrier, and a second type of attack controller corresponding to each virtual weapon is provided to allow the user to clearly sense the weapon type of the virtual weapon installed in different weapon orientations. L The second control icon pattern can be made to correspond to the weapon type of the corresponding virtual weapon.

[0055] Specifically, as shown in FIG. 1g, FIG. 1g is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure. The weapon type of the virtual weapon 11 is a machine gun, the weapon types of the virtual weapons 12 and 13 are artillery, and the second type attack controller corresponding to the virtual weapon 11 is a L The second control icon pattern 31 is a plurality of arrows pointing in the same direction, and is a second type attack control corresponding to the virtual weapon 12 and the virtual weapon 13. L The second control icon pattern of 31 is multiple arrows pointing in different directions.

[0056] In some embodiments, the method further comprises: If there is no target to be attacked within the attack range of any of the virtual weapons, the first type attack controller L The method further includes the step of displaying an attack range corresponding to each of the virtual weapons within the graphical user interface in response to a third control operation on the virtual weapon.

[0057] As shown in FIG. 1h, which is a schematic diagram of a graphical user interface according to an embodiment of the present disclosure, when there is no target to be attacked within the attack range of any of the virtual weapons, the user can select the first type of attack controller. L When a third control operation is performed on 20, the attack ranges corresponding to the virtual weapons are displayed in the graphical user interface, for example, sector-shaped areas corresponding to virtual weapon 11, virtual weapon 12, and virtual weapon 13 in FIG. 1h.

[0058] As can be seen from the above, an embodiment of the present disclosure displays a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein a virtual weapon is disposed at a different weapon orientation of the target virtual carrier, the second type of attack control is disposed at a different control orientation of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, When a target to be attacked is present within the attack range of a first target virtual weapon of a virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display format of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display format, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack on the target to be attacked. This allows the user to individually control and attack one or more virtual weapons on the ship by operating the second type attack control, improving the simulation when the user plays the game.

[0059] To better implement the virtual weapon attack method according to the embodiment of the present disclosure, the embodiment of the present disclosure further provides an apparatus based on the above virtual weapon attack method, where the noun meaning is the same as the above virtual weapon attack method, and specific implementation details can be referred to in the description of the method embodiment.

[0060] Referring to FIG. 2, FIG. 2 is a structural schematic diagram of a virtual weapon attack device according to one embodiment of the present disclosure, where the virtual weapon attack device may include a first display module 301, a first determination module 302, an update module 303, and a first control module 304, etc.

[0061] The first display module 301 is configured to display a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein virtual weapons are disposed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons.

[0062] The first determination module 302 is configured to, when an attack target exists within the attack range of a first target virtual weapon of the virtual weapon, determine a first target second type attack control in which the control orientation corresponds to the first target weapon orientation of the first target virtual weapon based on the correspondence between the control orientation and the weapon orientation.

[0063] The update module 303 is configured to control the first target second type attack control to update its initial display mode to a first display effect pattern and display the first display effect pattern, and the first display effect pattern is different from the initial display mode; The first control module 304 is configured to control the first target virtual weapon to perform a second type attack against the target to be attacked in response to a first control operation on the first target second type attack control.

[0064] In some embodiments, the apparatus further comprises a second control module; The second control module is a first target second type attack control L Control the first display effect pattern and other second type attack control L and controls the other second type attack controller to display the second display effect pattern. L The second type of attack control L The first target second type attack control L Second-class attack controllers other than L is.

[0065] In some embodiments, the apparatus further comprises a third control module: The third control module controls the first type attack control L and in response to a second control operation on the first target virtual weapon, the first target virtual weapon is controlled to perform a first type of attack on the attack target.

[0066] In some embodiments, the apparatus further comprises an establishing module: The establishment module, when an attack target exists within the attack range of a first target virtual weapon in the virtual weapons, establishes the first type attack controller. L and the first target weapon orientation.

[0067] the third control module includes a determination sub-module and a control sub-module; The decision sub-module determines whether the first type of attack control L In response to a second control operation on the first type attack controller, L and determining a first target weapon orientation with a mapping relationship established between the first target weapon orientation and the second target weapon orientation.

[0068] The control sub-module is configured to determine a first target virtual weapon positioned at the first target weapon orientation and control the first target virtual weapon to perform a first type of attack against the target to be attacked.

[0069] In some embodiments, the first type attack controller L includes a plurality of first control icon patterns, each of which includes a different display number of virtual weapon marks.

[0070] The device further includes a second determination module, a third determination module, and a second display module; The second determination module is configured to determine a number of virtual weapons of the first target virtual weapon.

[0071] The third determination module is configured to determine a target first control icon pattern from the plurality of first control icon patterns based on a correspondence relationship between the number of the virtual weapons and the display number.

[0072] The second display module displays the first type attack control with the target first control icon pattern. L is configured to display

[0073] In some embodiments, the apparatus further comprises a fourth determination module and a second control module; The fourth decision module determines whether the first type of attack control L Starting from the first target, the second type attack control L and determining the number of virtual weapons of the first target virtual weapon in response to a third control operation ending in

[0074] The second control module is configured to, when the number of virtual weapons of the first target virtual weapon is one, control the first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0075] In some embodiments, the apparatus further comprises a fifth determination module, a sixth determination module, and a third control module; The fifth determination module determines whether the number of the first target virtual weapons is one or more than one. L The third control operation acts on the designated first target second type attack controller. L is configured to determine

[0076] The sixth decision module determines whether the controller LBased on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L and determining a corresponding designated first target virtual weapon with the designated target control orientation.

[0077] The third control module is configured to control the designated first target virtual weapon to perform a first type attack and a second type attack against the attack target.

[0078] In some embodiments, the apparatus further comprises a fourth control module: The fourth control module is configured to control the first target virtual weapon to perform a first type of attack against the target to be attacked, and to control the designated first target virtual weapon to perform a second type of attack against the target to be attacked.

[0079] In some embodiments, the first type attack controller L a visual angle direction mark is provided on the outer edge of the device; and the device further includes an acquisition module, a seventh determination module, and a fifth control module; The acquisition module is configured to acquire a current viewing orientation and determine a second target virtual weapon within the current viewing orientation.

[0080] The seventh decision module L Based on the correspondence between the direction and the weapon direction, L A second target second type attack controller having a corresponding direction and a second target weapon direction of the second target virtual weapon. L is configured to determine

[0081] The fifth control module controls the visual angle direction mark to control the second target second type attack control. L It is configured to direct the

[0082] In some embodiments, the virtual weapon includes a plurality of weapon types, each of which has a second attack controller. LThe second control icon pattern corresponds to the weapon type of the corresponding virtual weapon.

[0083] In some embodiments, the device further comprises a third display module; When there is no target to be attacked within the attack range of any of the virtual weapons, the third display module displays the first type of attack control. L and configured to display an attack range corresponding to each of the virtual weapons within the graphical user interface in response to a third control operation on the virtual weapon.

[0084] As can be seen from the above, the embodiment of the present disclosure displays a graphical user interface by a first display module 301, the graphical user interface includes at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, virtual weapons are arranged in different weapon orientations of the target virtual carrier, the second type of attack control is installed in different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the first determination module 302 When a target to be attacked is within the attack range of a first target virtual weapon of the virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation. An update module 303 controls the first target second type attack control to update and display an initial display format of the first target second type attack control to a first display effect pattern, the first display effect pattern being different from the initial display format. A first control module 304 controls the first target virtual weapon to perform a second type attack against the target to be attacked in response to a first control operation on the first target second type attack control. This allows the user to individually control and attack one or more virtual weapons on the ship through control operations on the second type attack control, improving the simulation of the user's gameplay.

[0085] For the specific implementation of each of the above operations, please refer to the previous embodiment, and the description will be omitted here.

[0086] Accordingly, an embodiment of the present disclosure further provides a computer device, which may be a terminal or a server. The terminal may be a terminal device such as a smartphone, a tablet computer, a laptop, a touchscreen, a game console, a personal computer (PC), or a personal digital assistant (PDA). FIG. 3 is a structural diagram of a computer device according to an embodiment of the present disclosure. The computer device 1000 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will recognize that the structure of the computer device shown in the figure does not limit the computer device, and the computer device may include more or fewer components than those shown, or may combine several components or different component arrangements.

[0087] The processor 401 is the control center of the computer device 1000, and monitors the computer device 1000 as a whole by connecting each part of the computer device 1000 using various interfaces and lines, executing or loading software programs and / or modules stored in the memory 402, calling up data stored in the memory 402, and executing various functions and processing data of the computer device 1000.

[0088] In an embodiment of the present disclosure, the processor 401 in the computer device 1000 loads instructions corresponding to the processes of one or more application programs into the memory 402, and the processor 401 executes the application programs stored in the memory 402, thereby achieving various functions, according to the following steps:

[0089] A graphical user interface is displayed, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, a virtual weapon is disposed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the first type of attack control on the virtual weapon If an attack target exists within the attack range of the target virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display method of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display method, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack against the attack target.

[0090] Optionally, the method further comprises: The first type of attack control L The method further includes the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon.

[0091] Optionally, the first type attack control L before the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, When the target to be attacked is within the attack range of the first target virtual weapon of the virtual weapon, the first type attack controller L and establishing a mapping relationship between the first target weapon orientation and the first target weapon orientation; The first type of attack control Land a step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, The first type of attack control L In response to a second control operation on the first type attack controller, L determining a first target weapon azimuth having a mapping relationship established therebetween; determining a first target virtual weapon positioned in the first target weapon orientation, and controlling the first target virtual weapon to perform a first type of attack on the target to be attacked.

[0092] Optionally, the first type attack control L includes a plurality of first control icon patterns, and each of the first control icon patterns includes a different display number of virtual weapon marks; The first type of attack control L before the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, determining a number of virtual weapons for the first target virtual weapon; determining a target first control icon pattern from the plurality of first control icon patterns based on a correspondence relationship between the number of virtual weapons and the number of displayed icons; The method further includes the step of displaying the first type attack control with the target first control icon pattern.

[0093] Optionally, the method further comprises: The first type of attack control L Starting from the first target, the second type attack control L determining the number of virtual weapons of the first target virtual weapon in response to a third control operation ending in If the number of the first target virtual weapon is one, the method further includes controlling the first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0094] Optionally, the method further comprises: If the number of the first target virtual weapons is not one, a plurality of first target second type attack controllers are L The third control operation acts on the designated first target second type attack controller. L determining a The controller L Based on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L determining a designated first target virtual weapon corresponding to the designated target control orientation of the first target virtual weapon; The method further includes controlling the designated first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0095] Optionally, the method further comprises: The method further includes controlling the first target virtual weapon to perform a first type of attack against the target to be attacked, and controlling the designated first target virtual weapon to perform a second type of attack against the target to be attacked.

[0096] Optionally, the first type attack control L The outer edge of the display is provided with a visual angle direction mark, and the method further comprises: obtaining a current viewing angle orientation and determining a second target virtual weapon within the current viewing angle orientation; The controller L Based on the correspondence between the direction and the weapon direction, L A second target second type attack controller having a corresponding direction and a second target weapon direction of the second target virtual weapon. L determining a Control the visual angle direction mark to control the second target second type attack L The method further includes the step of directing the

[0097] Optionally, said virtual weapons include a plurality of weapon types, each of said second type attack controllers LThe second control icon pattern corresponds to the weapon type of the corresponding virtual weapon.

[0098] Optionally, the method further comprises: If there is no target to be attacked within the attack range of any of the virtual weapons, the first type attack controller L The method further includes the step of displaying an attack range corresponding to each of the virtual weapons within the graphical user interface in response to a third control operation on the virtual weapon.

[0099] A graphical user interface is displayed, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, a virtual weapon is disposed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the first type of attack control on the virtual weapon If a target to be attacked is present within the attack range of the target virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display format of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display format, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack on the target to be attacked. This allows the user to individually control and attack one or more virtual weapons on the ship through control operations on the second type attack control, improving the simulation when the user plays the game.

[0100] For the specific implementation of each of the above operations, please refer to the previous embodiment, and the description will be omitted here.

[0101] Optionally, as shown in Fig. 3 , the computer device 1000 further includes a touch display 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch display 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art will recognize that the structure of the computer device shown in Fig. 3 does not limit the computer device, and the computer device may include more or fewer components than those shown, or may combine several components or different component arrangements.

[0102] The touch display 403 may be configured to display a graphical user interface and receive operation instructions generated by a user interacting with the graphical user interface. The touch display 403 may include a display panel and a touch panel. The display panel may be used to display information input by or provided to a user and various graphical user interfaces of the computer device, which may be configured with figures, documents, icons, videos, and any combination thereof. Optionally, the display panel may be in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. The touch panel is used to collect a user's touch operation on or near the touch panel (e.g., a user's operation on or near the touch panel using any suitable object or accessory, such as a finger, a stylus, or the like), generate corresponding operation instructions, and operate the instructions to execute a corresponding program. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch direction, detects a signal generated by the touch operation, and transmits the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into contact coordinates, and transmits them to the processor 401, and can receive and execute instructions transmitted from the processor 401. The touch panel can cover the display panel, and after the touch panel detects a touch operation on or near it, it transmits it to the processor 401 to determine the type of touch event. The processor 401 then provides a corresponding visual output on the display panel according to the type of touch event. In embodiments of the present disclosure, the touch panel and the display panel can be integrated into the touch display 403 to realize input and output functions. However, in some embodiments, the touch panel and displayThe panel can realize the input and output functions as two independent components, i.e., the touch display 403 may realize the input function as a part of the input unit 406.

[0103] In an embodiment of the present disclosure, the processor 401 executes a game application program to generate a graphical user interface on the touch display 403, where a virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display 403 is configured to present the graphical user interface and receive operation commands generated by a user interacting with the graphical user interface.

[0104] The radio frequency circuitry 404 transmits and receives radio frequency signals to establish wireless communication with network devices or other computer devices via wireless communication, and transmits and receives signals to and from the network devices or other computer devices.

[0105] The audio circuit 405 can provide an audio interface between a user and a computer device via a speaker and a microphone. The audio circuit 405 converts received audio data into an electrical signal and transmits it to a speaker, which converts it into an audio signal and outputs it. The microphone converts collected audio signals into an electrical signal, which the audio circuit 405 receives and converts into audio data. The audio data is then output to the processor 401 for processing and then transmitted to, for example, another computer device via the radio frequency circuit 404, or output to the memory 402 for further processing. The audio circuit 405 may further include an earphone jack to provide communication between an external earphone and the computer device.

[0106] The input unit 406 is used to receive input numeric, character information or user characteristic information (e.g., fingerprint, iris, face information, etc.) and generate keyboard, mouse, control stick, optical or trackball signal input for user settings and function control.

[0107] The power supply 407 provides power to the components of the computing device 1000. Optionally, the power supply 407 may be logically connected to the processor 401 via a power management system, thereby managing functions such as charging, discharging, and power consumption management via the power management system. The power supply 407 may further include optional components such as one or more DC or AC power sources, a recharging system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0108] Although not shown in FIG. 3, the computer device 1000 may further include a camera, a sensor, a WiFi module, a Bluetooth module, etc., the description of which will be omitted here.

[0109] In the above embodiments, the description of each embodiment is focused on certain points, and for parts that are not detailed in an embodiment, reference can be made to the relevant descriptions of other embodiments.

[0110] As can be seen from the above, the computer device of this embodiment displays a graphical user interface, and the graphical user interface includes at least a portion of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, where virtual weapons are placed in different weapon orientations of the target virtual carrier, the second type of attack control is installed in different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons. When a target to be attacked is present within the attack range of a first target virtual weapon of the virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display format of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display format, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack against the target to be attacked. This allows one or more virtual weapons on the ship to be individually controlled to attack by a user's control operation on the second type attack control, improving the simulation of user play. This allows one or more virtual weapons on the ship to be individually controlled to attack by a user's control operation on the second type attack control, improving the simulation of user play.

[0111] Those skilled in the art will understand that all or some of the steps in the various methods of the above embodiments may be completed by instructions or by hardware related to instruction control, and the instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0112] To this end, an embodiment of the present disclosure provides a computer-readable storage medium having stored thereon a plurality of computer programs, which can be loaded by a processor to execute steps in any of the skill control methods according to the embodiment of the present disclosure. For example, the computer programs can execute the following steps:

[0113] A graphical user interface is displayed, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, a virtual weapon is disposed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the first type of attack control on the virtual weapon If an attack target exists within the attack range of the target virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display method of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display method, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack against the attack target.

[0114] Optionally, the method further comprises: The first type of attack control L The method further includes the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon.

[0115] Optionally, the first type attack control Lbefore the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, When the target to be attacked is within the attack range of the first target virtual weapon of the virtual weapon, the first type attack controller L and establishing a mapping relationship between the first target weapon orientation and the first target weapon orientation; The first type of attack control L and a step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, The first type of attack control L In response to a second control operation on the first type attack controller, L determining a first target weapon azimuth having a mapping relationship established therebetween; determining a first target virtual weapon positioned in the first target weapon orientation, and controlling the first target virtual weapon to perform a first type of attack on the target to be attacked.

[0116] Optionally, the first type attack control L includes a plurality of first control icon patterns, and each of the first control icon patterns includes a different display number of virtual weapon marks; The first type of attack control L before the step of controlling the first target virtual weapon to perform a first type attack on the attack target in response to a second control operation on the first target virtual weapon, determining a number of virtual weapons for the first target virtual weapon; determining a target first control icon pattern from the plurality of first control icon patterns based on a correspondence relationship between the number of virtual weapons and the number of displayed icons; The method further includes the step of displaying the first type attack control with the target first control icon pattern.

[0117] Optionally, the method further comprises: The first type of attack control L Starting from the first target, the second type attack control L determining the number of virtual weapons of the first target virtual weapon in response to a third control operation ending in If the number of the first target virtual weapon is one, the method further includes controlling the first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0118] Optionally, the method further comprises: If the number of the first target virtual weapons is not one, a plurality of first target second type attack controllers are L The third control operation acts on the designated first target second type attack controller. L determining a The controller L Based on the correspondence between the direction and the weapon direction, the weapon direction and the designated first target second type attack control L determining a designated first target virtual weapon corresponding to the designated target control orientation of the first target virtual weapon; The method further includes controlling the designated first target virtual weapon to perform a first type attack and a second type attack on the attack target.

[0119] Optionally, the method further comprises: The method further includes controlling the first target virtual weapon to perform a first type of attack against the target to be attacked, and controlling the designated first target virtual weapon to perform a second type of attack against the target to be attacked.

[0120] Optionally, the first type attack control L The outer edge of the display is provided with a visual angle direction mark, and the method further comprises: obtaining a current viewing angle orientation and determining a second target virtual weapon within the current viewing angle orientation; The controller L Based on the correspondence between the direction and the weapon direction, L A second target second type attack controller having a corresponding direction and a second target weapon direction of the second target virtual weapon. L determining a Control the visual angle direction mark to control the second target second type attack L The method further includes the step of directing the

[0121] Optionally, said virtual weapons include a plurality of weapon types, each of said second type attack controllers L The second control icon pattern corresponds to the weapon type of the corresponding virtual weapon.

[0122] Optionally, the method further comprises: If there is no target to be attacked within the attack range of any of the virtual weapons, the first type attack controller L The method further includes the step of displaying an attack range corresponding to each of the virtual weapons within the graphical user interface in response to a third control operation on the virtual weapon.

[0123] A graphical user interface is displayed, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, a virtual weapon is disposed at different weapon orientations of the target virtual carrier, the second type of attack control is installed at different control orientations of the first type of attack control, and the control orientation of one of the second type of attack control corresponds to the weapon orientation of one of the virtual weapons, and the first type of attack control on the virtual weapon If a target to be attacked is present within the attack range of the target virtual weapon, a first target second type attack control corresponding to the control orientation and the first target weapon orientation of the first target virtual weapon is determined based on the correspondence between the control orientation and the weapon orientation, and an initial display format of the first target second type attack control is updated to a first display effect pattern and displayed, the first display effect pattern being different from the initial display format, and in response to a first control operation on the first target second type attack control, the first target virtual weapon is controlled to perform a second type attack on the target to be attacked. This allows the user to individually control and attack one or more virtual weapons on the ship through control operations on the second type attack control, improving the simulation when the user plays the game.

[0124] For the specific implementation of each of the above operations, please refer to the previous embodiment, and the description will be omitted here.

[0125] Here, the storage medium may include a read only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.

[0126] The computer program stored in the storage medium can execute the steps of any of the virtual weapon attack methods according to the embodiments of the present disclosure, thereby achieving the beneficial effects of any of the virtual weapon attack methods according to the embodiments of the present disclosure; for details, please refer to the previous embodiments and the description will be omitted here.

[0127] The above provides a detailed description of the virtual weapon attack method, device, storage medium, and computer device according to the embodiments of the present disclosure, and specific examples are used to explain the principles and embodiments of the present disclosure. However, the above description of the embodiments is intended to aid in understanding the method and core idea of ​​the present disclosure. At the same time, those skilled in the art will recognize that there may be changes in the specific embodiments and application scope based on the idea of ​​the present disclosure. In summary, the content of the present disclosure should not be construed as limiting the present disclosure.

Claims

1. a step of displaying a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein a virtual weapon is disposed at a different weapon orientation of the target virtual carrier, the second type of attack control is disposed at a different control orientation of the first type of attack control, and the control orientation of one of the second type of attack controls corresponds to the weapon orientation of one of the virtual weapons; When an attack target exists within the attack range of a first target virtual weapon of the virtual weapon, a step of determining a first target second type attack control in which the control orientation corresponds to a first target weapon orientation of the first target virtual weapon based on the correspondence relationship between the control orientation and the weapon orientation; a step of controlling the display of the first target second type attack control by updating the initial display method to a first display effect pattern, the first display effect pattern being different from the initial display method; and controlling the first target virtual weapon to perform a second type attack against the attack target in response to a first control operation on the first target second type attack control. A method of attacking with a virtual weapon.

2. and further comprising a step of controlling the first target virtual weapon to perform a first type attack against the attack target in response to a second control operation on the first type attack controller.

2. The method of claim 1, wherein the virtual weapon is a weapon.

3. before the step of controlling the first target virtual weapon to perform a first type attack against the attack target in response to a second control operation on the first type attack controller; When an attack target exists within an attack range of a first target virtual weapon of the virtual weapon, a mapping relationship is established between the first type attack controller and the first target weapon orientation; the step of controlling the first target virtual weapon to perform a first type attack against the attack target in response to a second control operation on the first type attack controller includes: determining a first target weapon orientation in response to a second control operation on the first type attack controller, the first target weapon orientation having a mapping relationship established with the first type attack controller; determining a first target virtual weapon disposed in the first target weapon orientation, and controlling the first target virtual weapon to perform a first type of attack on the attack target; 3. The method of claim 2, wherein the virtual weapon is used to attack.

4. the first type attack controller includes a plurality of first control icon patterns, and each of the first control icon patterns includes a different number of virtual weapon marks; before the step of controlling the first target virtual weapon to perform a first type attack against the attack target in response to a second control operation on the first type attack controller; determining a number of virtual weapons for the first target virtual weapon; determining a target first control icon pattern from the plurality of first control icon patterns based on a correspondence relationship between the number of virtual weapons and the number of displayed icons; and displaying the first type attack control with the target first control icon pattern.

3. The method of claim 2, wherein the virtual weapon is used to attack.

5. determining the number of virtual weapons of the first target virtual weapon in response to a third control operation starting from the first type attack controller and ending with the first target second type attack controller; If the number of the first target virtual weapon is one, controlling the first target virtual weapon to perform a first type attack and a second type attack on the attack target.

3. The method of claim 2, wherein the virtual weapon is used to attack.

6. If the number of the first target virtual weapons is not one, determining a designated first target second type attack controller on which the third control operation is to be applied from the plurality of first target second type attack controllers; determining a designated first target virtual weapon whose weapon orientation corresponds to the designated target control orientation of the designated first target second type attack controller based on the correspondence relationship between the controller orientation and the weapon orientation; and controlling the designated first target virtual weapon to perform a first type attack and a second type attack against the attack target.

6. The method of claim 5, wherein the virtual weapon is used to attack.

7. The method further includes controlling the first target virtual weapon to perform a first type of attack against the attack target, and controlling the designated first target virtual weapon to perform a second type of attack against the attack target.

7. The method of claim 6, wherein the virtual weapon is used to attack.

8. The step of providing a visual angle direction mark on the outer edge of the first type attack controller includes: obtaining a current viewing angle orientation and determining a second target virtual weapon within the current viewing angle orientation; determining a second target second type attack controller whose controller orientation corresponds to a second target weapon orientation of the second target virtual weapon based on the correspondence relationship between the controller orientation and the weapon orientation; and controlling the visual direction mark to point toward the second target second type attack controller.

2. The method of claim 1, wherein the virtual weapon is a weapon.

9. the virtual weapons include a plurality of weapon types, and the second control icon pattern of each second type attack controller corresponds to the weapon type of the corresponding virtual weapon; 2. The method of claim 1, wherein the virtual weapon is a weapon.

10. and further comprising the step of displaying an attack range corresponding to each of the virtual weapons in the graphical user interface in response to a third control operation on the first type attack controller when no target to be attacked is present within the attack range of any of the virtual weapons.

2. The method of claim 1, wherein the virtual weapon is a weapon.

11. A virtual weapon attack device comprising a first display module, a first determination module, an update module, and a first control module, The first display module is configured to display a graphical user interface, the graphical user interface including at least a part of a virtual scene, a target virtual carrier located in the virtual scene, a first type of attack control, and a second type of attack control displayed in an initial display manner, wherein a virtual weapon is disposed at a different weapon orientation of the target virtual carrier, the second type of attack control is disposed at a different control orientation of the first type of attack control, and a control orientation of one of the second type of attack controls corresponds to a weapon orientation of one of the virtual weapons; the first determination module is configured to determine a first target second type attack control in which the control orientation corresponds to a first target weapon orientation of the first target virtual weapon based on the correspondence between the control orientation and the weapon orientation when an attack target exists within an attack range of a first target virtual weapon of the virtual weapon; The update module is configured to control the first target second type attack control to update its initial display mode to a first display effect pattern and display the first display effect pattern, and the first display effect pattern is different from the initial display mode; the first control module is configured to control the first target virtual weapon to perform a second type attack against the attack target in response to a first control operation on the first target second type attack control; A virtual weapon attack device.

12. A computer-readable storage medium having stored thereon a plurality of instructions, the instructions being configured to, when loaded by a processor, perform the steps of the virtual weapon attack method of any one of claims 1 to 10. A computer-readable storage medium comprising:

13. A computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer device implementing the steps of the virtual weapon attack method according to any one of claims 1 to 10 when the processor executes the program. A computer device characterized in that: