Control method, medium and device for virtual crosshairs in shooting games

By creating a target switching control in the shooting game and optimizing the initial position processing of the virtual crosshair, the problem of long time-consuming and high misoperation rate when switching the virtual crosshair is solved, the control efficiency and accuracy of the shooting game are improved, and the user experience is improved.

CN114011051BActive Publication Date: 2024-10-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111299720.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-04
Publication Date
2024-10-25
Estimated Expiration
2041-11-04

AI Technical Summary

Technical Problem

In shooting games, when the virtual crosshair switches to another shootable target after turning on the virtual sight, a longer finger slide is required, which takes longer and increases the rate of misoperation, reduces the accuracy of aiming and shooting, and affects User experience.

Method used

By outputting the computer graphics interface of the virtual shooting scene on the terminal display, it receives the instruction to turn on the virtual sight, records the position data of the target that can be shot, and creates a target switching control to determine whether the target is within the field of view, and triggers the virtual sight according to the control operation. Move, set the initial position to optimize the switching process.

Benefits of technology

It is possible to quickly switch the virtual sight to another shootable target when the virtual sight is turned on, which improves control efficiency and accuracy and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114011051B_ABST
    Figure CN114011051B_ABST
Patent Text Reader

Abstract

The present invention provides a method for controlling a virtual crosshair in a shooting game. The method creates and displays a target switching control associated with the multiple shootable targets, so that a game user can quickly switch the virtual crosshair from one shootable target to another shootable target by operating the target switching control under the condition that a virtual aiming device is turned on in the game screen, thereby eliminating the need for the user to manually slide the touch screen to drag the virtual crosshair. The various embodiments of the method for controlling a virtual crosshair in a shooting game provided by the present invention can improve the control efficiency of the virtual crosshair in the shooting game and improve the accuracy of the virtual crosshair when switching to aim at a target, thereby improving the user experience as a whole. Accordingly, the present invention also provides a medium and a device related to the method for controlling a virtual crosshair in the shooting game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of game technology, and in particular relates to a control method, medium and device for a virtual crosshair in a shooting game. Background Art

[0002] As the performance of portable terminal devices is enhanced, more and more shooting games can be run on portable terminal devices, and human-computer interaction can be performed through the touch screen of the portable terminal, for example, relying on the touch screen to control the ballistic pointing and firing operations of virtual guns in shooting games.

[0003] Whether it is an FPS (First-Person Shooting) game or a TPS (Third-Person Shooting) game, a scenario that often occurs during the user's game is that the user needs to use a virtual sight to aim at and attack multiple shootable targets in the field of view. For example, if there are two shootable targets, if the user wants to achieve the effect of shooting at the two shootable targets in sequence, the user needs to perform the following sequential operations, namely: turn on the virtual sight, move the virtual sight's virtual crosshairs to aim at the first shootable target, fire the virtual firearm, move the virtual sight's virtual crosshairs to aim at the second shootable target again, and fire the virtual firearm again. Among them, the operation involved in moving the virtual sight is usually initiated by the user sliding the screen with his finger. When the virtual sight is not turned on, the touch screen The initial screen field of view has a field of view of a preset size, and the user can easily change the direction of the virtual crosshairs by sliding his finger on the touch screen over a short distance; when the virtual aiming device is turned on, the initial screen field of view on the touch screen is switched to the enlarged field of view presented by the virtual aiming device, so that the shootable targets in the distance are zoomed in and displayed in an enlarged manner, and at the same time, the field of view of the enlarged field of view is relatively reduced, which means that the user needs to slide his finger on the touch screen over a longer distance to switch the virtual crosshairs from the first shootable target to the second shootable target. This long-distance finger sliding takes a long time and increases the error rate, especially in fast-paced competitive shooting games, which reduces the accuracy of aiming and shooting, resulting in a poor user experience. Summary of the invention

[0004] In order to overcome the above-mentioned defects in the prior art, the present invention provides a method for controlling a virtual crosshair in a shooting game, the method comprising:

[0005] Outputting a computer graphics interface showing a first field of view state of a player character in a virtual shooting scene on a terminal display screen;

[0006] receiving an instruction to turn on a virtual sight, switching the first field of view state of the player character to a second field of view state formed after the virtual sight is turned on in the computer graphical interface according to the instruction, and recording target position data of a plurality of shootable targets contained in the virtual shooting scene in the first field of view state;

[0007] Creating and displaying a target switching control in the computer graphical interface;

[0008] Determining whether a shootable target to be locked among the multiple shootable targets exists within the field of view defined by the first field of view state;

[0009] If the judgment result is yes, according to the operation of the target switching control, the virtual crosshairs in the second field of view state are triggered to move and point to the shootable target that needs to be locked, or to the area containing the shootable target that needs to be locked, or to the area determined according to the target position data of the shootable target that needs to be locked.

[0010] According to one aspect of the present invention, the method triggers the virtual crosshairs in the second field of view state to move and point to the shootable target that needs to be locked, or to the area containing the shootable target that needs to be locked, or to the target position data of the shootable target that needs to be locked according to the operation on the target switching control, including: after detecting the operation on the target switching control, determine whether the shootable target that needs to be locked is continuously within the field of view defined by the first field of view state; if the determination result is yes, trigger the virtual crosshairs to move and point to the shootable target that needs to be locked, or to the area containing the shootable target that needs to be locked; if the determination result is no, trigger the virtual crosshairs to move and point to the area determined according to the target position data of the shootable target that needs to be locked.

[0011] According to another aspect of the present invention, after switching the first field of view state of the player character to the second field of view state formed after the virtual sight is turned on, the method further includes: recording the player position data of the player character; calculating the distance between the player character and the multiple shootable targets respectively according to the player position data and the target position data of each of the shootable targets; and setting the initial position of the virtual crosshairs in the second field of view state according to the distance.

[0012] According to another aspect of the present invention, the step of setting the initial position of the virtual crosshair in the second field of view state in the method includes: triggering the virtual crosshair to move and point to the shootable target closest to the player character, or pointing to an area containing the shootable target closest to the player character.

[0013] According to another aspect of the present invention, in the method, the target position data includes the coordinate value of the center point of the virtual model of the shootable target; and the player position data includes the coordinate value of the center point of the virtual model of the player character.

[0014] According to another aspect of the present invention, the target switching control in the method includes: a group of virtual keys, each of the virtual keys in the group of virtual keys is mapped to different target position data.

[0015] According to another aspect of the present invention, in the method, the position arrangement order of each of the virtual buttons in the computer graphical interface is determined according to the distribution positions of the multiple shootable targets in the virtual shooting scene.

[0016] According to another aspect of the present invention, in the method, the group of virtual keys is displayed centered on the touch screen.

[0017] According to another aspect of the present invention, the target switching control in the method includes: a virtual key, and a plurality of touch click events bound to the virtual key are respectively mapped to different shootable targets or target position data.

[0018] According to another aspect of the present invention, the target switching control in the method includes: a virtual sliding component, and multiple touch sliding events bound to the virtual sliding component respectively map different shootable targets or target position data.

[0019] According to another aspect of the present invention, the operation on the target switching control in the method includes: a touch click operation and a touch slide operation on the target switching control.

[0020] According to another aspect of the present invention, the shootable targets in the method include: virtual characters, virtual objects, virtual vehicles, virtual animals and other virtual interactive targets in the virtual shooting scene that are preset to generate feedback events based on the hit judgment of the virtual firearm in the virtual shooting scene.

[0021] According to another aspect of the present invention, if the result of judging whether the shootable target to be locked is continuously within the field of view defined by the first field of view state is no, the method further comprises: triggering the virtual crosshairs to move and point to the area determined according to the target position data of the shootable target to be locked according to the operation on the target switching control; or setting the virtual crosshairs to stop responding to the operation on the target switching control.

[0022] According to another aspect of the present invention, in the method, the speed of the movement is determined according to the magnification of the virtual sight.

[0023] According to another aspect of the present invention, in the method, the virtual shooting scene is a three-dimensional virtual shooting scene; and the virtual sight is a virtual sighting scope with a magnification.

[0024] According to another aspect of the present invention, in the method, the first field of view state is set to a third-person perspective lens mode; the second field of view state is set to a first-person perspective lens mode.

[0025] In addition, the present invention provides one or more computer-readable media storing computer-executable instructions, which, when used by one or more computer devices, enable the one or more computer devices to execute the method for controlling a virtual crosshair in a shooting game as described above.

[0026] The present invention also provides a computer device, which includes a memory and a processor, wherein: the memory stores a computer program, and the processor implements the control method of the virtual crosshairs in the shooting game as described when executing the computer program.

[0027] The method for controlling a virtual crosshair in a shooting game provided by the present invention creates and displays a target switching control associated with the multiple shootable targets, so that a game user can, under the condition of a game screen with a virtual aiming device turned on, quickly switch the virtual crosshair from one shootable target to another by operating the target switching control, thereby eliminating the need for the user to manually slide the touch screen to drag the virtual crosshair, thereby correspondingly improving the control efficiency of the virtual crosshair in the shooting game, and also improving the accuracy of the virtual crosshair when switching to aim at targets, thereby improving the user experience as a whole. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0029] Figure 1 is a flow chart of a specific implementation of a method for controlling a virtual crosshair in a shooting game according to the present invention;

[0030] Figure 2 is a flow chart of an optional specific implementation of a method for controlling a virtual crosshair in a shooting game according to the present invention;

[0031] Figure 3 yes Figure 1 or Figure 2 A flowchart of an optional specific implementation of step S500 is shown in FIG.

[0032] Figures 4 to 13 It is used to illustrate Figure 1 or Figure 2 A schematic diagram of a scene illustrating the principle of a specific implementation method;

[0033] Fig.14 It is a schematic diagram of the structure of a typical intelligent terminal for implementing the control method of the virtual crosshair in the shooting game of the present invention;

[0034] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0035] In order to better understand and explain the present invention, the present invention will be further described in detail below in conjunction with the accompanying drawings. The present invention is not limited to these specific embodiments. On the contrary, modifications or equivalent substitutions made to the present invention should all be included in the scope of the claims of the present invention.

[0036] It should be noted that numerous specific details are given in the following specific embodiments. Those skilled in the art should understand that the present invention can also be implemented without these specific details. In the multiple specific embodiments given below, the principles, structures and components well known in the art are not described in detail in order to highlight the main purpose of the present invention.

[0037] The present invention provides a method for controlling a virtual crosshair in a shooting game. Figure 1 , Figure 1 1 is a flow chart of a specific implementation of a method for controlling a virtual crosshair in a shooting game according to the present invention, the method comprising:

[0038] Step S100, outputting a computer graphic interface showing a first field of view state of a player character in a virtual shooting scene on the touch screen;

[0039] Step S200, receiving an instruction to turn on a virtual sight, switching the first field of view state of the player character to a second field of view state formed after the virtual sight is turned on in the computer graphical interface according to the instruction, and recording target position data of a plurality of shootable targets contained in the virtual shooting scene in the first field of view state;

[0040] Step S300, creating and displaying a target switching control associated with the plurality of shootable targets in the computer graphical interface;

[0041] Step S400, determining whether the shootable target to be locked among the plurality of shootable targets exists within the field of view defined by the first field of view state, and if the determination result is yes, executing step S500;

[0042] Step S500, according to the operation of the target switching control, trigger the virtual crosshair in the second field of view state to move and point to the shootable target that needs to be locked, or point to the area containing the shootable target that needs to be locked, or point to the area determined according to the target position data of the shootable target that needs to be locked.

[0043] In addition, the present invention provides Figure 2 The control method of the virtual crosshair in the shooting game can also be implemented as another example. Figure 2 The optional specific implementation shown will be described in detail later. In order to more clearly explain the technical principle of this specific implementation, Figure 1 or Figure 2 The explanation of the various steps shown can be combined with Figures 4 to 13 Reference is made to the appropriate drawings in the Figures 4 to 13 It is used to illustrate Figure 1 or Figure 2 A schematic diagram of a scenario showing the principle of a specific implementation method.

[0044] The control method of the virtual crosshair in the shooting game provided by the present invention is typically applicable to the application scenario of running the shooting game on a terminal device equipped with a touch screen. Typically, the terminal device equipped with a touch screen includes but is not limited to: a portable computer, a desktop workstation, a smart phone, a tablet computer, a smart TV, and a wearable smart device. To support the normal operation of the virtual scene editor, the terminal operating system running on the terminal device is, for example, any one of Windows, iOS, Android, Symbian, Windows Mobile, Maemo, WebOS, Palm OS, or Blackberry OS, or a combination thereof.

[0045] In step S100, the first field of view state of the player character in the virtual shooting scene is presented in the computer graphical interface output on the touch screen. The virtual shooting scene can be a virtual scene that simulates the landscape of the real world, or a virtual scene that combines the simulated landscape and the fictional landscape, or a virtual scene that is completely composed of fictional landscape. The virtual scene can be a two-dimensional virtual scene or a three-dimensional virtual scene. In this specific embodiment, typically, the virtual scene is a three-dimensional virtual shooting scene, and the three-dimensional virtual shooting scene can be rendered and generated by a game engine. The player character refers to a virtual character controlled by a game user, such as a virtual soldier. Those skilled in the art will appreciate that during the running of the game, the first field of view state of the player character determines the depth of field, viewing distance, and field of view range of the virtual shooting scene currently displayed on the touch screen. Please refer to Figure 4A computer graphics interface 20 is output on the touch screen 10 of the terminal device, and the computer graphics interface 20 presents the following Figure 4 The first field of view of the player character in the virtual shooting scene shown in the figure includes virtual landscapes such as the ground, sky, roads, and trees. The player character operated by the game user can move in the virtual design scene. At the same time, the virtual shooting scene presented by the computer graphical interface 20 also includes multiple shootable targets, such as Figure 4 The shootable targets 201, 202 and 203 in FIG. Figure 4 The target is used to represent the shootable target. It is well known to those skilled in the art that the shootable target does not only refer to Figure 4 The fixed and immovable target shown, specifically, the shootable targets include: virtual characters, virtual objects, virtual vehicles, virtual animals and other virtual interactive targets in the virtual shooting scene that are preset to generate feedback events according to the hit judgment of the virtual firearms in the virtual shooting scene. Among them, the virtual characters and virtual animals are, for example, game characters controlled by other game users, or artificial intelligence characters and non-player characters controlled by computer programs set in the game program; the virtual vehicles are, for example, vehicles, aircrafts, ships, etc. set in the game program and available for game users to operate; the virtual objects and virtual interactive targets are usually environmental elements set in the game program and placed in the virtual shooting scene, such as buildings and explosives that can generate corresponding destruction animation effects and explosion animation effects according to the hit judgment of the virtual firearms.

[0046] In step S200, the virtual sight refers to the virtual sight corresponding to the virtual firearm held by the player character, and the virtual sight is, for example, a virtual sight with a magnification factor. The entity that receives the instruction to turn on the virtual sight is usually a game program of a shooting game, and the instruction is usually triggered by a game user operating a control in the computer graphical interface. Correspondingly, the game program changes the game screen displayed in the computer graphical interface according to the instruction, that is, according to the instruction, the first field of view state of the player character in the computer graphical interface is switched to the second field of view state formed after the virtual sight is turned on. The virtual sight is taken as an example for explanation. Figure 4 When the player character is in the first field of view state, the touch screen 10 presents a virtual shooting scene that completely includes the shootable targets 201, 202 and 203. Figure 4 The second field of view state is the optical magnification style of the player character through the virtual sight 30. Figure 4The virtual shooting scene shown is partially enlarged, specifically, the area where the shootable target 201 is located is enlarged. In addition, in step S200, target position data of multiple shootable targets contained in the virtual shooting scene in the first field of view state are also recorded, for example Figure 4 The target position data of the shootable targets 201, 202 and 203 shown in FIG. 1 are recorded in parallel while the instruction to turn on the virtual sight is detected.

[0047] In step S300, in order to realize the rapid switching between the shootable targets, a target switching control associated with the multiple shootable targets is created and displayed in the computer graphical interface. Typically, the target switching control includes a group of virtual keys, and each of the virtual keys in the group of virtual keys is mapped to different target position data. Figure 5 The group of virtual keys is composed of virtual keys 401, 402 and 403, wherein virtual key 401 is associated with shootable target 201, virtual key 402 is associated with shootable target 202, and virtual key 403 is associated with shootable target 203. Preferably, the group of virtual keys is displayed in the center on the touch screen 10.

[0048] As explained above, the shootable target is not fixed, and those skilled in the art can understand that the movement of the shootable target itself or the movement of the player character in the virtual shooting scene may cause the field of view defined by the first perspective state of the player character to change, so that after step S300 is executed, the field of view defined by the first perspective state of the player character may no longer contain the shootable target. Obviously, if a shootable target no longer exists in the field of view defined by the first perspective state of the player character, that is, an invisible shootable target appears, for the sake of game balance and algorithm sampling complexity of the game program, the virtual sight in this embodiment is set to not continue to quickly switch to point to the invisible shootable target. In step S400, it is determined whether the shootable target to be locked among the multiple shootable targets exists in the field of view defined by the first perspective state. The shootable target to be locked is usually specified by the game user, and the step of monitoring the specified tendency can be designed to be implemented according to the operation of the game user to switch the control for the target. Please refer to Figure 4 , the touch screen 10 has presented the second field of view state formed after the virtual sight 30 is turned on, that is, the shootable target 201 is observed using the virtual sight 30. After the game user completes the shooting at the shootable target 201, he intends to quickly switch the virtual sight 300 of the virtual sight 30 to another shootable target, for example, to Figure 4The shootable target 202 shown in FIG. 1 is the shootable target 202 that needs to be locked in step S400. Please refer to Figure 6 , the game user clicks the virtual button 402 associated with the shootable target 202. When the virtual button 402 receives the touch operation, the background of the game program starts to determine whether the shootable target 202 exists in the field of view defined by the first field of view state. If the shootable target 202 does not move or the player character does not move, it is obvious that the shootable target 202 still exists in the field of view defined by the first field of view state. Figure 4 The first viewing state shown is within the viewing range defined by the first viewing state.

[0049] In this specific embodiment, it is considered that the shootable target 202 still exists in Figure 4 In the visual field defined by the first visual field state shown, when the judgment result in step S400 is yes, step S500 is executed, that is, according to the operation of the target switching control, the virtual crosshair in the second visual field state is triggered to move and point to the shootable target to be locked, or to the area containing the shootable target to be locked. Please refer to Figure 6 to Figure 7 , when the game user makes a touch operation on the virtual button 402, the virtual crosshair 300 of the virtual sight 30 points to the shootable target 201; when the virtual button 402 receives the touch operation, the virtual crosshair 300 of the virtual sight 30 is triggered to move and point to the shootable target 202, and accordingly, the optical magnification style simulated by the virtual sight 30 magnifies the area around the shootable target 202. Similarly, if the game user wants to specify the shootable target 203 as the shootable target to be locked, and it is known that the shootable target 203 is associated with the virtual button 403, the virtual crosshair 300 of the virtual sight 30 can be clicked to move and point to the shootable target 203.

[0050] Of course, the implementation form of the target switching control is not limited to Figures 5 to 7 For a set of virtual keys shown, please refer to Figure 8 ,exist Figure 8 In the illustrated embodiment, the target switching control is implemented as a virtual button 404, and the multiple touch click events bound to the virtual button 404 are respectively mapped to different shootable targets or target position data. An intuitive typical scenario is: when a series of click operations are issued to the virtual button 404, the moving direction of the virtual crosshairs is determined in a certain order (for example, the default order from left to right) according to the preset logic to switch the target that the virtual crosshairs is aimed at. This typical scenario is as follows: Fig. 9 and Fig.10 As shown, Fig. 9In the example, the virtual crosshair 300 points to the shootable target 201. When the user clicks the virtual button 404, the touch click event bound to the virtual button 404 triggers the virtual crosshair 300 to move the focus to the right, from pointing to the shootable target 201 to Fig.10 As shown, the virtual crosshair 300 points to the shootable target 202. If the user clicks the virtual button 404 again, the virtual crosshair 300 moves further to the left to point to the shootable target 203, so that the switching between the shootable targets 201 to 203 is achieved with only one virtual button 404.

[0051] Please refer to Fig.11 ,exist Fig.11 In the illustrated embodiment, the target switching control is implemented as a virtual sliding component composed of a virtual slider 405 and a virtual slide track 406, and multiple touch sliding events bound to the virtual sliding component are respectively mapped to different shootable targets or target position data. Fig.12 As shown in FIG. 1 , when the user initiates a touch sliding operation to the right along the direction of arrow A on the virtual slider 405, the virtual slider 405 moves to the right along the virtual slide track 406 accordingly. At this time, the right sliding touch operation bound to the virtual slider 405 triggers the focus of the virtual crosshair 300 to move rightward, changing from pointing to the shootable target 201 to pointing to the virtual crosshair 300 as shown in FIG. Fig.13 As shown, the virtual crosshair 300 points to the shootable target 202. If the user wishes to switch the focus of the virtual crosshair 300 to the shootable target 201 or 203, the user can operate the virtual slider 405 to move left along the virtual slide rail 406, so that the focus of the virtual crosshair 300 can be re-pointed to the shootable target 201, or further pointed to the shootable target 203 as the virtual slider 405 moves. It is particularly noted that implementing the target switching control as a virtual sliding component can reduce the error rate of operation.

[0052] Since the present invention does not impose a unique limitation on the interaction style of the target switching control, the corresponding operations on the target switching control may include touch click operations and touch slide operations. Which one of the above two is selected to be implemented is determined by the interaction style of the target switching control.

[0053] As described above, in step S500, there are three schemes for determining the final pointing position of the virtual crosshairs. In the first scheme, the virtual crosshairs is moved and pointed to the shootable target that needs to be locked, so that the virtual crosshairs can be directly aimed at the shootable target that needs to be locked. When the type of shootable target that needs to be locked is a player character controlled by other game users, this alignment will greatly enhance the effectiveness of auxiliary aiming, but this setting is not suitable for all games, especially in shooting games with competitive competition as the core, it may destroy the balance of shooting games and cause a decline in user experience; therefore, in the second scheme, the virtual crosshairs in the second field of view state are moved and pointed to the area containing the shootable target that needs to be locked. On this basis, if the game user needs to successfully hit the shootable target that needs to be locked with a virtual firearm to generate determined damage, it is necessary to further fine-tune the position of the virtual crosshairs. This scheme can ensure user experience without significantly destroying the balance of shooting games. In addition, in a third scheme different from the above two schemes, the virtual crosshairs moves and points to the area determined by the target position data of the shootable target that needs to be locked. The reason for designing the third scheme is that there is the following situation: when the second field of view state is turned on, when the target switching control has been created, if the shootable target that needs to be locked has moved and has disappeared from the field of view defined by the first field of view state, before the game user issues an operation on the target switching control, the shootable target that needs to be locked reappears in the field of view defined by the first field of view state. A typical scenario is: after the shootable target that needs to be locked disappears from the field of view defined by the first field of view state, it re-enters the field of view defined by the first field of view state. For example, after the virtual sight is turned on, the shootable target that needs to be locked enters a building, thereby leaving the field of view defined by the first field of view state. Thereafter , and then walks out of the building and reappears in the field of view defined by the first field of view state. The position where it reappears may be the same as or different from the position before disappearance. At this time, if the operation of the target switching control can still move the virtual crosshairs and point to the shootable target to be locked or the area containing the shootable target to be locked, the logical event that the shootable target to be locked has disappeared from the field of view defined by the first field of view state is completely ignored, that is, the fact that the shootable target to be locked can always be globally tracked by the virtual crosshairs after the target switching control is created is formed, which will greatly affect the balance of the shooting game. Therefore, in the third scheme, the virtual crosshairs is moved and pointed to the area determined by the target position data of the shootable target to be locked, that is, the virtual crosshairs is pointed to the position of the shootable target to be locked recorded in step S200 or its adjacent area.It can be seen that the implementation of the third solution ensures that the target switching control is operable without destroying the balance of the shooting game and reducing the user experience.

[0054] Please refer to Figure 2 , Figure 2 is a flow chart of an optional specific implementation method of a method for controlling a virtual crosshair in a shooting game according to the present invention, and Figure 1 One difference of the specific embodiment shown is that after executing the process of switching the first field of view state of the player character to the second field of view state formed after the virtual sight is turned on in step S200, Figure 2 The optional specific embodiments shown also include:

[0055] Step S201, recording the player position data of the player character;

[0056] Step S202, calculating the distance between the player character and the multiple shootable targets respectively according to the player position data and the target position data of each shootable target;

[0057] Step S203: setting an initial position of the virtual crosshair in the second field of view state according to the distance.

[0058] Specifically, step S201 can be performed in parallel with the process of recording the target position data of multiple shootable targets contained in the virtual shooting scene in the first field of view state in step S200. Typically, the target position data includes the coordinate value of the center point of the virtual model of the shootable target, and the player position data includes the coordinate value of the center point of the virtual model of the player character.

[0059] After the player position data and the target position data are recorded, the distance between the player character and the multiple shootable targets can be easily calculated in step S202 according to the player position data and the target position data of each shootable target. Typically, the distance can be obtained by calculating the length of the line connecting the center point of the virtual model of the player character and the center point of the virtual model of the shootable target. After step S202 is executed, the distance relationship between the player character and the multiple shootable targets is determined, and step S203 is further executed to set the initial position of the virtual crosshairs in the second field of view state, that is, to set the position to which the virtual crosshairs points by default after the virtual sight is turned on. Generally, in shooting games, shootable targets that are closer are considered to be more threatening and are therefore the priority targets for shooting. In a preferred embodiment, the step of setting the initial position of the virtual crosshairs in the second field of view state includes: triggering the virtual crosshairs to move and point to the shootable target that is closest to the player character, or to point to an area containing the shootable target that is closest to the player character. Please refer to Figure 4 and Figure 5 , Figure 4 Among the shootable targets 201, 202 and 203 shown, it is obvious that the shootable target 201 is closest to the player character, so when the player character's field of view is from Figure 4 The first viewing state shown in FIG. 1 is switched to Figure 5 After the second field of view state is shown, the virtual sight 30 is turned on, and the virtual crosshairs of the virtual sight 30 is moved and pointed to the shootable target 201 .

[0060] on the other hand, Figure 2 The optional specific embodiments shown are Figure 1 Another difference of the specific implementation shown is that when the result of the judgment in step S400 is no, one of step S501 and step S502 is selected for execution, wherein:

[0061] Step S501, according to the operation of the target switching control, triggering the virtual crosshair to move and point to the area determined according to the target position data of the shootable target to be locked;

[0062] Step S502: The virtual crosshair is set to stop responding to operations on the target switching control.

[0063] Specifically, if the shootable target to be locked disappears from the visual field defined by the first visual field state because the shootable target to be locked moves, resulting in a negative result in step S400, then step S501 is preferentially performed. In this way, the virtual crosshairs can be as close as possible to the area where the shootable target to be locked was last located, thereby reducing the aiming difficulty of the shooting game.

[0064] In the case that the shootable target to be locked disappears from the field of view defined by the first field of view state due to the movement of the player character itself, the result of the judgment in step S400 is no, and step S502 is preferentially performed. The reason is that the shootable target to be locked may not move, and accordingly the coordinate position of the shootable target to be locked does not change. If the virtual crosshair can still automatically aim at the shootable target to be locked, it will cause an imbalance in the gameplay.

[0065] In the previous article, Figure 1 In the description of the invention, three schemes for determining the final pointing position of the virtual crosshair in step S500 have been explained, whether it is Figure 1 still Figure 2 Step S500 shown in FIG. 1 may preferably be implemented as follows: Figure 3 For the optional specific implementation shown, please refer to Figure 3 , Figure 3 yes Figure 1 or Figure 2 FIG. 5 is a flow chart of an optional specific implementation of step S500 shown in FIG. 5 , wherein step S500 includes the following steps:

[0066] Step S510, after detecting the operation of the target switching control, determining whether the shootable target to be locked is continuously within the field of view defined by the first field of view state, if so, executing step S520, if not, executing step S530;

[0067] Step S520, triggering the virtual crosshair to move and point to the shootable target to be locked, or to point to an area containing the shootable target to be locked;

[0068] Step S530, triggering the virtual crosshair to move and point to the area determined according to the target position data of the shootable target to be locked.

[0069] Obviously, when the shootable target to be locked is continuously within the field of view defined by the first field of view state, executing step S520 is the implementation of the first and second solutions for determining the final pointing position of the virtual crosshairs as described above; when the shootable target to be locked is not continuously within the field of view defined by the first field of view state, executing step S530 is the implementation of the third solution for determining the final pointing position of the virtual crosshairs as described above, which is in line with the balance requirements and normal logic of shooting game design.

[0070] Those skilled in the art will understand that Figures 4 to 13 The scene schematic diagrams shown all use static frames of virtual shooting scenes presented in the computer graphical interface 20 for illustration, but this does not mean that the movement of the virtual crosshairs is instantaneous. On the contrary, although the movement of the virtual crosshairs is automatically controlled by the game program according to the operation of the target switching control, the movement is preferably designed to have the same or similar animation effect as that of manual operation. Preferably, the speed of the movement is determined according to the magnification of the virtual sight 30. In more specific embodiments, the parameters of the movement may also be related to the preset performance of the virtual firearm corresponding to the player character.

[0071] also, Figures 4 to 13 In the scene schematic diagrams shown, the description is all made in the manner of a first-person perspective lens, but this does not mean that the control method of the virtual crosshairs in the shooting game provided by the present invention is only applicable to shooting games that output images in the first-person perspective lens. Preferably, the first field of view state is set to a third-person perspective lens, and the second field of view state is set to a first-person perspective lens.

[0072] It should be noted that although the operations of the method of the present invention are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be changed in the order of execution. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step for execution, and / or one step can be decomposed into multiple steps for execution.

[0073] Please refer to Fig.14 , Fig.14 It is a structural schematic diagram of a typical intelligent terminal for implementing the control method of the virtual crosshair in the shooting game of the present invention. Fig.14 The common structure of the intelligent terminal is schematically shown. Figure 7 Describes the internal components, software, and protocol structure of common smart terminals.

[0074] The smart terminal has a processor 510, which is responsible for the overall operation of the mobile terminal and can be implemented using any commercially available central processing unit (CPU), digital signal processor (DSP) or any other electronic programmable logic device (PLD). The processor 510 has an associated memory 520, which includes but is not limited to RAM memory, ROM memory, EEPROM memory, flash memory or a combination thereof. The memory 520 is controlled by the processor 510 for various purposes, one of which is to store program instructions and data for various software in the smart terminal.

[0075] The software layer of the intelligent terminal includes a real-time operating system 540, a driver for a human-machine interface 560, an application processor 550, and various applications. The applications are, for example, a text editor 551, a handwriting recognition application 552, and other multimedia applications 553, typically including applications such as voice call applications, video call applications, applications for sending and receiving short message service (SMS) messages, multimedia message service (MMS) applications or email applications, web browsers, instant messaging applications, phone book applications, calendar applications, control panel applications, camera applications, one or more video games, notepad applications, etc. It should be noted that two or more of the above applications can be executed as the same application.

[0076] The smart terminal also includes one or more hardware controllers, which are used to cooperate with the driver of the human-machine interface 560, the display device 561, the physical button 562, the microphone 563 and various I / O devices (such as speakers, vibrators, ring generators, LED indicators, etc.) to achieve human-machine interaction of the smart terminal. Those skilled in the art should understand that the user can operate the mobile terminal through the human-machine interface 560 formed in this way.

[0077] The software layer of the intelligent terminal can also include various modules, protocol stacks, drivers and other communication-related logic, which can be summarized as follows: Fig.14 The communication interface 570 shown in the figure is used to provide communication services (such as transmission, network and connectivity) for the wireless radio frequency interface 571 and optionally for the Bluetooth interface 572 and / or the infrared interface 573 to realize the interconnection and intercommunication of the intelligent terminal. The wireless radio frequency interface 571 includes an internal or external antenna and an appropriate circuit for establishing and maintaining a wireless link to the base station. As is well known to those skilled in the art, the circuit includes a series of analog and digital electronic components, which together form a radio receiver and transmitter. These components include, for example, bandpass filters, amplifiers, mixers, local oscillators, low-pass filters, AD / DA converters, etc.

[0078] The smart terminal may further include a card reader 530 , which is used to read information from a SIM card and use the information as a basis to cooperate with the wireless radio frequency interface 571 to access a network provided by an operator.

[0079] Accordingly, the present invention also discloses one or more computer-readable media storing computer-executable instructions, which, when used by one or more computer devices, enable the one or more computer devices to execute various specific embodiments of the method for controlling a virtual crosshair in a shooting game as described above, such as Figure 1 The control method of the virtual crosshair in the shooting game shown. The computer-readable medium can be any available medium that can be accessed by a computer device, and includes volatile and non-volatile media, removable and non-removable media implemented by any method and technology to store information such as computer-readable instructions, data structures, program modules or other data. Computer-readable media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store the required information and can be accessed by a computing device. Any combination of the above should also be included in the scope of computer-readable media.

[0080] Accordingly, the present invention further discloses a computer device, the computer device comprising a memory and a processor, wherein: the memory stores a computer program, and the processor implements various specific implementations of the method for controlling a virtual crosshair in a shooting game as described above when executing the computer program, for example Figure 1 The control method of the virtual crosshair in the shooting game shown.

[0081] The part involving software logic in the control method of the virtual crosshair in the shooting game provided by the present invention can be implemented using a programmable logic device, or can be implemented as a computer program product, which enables the computer to execute the method for the demonstration. The computer program product includes a computer-readable storage medium, which contains a computer program logic or code part, and is used to implement the various steps of the above-mentioned part involving software logic. The computer-readable storage medium can be a built-in medium installed in the computer or a removable medium (such as a hot-swappable storage device) that can be removed from the computer body. The built-in medium includes but is not limited to a rewritable non-volatile memory, such as RAM, ROM and hard disk. The removable medium includes but is not limited to: optical storage media (such as CD-ROM and DVD), magneto-optical storage media (such as MO), magnetic storage media (such as magnetic tape or mobile hard disk), a medium with a built-in rewritable non-volatile memory (such as a memory card) and a medium with a built-in ROM (such as a ROM box).

[0082] Those skilled in the art will appreciate that any computer system with an appropriate programming device can perform the steps of the method of the present invention contained in the computer program product. Although most of the specific embodiments described in this specification focus on software programs, alternative embodiments that implement the method provided by the present invention in hardware are also within the scope of the present invention.

[0083] It is obvious to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present invention is defined by the appended claims rather than the above description, and all changes within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other parts, units or steps, and the singular does not exclude the plural. Multiple parts, units or devices stated in the claims may also be implemented by one part, unit or device through software or hardware.

[0084] The control method of the virtual crosshairs in the shooting game provided by the invention creates and displays a target switching control associated with the multiple shootable targets, so that the game user can quickly switch the virtual crosshairs from one shootable target to another shootable target by operating the target switching control under the condition of turning on the game screen of the virtual aiming device, eliminating the operation of the user manually sliding the touch screen to drag the virtual crosshairs, thereby correspondingly improving the control efficiency of the virtual crosshairs in the shooting game, and also improving the accuracy of the virtual crosshairs when switching aiming targets, thereby improving the overall user experience.

[0085] The above disclosure is only a part of the embodiments or specific implementations of the present invention, which cannot be used to limit the scope of rights of the present invention. Equivalent changes made according to the claims of the present invention are still within the scope covered by the present invention.

Claims

1. A method for controlling a virtual crosshair in a shooting game. include: Outputting a computer graphics interface showing a first field of view state of a player character in a virtual shooting scene on a terminal display screen; receiving an instruction to turn on a virtual sight, switching the first field of view state of the player character to a second field of view state formed after the virtual sight is turned on in the computer graphical interface according to the instruction, and recording target position data of a plurality of shootable targets contained in the virtual shooting scene in the first field of view state; Creating and displaying a target switching control in the computer graphical interface; Determining whether a shootable target to be locked among the multiple shootable targets exists within the field of view defined by the first field of view state; If the result of the determination is yes, after detecting the operation of the target switching control, determining whether the shootable target to be locked is continuously within the field of view defined by the first field of view state; If the judgment result is yes, the virtual crosshair is triggered to move and point to the shootable target to be locked, or to an area containing the shootable target to be locked; If the judgment result is no, the virtual crosshair is triggered to move and point to the area determined according to the target position data of the shootable target that needs to be locked.

2. The method for controlling a virtual crosshair in a shooting game according to claim 1, wherein after the first field of view state of the player character is switched to the second field of view state formed after the virtual sight is turned on, the method further include: recording player position data for the player character; Calculating the distance between the player character and the multiple shootable targets respectively according to the player position data and the target position data of each shootable target; According to the distance, an initial position of the virtual crosshair in the second field of view state is set.

3. The method for controlling a virtual crosshair in a shooting game according to claim 2, wherein the step of setting the initial position of the virtual crosshair in the second field of view state is as follows: include: The virtual crosshair is triggered to move and point to the shootable target closest to the player character, or to an area containing the shootable target closest to the player character.

4. The method for controlling a virtual crosshair in a shooting game according to claim 2, in: The target position data includes the coordinate value of the center point of the virtual model of the shootable target; The player position data includes the coordinate value of the center point of the virtual model of the player character.

5. The method for controlling a virtual crosshair in a shooting game according to claim 1, in, The target switching control includes: A group of virtual keys, each of the virtual keys in the group of virtual keys is mapped to different shootable targets or target position data.

6. The method for controlling a virtual crosshair in a shooting game according to claim 5, in: The position arrangement order of each of the virtual buttons in the computer graphical interface is determined according to the distribution positions of the multiple shootable targets in the virtual shooting scene.

7. The method for controlling a virtual crosshair in a shooting game according to claim 5, in: The group of virtual keys is displayed in the center of the touch screen.

8. The method for controlling a virtual crosshair in a shooting game according to claim 1, in, The target switching control includes: A virtual key, and a plurality of touch click events bound to the virtual key are respectively mapped to different shootable targets or target position data.

9. The method for controlling a virtual crosshair in a shooting game according to claim 1, in, The target switching control includes: A virtual sliding component, and a plurality of touch sliding events bound to the virtual sliding component are respectively mapped to different shootable targets or target position data.

10. The method for controlling a virtual crosshair in a shooting game according to claim 1, in, The operation of switching the target control includes: The touch click operation and the touch slide operation of the target switching control are performed.

11. The method for controlling a virtual crosshair in a shooting game according to claim 1, in, The shootable targets include: The virtual characters, virtual objects, virtual vehicles, virtual animals and other virtual interactive targets in the virtual shooting scene are preset to generate feedback events according to the hit determination of the virtual firearms in the virtual shooting scene.

12. The method for controlling a virtual crosshair in a shooting game according to claim 1, wherein if the result of determining whether the shootable target to be locked is continuously within the field of view defined by the first field of view state is no, the method further comprises: include: According to the operation of the target switching control, the virtual crosshair is triggered to move and point to the area determined according to the target position data of the shootable target to be locked; or The virtual crosshair is configured to stop responding to an operation on the target switching control.

13. The method for controlling a virtual crosshair in a shooting game according to any one of claims 1, 3 or 12, in: The speed of the movement is determined according to the magnification of the virtual sight.

14. The method for controlling a virtual crosshair in a shooting game according to claim 1, in: The virtual shooting scene is a three-dimensional virtual shooting scene; The virtual sight is a virtual sight with magnification.

15. The method for controlling a virtual crosshair in a shooting game according to claim 1, in: The first field of view state is set to a third-person perspective camera mode; The second field of view state is set to a first-person perspective lens mode.

16. One or more computer-readable media storing computer-executable instructions, which, when used by one or more computer devices, cause the one or more computer devices to execute the method for controlling a virtual crosshair in a shooting game according to any one of claims 1 to 15.

17. A computer device comprising a memory and a processor, in: The memory stores a computer program, and when the processor executes the computer program, the method for controlling a virtual crosshair in a shooting game according to any one of claims 1 to 15 is implemented.