Target aiming method, device, electronic device and storage medium in game
By reducing the sensitivity of the crosshair and adjusting the viewing angle of the virtual game scene in the game, the problem of inaccurate aiming in shooting games is solved, enabling fast and accurate aiming operations on touch-screen mobile phones, improving the gaming experience.
Patent Information
- Application Number
- CN202110298173.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-03-19
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2041-03-19
AI Technical Summary
On touch screen mobile phones, due to the characteristics of touch operation and touch screen detection in shooting games, it is difficult for players to achieve ultra-macro control, resulting in inaccurate movement of the aiming crosshair, seriously affecting the gaming experience.
By setting the crosshair control area in the game's graphical user interface, the crosshair sensitivity is reduced in response to the sliding operation, so that the range of changes in the aiming position corresponding to the unit sliding operation distance is smaller, thereby achieving more precise aiming operations. Specific steps include: presetting the crosshair sensitivity adjustment operation, judging and reducing the crosshair sensitivity through click intervals and continuous clicks, and adjusting the presentation perspective of the virtual game scene to accurately align the target.
It enables fast and accurate aiming of targets in shooting games, improving the player's gaming experience, especially when it comes to long-distance targets, it can achieve ultra-macro control and reduce aiming errors.
Smart Images

Figure CN113144593B
Abstract
Description
Technical Field
[0001] The present application relates to the field of software technology, and in particular to a method, device, electronic device and storage medium for aiming at a target in a game. Background Art
[0002] On touch-screen phones, due to the characteristics of touch operation and touch-screen detection, it is difficult for gamers to achieve ultra-macro control, such as moving the touch point 1 pixel to the right. In some shooting games, the inability to achieve ultra-macro control makes the game experience very bad for players. For example, if the enemy is very far away, its image on the screen is only a few pixels, and it becomes very difficult for players to aim the aiming crosshairs at the enemy. If the finger slides slightly to the left, the aiming crosshairs will move more than ten pixels to the left, and if it slides slightly to the right, the aiming crosshairs will move more than ten pixels to the right. It is very difficult to aim at the enemy, which seriously affects the game experience of players. Summary of the invention
[0003] The purpose of the present application is to provide a method, device, electronic device and storage medium for aiming at a target in a game, which can enable a player to aim at a target quickly and accurately, thereby improving the player's gaming experience.
[0004] In a first aspect, an embodiment of the present application provides a method for aiming a target in a game, wherein a graphical user interface of the game is displayed through a touch terminal; a virtual game scene and an aiming crosshair are displayed in the graphical user interface, and a crosshair control area is provided; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; the method comprises: in response to a preset crosshair sensitivity adjustment operation, reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity; wherein the crosshair sensitivity is used to characterize the range of variation of the aiming position corresponding to a unit sliding operation distance; in response to a sliding operation on the crosshair control area, controlling the aiming position of the aiming crosshair in the virtual game scene according to the target crosshair sensitivity.
[0005] Furthermore, the above-mentioned step of controlling the aiming position of the aiming crosshairs in the virtual game scene according to the target standard star sensitivity includes: controlling the presentation viewing angle of the virtual game scene according to the target standard star sensitivity, thereby controlling the aiming position of the aiming crosshairs in the virtual game scene.
[0006] Furthermore, the above-mentioned preset crosshair sensitivity adjustment operation includes: a continuous click operation of a preset number of times within a preset range at a click interval acting on the crosshair control area.
[0007] Furthermore, a target virtual object is displayed in the above-mentioned graphical user interface; after the step of reducing the crosshair sensitivity of the crosshair control area to the target standard star sensitivity, it also includes: in response to a first alignment operation on the crosshair control area, adjusting the presentation perspective of the game scene according to the target standard star sensitivity until the aiming crosshair is aligned with the target virtual object.
[0008] Furthermore, after the step of reducing the crosshair sensitivity of the crosshair control area to the target standard star sensitivity in response to a preset crosshair sensitivity adjustment operation, the method further includes: displaying a target value of the target standard star sensitivity according to the crosshair sensitivity adjustment operation.
[0009] Furthermore, the above-mentioned step of reducing the crosshair sensitivity of the crosshair control area to the target standard star sensitivity in response to the preset crosshair sensitivity adjustment operation includes: monitoring the click operation acting on the crosshair control area; determining whether the preset number of click operations monitored meet the preset adjustment conditions, and if so, reducing the crosshair sensitivity of the crosshair control area to the target standard star sensitivity; wherein the preset adjustment conditions include the following two items: among the multiple touch points corresponding to the preset number of click operations, the distance between any two adjacent touch points is less than or equal to the preset distance; among the multiple touch time points corresponding to the preset number of click operations, the time difference between any two adjacent touch time points is less than or equal to the preset time.
[0010] Furthermore, the step of reducing the crosshair sensitivity of the crosshair control area to the target standard star sensitivity in response to a preset crosshair sensitivity adjustment operation includes: determining a reduction amplitude of the crosshair sensitivity of the crosshair control area according to the number of consecutive clicks of the crosshair sensitivity adjustment operation; determining the target standard star sensitivity according to the reduction amplitude and the crosshair sensitivity of the crosshair control area; and adjusting the crosshair sensitivity of the crosshair control area to the target standard star sensitivity.
[0011] Furthermore, the above-mentioned first alignment operation is a sliding operation of the contact position at the end moment of the preset crosshair sensitivity adjustment operation; in response to the first alignment operation on the crosshair control area, the step of adjusting the presentation perspective of the virtual game scene according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object includes: obtaining the sliding distance of the sliding operation; determining the target rotation angle of the presentation perspective of the virtual game scene according to the sliding distance of the sliding operation; rotating the presentation perspective of the virtual game scene by the target rotation angle until the aiming crosshair is aligned with the target virtual object.
[0012] Furthermore, after the above-mentioned step of adjusting the presentation perspective of the virtual game scene according to the target crosshair sensitivity in response to the first alignment operation on the crosshair control area until the aiming crosshair is aimed at the target virtual object, the method also includes: in response to the end operation of the first alignment operation, restoring the default crosshair sensitivity of the crosshair control area.
[0013] Furthermore, before the above-mentioned step of restoring the default crosshair sensitivity of the crosshair control area, the method also includes: after the first alignment operation is completed, monitoring whether there is a second alignment operation for the crosshair control area within a preset time period; if not, continuing to execute the step of restoring the default crosshair sensitivity of the crosshair control area; if yes, adjusting the presentation perspective of the virtual game scene according to the second alignment operation.
[0014] Furthermore, the above method also includes: in response to a preset crosshair sensitivity adjustment operation, reducing the rendering area of the virtual game scene or reducing the field of view of the game.
[0015] Furthermore, the above-mentioned step of reducing the rendering area of the virtual game scene or reducing the field of view of the game in response to a preset crosshair sensitivity adjustment operation includes: determining the reduction ratio of the rendering area of the virtual game scene or the reduction ratio of the field of view of the game according to the number of clicks of the crosshair sensitivity adjustment operation; and reducing the rendering area of the game scene or reducing the field of view of the game according to the reduction ratio.
[0016] Furthermore, after the step of adjusting the presentation perspective of the virtual game scene until the aiming crosshair is aimed at the target virtual object according to the aiming crosshair sensitivity in response to the first aiming operation on the aiming crosshair control area, the above-mentioned step also includes: in response to a skill release operation on the target virtual object, releasing the skill corresponding to the skill release operation at the position of the aiming crosshair.
[0017] Furthermore, after the above step of releasing the skill corresponding to the skill release operation at the position of the aiming crosshair, the method also includes: restoring the default crosshair sensitivity of the crosshair control area.
[0018] In a second aspect, an embodiment of the present application also provides a target aiming device in a game, which displays a graphical user interface of the game through a touch terminal; a virtual game scene and an aiming crosshair are displayed in the graphical user interface, and a crosshair control area is provided; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; the device includes: a sensitivity reduction module, which is used to reduce the crosshair sensitivity of the crosshair control area to the target standard crosshair sensitivity in response to a preset crosshair sensitivity adjustment operation; wherein the crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance; an aiming position adjustment module, which is used to control the aiming position of the aiming crosshair in the virtual game scene according to the target standard crosshair sensitivity in response to a sliding operation on the crosshair control area.
[0019] In a third aspect, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the method described in the first aspect above.
[0020] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method described in the first aspect above.
[0021] In a method, device, electronic device and storage medium for aiming a target in a game provided by an embodiment of the present application, a graphical user interface of the game is displayed through a touch terminal; a virtual game scene and an aiming crosshair are displayed in the graphical user interface, and a crosshair control area is provided; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; in the method provided by an embodiment of the present application, the crosshair sensitivity can be reduced by adjusting the crosshair sensitivity, and when a sliding operation is performed in the crosshair control area, if the same sliding distance as before is used, the range of change of the crosshair that can be changed is smaller, that is, after the crosshair sensitivity is reduced, the aiming position of the aiming crosshair in the virtual game scene can be controlled more accurately, thereby achieving fast and accurate aiming operations and improving the player's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0023] Figure 1 It is a schematic diagram of aiming in a shooting game in the prior art;
[0024] Figure 2 A flowchart of a method for aiming at a target in a game provided by an embodiment of the present application;
[0025] Figure 3 A flow chart of a method for reducing viewing angle rotation sensitivity provided in an embodiment of the present application;
[0026] Figure 4 A schematic diagram of a viewing angle rotation sensitivity identification provided in an embodiment of the present application;
[0027] Figure 5 Another schematic diagram of viewing angle rotation sensitivity identification provided in an embodiment of the present application;
[0028] Figure 6 A structural block diagram of a target aiming device in a game provided by an embodiment of the present application;
[0029] Figure 7 A structural block diagram of another target aiming device in a game provided by an embodiment of the present application;
[0030] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solution of the present application will be described clearly and completely below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0032] In shooting game scenes, there is often a crosshair in the center of the graphical user interface, such as Figure 1 As shown, when the aiming crosshair is aimed at an enemy, the enemy can be shot or other operations can be performed by releasing skills. The operation of aiming the aiming crosshair at an enemy can be achieved by sliding in the crosshair control area. However, in the prior art, it is often impossible to achieve ultra-macro control when sliding. For example, when the enemy in the distance in the game scene only appears for a few pixels, if the finger slides slightly to the left, the game perspective rotates to the left by a certain angle, so that the aiming crosshair moves more than ten pixels to the left in the game scene, and slides slightly to the right, the aiming crosshair moves more than ten pixels to the right. It is very difficult to aim at the enemy, which seriously affects the game experience of the player.
[0033] Based on this, the embodiments of the present application provide a method, device, electronic device and storage medium for aiming at a target in a game, which can enable players to aim at the target quickly and accurately, thereby improving the player's gaming experience.
[0034] To facilitate understanding of this embodiment, a method for aiming at a target in a game disclosed in an embodiment of the present application is first introduced in detail.
[0035] Figure 2 A flowchart of a method for aiming a target in a game provided in an embodiment of the present application, wherein a graphical user interface of the game is displayed through a touch terminal; a virtual game scene and an aiming crosshair are displayed in the graphical user interface, and a crosshair control area is provided; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area.
[0036] In actual game scenarios, the aiming crosshairs are the central logo of the graphical user interface, and can generally refer to the aiming point of the virtual weapon used by the main virtual object when launching an attack in the virtual environment. Taking the virtual weapon as a virtual firearm as an example, the aiming crosshairs can refer to the aiming point of the virtual firearm-type weapon in the shooting game. The crosshair control area is the area in the shooting game where the range of the aiming crosshairs can be changed by touch sliding.
[0037] In the embodiment of the present application, the aiming crosshair and the lens of the virtual camera can also be bound, and the position of the crosshair will change as the direction of the virtual camera lens changes. For example, the player can adjust the lens by sliding in the crosshair control area to adjust the aiming position of the aiming crosshair. When the aiming crosshair is aimed at a target, the target can be shot or other operations can be performed by releasing skills.
[0038] The method provided in the embodiment of the present application is more applicable to virtual games with virtual cameras, where the virtual cameras are three-dimensional models located around virtual objects in a three-dimensional virtual environment. For example, in shooting games, the three-dimensional virtual environment captured by the lens of the camera model of the virtual camera, i.e., the virtual game scene, will be presented on the graphical user interface of the terminal.
[0039] In shooting games, the first-person perspective is generally used. When the first-person perspective is used, the virtual camera can be located near the head of the virtual object or at the head of the virtual object. That is, when the first-person perspective is used, the virtual camera can be the "eyes" of the player in the game. The virtual camera can be set at the head or near the head of the virtual object. The direction of the virtual camera rotates with the rotation of the virtual object. The game screen displayed on the graphical user interface of the terminal is equivalent to the three-dimensional virtual environment captured by the virtual camera.
[0040] In addition, the virtual camera will not be actually displayed in the three-dimensional virtual environment, that is, the virtual camera is not displayed in the game screen displayed on the graphical user interface of the terminal. With the help of the virtual camera, virtual firearms can be used to find shooting targets in the virtual game scene.
[0041] The target aiming method provided in the game by the embodiment of the present application specifically includes the following steps:
[0042] Step S202, in response to a preset crosshair sensitivity adjustment operation, the crosshair sensitivity of the crosshair control area is reduced to the target crosshair sensitivity; wherein the crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance.
[0043] The crosshair sensitivity adjustment operation may include multiple implementations, such as a touch operation on the crosshair control area, or a touch operation on the sensitivity adjustment control in the graphical user interface. The crosshair sensitivity adjustment operation may include: a continuous click operation of a preset number of times within a preset range at a click interval on the crosshair control area. The crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance. The range of change of the aiming position here can be represented by the rotation angle of the presentation perspective of the virtual game scene.
[0044] Normally, when the crosshair sensitivity is high, even a slight change in the input operation signal can control the aiming crosshair corresponding to the main virtual object to move a larger distance in the virtual environment screen, that is, the rotation angle of the presentation perspective of the virtual game scene will be larger. Therefore, when the crosshair sensitivity is reduced, the aiming crosshair corresponding to the main virtual object can be controlled to move a smaller distance in the virtual environment screen under the same input operation signal.
[0045] For example, at the current crosshair sensitivity in the crosshair control area, the rotation angle of the presentation perspective of the virtual game scene corresponding to each unit distance the finger slides, such as 1cm, is 10°, while at the target crosshair sensitivity after the sensitivity is reduced, the rotation angle of the presentation perspective of the virtual game scene corresponding to each 1cm slide of the finger is 1°. Therefore, super macro control is very easy to achieve at the target crosshair sensitivity.
[0046] Step S204, in response to the sliding operation on the aiming crosshair control area, controlling the aiming position of the aiming crosshair in the virtual game scene according to the aiming crosshair sensitivity.
[0047] By sliding in the crosshair control area, the aiming position of the aiming crosshair in the virtual game scene can be adjusted according to the target crosshair sensitivity. The specific adjustment method can be: controlling the presentation perspective of the virtual game scene according to the target crosshair sensitivity, thereby controlling the aiming position of the aiming crosshair in the virtual game scene.
[0048] In addition, the aiming mentioned in the embodiments of the present application covers a broad range. For example, the scope of aiming includes but is not limited to: aiming when the scope is not opened or the virtual weapon is not held. For example, the main virtual object observes the surrounding situation to determine whether there is an ambush, which can be called a form of aiming, which is aimed at free lens sensitivity; aiming when the scope is opened but not yet fired, that is, aimed at lens sensitivity; aiming when the scope is opened and fired, that is, aimed at firing lens sensitivity. In addition, aiming can also be aimed at scenes such as archery scenes, throwing grenades and other virtual weapons, which are not specifically limited in the embodiments of the present application.
[0049] In a method for aiming a target in a game provided by an embodiment of the present application, a graphical user interface of the game is displayed through a touch terminal; a virtual game scene and an aiming crosshairs are displayed in the graphical user interface, and a crosshairs control area is provided; the crosshairs control area is used to control the aiming position of the aiming crosshairs in the virtual game scene in response to a sliding operation on the crosshairs control area; in the method provided by the embodiment of the present application, the crosshairs sensitivity can be reduced by adjusting the crosshairs sensitivity, and when a sliding operation is performed in the crosshairs control area, if the same sliding distance as before is used, the range of change of the crosshairs that can be changed is smaller, that is, after the crosshairs sensitivity is reduced, the aiming position of the aiming crosshairs in the virtual game scene can be controlled more accurately, thereby achieving fast and accurate aiming operations and improving the player's gaming experience.
[0050] Since ultra-macro control can be achieved after the crosshair sensitivity is reduced, the target can be quickly and accurately aimed at. Therefore, a method for accurately aiming at a target virtual object is also provided in the embodiment of the present application. A target virtual object is displayed in the above-mentioned graphical user interface; the target virtual object is usually an enemy that needs to be aimed at in a shooting game. After the above-mentioned step of reducing the crosshair sensitivity of the crosshair control area to the target standard crosshair sensitivity, the following steps may also be included:
[0051] In response to a first alignment operation on the crosshair control area, the presentation viewing angle of the game scene is adjusted according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object.
[0052] After reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity, the player can then perform the first alignment operation on the crosshair control area, and can conveniently and accurately adjust the presentation angle of the virtual game scene so that the crosshair can be aligned with the target virtual object. Specifically, the crosshair can be aligned with the head, torso, or other body parts of the target virtual object. The first alignment operation can be an independent operation that is not continuous with the crosshair sensitivity adjustment operation, such as a sliding operation, or a sliding operation of the contact position at the end of the crosshair sensitivity adjustment operation, which is not specifically limited here.
[0053] In order to improve the immediacy of the crosshair sensitivity adjustment, in a preferred embodiment, the crosshair sensitivity adjustment operation is a continuous click operation of a preset number of times within a preset range at a click interval acting on the crosshair control area; that is, in the process of the player adjusting the presentation perspective of the virtual game scene on the crosshair control area, the crosshair sensitivity can also be quickly reduced by continuously clicking the crosshair control area a preset number of times. Under the reduced target crosshair sensitivity, ultra-macro control can be performed, that is, rapid and precise target alignment operation can be performed to aim the aiming crosshair at the target virtual object.
[0054] In step S202, in response to the preset crosshair sensitivity adjustment operation, the crosshair sensitivity of the crosshair control area is reduced to the target crosshair sensitivity by Figure 3 The method shown is implemented as follows:
[0055] Step S302, monitoring a click operation on the crosshair control area;
[0056] Step S304, determine whether the preset number of click operations monitored meets the preset adjustment conditions. If so, execute step S306 to reduce the crosshair sensitivity of the crosshair control area to the target standard star sensitivity; if not, execute step S308 to determine that the preset number of click operations are invalid operations.
[0057] The above-mentioned preset adjustment conditions include the following two items:
[0058] (1) Among the multiple touch points corresponding to the preset number of click operations, the distance between any two adjacent touch points is less than or equal to the preset distance;
[0059] (2) Among the multiple touch time points corresponding to the preset number of click operations, the time difference between any two adjacent touch time points is less than or equal to the preset time.
[0060] Take the above-mentioned preset number of click operations as an example of a double-click operation. If the distance between the two touch points corresponding to the two click operations before and after the double-click operation is less than the preset distance of 0.5cm, and the time difference between the two touch time points corresponding to the two click operations is less than the preset time of 0.2s, then it can be determined that the double-click operation is valid, and the step of reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity is executed. If any of the above two conditions is not met, the double-click operation is determined to be an invalid operation and no response is made.
[0061] In order to enable the player to intuitively feel the change in the crosshair sensitivity, in the embodiment of the present application, the method may further include the following steps: according to the crosshair sensitivity adjustment operation, displaying the target value of the crosshair sensitivity. Figure 4 As shown in the figure, after the crosshair sensitivity is reduced, the area corresponding to the touch point of the crosshair sensitivity adjustment operation is displayed with a "X0.5" mark, indicating that the crosshair sensitivity is half of the current initial crosshair sensitivity. It should be noted that the mark corresponding to the sensitivity can also be other types of marks, such as a combination of text, symbols or numbers.
[0062] In order to further improve the player's gaming experience, the embodiment of the present application can also implement multi-level target crosshair sensitivity adjustment according to different sensitivity adjustment operations, so that players can choose the appropriate level of target crosshair sensitivity according to different game scenes or game requirements.
[0063] That is, the step of reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity in response to the preset crosshair sensitivity adjustment operation can also be achieved in the following manner:
[0064] Determine the reduction range of the crosshair sensitivity of the crosshair control area according to the number of consecutive clicks of the crosshair sensitivity adjustment operation; determine the target standard star sensitivity according to the reduction range and the crosshair sensitivity of the crosshair control area; adjust the crosshair sensitivity of the crosshair control area to the target standard star sensitivity.
[0065] That is to say, as the number of consecutive clicks increases, the crosshair sensitivity will gradually decrease. For example, the current crosshair sensitivity is represented by "X1". After double-clicking, the crosshair sensitivity becomes "X0.5", which means that the crosshair sensitivity becomes half of the original. After three consecutive clicks, the crosshair sensitivity becomes "X0.2", which means that the crosshair sensitivity becomes one-fifth of the original. Figure 5 Relatively speaking, the lower the crosshair sensitivity, the smaller the rotation angle of the virtual game scene corresponding to the unit sliding distance, and the easier it is to aim at the target.
[0066] After the crosshair sensitivity is reduced, the alignment operation can be performed. The first alignment operation can be an independent operation that is discontinuous with the crosshair sensitivity adjustment operation. In order to improve the efficiency of the entire aiming process, the first alignment operation can also be a sliding operation of the contact position at the end of the crosshair sensitivity adjustment operation. In this case, the specific alignment process is as follows:
[0067] Obtaining a sliding distance of a sliding operation; determining a target rotation angle of a presentation perspective of a virtual game scene according to the sliding distance of the sliding operation; and rotating the presentation perspective of the virtual game scene by the target rotation angle until an aiming crosshair is aligned with a target virtual object.
[0068] The alignment process is the same as the conventional alignment process and will not be described in detail here.
[0069] Furthermore, after the step of adjusting the viewing angle of the game scene until the aiming crosshair is aimed at the target virtual object according to the aiming crosshair sensitivity in response to the first aiming operation on the aiming crosshair control area, the following step may also be included: in response to the end operation of the first aiming operation, restoring the default aiming crosshair sensitivity of the aiming crosshair control area, that is, restoring to the initial sensitivity parameter. In the case of multiple consecutive reductions in sensitivity, the default sensitivity parameter may also be restored at one time.
[0070] In order to avoid the need for players to perform multiple alignment operations and adjust the crosshair sensitivity multiple times, in an embodiment of the present application, after the first alignment operation is completed, the default crosshair sensitivity may not be restored immediately, but there may be a judgment process, that is, after the first alignment operation is completed, it is monitored whether there is a second alignment operation for the crosshair control area within a preset time period; if not, continue to execute the step of restoring the default crosshair sensitivity of the crosshair control area; if yes, adjust the presentation perspective of the virtual game scene according to the second alignment operation.
[0071] For example, the above preset time period is 0.5s. If a second alignment operation is detected for the crosshair control area within 0.5s after the first alignment operation, the default crosshair sensitivity will not be restored first. Instead, the presentation perspective of the virtual game scene will be adjusted according to the second alignment operation to achieve alignment. This avoids the situation where the player has to lower the sensitivity again when he wants to perform the alignment operation again, thereby further improving the player's gaming experience.
[0072] In order to further improve the efficiency of aiming, in the process of reducing the crosshair sensitivity, the rendering area of the game scene or the field of view of the game can also be reduced at the same time, that is, the target virtual object in the virtual game scene looks larger than before, which makes it easier to aim. That is, the above method also includes the following steps: according to the number of clicks of the crosshair sensitivity adjustment operation, determine the reduction ratio of the rendering area of the virtual game scene or the reduction ratio of the field of view of the game; according to the reduction ratio, reduce the rendering area of the game scene or the field of view of the game. Figure 5 As shown, the target virtual object when the crosshair sensitivity is "X0.2" is larger than that when the crosshair sensitivity is "X0.5".
[0073] In other words, the smaller the crosshair sensitivity is adjusted, the smaller the rendering area of the virtual game scene is, the smaller the game field of view is, and the larger the target virtual object in the virtual game scene is. This allows players to quickly aim at the target through sliding operations.
[0074] Furthermore, after the step of adjusting the presentation viewing angle of the virtual game scene until the aiming crosshair is aligned with the target virtual object according to the aiming crosshair sensitivity in response to the first alignment operation on the crosshair control area, the step may further include the following steps:
[0075] In response to a skill release operation on a target virtual object, the skill corresponding to the skill release operation is released at the position of the aiming crosshair. After the skill is released, the default crosshair sensitivity of the crosshair control area is restored.
[0076] The target aiming method in the game provided by the embodiment of the present application allows the player to quickly double-click a similar position in the crosshair control area in the graphical user interface to quickly and gradually reduce the crosshair sensitivity while adjusting the virtual game scene to present the viewing angle. At this time, long pressing and sliding on the crosshair control area can perform ultra-macro crosshair control to aim at distant enemies.
[0077] Based on the above method embodiment, the embodiment of the present application also provides a target aiming device in a game, which displays a graphical user interface of the game through a touch terminal; the graphical user interface displays a virtual game scene and an aiming crosshair, and is provided with a crosshair control area; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; see Figure 6 As shown, the device comprises:
[0078] The sensitivity reduction module 602 is used to reduce the crosshair sensitivity of the crosshair control area to the target standard star sensitivity in response to a preset crosshair sensitivity adjustment operation; wherein the crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance; the aiming position adjustment module 604 is used to control the aiming position of the aiming crosshair in the virtual game scene according to the target standard star sensitivity in response to the sliding operation on the crosshair control area.
[0079] In the in-game target aiming device provided in the embodiment of the present application, the sensitivity of the crosshairs can be reduced through the sensitivity reduction module 602, and further through the aiming position adjustment module 604, when the player slides the crosshairs control area, the aiming position of the aiming crosshairs in the virtual game scene can be more accurately controlled, thereby achieving fast and accurate aiming operations and improving the player's gaming experience.
[0080] The aiming position adjustment module 604 is also used to control the viewing angle of the virtual game scene according to the sensitivity of the aiming crosshairs, thereby controlling the aiming position of the aiming crosshairs in the virtual game scene.
[0081] The above-mentioned preset crosshair sensitivity adjustment operation includes: a continuous click operation of a preset number of times with a click interval acting on the crosshair control area within a preset range.
[0082] The above graphical user interface shows a target virtual object; see Figure 7 As shown, the above-mentioned device also includes: a target alignment module 606, which is used to: in response to a first alignment operation on the crosshair control area, adjust the presentation perspective of the game scene according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object.
[0083] The above-mentioned device also includes: a target value display module 608, which is used to: display the target value of the sight sensitivity according to the sight sensitivity adjustment operation.
[0084] The above-mentioned sensitivity reduction module 602 is also used to: monitor continuous click operations acting on the crosshair control area; determine whether the preset number of continuous click operations monitored meet the preset adjustment conditions, and if so, reduce the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity; wherein the preset adjustment conditions include the following two items: among the multiple touch points corresponding to the preset number of continuous click operations, the distance between any two adjacent touch points is less than or equal to the preset distance; among the multiple touch time points corresponding to the preset number of continuous click operations, the time difference between any two adjacent touch time points is less than or equal to the preset time.
[0085] The sensitivity reduction module 602 is further used to: determine the reduction range of the crosshair sensitivity of the crosshair control area according to the number of consecutive clicks of the crosshair sensitivity adjustment operation; determine the target standard star sensitivity according to the reduction range and the crosshair sensitivity of the crosshair control area; and adjust the crosshair sensitivity of the crosshair control area to the target standard star sensitivity.
[0086] The above-mentioned first alignment operation is a sliding operation of the contact position at the moment when the preset crosshair sensitivity adjustment operation ends; the above-mentioned target alignment module 606 is also used to obtain the sliding distance of the sliding operation; according to the sliding distance of the sliding operation, determine the target rotation angle of the presentation perspective of the virtual game scene; rotate the presentation perspective of the virtual game scene by the target rotation angle until the aiming crosshair is aligned with the target virtual object.
[0087] The above-mentioned device also includes: a sensitivity recovery module 610, which is used to restore the default crosshair sensitivity of the crosshair control area in response to the end operation of the first alignment operation.
[0088] The sensitivity recovery module 610 is also used to monitor whether there is a second alignment operation on the crosshair control area within a preset time period after the first alignment operation is completed; if not, continue to execute the step of restoring the default crosshair sensitivity of the crosshair control area; if yes, adjust the presentation perspective of the virtual game scene according to the second alignment operation.
[0089] The above-mentioned device also includes: a scene reduction module 612, which is used to reduce the rendering area of the virtual game scene or reduce the field of view of the game in response to a preset crosshair sensitivity adjustment operation.
[0090] The scene reduction module 612 is also used to: determine the reduction ratio of the rendering area of the virtual game scene or the reduction ratio of the game field of view according to the number of clicks of the crosshair sensitivity adjustment operation; and reduce the rendering area of the game scene or the field of view of the game according to the reduction ratio.
[0091] The above-mentioned device also includes: a skill release module 614, which is used to respond to the skill release operation on the target virtual object and release the skill corresponding to the skill release operation at the position of the aiming crosshair.
[0092] The sensitivity recovery module 610 is also used to restore the default crosshair sensitivity of the crosshair control area after releasing the skill corresponding to the skill release operation at the crosshair position.
[0093] The in-game target aiming device provided in the embodiment of the present application has the same implementation principle and technical effects as those in the aforementioned in-game target aiming method embodiment. For the sake of brief description, for matters not mentioned in the embodiment of the in-game target aiming device, reference may be made to the corresponding contents in the aforementioned in-game target aiming method embodiment.
[0094] The present application also provides an electronic device, such as Figure 8 As shown, it is a schematic diagram of the structure of the electronic device, wherein the electronic device includes a processor 81 and a memory 80, the memory 80 stores computer executable instructions that can be executed by the processor 81, and the processor 81 executes the computer executable instructions to implement the above method.
[0095] exist Figure 8 In the illustrated embodiment, the electronic device further includes a bus 82 and a communication interface 83 , wherein the processor 81 , the communication interface 83 and the memory 80 are connected via the bus 82 .
[0096] Among them, the memory 80 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 83 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 82 can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 82 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0097] The processor 81 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 81. The above processor 81 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor 81 reads the information in the memory and completes the steps of the method of the above embodiment in combination with its hardware.
[0098] An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above method. The specific implementation can be found in the aforementioned method embodiment, which will not be repeated here.
[0099] The computer program products of the methods, devices, and electronic devices provided in the embodiments of the present application include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments, which will not be repeated here.
[0100] Unless otherwise specifically stated, the relative steps, numerical expressions and values of the components and steps set forth in these embodiments do not limit the scope of the present application.
[0101] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0102] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.
[0103] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for aiming at a target in a game, characterized in that: A graphical user interface of a game is displayed through a touch terminal; a virtual game scene and an aiming crosshair are displayed in the graphical user interface, and a crosshair control area is provided; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; the method comprises: In response to a preset crosshair sensitivity adjustment operation, the crosshair sensitivity of the crosshair control area is reduced to the target crosshair sensitivity; wherein the crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance; the preset crosshair sensitivity adjustment operation includes: a preset number of consecutive click operations acting on the crosshair control area with a click interval within a preset range; In response to a sliding operation on the crosshair control area, controlling the aiming position of the aiming crosshair in the virtual game scene according to the aiming crosshair sensitivity; The step of reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity in response to a preset crosshair sensitivity adjustment operation comprises: Determining a reduction range of the crosshair sensitivity of the crosshair control area according to the number of consecutive clicks of the crosshair sensitivity adjustment operation; Determining the target crosshair sensitivity according to the reduction amplitude and the crosshair sensitivity of the crosshair control area; Adjusting the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity; The method further comprises: In response to a preset crosshair sensitivity adjustment operation, reducing the rendering area of the virtual game scene or reducing the field of view of the game; The step of reducing the rendering area of the virtual game scene or reducing the field of view of the game in response to a preset crosshair sensitivity adjustment operation comprises: Determining a reduction ratio of a rendering area of the virtual game scene or a reduction ratio of a game field of view according to the number of clicks of the crosshair sensitivity adjustment operation; According to the reduction ratio, the rendering area of the game scene is reduced or the field of view of the game is reduced.
2. The method according to claim 1, characterized in that: The step of controlling the aiming position of the aiming crosshair in the virtual game scene according to the aiming crosshair sensitivity comprises: The presentation viewing angle of the virtual game scene is controlled according to the target crosshair sensitivity, thereby controlling the aiming position of the aiming crosshair in the virtual game scene.
3. The method according to claim 1, characterized in that The graphical user interface displays a target virtual object; after the step of reducing the crosshair sensitivity of the crosshair control area to the target standard crosshair sensitivity, the method further includes: In response to a first alignment operation on the crosshair control area, the presentation viewing angle of the game scene is adjusted according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object.
4. The method according to claim 1, characterized in that: After the step of reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity in response to a preset crosshair sensitivity adjustment operation, the method further includes: According to the crosshair sensitivity adjustment operation, the target value of the sight sensitivity is displayed.
5. The method according to claim 1, characterized in that In response to a preset crosshair sensitivity adjustment operation, the step of reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity also includes: Listening for click operations on the crosshair control area; Determine whether the preset number of click operations monitored meets the preset adjustment condition, and if so, reduce the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity; The preset adjustment conditions include the following two items: Among the multiple touch points corresponding to the preset number of click operations, the distance between any two adjacent touch points is less than or equal to the preset distance; Among the multiple touch time points corresponding to the preset number of click operations, the time difference between any two adjacent touch time points is less than or equal to the preset time.
6. The method according to claim 3, characterized in that The first alignment operation is a sliding operation of the contact point position subsequent to the end time of the preset crosshair sensitivity adjustment operation; In response to a first alignment operation on the crosshair control area, the step of adjusting the presentation viewing angle of the virtual game scene according to the aiming crosshair sensitivity until the aiming crosshair is aligned with the target virtual object comprises: Obtaining a sliding distance of the sliding operation; Determining a target rotation angle of a presentation perspective of the virtual game scene according to a sliding distance of the sliding operation; The presentation perspective of the virtual game scene is rotated by the target rotation angle until the aiming crosshair is aligned with the target virtual object.
7. The method according to claim 3, characterized in that In response to a first alignment operation on the crosshair control area, after the step of adjusting the presentation viewing angle of the virtual game scene according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object, the method further includes: In response to an end operation of the first alignment operation, a default crosshair sensitivity of the crosshair control area is restored.
8. The method according to claim 7, characterized in that Before the step of restoring the default crosshair sensitivity of the crosshair control area, the method further includes: After the first alignment operation is completed, monitoring whether there is a second alignment operation for the crosshair control area within a preset time period; If not, proceed to the step of restoring the default crosshair sensitivity of the crosshair control area; If so, adjust the presentation viewing angle of the virtual game scene according to the second alignment operation.
9. The method according to claim 3, characterized in that: In response to a first alignment operation on the crosshair control area, after the step of adjusting the presentation viewing angle of the virtual game scene according to the target crosshair sensitivity until the aiming crosshair is aligned with the target virtual object, the method further includes: In response to a skill release operation on the target virtual object, a skill corresponding to the skill release operation is released at the position of the aiming crosshair.
10. The method according to claim 9, characterized in that After the step of releasing the skill corresponding to the skill release operation at the position of the aiming crosshair, the method further includes: Restored default crosshair sensitivity for the crosshair control area in question.
11. A target aiming device in a game, characterized in that: A graphical user interface of a game is displayed through a touch terminal; the graphical user interface displays a virtual game scene and an aiming crosshair, and is provided with a crosshair control area; the crosshair control area is used to control the aiming position of the aiming crosshair in the virtual game scene in response to a sliding operation on the crosshair control area; the device comprises: a sensitivity reduction module, for reducing the crosshair sensitivity of the crosshair control area to the target crosshair sensitivity in response to a preset crosshair sensitivity adjustment operation; wherein the crosshair sensitivity is used to characterize the range of change of the aiming position corresponding to a unit sliding operation distance; the preset crosshair sensitivity adjustment operation includes: a preset number of consecutive click operations acting on the crosshair control area with a click interval within a preset range; An aiming position adjustment module, for controlling the aiming position of the aiming crosshair in the virtual game scene according to the aiming crosshair sensitivity in response to a sliding operation on the crosshair control area; The sensitivity reduction module is further used to determine the reduction range of the crosshair sensitivity of the crosshair control area according to the number of consecutive clicks of the crosshair sensitivity adjustment operation; determine the target standard star sensitivity according to the reduction range and the crosshair sensitivity of the crosshair control area; and adjust the crosshair sensitivity of the crosshair control area to the target standard star sensitivity; The device also includes: A scene reduction module, used to reduce the rendering area of the virtual game scene or the field of view of the game in response to a preset crosshair sensitivity adjustment operation; The scene reduction module is also used to determine the reduction ratio of the rendering area of the virtual game scene or the reduction ratio of the game field of view according to the number of clicks of the crosshair sensitivity adjustment operation; and reduce the rendering area of the game scene or the field of view of the game according to the reduction ratio.
12. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the method according to any one of claims 1 to 10.
13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the method according to any one of claims 1 to 10.
