Auxiliary positioning method, apparatus and device
By determining whether enemy characters in shooting games meet the auxiliary positioning conditions, the aiming star is automatically moved to the second character's position, solving the problems of high operation difficulty and low accuracy in shooting games, and improving user experience and stickiness.
Patent Information
- Application Number
- CN202111611717.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2018-02-09
- Publication Date
- 2026-02-03
- Estimated Expiration
- 2038-02-09
AI Technical Summary
Existing shooting games are difficult to operate, especially for novice users, and the low aiming accuracy reduces the user's interest in playing.
By determining whether other characters belonging to different factions from the first character meet the preset auxiliary positioning conditions, the aiming star is automatically moved to the second character or a position close to it to achieve assisted aiming.
It effectively reduced the difficulty of game operation, improved the accuracy of positioning, and enhanced users' interest in this type of game, especially when used on mobile clients, greatly increasing user stickiness.
Smart Images

Figure CN114247131B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese patent application filed on February 9, 2018, with application number 201810134707.X, entitled "Assisted Positioning Method, Apparatus and Device". Technical Field
[0002] This invention relates to the field of computer technology, and in particular to an auxiliary positioning method, apparatus, and device. Background Technology
[0003] To pass the time, users often use mobile networks to play video games on touchscreen devices. These games can include board games, role-playing games, strategy games, action games, and more. Shooting games, as a type of action game, are also gaining popularity among players.
[0004] In actual shooting games, users usually need to manually move the aiming reticle and select targets, which requires a high level of skill from the user. This is especially true for novice users, as the high difficulty and low accuracy reduce their interest in playing the game. Summary of the Invention
[0005] The present invention aims to at least partially solve one of the technical problems in the related art.
[0006] Therefore, the first objective of this invention is to propose an assisted positioning method that, when applied to games, enables assisted aiming, thereby effectively reducing the difficulty of game operation, improving positioning accuracy, and enhancing user interest in this type of game, especially when used in mobile clients, greatly increasing user stickiness.
[0007] The second objective of this invention is to provide an auxiliary positioning device.
[0008] The third objective of this invention is to provide an electronic device.
[0009] The fourth objective of this invention is to provide a computer-readable storage medium.
[0010] To achieve the above objectives, a first aspect of the present invention provides an auxiliary positioning method, comprising: determining whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions; if it is determined that the second character meets the preset auxiliary positioning conditions, then moving the aiming star of the first character to a first preset position of the second character, or moving the aiming star to a second preset position closer to the second character.
[0011] The assisted positioning method provided in this invention determines whether other characters belonging to different factions from the first character currently meet preset assisted positioning conditions. If it is determined that the second character meets the preset assisted positioning conditions, the aiming star of the first character is moved to the first preset position of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the current character's opposing faction meets the assisted positioning conditions, the current character is assisted in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0012] In addition, the assisted positioning method proposed in the above embodiments of the present invention may also have the following additional technical features:
[0013] Optionally, in one embodiment of the present invention, determining whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions includes: determining whether other characters currently meet the preset auxiliary positioning conditions based on the status information of other characters belonging to different factions from the first character.
[0014] Optionally, in another embodiment of the present invention, the status information of the other roles includes at least one of the following: position, angle, movement speed and / or movement mode.
[0015] Optionally, in another embodiment of the present invention, determining whether other characters currently meet the preset auxiliary positioning conditions includes: determining whether the distance between the first character and each character in the opposing camp is within a first preset range; if the distance between the third character and the first character is within the preset range, determining whether the relative angle between the third character and the first character is within a second preset range; if it is, determining whether the positional relationship between the third character and the obstruction meets the preset conditions; if not, determining that the third character does not meet the preset auxiliary positioning conditions.
[0016] Optionally, in another embodiment of the present invention, before determining whether other roles currently meet the preset auxiliary positioning conditions, the method further includes: obtaining the status information of other roles, wherein the status information of other roles comes from the server and is obtained synchronously by the server from each client.
[0017] Optionally, in another embodiment of the present invention, after determining whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions, the method further includes: if at least two characters meet the preset auxiliary positioning conditions, then the character with the highest matching degree with the preset auxiliary positioning conditions is determined as the second character.
[0018] Optionally, in another embodiment of the present invention, after determining that the second character meets the preset auxiliary positioning conditions, the method further includes: controlling the camera angle of the target camera corresponding to the viewpoint of the first character and rotating it to the second character.
[0019] Optionally, in another embodiment of the present invention, controlling the camera angle of the target camera corresponding to the viewpoint of the first character to rotate to the second character includes: determining the camera angle of the target camera and the total rotation angle when rotating to the second character; determining the rotation mode of the target camera based on the total rotation angle; and controlling the target camera to rotate sequentially to the second character based on the rotation mode of the target camera.
[0020] Optionally, in another embodiment of the present invention, determining the rotation mode of the target camera includes: determining the initial rotation angle of each frame based on the total rotation angle and a preset rotation duration; determining the scene images corresponding to each frame of the target camera during the rotation process based on the initial rotation angle of each frame; and correcting the initial rotation angle of each frame based on the scene images corresponding to each frame of the target camera during the rotation process.
[0021] Optionally, in another embodiment of the present invention, moving the aiming star of the first character to a first preset position on the body of the second character includes: gradually moving the aiming star from far to near to a specific position on the second character; or, moving the aiming star on the second character along a preset path.
[0022] Optionally, in another embodiment of the present invention, after moving the aiming star on the second character along a preset path, the method further includes: controlling the aiming star to stop moving when a stop command is obtained from the controller of the first character.
[0023] Optionally, in another embodiment of the present invention, moving the aiming star to a second preset position close to the second character includes: moving the aiming star to the edge of an obstruction corresponding to the second character.
[0024] Optionally, in another embodiment of the present invention, after determining that the second role meets the preset auxiliary positioning conditions, the method further includes: obtaining a aiming star movement command sent by the controller of the first role, the movement command including a movement direction and a movement speed; determining whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than a first threshold; if the angle is greater than the first threshold, determining whether the movement speed in the movement command is greater than a second threshold; if the movement speed is greater than the second threshold, controlling the aiming star to move according to the movement command.
[0025] Optionally, in another embodiment of the present invention, after determining that the second role meets the preset auxiliary positioning conditions, the method further includes: determining the role information and / or the environmental information currently corresponding to the first role; and determining the movement trajectory, positioning accuracy, sensitivity level, and the first preset position and the second preset position of the aiming star based on the role information and / or the environmental information.
[0026] Optionally, in another embodiment of the present invention, after determining that the second character meets the preset auxiliary positioning conditions, the method further includes: determining the first preset position or the second preset position based on the current posture of the second character and the positional relationship between the second character and the obstruction.
[0027] Optionally, in another embodiment of the present invention, after moving the aiming star of the first character to a first preset position on the body of the second character, the method further includes: adjusting the precision and / or sensitivity of the aiming star control when a firing command is received from the controller of the first character.
[0028] To achieve the above objectives, a second aspect of the present invention provides an auxiliary positioning device, comprising: a first judgment module, configured to determine whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions; and a first control module, configured to, if it is determined that the second character meets the preset auxiliary positioning conditions, move the aiming star of the first character to a first preset position of the second character, or move the aiming star to a second preset position closer to the second character.
[0029] The auxiliary positioning device provided in this embodiment of the invention determines whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions. If it is determined that the second character meets the preset auxiliary positioning conditions, the aiming star of the first character is moved to the first preset position of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the opposing faction of the current character meets the auxiliary positioning conditions, the device assists the current character in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0030] In addition, the auxiliary positioning device proposed in the above embodiments of the present invention may also have the following additional technical features:
[0031] Optionally, in one embodiment of the present invention, the first determination module specifically includes: determining whether other characters currently meet preset auxiliary positioning conditions based on the status information of other characters belonging to different factions from the first character.
[0032] Optionally, in another embodiment of the present invention, the status information of the other roles includes at least one of the following: position, angle, movement speed and / or movement mode.
[0033] Optionally, in another embodiment of the present invention, the first judgment module includes: a first judgment subunit, configured to determine whether the distance between the first character and each character in the opposing camp of the first character is within a first preset range; a second judgment subunit, configured to determine whether the relative angle between the third character and the first character is within a second preset range if the distance between the third character and the first character is within the preset range; a third judgment subunit, configured to determine whether the positional relationship between the third character and the obstruction satisfies a preset condition if the distance is within the preset range; and a determination subunit, configured to determine that the third character does not satisfy a preset auxiliary positioning condition if the distance is not within the preset range.
[0034] Optionally, in another embodiment of the present invention, it further includes: an acquisition module, used to acquire the status information of other roles, wherein the status information of the other roles comes from the server and is obtained synchronously by the server from each client.
[0035] Optionally, in another embodiment of the present invention, it further includes: a second control module, configured to determine the role with the highest matching degree with the preset auxiliary positioning conditions as the second role if at least two roles meet the preset auxiliary positioning conditions.
[0036] Optionally, in another embodiment of the present invention, it further includes: a third control module, used to control the camera angle of the target camera corresponding to the perspective of the first character, rotating it to the second character.
[0037] Optionally, in another embodiment of the present invention, the third control module includes: a first control subunit, configured to determine the camera angle of the target camera and the total rotation angle when rotating to the second role; a first determination subunit, configured to determine the rotation mode of the target camera based on the total rotation angle; and a second control subunit, configured to control the target camera to rotate sequentially to the second role based on the rotation mode of the target camera.
[0038] Optionally, in another embodiment of the present invention, the first determining subunit specifically includes: determining the initial rotation angle of each frame based on the total rotation angle and a preset rotation duration; determining each scene image corresponding to each frame of the target camera during the rotation process based on the initial rotation angle of each frame; and correcting the initial rotation angle of each frame based on each scene image corresponding to each frame during the rotation process.
[0039] Optionally, in another embodiment of the present invention, the first control module specifically includes: gradually moving the aiming star from far to near to a specific position of the second character; or, moving the aiming star on the second character along a preset path.
[0040] Optionally, in another embodiment of the present invention, the first control module further includes: a third control subunit, configured to control the aiming star to stop moving when a stop command is obtained from the first character controller.
[0041] Optionally, in another embodiment of the present invention, the first control module specifically includes: moving the aiming star to the edge of the obstruction corresponding to the second character.
[0042] Optionally, in another embodiment of the present invention, it further includes: a first acquisition module, configured to acquire a aiming star movement command sent by the first character, the movement command including a movement direction and a movement speed; a second judgment module, configured to determine whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than a first threshold; a third judgment module, configured to determine whether the movement speed in the movement command is greater than a second threshold if the angle is greater than the first threshold; and a fourth control module, configured to control the aiming star to move according to the movement command if the movement speed is greater than the second threshold.
[0043] Optionally, in another embodiment of the present invention, it further includes: a first determining module, configured to determine the character information currently corresponding to the first character and / or the environmental information in which it is located; and a second determining module, configured to determine the movement trajectory, positioning accuracy, sensitivity level, and the first preset position and the second preset position of the aiming star based on the corresponding character information and / or the environmental information in which it is located.
[0044] Optionally, in another embodiment of the present invention, it further includes: a third determining module, configured to determine the first preset position or the second preset position based on the current posture of the second character and the positional relationship between the second character and the obstruction.
[0045] Optionally, in another embodiment of the present invention, it further includes: a fifth control module, used to adjust the accuracy and / or sensitivity of the auxiliary positioning function to control the aiming star when a shooting command is received from the controller of the first character.
[0046] To achieve the above objectives, a third aspect of the present invention provides an electronic device, comprising: a memory, a processor, and a touch screen; the memory is used to store executable program code; the touch screen is used to display a game interface; and the processor is used to read the executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the auxiliary positioning method described in the first aspect of the embodiment.
[0047] The electronic device provided in this invention determines whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions. If it is determined that the second character meets the preset auxiliary positioning conditions, the aiming star of the first character is moved to the first preset position of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the opposing faction of the current character meets the auxiliary positioning conditions, the current character is assisted in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0048] To achieve the above objectives, a fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the assisted positioning method described in the first aspect of the embodiment.
[0049] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0050] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein:
[0051] Figure 1 This is a flowchart illustrating an embodiment of the assisted positioning method of the present invention;
[0052] Figure 2 This is a flowchart illustrating a method for determining whether other characters belonging to different factions of a first character currently meet preset auxiliary positioning conditions, according to an embodiment of the present invention.
[0053] Figure 3 This is a flowchart illustrating an auxiliary positioning method according to another embodiment of the present invention;
[0054] Figure 4 A flowchart illustrating another embodiment of the auxiliary positioning method of the present invention.
[0055] Figure 5 This is a schematic diagram of the structure of an auxiliary positioning device according to an embodiment of the present invention;
[0056] Figure 6 This is a schematic diagram of the structure of an auxiliary positioning device according to another embodiment of the present invention;
[0057] Figure 7 This is a schematic diagram of the structure of an auxiliary positioning device according to another embodiment of the present invention;
[0058] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0059] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0060] To clearly explain the auxiliary positioning methods provided in the various embodiments of the present invention, the meanings of the terms used in the embodiments of the present invention will be explained in detail below.
[0061] First Role: The virtual character corresponding to the first user of the application in that application;
[0062] Second role: The virtual character in the application corresponding to the second user who is hostile to the first user;
[0063] Third role: The virtual character in the application corresponding to any user who is hostile to the first user;
[0064] Assisted positioning: A function used to help locate virtual characters in the opposing camp, thereby improving positioning accuracy;
[0065] Applications can be application software, game software, virtual software, etc.
[0066] It should be noted that the assisted positioning method provided in this application can be executed by either the application client or the application server. The following embodiments of this application will be described using the method executed by the application client as an example.
[0067] The auxiliary positioning method, apparatus, and device proposed in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0068] This invention addresses the problem in the prior art where users operating shooting games on electronic devices, especially mobile phones, need to manually move the aiming star and select targets. This places high demands on user skills, particularly for novice users, as the high difficulty and low accuracy reduce their interest in the game. Therefore, this invention proposes an auxiliary positioning method.
[0069] The assisted positioning method proposed in this invention can be applied to any application with positioning requirements. In specific implementation, it first determines whether other characters belonging to different factions from the first character currently meet preset assisted positioning conditions. When it is determined that a second character meets the preset assisted positioning conditions, the first character's aiming star is moved to the second character's first preset position, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if a second character in the current character's opposing faction meets the assisted positioning conditions, the current character is assisted in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially in mobile clients, greatly increasing user stickiness.
[0070] The following section will first combine the appendix. Figure 1 The auxiliary positioning method proposed in the embodiments of the present invention will be described in detail.
[0071] Figure 1 This is a flowchart illustrating an embodiment of the auxiliary positioning method of the present invention.
[0072] like Figure 1 As shown, this assisted positioning method may include the following two steps:
[0073] Step 101: Determine whether the other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions. If they do, proceed to step 102; otherwise, continue with step 101.
[0074] Specifically, the auxiliary positioning method provided in this embodiment can be executed by the auxiliary positioning device provided by the present invention. The device can be configured in an electronic device to control the operation of the first role.
[0075] The electronic device can be any hardware device with a touch screen, such as a smartphone, personal digital assistant, tablet computer, etc., and any hardware device with a controller, such as a handheld game console, virtual reality device, augmented reality device, computer with mouse, etc., without specific limitations. Because the screen of a hardware device with a touch screen is relatively small, aiming and positioning by human eye and hand operation is particularly difficult. The specific implementation scheme of this patent is more effective in solving the aiming and positioning problem. Preferably, the electronic device is a hardware device with a touch screen.
[0076] It should be noted that applications with assisted positioning capabilities (i.e., clients) can be installed on different electronic devices, and each electronic device can create a corresponding role when using the aforementioned client to perform corresponding operations. In the actual use of the aforementioned client, in order to obtain information such as the status of other roles belonging to different factions (i.e., opposing factions) from the first role, it is necessary to use the server to analyze and process the role information uploaded by each client corresponding to the first role's client, and then send the analysis results synchronously to each client. This allows each client to determine whether other roles in different factions meet the preset assisted positioning conditions based on the role status information sent by the server.
[0077] In other words, before determining whether other roles currently meet the preset auxiliary positioning conditions, this embodiment needs to first obtain the status information of other roles synchronized by the server.
[0078] Before executing step 101, the auxiliary positioning device first determines whether the user has enabled the auxiliary positioning function. If the auxiliary positioning device detects that the auxiliary positioning function has been triggered, it determines that the user has enabled the auxiliary positioning function.
[0079] The user can enable the assisted positioning function at any time. For example, it can be enabled before the game starts through the settings function in the game positioning control device; or it can be enabled during the game by triggering the assisted positioning function key on the game display interface, etc. This embodiment does not make specific limitations on this.
[0080] After receiving the user's instruction to activate the auxiliary positioning function, the auxiliary positioning device analyzes each character in the opposing camp of the first character to determine whether each character in the opposing camp currently meets the preset auxiliary positioning conditions.
[0081] Specifically, based on the status information of other characters belonging to different factions from the first character, it can be determined whether the other characters currently meet the preset auxiliary positioning conditions.
[0082] In this embodiment, the status information of other characters may include at least one of the following: position, angle, movement speed, and / or movement method. The movement methods of other characters may include running, walking, jumping, crouching, etc., and are not specifically limited here.
[0083] It should be noted that, based on the position information of each character and the position information of the first character, we can obtain: the distance between the first character and the other characters, the relative angle between the first character and the other characters, and / or the positional relationship between the other characters and the obstruction, etc., which are not specifically limited here.
[0084] In practice, the position information of the first character can refer to the position of the first character relative to a reference point, or it can refer to the coordinates of the first character in the application page coordinate system. This embodiment does not limit this.
[0085] Specifically, if the position information of the first character and the position information of all other characters refer to the coordinates of the character in the page coordinate system, then the auxiliary positioning device can determine the distance and relative angle between the first character and the other characters based on the coordinates of the first character and the coordinates of the other characters.
[0086] For example, if the current coordinates of character A are (1, 1), and the coordinates of character B (2, 2) and character C (1, 3) belong to different factions, the positioning device can determine the distance between A and B based on the formula for calculating the distance between two points. The distance between A and C If character A is facing the positive Y-axis of the page coordinate system, then calculations show that character B is in front of character A, at a counterclockwise angle of 45°, and character C is directly in front of character A.
[0087] Furthermore, the auxiliary positioning device can also determine the coordinates of each occluder on the current page by parsing the application page data, and thus determine the positional relationship between each character and the occluder.
[0088] The following is combined with Figure 2 In this embodiment, the process of determining whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions will be explained in detail.
[0089] like Figure 2 As shown, the process of determining whether any character belonging to a different faction than the first character currently meets the preset auxiliary positioning conditions may include:
[0090] Step 201: Determine whether the distance between the first character and the third character in the opposing faction is within the first preset range. If yes, proceed to step 202; otherwise, proceed to step 205.
[0091] The third character is any character from the opposing faction of the first character.
[0092] Step 202: Determine whether the relative angle between the third character and the first character is within the second preset range. If it is, proceed to step 203; otherwise, proceed to step 205.
[0093] Step 203: Determine whether the positional relationship between the third character and the obstruction meets the preset conditions. If it does, proceed to step 204; otherwise, proceed to step 205.
[0094] Step 204: Determine if the third role meets the preset auxiliary positioning conditions.
[0095] Step 205: Determine that the third role does not meet the preset auxiliary positioning conditions.
[0096] The first preset range, the second preset range, and the preset conditions can be adapted to the actual application situation, and this embodiment does not impose specific limitations on them.
[0097] For example, if the preset auxiliary positioning conditions include a to b for distance (first preset range), x1 to x2 for relative angle (second preset range), and y1 to y2 for positional relationship (preset conditions), then the auxiliary positioning device can determine the positions of each character B in the opposing camp of the first character A based on the above conditions. If the distance between any character B1 in the opposing camp and the first character A is within the range of a to b, the relative angle is within the range of x1 to x2, and the positional relationship also satisfies the y1 to y2 condition, then it can be determined that the character B1 satisfies the preset auxiliary positioning conditions.
[0098] It should be noted that, in this embodiment, determining whether each character meets the preset auxiliary positioning conditions can be based on the distance and relative angle between each character in the opposing camp and the first character; or, based on the distance between each character in the opposing camp and the first character, and the positional relationship between each character and the obstruction; or, based on the relative angle between each character in the opposing camp and the first character, and the positional relationship between each character and the obstruction; or, based on the distance between each character in the opposing camp and the first character, the relative angle, and the positional relationship between each character and the obstruction, etc. This embodiment does not specifically limit this.
[0099] Furthermore, to reduce the processing burden on applications, the above judgment criteria can be executed sequentially in a certain order, for example, by using the above... Figure 2 The sequential execution shown reduces the computational burden on the application and saves resource overhead for the auxiliary positioning method by only determining the relative angle for third roles whose relative distance meets the first preset range.
[0100] Step 102: If it is determined that the second character meets the preset auxiliary positioning conditions, then the aiming star of the first character is moved to the first preset position of the second character, or the aiming star is moved to the second preset position close to the second character.
[0101] The aiming star can be circular, triangular, square, star-shaped, etc., and this embodiment does not specifically limit it.
[0102] In this embodiment, the first preset position and the second preset position can be adaptively set according to the actual situation, and this embodiment does not make specific limitations on them.
[0103] Specifically, when the second character in the opposing faction meets the preset auxiliary positioning conditions, the auxiliary positioning device can move the aiming star of the first character to the first preset position of the second character, or move the aiming star to a second preset position close to the second character. This makes it easier for the user to control the first character to locate the second character and perform shooting operations, reducing the difficulty of the game and improving the user experience.
[0104] In practice, when it is determined that the second character meets the preset auxiliary positioning conditions, it can first be determined whether the second character is obscured by an occlusion, and then the corresponding positioning operation can be performed according to the judgment result.
[0105] If the second character is not obstructed, the auxiliary positioning device will gradually move the aiming star from far to near to the specific position of the second character; or, it will move the aiming star on the second character along a preset path.
[0106] The aforementioned specific location can refer to the position of a particular bone within the skeleton of each character. For example, when the first character's aiming point moves from a distance to near the second character, and the second character is currently crouching, the auxiliary positioning device can control the first character's aiming point to move from bottom to top to locate a specific bone in the second character's waist. As another example, if the first character's aiming point moves along a preset path over the second character, and the second character is currently jumping, the auxiliary positioning device can control the first character's aiming point to move from top to bottom to locate a specific bone in the second character's chest, and so on.
[0107] It should be noted that since characters in games are typically composed of skeletons and decorations, controlling each character is mostly achieved by adjusting the position and / or angle of different bones. Therefore, this embodiment can achieve character positioning by controlling the relationship between the aiming reticle and one or more bones of the second character.
[0108] It should be noted that the preset path can start from the end bone of the second character's head, move downwards in a straight line along the second character's skeletal framework until it reaches the end bone of the feet; or it can start from the end bone of the second character's feet, move upwards in a straight line along the second character's skeletal framework until it reaches the end bone of the head; or it can start from the end bone of the second character's head, move from left to right, from top to bottom along the second character's skeletal framework, etc. This embodiment does not specifically limit this.
[0109] If the second character is obstructed by an object, the auxiliary positioning device can move the aiming star to the edge of the object corresponding to the second character to avoid overly precise positioning, which would reduce the fun of the game.
[0110] Specifically, the auxiliary positioning device can determine the point on the obstruction closest to the aiming star based on the current coordinates of the aiming star, the coordinates of the obstruction, and the shape of the obstruction, and then move the aiming star along a straight line to that point on the obstruction; alternatively, the auxiliary positioning device can determine the point on the obstruction closest to the second character based on the coordinates of the second character, the coordinates of the obstruction, and the shape of the obstruction, and then move the aiming star to that point; alternatively, the auxiliary positioning device can determine the intersection point of the line connecting the aiming star and the second character with the obstruction based on the coordinates of the second character, the coordinates of the obstruction, the shape of the obstruction, and the coordinates of the aiming star, and then move the aiming star to that intersection point, etc. This embodiment does not limit this.
[0111] In practice, multiple (e.g., N, where N is a positive integer greater than or equal to 2) roles are often identified as meeting the auxiliary positioning conditions. To select the optimal positioning target from these roles, this embodiment selects the role with the highest matching degree to the preset auxiliary positioning conditions as the second role.
[0112] Specifically, the matching degree between each role and the auxiliary positioning conditions can be determined in a variety of ways.
[0113] Method 1
[0114] If the auxiliary positioning condition is a numerical range, then the matching degree between each character and the auxiliary positioning condition can be determined based on the positional relationship between each character and the first character, and the position falling within that numerical range.
[0115] For example, if the auxiliary positioning conditions are that the distance between each character and the first character is 1 to 4 meters (m) and the relative angle is 30° to 60°, and there are two characters that meet the auxiliary positioning conditions, namely character X and character Y, and the distances between these two characters and the first character are 1.2m and 3m respectively, and the relative angles between them are 33° and 45° respectively, then it can be determined that although character X meets the auxiliary positioning conditions, its distance of 1.2m is very close to the edge of the auxiliary positioning condition (1m). Meanwhile, the distance and relative angle between character Y and the first character both fall within the middle area of the auxiliary positioning conditions. Therefore, it can be determined that character Y has the highest matching degree with the auxiliary positioning conditions, and thus character Y can be selected as the second character.
[0116] Method 2
[0117] If the auxiliary positioning conditions include multiple dimensions, the matching degree between each character and the auxiliary positioning conditions can be determined based on the positional relationship between each character and the first character and the number of matches in each dimension.
[0118] For example, if the preset auxiliary positioning condition requires that at least one of the two dimensions, distance and angle, be satisfied, in practice, if there are two characters X and Y, both satisfying the preset auxiliary positioning condition, where character X satisfies both the angle and distance conditions, while character Y only satisfies the distance condition, meaning the number of matches between character X and each dimension is greater than the number of matches between character Y and each dimension, then character X has the highest match degree with the auxiliary positioning condition, and can be selected as the second character.
[0119] Furthermore, when a second character is identified from the opposing faction, in this embodiment, the first character's aiming star can continuously move along the second character's body along a preset path. When the first character moves the aiming star to the second character's fatal position (such as between the eyebrows or on the head), a stop command can be issued. If the auxiliary positioning device determines that it has received the stop command issued by the first character's controller, it can control the aiming star to stop moving, so as to ensure that the aiming star is aimed at the second character's fatal position, allowing the first character to trigger a shooting operation and kill the second character, thereby improving the user experience.
[0120] In practice, when the player controlling the first character triggers a firing command, the auxiliary positioning device receives the command and adjusts the accuracy and / or sensitivity of the aiming reticle. This allows the user to feel the weapon's recoil during firing, and also causes the aiming reticle to jiggle naturally after firing, further enhancing the game's realism.
[0121] For example, when a firing command is received, adjusting the accuracy and / or sensitivity of the aiming star control by the auxiliary positioning function can mean reducing the traction force of the auxiliary positioning function on the aiming star so that the aiming star can move freely after firing.
[0122] Specifically, during firing operations, the auxiliary positioning device can determine the type of weapon that can be used based on the current role information of the first character, such as a pistol, submachine gun, machine gun, etc. Different types of weapons have different power levels and environmental conditions (e.g., firing scenarios). Therefore, in order to accurately determine the trajectory of the aiming star based on the current role information and / or environmental information of the first character, this embodiment can, after receiving the firing command from the controller of the first character, first determine the current role information of the first character to determine the type of weapon to be used, or determine the current environmental information of the first character. Then, based on the weapon type and / or environmental information, adjust the positioning accuracy and sensitivity level of the aiming star, and determine the trajectory, positioning accuracy, first preset position, second preset position, and other information of the aiming star.
[0123] When determining the first or second preset position of the aiming star based on the weapon type, it can be determined based on the current posture of the second character and the positional relationship between the second character and the obstruction. No specific limitations are imposed here.
[0124] Specifically, the current posture of the second character can be determined based on the current position and / or angle of each bone in the second character's skeletal frame. Correspondingly, the positional relationship between the second character and the occlusion can be determined based on the current position and / or angle of each bone in the second character's skeletal frame, and the coordinates of the occlusion.
[0125] It should be noted that, in this embodiment, when determining the movement trajectory, positioning accuracy, and first and second preset positions of the sensitivity level set of the aiming star, it can be determined based on the role information currently corresponding to the first role, or it can be determined based on the environmental information currently in which the first role is located, or it can be determined based on both the role information currently corresponding to the first role and the environmental information in which it is located. This embodiment does not make specific limitations in this regard.
[0126] Furthermore, to achieve a better experience, the auxiliary positioning device in this embodiment can also adopt different shooting methods based on the current environmental information, such as: sweeping fire, single shot, lob shot, chaotic fire, jump shot, etc., and each of these shooting methods can provide the first character with a different operating experience. For example, when using the sweeping fire method, a wide range of shots can be achieved by moving the weapon.
[0127] Therefore, in order to ensure that users can have a good experience for different shooting methods, this embodiment can determine the shooting method when the auxiliary positioning device receives the shooting command sent by the first character, and then adjust the positioning accuracy level and sensitivity level of the auxiliary positioning according to the shooting method.
[0128] For example, when the firing mode is strafing, the positioning accuracy and sensitivity of the assisted positioning are reduced. Conversely, when the firing mode is single-shot, the positioning accuracy and sensitivity of the assisted positioning are increased.
[0129] The assisted positioning method provided in this invention determines whether other characters belonging to different factions from the first character currently meet preset assisted positioning conditions. If it is determined that the second character meets the preset assisted positioning conditions, the aiming star of the first character is moved to a first preset position on the body of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the current character's opposing faction meets the assisted positioning conditions, the current character is assisted in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0130] As the above analysis shows, when determining that a second character in the opposing camp meets the preset auxiliary positioning conditions, this invention improves the positioning accuracy of the first character by moving the first character's aiming star to a first preset position on the second character's body, or moving the aiming star to a second preset position close to the second character. Specifically, when the auxiliary positioning device moves the first aiming star to the preset position of the second character, the first character's line of sight may still be fixed at the position before the aiming star moved, making it impossible for the first character to accurately locate the stopping position of the aiming star in a timely manner. To address this, when the auxiliary positioning device moves the aiming star to a preset position near the second character, it can also control the target camera corresponding to the first character's viewpoint to rotate, enabling the first character to accurately locate the stopping position of the aiming star in a timely manner and perform the next positioning and firing operation based on the stopping position of the aiming star. The following is a combination of... Figure 3 The auxiliary positioning method in the above situation will be further explained.
[0131] Figure 3 This is a flowchart of an auxiliary positioning method according to another embodiment of the present invention.
[0132] like Figure 3 As shown, the assisted positioning method may include the following steps:
[0133] Step 301: Determine whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions. If the second character meets the conditions, proceed to step 302; otherwise, continue with step 301.
[0134] Step 302: Move the aiming star of the first character to the first preset position of the second character, or move the aiming star to the second preset position close to the second character.
[0135] The specific implementation process and principle of steps 301-302 above can be found in the detailed description of the above embodiments, and will not be repeated here.
[0136] Step 303: Determine the camera angle of the target camera and the total rotation angle when rotating to the second character.
[0137] Step 304: Determine the rotation method of the target camera based on the total rotation angle.
[0138] Step 305: Based on the rotation method of the target camera, control the target camera to rotate sequentially to the second position.
[0139] Specifically, since the target camera corresponding to the first character's perspective has a corresponding camera angle at any position, when the first character's aiming star moves to the second character's first preset position, or moves to a second preset position close to the second character, the auxiliary positioning device can determine the total rotation angle of the target camera when it rotates to the second character based on the aiming star's moving distance or path.
[0140] Furthermore, after determining the total rotation angle of the target camera when it rotates to the second character, the rotation angle of each frame when it is displayed can be determined based on the total rotation angle. Then, based on the angle that the target camera needs to rotate when each frame is displayed, the camera angle of the target camera corresponding to the first character's viewpoint is controlled, and the camera rotates to the second character in sequence.
[0141] It should be noted that in this embodiment, controlling the movement of the aiming star of the first character can be achieved by controlling the angle of the moving camera, or the movement of the aiming star and the camera can be controlled separately, and no specific limitation is made here.
[0142] Furthermore, in order to ensure a smooth and natural transition of the game screen during the rotation of the target camera to the second character, this embodiment can also calculate the number of display frames of the corresponding game screen when the target camera performs the rotation operation, and then adjust the rotation method of the target camera according to the content displayed in each frame and the rotation angle, so that the first character will not feel that the game screen is laggy or unsmooth when operating the game.
[0143] Accordingly, step 305 in this embodiment includes:
[0144] The initial rotation angle of each frame is determined based on the total rotation angle and the preset rotation duration.
[0145] Based on the initial rotation angle of each frame, determine the scene images corresponding to each frame of the target camera during the rotation process;
[0146] Based on the scene images corresponding to each frame during the rotation process, the initial rotation angle of each frame is corrected.
[0147] The preset duration can be determined as needed, such as 2ms, 4ms, etc.
[0148] Specifically, in this embodiment, after determining the total rotation angle of the target camera, the auxiliary positioning device can determine the initial rotation angle of each frame based on the total rotation angle and the preset rotation duration. Then, based on the current application scenario and the initial rotation angle, it can determine the scene image corresponding to each frame of the camera during the rotation process. Finally, based on the similarity between the scene images corresponding to adjacent frames, the initial rotation angle is corrected.
[0149] For example, if two adjacent frames have a similarity of more than 80% in content, the auxiliary positioning device can appropriately increase the initial rotation angle between the two frames to ensure that the user does not experience a significant visual difference while speeding up the positioning process.
[0150] Alternatively, if, among all the frames to be displayed determined by the initial rotation angle, there are two adjacent frames with a content similarity of more than 20%, and if the target camera rotates according to the initial rotation angle, the user will experience a significant visual conflict between the two frames. In this case, the auxiliary positioning device can appropriately reduce the rotation angle between the two adjacent frames to create a transition frame between them, thereby avoiding visual conflicts caused to the user due to sudden scene changes.
[0151] Understandably, in practical implementation, the auxiliary positioning device can appropriately increase the initial rotation angle between two adjacent frames with very similar content, and appropriately decrease the initial rotation angle between two adjacent frames with excessively large content jumps. In this way, without increasing the positioning time, it can ensure that the user's line of sight can smoothly transition to the second character without causing visual conflict.
[0152] For example, if the total rotation angle of the target camera when it rotates to the second character is 60°, and the auxiliary positioning device can refresh 5 frames during the target camera's rotation within the preset rotation time, then based on the total rotation angle of 60° and the 5 frames, the initial rotation angle of each frame can be calculated to be 12°. Furthermore, when controlling the target camera's rotation based on the total rotation angle and the initial rotation angle of each frame, if the content similarity of the four frames exceeds 80%, and the content similarity of the last two frames is less than 5%, then the initial rotation angle between the four frames can be increased to 14°, while the initial rotation of the last frame can be decreased to 4°. This ensures that the target camera can rotate to the second character within the preset rotation time, and that there are no significant jumps in content between the displayed frames during the rotation, thus ensuring a smooth and natural overall game screen display when the target camera rotates to the second character, reducing the visual discrepancy for the user.
[0153] The assisted positioning method provided in this embodiment of the invention determines whether other characters belonging to different factions from the first character currently meet preset assisted positioning conditions. When it is determined that the second character meets the preset assisted positioning conditions, the aiming star of the first character is moved to a first preset position on the body of the second character, or the aiming star is moved to a second preset threshold close to the second character. Furthermore, the camera angle of the target camera corresponding to the first character's viewpoint is controlled and rotated to the second character, so that the user can locate the position of the aiming star in a timely manner. When rotating the target camera, the rotation method of the target camera is adjusted according to the content of the game frame screen, thereby ensuring that the transition of the game screen display content is smooth and natural, without causing visual discrepancies for the user, and further improving the user experience.
[0154] As the above analysis shows, to ensure the user's visual experience, this invention, after moving the aiming star of the first character, can also control the target camera corresponding to the first character's viewpoint to rotate to the second character's viewpoint. Specifically, after the first character's aiming star moves to the second character's viewpoint, if the controller of the first character believes that the currently positioned second character's shooting accuracy is low, they can manually operate the aiming star's movement and perform positioning and firing operations based on the aiming star's position, thereby improving the user's flexibility. The following section combines... Figure 4 The auxiliary positioning method in the above situation will be further explained.
[0155] Figure 4 This is a flowchart of an auxiliary positioning method according to another embodiment of the present invention.
[0156] like Figure 4 As shown, the assisted positioning method may include the following steps:
[0157] Step 401: Determine whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions. If the second character meets the conditions, proceed to step 402; otherwise, continue with step 401.
[0158] Step 402: Move the aiming reticle of the first character to the first preset position of the second character, or move the aiming reticle to the second preset position close to the second character.
[0159] Step 403: Obtain the aiming star movement command sent by the controller of the first character. The movement command includes the movement direction and movement speed.
[0160] Step 404: Determine whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than the first threshold. If it is greater, proceed to step 405; otherwise, proceed to step 402.
[0161] Step 405: Determine whether the movement speed in the movement command is greater than the second threshold. If it is, proceed to step 406; otherwise, proceed to step 402.
[0162] Step 406: Control the movement of the aiming star according to the movement command.
[0163] The first threshold and the second threshold can be set adaptively according to actual application needs, and this embodiment does not impose specific limitations on them.
[0164] It should be noted that, in the specific implementation process, the auxiliary positioning device can also adjust the size of the first threshold and the second threshold, or adjust the range of the above judgment conditions as needed.
[0165] For example, for touch-screen electronic devices, if the auxiliary positioning device determines that the user's touch force is relatively large during the application process, the size of the second threshold can be increased to avoid the impact of misoperation; or, if it is determined that the user's touch force is relatively small during the application process, the aiming star can be moved according to the movement command when the movement speed in the movement command is determined to be equal to the second threshold.
[0166] Correspondingly, if the operating area of the electronic device is small, the first threshold can be reduced; or when the angle between the current movement direction of the aiming star in the movement direction domain of the movement command is equal to the first threshold, it is considered that this movement command was triggered by the user, etc.
[0167] Specifically, in actual operation, the way the auxiliary positioning device moves the aiming star of the first character to the second character is rather rigid and inflexible. Therefore, the first character can adjust the movement of the aiming star according to the actual progress of the game, so that the first character can have a greater sense of participation in the game operation.
[0168] In this embodiment, the movement speed can be determined based on the operation method and force applied by the first controller to the electronic device. For example, for a touch-screen electronic device, the pressure applied by the user to the touchscreen determines the movement speed; or for a joystick-operated electronic device, the movement speed can be determined based on the force applied by the user to the joystick, and so on.
[0169] In practice, the auxiliary positioning device can first obtain the aiming star movement command sent by the first character, and judge the movement direction in the movement command to determine whether the angle between the movement direction and the current movement direction of the aiming star is greater than the first threshold. If it is greater, it can further judge whether the movement speed is greater than the second threshold. If it is greater, it means that the first character controller is performing manual positioning. At this time, the control of the aiming star is handed over to the first character controller so that the first character can move the aiming star according to the actual situation.
[0170] Understandably, by judging the direction and speed of movement in the movement command, it is possible to identify situations where the first character makes a mistake or unconsciously sends a aiming star movement command due to external factors, thereby making the aiming star movement of the first character more reliable.
[0171] The assisted positioning method provided in this embodiment of the invention, after determining that the second character meets the preset assisted positioning conditions, obtains the aiming star movement command sent by the first character and determines whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than a first threshold. If it is greater, it further determines whether the movement intensity in the movement command is greater than a second threshold. If it is greater, it controls the aiming star to move according to the movement command. Therefore, when operating a game, users can not only rely on assisted positioning to reduce the difficulty of operation, but also manually control the game according to the actual situation, thereby increasing the fun of user operation and improving the user experience.
[0172] To achieve the above embodiments, the present invention also proposes an auxiliary positioning device.
[0173] The auxiliary positioning device proposed in the embodiments of the present invention will now be described with reference to the accompanying drawings.
[0174] Figure 5 This is a schematic diagram of the structure of an auxiliary positioning device according to an embodiment of the present invention.
[0175] Reference Figure 5 The auxiliary positioning device includes a first judgment module 11 and a first control module 12.
[0176] The first judgment module 11 is used to determine whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions.
[0177] The first control module 12 is used to move the aiming star of the first character to a first preset position of the second character, or to move the aiming star to a second preset position closer to the second character, if it is determined that the second character meets the preset auxiliary positioning conditions.
[0178] Furthermore, in another embodiment of the present invention, the first determining module 11 specifically includes:
[0179] Based on the status information of other characters belonging to different factions from the first character, it is determined whether the other characters currently meet the preset auxiliary positioning conditions. The status information of the other characters includes at least one of the following: position, angle, movement speed, and / or movement mode.
[0180] In another embodiment of the present invention, the first determining module 11 includes:
[0181] The first judgment subunit is used to determine whether the distance between the first character and each character in the opposing camp is within a first preset range.
[0182] The second judgment subunit is used to determine whether the relative angle between the third character and the first character is within a second preset range if the distance between the third character and the first character is within a preset range.
[0183] The third judgment subunit is used to determine whether the positional relationship between the third role and the occluder satisfies a preset condition if the condition is met.
[0184] The sub-unit is determined so that if not, the third role is determined to have not met the preset auxiliary positioning conditions.
[0185] In another embodiment of the present invention, the auxiliary positioning device of the present invention further includes: an acquisition module and a second control module.
[0186] The acquisition module is used to acquire the status information of other roles. The status information of other roles comes from the server and is obtained synchronously from each client by the server.
[0187] The second control module is used to determine the character with the highest matching degree with the preset auxiliary positioning conditions as the second character if at least two characters meet the preset auxiliary positioning conditions.
[0188] In another embodiment of the invention, such as Figure 6 As shown, the auxiliary positioning device of the present invention further includes: a third control module 13.
[0189] The third control module 13 is used to control the camera angle of the target camera corresponding to the perspective of the first character, and rotate it to the second character.
[0190] The third control module 13 includes: a first control subunit 131, a first determination subunit 132, and a second control subunit 133.
[0191] The first control subunit 131 is used to determine the camera angle of the target camera and the total rotation angle when rotating to the second role;
[0192] The first determining subunit 132 is used to determine the rotation mode of the target camera based on the total rotation angle;
[0193] The first determining subunit 132 specifically includes:
[0194] Based on the total rotation angle and the preset rotation duration, the initial rotation angle of each frame is determined;
[0195] Based on the initial rotation angle of each frame, determine the scene images corresponding to each frame of the target camera during the rotation process;
[0196] Based on the scene images corresponding to each frame during the rotation process, the initial rotation angle of each frame is corrected.
[0197] The second control subunit 133 is used to control the target camera to rotate sequentially to the second position according to the rotation mode of the target camera.
[0198] Furthermore, in another embodiment of the present invention, the first control module 12 specifically includes:
[0199] The aiming star is gradually moved from far to near to the specific position of the second character;
[0200] Alternatively, the aiming star can be moved on the second character along a preset path.
[0201] The first control module 12 further includes:
[0202] The third control subunit is used to control the aiming star to stop moving when it determines that a stop command has been received from the first character controller.
[0203] The first control module 12 specifically includes:
[0204] Move the aiming star to the edge of the obstruction corresponding to the second character.
[0205] Furthermore, in another embodiment of the invention, such as Figure 7As shown, the auxiliary positioning device of the present invention further includes: a first acquisition module 14, a second judgment module 15, a third judgment module 16, and a fourth control module 17.
[0206] The first acquisition module 14 is used to acquire the aiming star movement command sent by the first character, wherein the movement command includes the movement direction and the movement speed;
[0207] The second judgment module 15 is used to determine whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than a first threshold.
[0208] The third judgment module 16 is used to determine whether the moving speed in the moving command is greater than the second threshold if the condition is met.
[0209] The fourth control module 17 is used to control the movement of the aiming star according to the movement command if the condition is met.
[0210] In another embodiment of the present invention, the auxiliary positioning device of the present invention further includes: a first determining module and a second determining module.
[0211] The first determining module is used to determine the role information and / or the environment information currently corresponding to the first role.
[0212] The second determining module is used to determine the movement trajectory, positioning accuracy, sensitivity level, first preset position, and second preset position of the aiming star based on the corresponding role information and / or the environment information.
[0213] In another embodiment of the present invention, the auxiliary positioning device of the present invention further includes: a third determining module.
[0214] The third determining module is used to determine the first preset position or the second preset position based on the current posture of the second character and its positional relationship with the obstruction.
[0215] Furthermore, the auxiliary positioning device of the present invention also includes a fifth control module.
[0216] The fifth control module is used to adjust the accuracy and / or sensitivity of the auxiliary positioning function for controlling the aiming star when a shooting command is received from the controller of the first character.
[0217] It should be noted that the implementation process and technical principles of the auxiliary positioning device in this embodiment are explained in the foregoing description of the auxiliary positioning method embodiment, and will not be repeated here.
[0218] The auxiliary positioning device provided in this invention determines whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions. If it is determined that the second character meets the preset auxiliary positioning conditions, the aiming star of the first character is moved to a first preset position on the body of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the opposing faction of the current character meets the auxiliary positioning conditions, the device assists the current character in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0219] To implement the above embodiments, the present invention also proposes an electronic device.
[0220] Figure 8 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention.
[0221] like Figure 8 As shown, the electronic device includes: a memory 21, a processor 22, and a touch screen 23;
[0222] The memory 21 is used to store executable program code;
[0223] The touchscreen 23 is used to display the game interface;
[0224] The processor 22 is used to read executable program code stored in the memory 21 to run a program corresponding to the executable program code, so as to implement the assisted positioning method described in the first aspect embodiment. The method includes: determining whether other characters belonging to different factions from the first character currently meet preset assisted positioning conditions; if it is determined that the second character meets the preset assisted positioning conditions, then moving the aiming star of the first character to a first preset position on the body of the second character, or moving the aiming star to a second preset position closer to the second character.
[0225] It should be noted that the implementation process and technical principles of the electronic device in this embodiment are explained in the foregoing description of the assisted positioning method embodiment, and will not be repeated here.
[0226] In the electronic device provided in this embodiment, by determining whether other characters belonging to different factions from the first character currently meet preset auxiliary positioning conditions, if it is determined that the second character meets the preset auxiliary positioning conditions, the aiming star of the first character is moved to a first preset position on the body of the second character, or the aiming star is moved to a second preset position closer to the second character. Therefore, during application use, if the second character in the opposing faction of the current character meets the auxiliary positioning conditions, the current character is assisted in locating the second character, automatically achieving assisted aiming. This effectively reduces the difficulty of game operation, improves positioning accuracy, and enhances user interest in this type of application, especially when used in mobile clients, greatly increasing user stickiness.
[0227] To implement the above embodiments, this application also proposes a computer-readable storage medium.
[0228] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the assisted positioning method of the first aspect embodiment. The method includes: determining whether other characters belonging to a different faction than the first character currently meet preset assisted positioning conditions; if it is determined that the second character meets the preset assisted positioning conditions, then moving the aiming star of the first character to a first preset position on the body of the second character, or moving the aiming star to a second preset position closer to the second character.
[0229] In the description of this specification, references to the terms "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example that is included in at least one embodiment or example of the present invention.
[0230] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature.
[0231] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.
[0232] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0233] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it includes one or a combination of the steps of the method embodiments.
[0234] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. An auxiliary positioning method, characterized in that, include: Determine whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions; If it is determined that the second character meets the preset auxiliary positioning conditions, determine whether the second character is obscured by an obstruction; If the second character is not obstructed, move the first character's aiming star to the second character's first preset position; If the second character is obstructed by an obstacle, the aiming star of the first character is moved to a second preset position close to the second character; wherein, the second preset position is the edge of the obstacle corresponding to the second character; After determining that the second role meets the preset assisted positioning conditions, the process also includes: Obtain the aiming star movement command sent by the controller of the first character, the movement command including the movement direction and movement speed; control the movement of the aiming star according to the movement command.
2. The method as described in claim 1, characterized in that, The determination of whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions includes: Based on the status information of other characters belonging to different factions from the first character, determine whether the other characters currently meet the preset auxiliary positioning conditions.
3. The method as described in claim 2, characterized in that, The status information of the other roles includes at least one of the following: position, angle, movement speed, and / or movement mode.
4. The method as described in claim 1, characterized in that, The determination of whether other characters currently meet the preset auxiliary positioning conditions includes: Determine whether the distance between the first character and each character in the opposing faction is within a first preset range; If the distance between the third character and the first character is within a preset range, then determine whether the relative angle between the third character and the first character is within a second preset range; If so, determine whether the positional relationship between the third character and the obstruction meets the preset conditions; If not, then it is determined that the third role does not meet the preset auxiliary positioning conditions.
5. The method as described in claim 1, characterized in that, Before determining whether other characters currently meet the preset auxiliary positioning conditions, the process also includes: Obtain the status information of other roles, wherein the status information of other roles comes from the server and is obtained synchronously by the server from each client.
6. The method as described in claim 1, characterized in that, After determining whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions, the method further includes: If at least two characters meet the preset auxiliary positioning conditions, the character with the highest matching degree with the preset auxiliary positioning conditions will be determined as the second character.
7. The method as described in claim 1, characterized in that, After determining that the second role meets the preset assisted positioning conditions, the process also includes: Control the camera angle of the target camera corresponding to the perspective of the first character, and rotate it to the second character; wherein, when performing the rotation operation, calculate the number of display frames of the corresponding screen, and adjust the rotation mode of the target camera according to the content displayed in each frame and the rotation angle.
8. The method as described in claim 7, characterized in that, The control of the camera angle of the target camera corresponding to the perspective of the first character, rotating it to the second character, includes: Determine the camera angle of the target camera, and the total rotation angle when rotating to the second character; The rotation mode of the target camera is determined based on the total rotation angle. Based on the rotation method of the target camera, control the target camera to rotate sequentially to the second position.
9. The method as described in claim 8, characterized in that, Determining the rotation mode of the target camera includes: Based on the total rotation angle and the preset rotation duration, the initial rotation angle of each frame is determined; Based on the initial rotation angle of each frame, determine the scene images corresponding to each frame of the target camera during the rotation process; Based on the scene images corresponding to each frame during the rotation process, the initial rotation angle of each frame is corrected.
10. The method according to any one of claims 1-9, characterized in that, Moving the aiming star of the first character to the first preset position of the second character specifically involves: The aiming star is gradually moved from far to near to a specific position of the second character; Alternatively, the aiming star can be moved on the second character itself along a preset path.
11. The method as described in claim 10, characterized in that, After moving the aiming star on the second character itself along a preset path, the method further includes: Upon receiving a stop command from the first character controller, the aiming star is controlled to stop moving.
12. The method according to any one of claims 1-9, characterized in that, After determining that the second role meets the preset assisted positioning conditions, the process also includes: Determine whether the angle between the movement direction in the movement command and the current movement direction of the aiming star is greater than a first threshold. If the included angle is greater than the first threshold, then determine whether the movement speed in the movement command is greater than the second threshold; If the moving speed is greater than the second threshold, then the aiming star is controlled to move according to the moving command.
13. The method as described in claim 10, characterized in that, After determining that the second role meets the preset assisted positioning conditions, the process also includes: Determine the role information and / or the environment information currently corresponding to the first role; Based on the character information and / or the surrounding environment information, determine the movement trajectory, positioning accuracy, sensitivity level, first preset position, and second preset position of the aiming star.
14. The method as described in claim 13, characterized in that, After determining that the second role meets the preset assisted positioning conditions, the process also includes: The first preset position or the second preset position is determined based on the current posture of the second character and the positional relationship between the second character and the obstruction.
15. The method as described in claim 10, characterized in that, Also includes: After moving the aiming star of the first character to the first preset position or the second preset position, when a firing command is received from the controller of the first character, the precision and / or sensitivity of the aiming star control are adjusted.
16. An auxiliary positioning device, characterized in that, include: The first judgment module is used to determine whether other characters belonging to different factions from the first character currently meet the preset auxiliary positioning conditions. The second judgment module is used to determine whether the second character is obscured by an occupant if the second character is determined to meet the preset auxiliary positioning conditions. The first control module is used to move the aiming star of the first character to the first preset position of the second character if the second character is not obstructed by an obstruction. The second control module is used to move the aiming star of the first character to a second preset position closer to the second character if the second character is obstructed by an obstruction; wherein the second preset position is the edge of the obstruction corresponding to the second character; The device further includes: The first acquisition module is used to acquire the aiming star movement command sent by the controller of the first character, the movement command including the movement direction and movement speed; The fourth control module is used to control the movement of the aiming star according to the movement command.
17. An electronic device, characterized in that, include: Memory, processor, and touchscreen; The memory is used to store executable program code; The touchscreen is used to display the game interface; The processor is configured to read executable program code stored in the memory to run a program corresponding to the executable program code, so as to implement the assisted positioning method as described in any one of claims 1-15.
18. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the assisted positioning method as described in any one of claims 1-15.
Citation Information
Patent Citations
Method and apparatus for automatically targeting target objects in a computer game
CN105378785A