A method, device, equipment and medium for controlling hook equipment in a game
By introducing the second control function of the hook cable equipment in the game, users can change the flight direction of the hook cable, solve the problem of unchanging hook cable equipment flying paths in existing technologies, and improve the efficiency and user experience.
Patent Information
- Application Number
- CN202210488580.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-06
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-05-06
AI Technical Summary
After using the hook rope equipment in the existing game, the user cannot change the flight path of the hook rope, resulting in the position where the game character arrives does not meet the user's ideal position, or the hook rope fails to hook the object, which reduces the props' Usage efficiency and user gaming experience.
Provide a control method of hook cable equipment in the game, allowing users to change the flight direction of the hook cable equipment through the second control operation, so that it changes from the aiming direction to the first game element that meets the hook cable aiming conditions.
It enhances the operability of users' hook cable equipment, improves the efficiency of hook cable equipment, ensures that the role of the game can accurately reach the user's ideal position, and enhance the user's game experience.
Smart Images

Figure CN117046108B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and medium for controlling a hook and rope equipment in a game. Background Art
[0002] In order to improve the fun of the game, many existing games have added hook equipment. The specific gameplay of the hook equipment includes: using the hook to move quickly, using the hook to aim and approach the target; or directly using the hook to aim and attack the target.
[0003] After using the existing hook equipment, the user cannot change the flight path of the hook during flight, resulting in the game character arriving at a location that is not the user's ideal location, or the hook fails to hook an object, the hook equipment is consumed but the position of the game character does not change. The existing hook equipment has low flexibility when used, and the user cannot flexibly control it. The above situations will reduce the efficiency of the props and lead to a poor gaming experience for the user. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide a control method, device, equipment and medium for a grappling hook equipment in a game. After using the grappling hook equipment, the user can change the grappling hook equipment from flying along the aiming direction to flying toward a first game element by operating it again, thereby enhancing the user's operability of the grappling hook equipment, improving the efficiency of using the grappling hook equipment, and improving the user's gaming experience.
[0005] In a first aspect, an embodiment of the present application provides a method for controlling a grappling hook equipment in a game, wherein the game includes a target game character, and the target game character is equipped with a grappling hook equipment; the control method includes:
[0006] In response to a first control operation on the hook wire equipment, controlling the hook wire equipment to fly along a targeting direction;
[0007] During the flight of the grappling hook equipment along the aiming direction, in response to a second control operation on the grappling hook equipment, a first game element satisfying the grappling hook aiming condition is determined from the game scene according to the current flying position of the grappling hook equipment in the game scene, and the grappling hook equipment is controlled to fly toward the first game element.
[0008] In a preferred technical solution of the present application, the above control method further includes:
[0009] During the process of recovering the grappling hook equipment, in response to a second control operation on the grappling hook equipment, according to the current flying position of the grappling hook equipment in the game scene, a first game element that meets the grappling hook aiming condition is determined from the game scene, and the grappling hook equipment is controlled to fly toward the first game element.
[0010] In a preferred technical solution of the present application, the above-mentioned control hook cable equipment recovery includes:
[0011] If the aiming direction is the direction of a second game element that meets the hook line aiming condition, in response to the position change of the second game element, the hook line equipment is controlled to be recovered; the second game element is selected from the game scene; the second game element is different from the first game element;
[0012] If the aiming direction is the direction of the third game element that does not meet the grappling hook aiming condition, when the grappling hook equipment flies the maximum grappling hook distance, the grappling hook equipment is controlled to be recovered.
[0013] In a preferred technical solution of the present application, the first game element and the second game element that meet the hook line aiming condition include: game elements that can be grabbed by the hook line and meet the hook line grabbing distance; the third game element that does not meet the hook line aiming condition includes: game elements that cannot be grabbed by the hook line; and / or game elements that can be grabbed by the hook line but do not meet the hook line grabbing distance;
[0014] The first game element and the second game element are first scene elements or first game characters that meet the grappling hook aiming condition; the third game element is a second scene element or second game character that does not meet the aiming condition.
[0015] In a preferred technical solution of the present application, the above-mentioned determining the first game element satisfying the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene includes:
[0016] Selecting a target selection area corresponding to the current flight position of the grappling hook equipment from the game scene;
[0017] A first game element that meets the grappling hook aiming condition is selected from the game scenes included in the target selection area.
[0018] In a preferred technical solution of the present application, the first game element satisfying the hook line aiming condition is selected from the game scene included in the target selection area, including:
[0019] Determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area;
[0020] According to the distances between the multiple candidate game elements and the current flying position of the grappling hook equipment, a first game element closest to the grappling hook equipment is selected from the multiple candidate game elements.
[0021] In a preferred technical solution of the present application, the first game element satisfying the hook line aiming condition is selected from the game scene included in the target selection area, including:
[0022] Determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area;
[0023] According to the current attribute priorities of multiple candidate game elements, a first game element with the highest corresponding attribute priority is selected from the multiple candidate game elements; the current attribute priority is determined according to a first game strategy for the game, and the first game strategy is determined at least according to the scene characteristics of the game scene and the attribute characteristics of the target game character.
[0024] In a preferred technical solution of the present application, the above-mentioned controlling the grappling hook equipment to fly toward the first game element includes:
[0025] The first game element is controlled to absorb the grappling hook equipment, so that the grappling hook equipment flies toward the first game element and grabs the first game element.
[0026] In a preferred technical solution of the present application, the above-mentioned controlling the first game element to absorb the grappling hook equipment includes:
[0027] If it is detected that the position of the first game element has changed and the changed position of the first game element is still within the target selected area, the adsorption route of the grappling hook equipment is controlled to be toward the first game element after the position change.
[0028] In a preferred technical solution of the present application, the above-mentioned controlling the first game element to absorb the grappling hook equipment includes:
[0029] If it is detected that the position of the first game element has changed and the changed position of the first game element is outside the target selected area, the adsorption route of the grappling hook equipment is controlled to be toward the first game element before the position change.
[0030] In a preferred technical solution of the present application, after the hook equipment grabs the first game element, the control method further includes:
[0031] The target game character is controlled to move to the first game element based on the grappling hook equipment.
[0032] In a preferred technical solution of the present application, the above method further includes:
[0033] In the process of the grappling hook equipment flying toward the first game element, in response to a third control operation on the grappling hook equipment, the grappling hook equipment is controlled to be recovered.
[0034] In a second aspect, an embodiment of the present application provides a control device for a grappling hook equipment in a game, wherein the game includes a target game character, and the target game character is equipped with a grappling hook equipment, and the device includes:
[0035] A first control module, configured to control the hook wire equipment to fly along a targeting direction in response to a first control operation on the hook wire equipment;
[0036] The determination module is used to respond to a second control operation on the grappling hook equipment while the grappling hook equipment is flying along the aiming direction, determine a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
[0037] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for controlling a hook equipment in the game when executing the computer program.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the grappling hook equipment in the game are executed.
[0039] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0040] The present application provides a method for controlling a grappling hook equipment in a game, the method comprising: responding to a first control operation on the grappling hook equipment, controlling the grappling hook equipment to fly along an aiming direction; responding to a second control operation on the grappling hook equipment during the flight of the grappling hook equipment along the aiming direction, determining a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and controlling the grappling hook equipment to fly toward the first game element; through the method of the present application, after using the grappling hook equipment, the user can change the grappling hook equipment from flying along the aiming direction to flying toward the first game element by operating it again, thereby enhancing the user's operability of the grappling hook equipment, improving the use efficiency of the grappling hook equipment, and improving the user's gaming experience.
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0043] Figure 1 A schematic flow chart of a method for controlling a hook and wire equipment in a game provided by an embodiment of the present application is shown;
[0044] Figure 2 A schematic diagram of a process for determining a first game element provided in an embodiment of the present application is shown;
[0045] Figure 3 A schematic diagram of a process of determining a first game element from a target selected area provided by an embodiment of the present application is shown;
[0046] Figure 4 Another schematic diagram of a process of determining a first game element from a target selected area provided by an embodiment of the present application is shown;
[0047] Figure 5 A schematic diagram showing a control device for a hook and rope equipment in a game provided by an embodiment of the present application is shown;
[0048] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0049] Figure 7a A schematic diagram of the use of a hook and rope equipment in a game provided by an embodiment of the present application;
[0050] Figure 7b A schematic diagram of the use of a grappling hook device in another game provided in an embodiment of the present application. DETAILED DESCRIPTION
[0051] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0052] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0053] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0054] In many current games, hook rope equipment (props) are provided, also called flying rope equipment (props). In the hook rope gameplay, the hook rope is used to move quickly, and the hook rope is used to aim and approach the target. The hook rope mentioned in this application is a prop in the game, which can realize functions such as grabbing objects and moving to the target position. It can also be called flying rope, hook rope equipment, hook rope props, flying rope equipment, flying rope props, etc.
[0055] After using the existing hook equipment, the user cannot change the flight path of the hook during its flight, resulting in the game character arriving at a location that is not the user's ideal location, or the hook fails to hook an object, the hook fails to be used, the hook equipment is consumed, and the position of the game character does not change. The existing hook equipment has low flexibility when used, and the user cannot flexibly control it. The above situations will reduce the efficiency of the props and lead to a poor gaming experience for users.
[0056] Based on this, the present application provides a control method, device, equipment and medium for a grappling hook equipment in a game, which can operate the grappling hook equipment again after it is used to change the target to which the grappling hook equipment flies, so that the grappling hook equipment can reach the user's ideal position, thereby improving the operability and efficiency of the use of the grappling hook equipment, and thereby improving the user's gaming experience.
[0057] The embodiments of the present application provide a method, device, equipment and medium for controlling a grappling hook equipment in a game, which will be described below through embodiments.
[0058] Figure 1 A flow chart of a method for controlling a hook and wire equipment in a game provided by an embodiment of the present application is shown. The game includes a target game character in a game scene, and the target game character is equipped with a hook and wire equipment. The control method includes steps S101-S102. Specifically:
[0059] S101, in response to a first control operation on the hook and wire equipment, controlling the hook and wire equipment to fly along a targeting direction;
[0060] S102. While the grappling hook equipment is flying along the aiming direction, respond to a second control operation on the grappling hook equipment, determine a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
[0061] An embodiment of the present application provides a method for controlling a grappling hook equipment in a game, which can determine a first game element that meets the grappling hook aiming condition from a game scene after the grappling hook equipment is used and while the grappling hook equipment is flying along the aiming direction, and control the grappling hook equipment to fly toward the first game element. Through the method of the present application, after the grappling hook equipment is used, the user can perform another operation to change the grappling hook equipment from flying along the aiming direction to flying toward the first game element, thereby enhancing the user's operability of the grappling hook equipment, improving the use efficiency of the grappling hook equipment, and improving the user's gaming experience.
[0062] Some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0063] S101. In response to a first control operation on the hook wire equipment, control the hook wire equipment to fly along a targeting direction.
[0064] In the embodiment of the present application, after the terminal device runs the game, there is a target scene area on the provided graphical user interface, and the target scene area includes at least part of the game scene. Usually, in martial arts games or shooting games, the target scene area includes part of the game scene; the above game includes a target game character, and the user can control the target game character to move in the game scene or perform other operations through the terminal device. For example, pick up a hook equipment or use a hook equipment.
[0065] Here, the grappling hook equipment equipped by the target game character is usually picked up by the user in the game scene by controlling the target game character during the game, and when the target game character is equipped with the grappling hook equipment, the start operation of the grappling hook equipment equipped by the target game character is responded. When the user uses the grappling hook equipment, the graphical user interface displays an aiming prompt corresponding to the aiming direction of the grappling hook equipment.
[0066] The aiming direction of the hook wire equipment in the present application includes: the direction of the second game element that meets the hook wire aiming condition and the direction of the third game element that does not meet the hook wire aiming condition. The second game element or the third game element is selected from the game elements included in the target scene area by the aiming prompt. The second game element or the third game element is selected by the system from the game scene of the game, or is selected in response to the user's selection operation for the second game element or the third game element.
[0067] The second game element is a game element that meets the grappling hook aiming condition, and the third game element is a game element that does not meet the grappling hook aiming condition. Game elements that meet the grappling hook aiming condition include: game elements that can be grabbed by the grappling hook and meet the grappling hook grabbing distance; game elements that do not meet the grappling hook aiming condition include: game elements that cannot be grabbed by the grappling hook; and / or, game elements that can be grabbed by the grappling hook but do not meet the grappling hook grabbing distance. Whether it can be grabbed by the grappling hook is set according to the second game strategy. Game elements include scene elements and game characters; the scene elements here include buildings, trees, sky, air and other elements in the game scene. Game characters include teammate characters, opponent (enemy) characters, non-player characters (NPCs), etc. According to the second game strategy, game elements such as buildings, trees, opponent characters, etc. are set to be grabbable by the grappling hook, and game elements such as the sky, air, teammates, etc. are set to be ungrabbable by the grappling hook.
[0068] In the present application, the second game element selected from the game scene is the first scene element or the first game character that meets the grappling hook aiming condition; the third game element is the second scene element or the second game character that does not meet the aiming condition.
[0069] Whether the second game element in the present application satisfies the grappling hook aiming condition is not absolute, and depends on whether the second game element can be caught by the grappling hook and the distance between the second game element and the target game character.
[0070] If the second game element is an element that cannot be grabbed by the grappling hook, there is no need to consider the distance between the element and the target game character, and the element must not meet the grappling hook aiming condition.
[0071] For example, according to the second game strategy, leaves cannot be grabbed by the grappling hook. At this time, there is no need to consider the distance between the target game character and the leaves, as the leaves do not meet the grappling hook aiming condition.
[0072] According to the second game strategy, teammates cannot be caught by the grappling hook. At this time, there is no need to consider the distance between the target game character and the teammates, and the teammates do not meet the grappling hook aiming conditions.
[0073] If the second game element is an element that can be grabbed by the grappling hook, then whether the game element meets the grappling hook aiming condition needs to consider the distance between the game element and the target game character:
[0074] When the distance between the game element and the target game character is less than or equal to the maximum hook line distance, the game element meets the hook line aiming condition;
[0075] When the distance between the game element and the target game character is greater than the maximum grappling distance, the game element does not meet the grappling aiming condition.
[0076] For example, the maximum grappling distance of a grappling hook equipment is 50 meters, and a house is located 40 meters in front of the target game character. At this time, the house is a game element that meets the grappling hook aiming conditions; if the house is located 60 meters in front of the target game character, then the house is a game element that does not meet the grappling hook aiming conditions.
[0077] The maximum grappling distance of the grappling hook equipment is 75 meters. Enemy A is found at a distance of 70 meters from the target game character. At this time, enemy A meets the grappling hook aiming conditions. Then, enemy A moves to a distance of 80 meters from the target game character. At this time, the moved enemy A does not meet the grappling hook aiming conditions.
[0078] S102. While the grappling hook equipment is flying along the aiming direction, respond to a second control operation on the grappling hook equipment, determine a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
[0079] In an embodiment of the present application, while the grappling hook equipment is flying along the aiming direction, the user performs a second control operation through a corresponding trigger device of the terminal device, and the terminal device determines a first game element that meets the grappling hook aiming condition from the game scene around the current flight position based on the flying position of the grappling hook equipment in the game scene when the user performs the second control operation, and controls the grappling hook equipment to fly toward the first game element.
[0080] In the present application, when the grappling hook equipment is flying along the aiming direction, the user can change the flying direction of the grappling hook equipment by performing the second control operation. After the user performs the first control operation, the initial flying direction of the grappling hook equipment is the aiming direction, and after the user performs the second control operation, the flying direction of the grappling hook equipment is changed from the initial aiming direction to the position of the first game element.
[0081] The first game element here is the game element that meets the grappling hook aiming condition. It should be noted that the first game element is different from the second game element. The second game element is the game element initially selected by the grappling hook equipment, while the first game element is the game element selected by the grappling hook equipment during flight based on the location of the grappling hook equipment.
[0082] That is to say, in the embodiment of the present application, the user can also perform a second control operation after the grappling hook equipment is launched; by performing the second control operation, the user can change the target to which the grappling hook equipment flies, so that the target to which the grappling hook equipment flies can be more in line with the user's expectations, thereby improving the use efficiency of the grappling hook equipment and further improving the user's gaming experience.
[0083] For example, Figure 7a , Figure 7b As shown, the user controls the target game character to use the grappling equipment to attack enemy B. However, when the grappling equipment is flying toward enemy B, the user finds that enemy B is equipped with attack equipment, and the user does not want the grappling equipment to attack enemy B. At this time, the user performs the second control operation, selects the first game element (stone), and controls the grappling equipment to fly toward the stone, avoiding the grappling equipment from flying toward the position of enemy B.
[0084] In a possible implementation, the user's second control operation can be performed not only when the hook wire equipment is flying toward the first game element, but also when the hook wire equipment is recovered.
[0085] During the process of recovering the grappling hook equipment, in response to the second control operation on the grappling hook equipment, according to the current flying position of the grappling hook equipment in the game scene, the first game element that meets the grappling hook aiming condition is determined from the game scene, and the grappling hook equipment is controlled to fly toward the first game element.
[0086] In a possible implementation, controlling the recovery of the hook rope equipment includes:
[0087] If the aiming direction is the direction of the second game element that meets the hook line aiming condition, respond to the change in the position of the second game element and control the hook line equipment to be recovered;
[0088] If the aiming direction is the direction of the third game element that does not meet the grappling hook aiming conditions, the grappling hook equipment is controlled to be recovered when the grappling hook equipment flies the maximum grappling hook distance.
[0089] In the embodiment of the present application, the process of hook and wire equipment recovery includes two scenarios:
[0090] The first scenario: After the user performs the first control operation, the second game element that the hook equipment flies to is a game element that meets the aiming condition, but the position of the second game element has changed. The game element that originally met the aiming condition becomes a game element that does not meet the aiming condition while the hook equipment is flying towards the game element; at this time, the hook equipment cannot grab the second game element when it flies to the preset position (the initial position of the second game element), and the terminal device controls the hook equipment to retract.
[0091] The second scenario: After the user performs the first control operation, the third game element that the grappling hook equipment flies to is a game element that does not meet the aiming condition. At this time, the grappling hook equipment has no target to grab. When the grappling hook equipment flies to the maximum grappling hook distance, the terminal device controls the grappling hook equipment to be recovered.
[0092] For example, the target game character is chasing enemy C. When the user performs the first control operation, the second game element selected is the first game character (enemy C), and the grappling hook equipment is controlled to fly to the first position of enemy C. Since enemy C is always in a moving state, the position of enemy C has changed during the process of the grappling hook equipment flying to enemy C. Enemy C has moved from the first position to the second position, while the grappling hook equipment is still flying to the first position. When the grappling hook equipment reaches the first position, it can no longer grab enemy C, and then the grappling hook equipment is recovered because it grabs nothing.
[0093] For another example, the maximum grappling hook distance is 50 meters. The user is a beginner in the game and does not understand the specific use of the grappling hook equipment. When the user performs the first control operation, he selects the sky as the third game element and controls the grappling hook equipment to fly toward the sky. When the grappling hook equipment flies 50 meters toward the sky, it is recovered.
[0094] In a possible implementation, Figure 2 As shown, when determining the first game element that meets the hook line aiming condition from the game scene according to the current flying position of the hook line equipment in the game scene, it includes:
[0095] S201, selecting a target selection area corresponding to the current flight position of the hook wire equipment from the game scene;
[0096] S202: Select a first game element that meets the hook line aiming condition from the game scenes included in the target selection area.
[0097] When selecting the first game element in the present application, a target selection area must first be determined, and then the first game element is selected from the target selection area. The target selection area is determined based on the flight position of the hook equipment and the preset threshold when the user performs the second control operation: the area determined by taking the current flight position of the hook equipment as the center and the preset threshold as the radius is the target selection area. The game scene corresponding to the target selection area includes multiple game elements, and the first game element is selected from these game elements included in the target selection area.
[0098] When selecting the first game element from the game elements included in the target selection area, it is necessary to consider the distance between the game element and the current flight position of the grappling hook equipment and the current attribute priority of the game element.
[0099] In a possible implementation, Figure 3 As shown, if only the distance between the game elements included in the target selection area and the current flight position of the hook equipment is considered, when selecting the first game element, it includes:
[0100] S301, determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area;
[0101] S302: Select a first game element closest to the grappling hook equipment from among the multiple candidate game elements according to the distances between the multiple candidate game elements and the current flying position of the grappling hook equipment.
[0102] In a possible implementation, Figure 4 As shown, if only the current attribute priorities of the game elements included in the target selected area are considered, when selecting the first game element, it includes:
[0103] S401, determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area;
[0104] S402. Selecting a first game element with the highest corresponding attribute priority from the multiple candidate game elements according to the current attribute priorities of the multiple candidate game elements; the current attribute priority is determined according to a first game strategy for the game, and the first game strategy is determined at least according to scene characteristics of the game scene and attribute characteristics of the target game character.
[0105] In a possible implementation, the distance between the game elements included in the target selection area and the current flight position of the grappling hook equipment is considered, and the current attribute priority of the game elements included in the target selection area is considered. When selecting the first game element, it includes:
[0106] Determine multiple first-level candidate game elements that meet the grappling hook aiming condition from the game scene included in the target selection area; select a second-level candidate game element closest to the grappling hook equipment from the multiple first-level candidate game elements according to the distance between the multiple first-level candidate game elements and the current flight position of the grappling hook equipment;
[0107] If there are multiple second-level candidate game elements, according to the current attribute priorities of the multiple second-level candidate game elements, select the third-level candidate game element with the highest corresponding attribute priority from the multiple second-level candidate game elements;
[0108] Alternatively, multiple first-level candidate game elements that meet the hook aiming condition are determined from the game scene included in the target selection area; and the second-level candidate game element with the highest corresponding attribute priority is selected from the multiple first-level candidate game elements according to the current attribute priorities of the multiple first-level candidate game elements;
[0109] If there are multiple secondary candidate game elements, a tertiary candidate game element closest to the grappling hook equipment is selected from the multiple secondary candidate game elements according to the distances between the multiple secondary candidate game elements and the current flight positions of the grappling hook equipment.
[0110] If there is only one third-level candidate game element selected in the above manner, the third-level candidate game element is used as the first game element;
[0111] If there are still multiple third-level candidate game elements selected in the above manner, the above method further includes:
[0112] In response to the selection operation for the third-level candidate game element, a first game element is selected from the plurality of third-level candidate game elements, wherein the third-level candidate game element is selected by the terminal device from the game elements meeting the aiming condition in the target selection area according to the distance between the game element and the current flight position of the grappling hook equipment and the current attribute priority of the game element.
[0113] In an embodiment of the present application, when determining the first game element from the target selected area, it can be determined based on the distance between the game element included in the target selected area and the current flight position of the grappling hook equipment or based on the current attribute priority of the game element included in the target selected area. If there are multiple game elements determined in the above manner, the distance and attribute priority can be combined to make a comprehensive judgment, and the game element closest to the grappling hook equipment and with the highest corresponding attribute priority can be selected from the game elements included in the target selected area. If the distance and attribute priority are combined and the game elements determined are still multiple, the first game element can be selected from them in response to the user's selection operation.
[0114] In a possible implementation, the grappling hook equipment is controlled to fly toward the first game element in the following manner:
[0115] The first game element is controlled to absorb the grappling hook equipment, so that the grappling hook equipment flies toward the first game element and grabs the first game element.
[0116] In the embodiment of the present application, the terminal device generates a corresponding control adsorption signal according to the location of the first game element, and then controls the grappling hook equipment to fly to the location of the first game element according to the control adsorption signal.
[0117] For example, the first game element is in the third position, and the terminal device generates a corresponding first adsorption control signal according to the third position of the first game element; the grappling hook equipment flies to the third position of the first game element according to the first adsorption control signal.
[0118] When the hook equipment flies to the third position where the first game element is located, the terminal device detects the third position to determine whether the first game element still exists at the third position. If the first game element exists at the third position, the hook equipment is controlled to grab the first game element; if the first game element moves from the third position to the fourth position, the terminal device determines whether the hook equipment grabs the first game element based on the distance between the fourth position and the third position.
[0119] In a possible implementation, the above method further includes:
[0120] If it is detected that the position of the first game element has changed and the changed position of the first game element is still within the target selected area, the adsorption route of the grappling hook equipment is controlled to be oriented toward the first game element after the position change.
[0121] If it is detected that the position of the first game element has changed and the changed position of the first game element is outside the target selected area, the adsorption route of the grappling hook equipment is controlled to be oriented toward the first game element before the position change.
[0122] In the present application, the first game element moves from the third position to the fourth position. If the distance between the fourth position and the third position is less than or equal to a preset threshold, that is, the fourth position is still within the target selection area centered on the third position and determined by the preset threshold, the adsorption route of the grappling hook equipment changes from flying toward the initial third position to flying toward the moved fourth position; if the distance between the fourth position and the third position is greater than the preset threshold, that is, the fourth position is outside the target selection area centered on the third position and determined by the preset threshold, the adsorption route of the grappling hook equipment still flies toward the initial third position.
[0123] In a possible implementation, the above method further includes:
[0124] If it is detected that the position of the first game element has changed and the position of the first game element after the change is outside the target selected area, the adsorption route of the grappling hook equipment is controlled to be toward the first game element before the position change;
[0125] Respond to the first game element before the grappling hook equipment reaches the position change, and control the grappling hook equipment recovery.
[0126] The first game element moves from the third position to the fourth position, and the distance between the fourth position and the third position is greater than the preset threshold, that is, the fourth position is outside the target selection area centered on the third position and determined by the preset threshold, and the adsorption route of the grappling hook equipment is still flying towards the initial third position.
[0127] When the hook wire equipment flies to the third position, there is no object to grab and it cannot be grabbed. At this time, the terminal device controls the hook wire equipment to be recovered.
[0128] For example, when the hook equipment is flying toward the first game element, the first game element moves from the third position to the fourth position. In the embodiment of the present application, the terminal device generates a corresponding first adsorption control signal according to the third position of the first game element; the hook equipment flies to the third position of the first game element according to the first adsorption control signal.
[0129] In the process of the hook equipment flying to the third position according to the first adsorption control signal, the position of the first game element changes from the third position to the fourth position, and the terminal device determines the distance between the fourth position and the third position. If the distance between the fourth position and the third position is greater than the preset threshold, the terminal device considers that the fourth position does not meet the generation conditions of the control adsorption signal, and the terminal device no longer generates the corresponding second adsorption control signal according to the fourth position.
[0130] Alternatively, in the process of the hook wire equipment flying to the third position according to the first adsorption control signal, the position of the first game element changes from the third position to the fourth position, and the terminal device generates a second adsorption control signal according to the fourth position. However, since the distance between the hook wire equipment and the second control adsorption signal is greater than the preset threshold, the hook wire equipment cannot receive the second control adsorption signal and cannot perform corresponding flight according to the second adsorption signal.
[0131] In a possible implementation, the above method further includes:
[0132] When the hook wire equipment flies toward the first game element, in response to a third control operation on the hook wire equipment, the hook wire equipment is controlled to be recovered.
[0133] During the process of the grappling hook equipment flying toward the first game element based on the first control adsorption signal or the second control adsorption signal, the user can perform a third control operation through the terminal device, and the terminal device responds to the user's third control operation to cancel the grappling hook equipment flying toward the first game element.
[0134] In an embodiment of the present application, the terminal device responds to the user's third control operation and generates a shielding signal, which shields the first control adsorption signal or the second control adsorption signal so that the hook rope equipment cannot receive the first control adsorption signal or the second control adsorption signal, resulting in the hook rope equipment having no guidance direction for flight. At this time, the terminal device controls the recovery of the hook rope equipment.
[0135] Alternatively, the terminal device responds to the user's third control operation and no longer continues to generate the first control adsorption signal or the second control adsorption signal, so that the hook rope equipment cannot continue to receive the first control adsorption signal or the second control adsorption signal, resulting in the hook rope equipment having no guidance direction for flight. At this time, the terminal device controls the recovery of the hook rope equipment.
[0136] In a possible implementation, after the grappling hook equipment grabs the first game element, the method further includes:
[0137] The target game character is controlled to move to the first game element based on the grappling hook equipment.
[0138] After the grappling hook equipment grabs the first game element, the terminal device controls the target game character to fly toward the first game element grabbed by the grappling hook equipment based on the grabbing position of the grappling hook equipment.
[0139] It should be noted that in the embodiment of the present application, in response to the first game element before the grappling hook equipment reaches the position change, the process of controlling the grappling hook equipment to be retracted, in theory, the user can perform the second control operation again, and the terminal device responds to the second control operation of the user, searches for a new first game element again, and controls the grappling hook equipment to fly to the new first game element. In actual games, this time is too short, and the user basically has no possibility of operating again.
[0140] In response to the third control operation on the hook equipment during the process of the hook equipment flying to the first game element, the process of controlling the recovery of the hook equipment can be controlled. In theory, the user can perform the second control operation again, and the terminal device responds to the user's second control operation, searches for a new first game element again, and controls the hook equipment to fly to the new first game element. In actual games, this time is too short, and the user basically has no possibility of operating again.
[0141] Based on the same inventive concept, the present application also provides a control device for a grappling hook equipment in a game corresponding to the control method for the grappling hook equipment in the game. Since the principle of solving the problem by the device in a possible implementation is similar to the control method for the grappling hook equipment in the above-mentioned game in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0142] Figure 5 A schematic diagram of the structure of a control device for a hook and wire equipment in a game provided by an embodiment of the present application is shown. The game includes a target game character, and the target game character is equipped with a hook and wire equipment. The device includes:
[0143] The first control module 501 is used to respond to the first control operation on the hook and wire equipment and control the hook and wire equipment to fly along the aiming direction;
[0144] The determination module 502 is used to respond to the second control operation on the grappling hook equipment when the grappling hook equipment is flying along the aiming direction, determine the first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
[0145] In a possible implementation, the determination module 502 is also used to respond to a second control operation on the grappling hook equipment during the recovery process of the grappling hook equipment, determine a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
[0146] The determination module 502, when used to control the recovery of the hook and line equipment, includes:
[0147] If the aiming direction is the direction of a second game element that meets the hook line aiming condition, in response to the position change of the second game element, the hook line equipment is controlled to be recovered; the second game element is selected from the game scene; the second game element is different from the first game element;
[0148] If the aiming direction is the direction of the third game element that does not meet the grappling hook aiming condition, when the grappling hook equipment flies the maximum grappling hook distance, the grappling hook equipment is controlled to be recovered.
[0149] In a possible implementation, the first game element and the second game element that meet the hook line aiming condition include: a game element that can be grabbed by the hook line and meets the hook line grabbing distance; the third game element that does not meet the hook line aiming condition includes: a game element that cannot be grabbed by the hook line; and / or a game element that can be grabbed by the hook line but does not meet the hook line grabbing distance;
[0150] The first game element and the second game element are the first scene element or the first game character that meets the grappling hook aiming condition; the third game element is the second scene element or the second game character that does not meet the aiming condition.
[0151] In a possible implementation, according to the current flight position of the grappling hook equipment in the game scene, determining the first game element that meets the grappling hook aiming condition from the game scene includes:
[0152] Select the target selection area corresponding to the current flight position of the hook equipment from the game scene;
[0153] From the game scene included in the target selection area, select the first game element that meets the grappling hook aiming condition.
[0154] In a possible implementation, selecting a first game element that meets the hook line aiming condition from the game scene included in the target selection area includes:
[0155] Determine a plurality of candidate game elements that meet the hook line aiming condition from the game scene included in the target selection area;
[0156] According to the distances between the multiple candidate game elements and the current flying position of the grappling hook equipment, a first game element closest to the grappling hook equipment is selected from the multiple candidate game elements.
[0157] In a possible implementation, selecting a first game element that meets the hook line aiming condition from the game scene included in the target selection area includes:
[0158] Determine a plurality of first game elements satisfying the grappling hook aiming condition from the game scene included in the target selection area;
[0159] According to the current attribute priorities of multiple first game elements, a first game element with the highest corresponding attribute priority is selected from the multiple first game elements; the current attribute priority is determined according to a first game strategy for the game, and the first game strategy is determined at least according to scene characteristics of the game scene and attribute characteristics of the target game character.
[0160] In a possible implementation, controlling the grappling hook device to fly toward the first game element includes:
[0161] The first game element is controlled to absorb the grappling hook equipment, so that the grappling hook equipment flies toward the first game element and grabs the first game element.
[0162] In a possible implementation, controlling the first game element to absorb the grappling hook equipment includes:
[0163] If it is detected that the position of the first game element has changed and the changed position of the first game element is still within the target selected area, the adsorption route of the grappling hook equipment is controlled to be oriented toward the first game element after the position change.
[0164] In a possible implementation, controlling the first game element to absorb the grappling hook equipment includes:
[0165] If it is detected that the position of the first game element has changed and the changed position of the first game element is outside the target selected area, the adsorption route of the grappling hook equipment is controlled to be oriented toward the first game element before the position change.
[0166] In a possible implementation, the control device of the grappling hook equipment in the game further includes a second control module, and the second control module is used to control the target game character to move to the first game element based on the grappling hook equipment after the grappling hook equipment grabs the first game element.
[0167] In a possible implementation, the control device for the hook wire equipment in the game further includes a third control module, and the third control module is used to respond to a third control operation on the hook wire equipment and control the recovery of the hook wire equipment when the hook wire equipment flies toward the first game element.
[0168] like Figure 6 As shown, an embodiment of the present application provides an electronic device for executing the method for controlling a hook rope equipment in a game of the present application, the device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method for controlling a hook rope equipment in the game when executing the computer program.
[0169] Specifically, the above-mentioned memory and processor may be general-purpose memory and processor, which are not specifically limited here. When the processor runs the computer program stored in the memory, the above-mentioned method for controlling the hook equipment in the game can be executed.
[0170] Corresponding to the method for controlling the grappling hook equipment in the game of the present application, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method for controlling the grappling hook equipment in the game are executed.
[0171] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, the control method of the hook equipment in the above game can be executed.
[0172] In the embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. The system embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.
[0173] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0174] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0175] 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 computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product 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 methods 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.
[0176] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0177] 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-mentioned 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-mentioned 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. They should all 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 controlling a hook equipment in a game, characterized in that: The game includes a game scene and a target game character, and the target game character is equipped with a grappling hook. The control method includes: In response to a first control operation on the hook wire equipment, controlling the hook wire equipment to fly along a targeting direction; When the grappling hook equipment is flying along the aiming direction and has not been recovered, in response to a second control operation on the grappling hook equipment, a first game element that meets the grappling hook aiming condition is determined from the game scene according to the current flying position of the grappling hook equipment in the game scene, and the grappling hook equipment is controlled to fly toward the first game element.
2. The method for controlling the hook equipment in the game according to claim 1, characterized in that: The control method further comprises: During the process of recovering the grappling hook equipment, in response to a second control operation on the grappling hook equipment, according to the current flying position of the grappling hook equipment in the game scene, a first game element that meets the grappling hook aiming condition is determined from the game scene, and the grappling hook equipment is controlled to fly toward the first game element.
3. The method for controlling the hook equipment in the game according to claim 2, characterized in that: Controls grappling equipment recovery, including: If the aiming direction is the direction of a second game element that meets the hook line aiming condition, in response to the position change of the second game element, the hook line equipment is controlled to be recovered; the second game element is selected from the game scene; the second game element is different from the first game element; If the aiming direction is the direction of the third game element that does not meet the grappling hook aiming condition, when the grappling hook equipment flies the maximum grappling hook distance, the grappling hook equipment is controlled to be recovered.
4. The method for controlling the hook equipment in the game according to claim 3, characterized in that: The first game element and the second game element that meet the hook line aiming condition include: a game element that can be grabbed by the hook line and meets the hook line grabbing distance; the third game element that does not meet the hook line aiming condition includes: a game element that cannot be grabbed by the hook line; and / or a game element that can be grabbed by the hook line but does not meet the hook line grabbing distance; The first game element and the second game element are first scene elements or first game characters that meet the grappling hook aiming condition; the third game element is a second scene element or second game character that does not meet the aiming condition.
5. The method for controlling the hook equipment in the game according to claim 1, characterized in that: The step of determining a first game element satisfying the hookline aiming condition from the game scene according to the current flying position of the hookline equipment in the game scene comprises: Selecting a target selection area corresponding to the current flight position of the grappling hook equipment from the game scene; A first game element that meets the grappling hook aiming condition is selected from the game scenes included in the target selection area.
6. The method for controlling the hook equipment in the game according to claim 5, characterized in that: The step of selecting a first game element that satisfies the hook line aiming condition from the game scene included in the target selection area includes: Determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area; According to the distances between the multiple candidate game elements and the current flying position of the grappling hook equipment, a first game element closest to the grappling hook equipment is selected from the multiple candidate game elements.
7. The method for controlling the hook equipment in the game according to claim 5, characterized in that: The step of selecting a first game element that satisfies the hook line aiming condition from the game scene included in the target selection area includes: Determining a plurality of candidate game elements that meet the hook line aiming condition from the game scenes included in the target selection area; According to the current attribute priorities of multiple candidate game elements, a first game element with the highest corresponding attribute priority is selected from the multiple candidate game elements; the current attribute priority is determined according to a first game strategy for the game, and the first game strategy is determined at least according to the scene characteristics of the game scene and the attribute characteristics of the target game character.
8. The method for controlling the hook equipment in the game according to claim 5, characterized in that: The step of controlling the grappling hook equipment to fly toward the first game element comprises: The first game element is controlled to absorb the grappling hook equipment, so that the grappling hook equipment flies toward the first game element and grabs the first game element.
9. The method for controlling the hook equipment in the game according to claim 8, characterized in that: The controlling the first game element to absorb the hook equipment includes: If it is detected that the position of the first game element has changed and the changed position of the first game element is still within the target selected area, the adsorption route of the grappling hook equipment is controlled to be toward the first game element after the position change.
10. The method for controlling the hook equipment in the game according to claim 8, characterized in that: The controlling the first game element to absorb the hook equipment includes: If it is detected that the position of the first game element has changed and the changed position of the first game element is outside the target selected area, the adsorption route of the grappling hook equipment is controlled to be toward the first game element before the position change.
11. The method for controlling a hook equipment in a game according to claim 8, characterized in that: After the grappling hook equipment grabs the first game element, the control method further includes: The target game character is controlled to move to the first game element based on the grappling hook equipment.
12. The method for controlling the hook equipment in the game according to claim 1, characterized in that: The method further comprises: In the process of the grappling hook equipment flying toward the first game element, in response to a third control operation on the grappling hook equipment, the grappling hook equipment is controlled to be recovered.
13. A control device for a hook equipment in a game, characterized in that: The game includes a game scene and a target game character, the target game character is equipped with a grappling hook, and the device includes: A first control module, configured to control the hook wire equipment to fly along a targeting direction in response to a first control operation on the hook wire equipment; The determination module is used to respond to a second control operation on the grappling hook equipment when the grappling hook equipment is flying along the aiming direction and has not been recovered, determine a first game element that meets the grappling hook aiming condition from the game scene according to the current flying position of the grappling hook equipment in the game scene, and control the grappling hook equipment to fly toward the first game element.
14. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the method for controlling a hook equipment in a game as described in any one of claims 1 to 12 are performed.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for controlling a hook rope equipment in a game as claimed in any one of claims 1 to 12 are executed.