Interactive control method, device and electronic equipment for battle tactics
Patent Information
- Application Number
- CN202211380780.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-04
- Publication Date
- 2026-08-21
- Estimated Expiration
- 2042-11-04
AI Technical Summary
然而该方式操作过程较为繁琐,影响游戏体验
[0009]上述一种对战战术的交互控制方法、装置及电子设备,响应于受控虚拟对象对应的对局触发操作,控制受控虚拟对象基于预设的初始战术参与游戏对局;响应作用于图形用户界面的第一滑动操作,确定第一滑动操作对应的目标战术;控制受控虚拟对象执行目标战术。该方式中,玩家可以通过滑动操作切换受控虚拟对象在对战过程中的战术,提高了玩家的游戏体验。
Smart Images

Figure CN115738248B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of game interaction technology, and more specifically, to an interactive control method, device, and electronic device for combat tactics. Background Technology
[0002] In online games, when a player controls one or more controlled virtual objects to fight against a target virtual object, they can change tactics by altering the combat positions and skill release order of multiple controlled virtual characters in the game scene, thereby increasing the chances of victory. Related technologies typically include tactical buttons in the graphical user interface displaying the game scene, allowing players to switch tactics by clicking these buttons. However, this method is unsuitable for fast-paced matches, as players need to change tactics while controlling controlled virtual objects, making precise clicking of the tactical buttons difficult and prone to misoperation. Alternatively, the battle can be paused, allowing players to change tactics from the paused interface. However, this method is cumbersome and negatively impacts the gaming experience. Summary of the Invention
[0003] In view of this, the purpose of the present invention is to provide an interactive control method, device and electronic device for combat tactics, so as to improve the player's gaming experience.
[0004] In a first aspect, embodiments of the present invention provide an interactive control method for combat tactics, which provides a graphical user interface through a terminal device; the graphical user interface displays a scene screen of the game scene where the controlled virtual object is located; the method includes: responding to a game trigger operation corresponding to the controlled virtual object, controlling the controlled virtual object to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; responding to a first sliding operation acting on the graphical user interface, determining the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation have a corresponding relationship with the target tactic; the specified operation parameters include one or more of the following: the starting point, sliding direction, or operation area of the first sliding operation; controlling the controlled virtual object to execute the target tactic.
[0005] Secondly, embodiments of the present invention provide an interactive control device for combat tactics, which provides a graphical user interface through a terminal device; the graphical user interface displays the scene screen of the game scene where the controlled virtual object is located; the device includes: a game triggering module, used to respond to a game triggering operation corresponding to the controlled virtual object, and control the controlled virtual object to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; a target tactic determination module, used to respond to a first sliding operation acting on the graphical user interface, and determine the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation have a corresponding relationship with the target tactic; the specified operation parameters include one or more of the following: the starting point, sliding direction, or operation area of the first sliding operation; and a target tactic execution module, used to control the controlled virtual object to execute the target tactic.
[0006] Thirdly, embodiments of the present invention provide an electronic device, including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor executes the machine-executable instructions to implement the above-mentioned interactive control method for combat tactics.
[0007] Fourthly, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by a processor, the machine-executable instructions cause the processor to implement the aforementioned interactive control method for combat tactics.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The aforementioned interactive control method, device, and electronic device for combat tactics respond to a game trigger operation corresponding to a controlled virtual object, controlling the controlled virtual object to participate in the game based on a preset initial tactic; responding to a first swipe operation acting on the graphical user interface, determining the target tactic corresponding to the first swipe operation; and controlling the controlled virtual object to execute the target tactic. In this method, players can switch the tactics of the controlled virtual object during the battle through swipe operations, improving the player's gaming experience.
[0010] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0012] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0013] Figure 1 A flowchart illustrating an interactive control method for combat tactics provided in an embodiment of the present invention;
[0014] Figure 2 A schematic diagram of a graphical user interface including an edge region provided in an embodiment of the present invention;
[0015] Figure 3 A schematic diagram of another graphical user interface including an edge region provided in an embodiment of the present invention;
[0016] Figure 4 A schematic diagram of a graphical user interface including an edge region and a central region provided for an embodiment of the present invention;
[0017] Figure 5 A schematic diagram of a graphical user interface including multiple operation areas provided in an embodiment of the present invention;
[0018] Figure 6 A schematic diagram of the structure of an interactive control device for combat tactics provided in an embodiment of the present invention;
[0019] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0021] In related technologies, online games for multiplayer competitive sports such as football, basketball, and volleyball, or online games where multiple players team up to fight, usually require the setting of certain battle tactics, such as the positions of each virtual character in the scene and the order in which they launch attacks.
[0022] Football mobile games often involve frequent tactical switching, such as creating offside traps, pushing forward with all players, or retreating to defend. While a tactical button can be provided on the interface for switching tactics, in fast-paced matches, players also need to control the movement of individual players, making precise button clicks difficult and prone to misoperation. Alternatively, a pause button can be used during the match to access a pause interface for tactical adjustments, but this method is cumbersome, disruptive, and negatively impacts the player experience.
[0023] Based on this, embodiments of the present invention provide an interactive control method, device, and electronic device for combat tactics, which can be applied to various virtual item trading scenarios.
[0024] The interactive control method for combat tactics disclosed in one embodiment of this invention can run on a local terminal device or a server. When the interactive control method for combat tactics runs on a server, the method can be implemented and executed based on a cloud interactive system, wherein the cloud interactive system includes a server and client devices.
[0025] In an optional implementation, various cloud applications, such as cloud gaming, can run under the cloud interaction system. Taking cloud gaming as an example, cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game program and the game screen presentation are separated. The storage and execution of interactive control methods for combat tactics are completed on the cloud gaming server. The client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission capabilities located close to the user, such as a mobile terminal, television, computer, or PDA; however, the information processing is performed by the cloud gaming server in the cloud. When playing the game, the player operates the client device to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game screen and other data, returns it to the client device via the network, and finally, the client device decodes and outputs the game screen.
[0026] In an optional implementation, taking a game as an example, the local terminal device stores the game program and is used to display the game screen. The local terminal device is used to interact with the player through a graphical user interface (GUI), i.e., conventionally by downloading, installing, and running the game program via an electronic device. The local terminal device can provide the GUI to the player in various ways, such as rendering it on the terminal's display screen or providing it to the player via holographic projection. For example, the local terminal device can include a display screen for displaying the GUI, which includes game screens, and a processor for running the game, generating the GUI, and controlling the display of the GUI on the display screen.
[0027] In one possible implementation, this invention provides an interactive control method for combat tactics, which provides a graphical user interface (GUI) through a terminal device; the GUI displays a scene of the game environment where the controlled virtual object is located. The terminal device can be either the aforementioned local terminal device or a client device in the aforementioned cloud interaction system. Figure 1 As shown, the method includes the following steps:
[0028] Step S102: In response to the game trigger operation corresponding to the controlled virtual object, control the controlled virtual object to participate in the game based on the preset initial tactics; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship.
[0029] The aforementioned match triggering operation can take many forms. For example, after a player selects a controlled virtual object to participate in the match via touch, they can click the control indicating the start of the match, thus triggering the match. Alternatively, a player can select an opponent in the game match, i.e., the aforementioned target virtual object, via touch, and then click the confirmation control, thus triggering the match. There are many possible operation methods, which are not limited here.
[0030] Players can control multiple virtual objects on their terminal devices. Initial tactics can be used to set the positional layout of these virtual objects in the game, the order in which skills are released, etc. For example, in a football game, the player controls the positions of multiple players in the game scene, assigning them roles such as forward, center forward, defender, or goalkeeper, as well as the order or duration of their attack or defense. Players can also control a single virtual object on their terminal device, which may carry multiple weapons. The damage, range, and duration of each weapon are usually different. Initial tactics can be used to set the order, duration, and direction of action of these weapons.
[0031] The initial tactics mentioned above can be pre-set by the system or set by the player through their terminal device after considering various factors. When a player chooses to quickly enter a game, the tactics used in their last game can be used as the initial tactics. There are various ways to set the initial tactics, depending on the needs of the game, and no restrictions are placed here.
[0032] Step S104: In response to the first sliding operation applied to the graphical user interface, determine the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation have a corresponding relationship with the target tactic; the specified operation parameters include one or more of the following: the starting point of the first sliding operation, the sliding direction, or the operation area.
[0033] Since players typically use swipe gestures in the game to control the movement of controlled virtual objects, if switching combat tactics is done via the first swipe gesture, it's necessary to differentiate this gesture from the usual swipe gestures used to control the movement of controlled virtual objects. Swipe gestures controlling the movement of controlled virtual objects usually originate from the controlled virtual object, which is typically located in the central area of the game scene. Therefore, the starting point of the first swipe gesture can be predefined as the edge of the graphical user interface, or simply the edge of the graphical user interface.
[0034] In the operating system of a terminal device, swipe operations starting from the top and bottom edges of the graphical user interface are typically pre-configured as system-related operations, such as viewing messages received by the device or displaying the device's battery level and network status. Therefore, the left or right edge of the graphical user interface can be used as the starting point for the first swipe operation, or both edges can be used. The target tactics differ depending on where the starting point is located.
[0035] When a player performs a swipe gesture starting from a point located at the edge of the graphical user interface (GUI), due to the player's precise control and the device's sensitivity in recognizing touch input, the detected starting point is rarely exactly at the edge of the GUI. Therefore, a certain area within the GUI's edge can be defined as the edge region, such as... Figure 2 As shown. If a sliding operation with its starting position located in this edge region is detected, it can be considered a sliding operation used to switch tactics.
[0036] When the starting point of the first swipe operation is located in the edge area, it is also necessary to determine the target tactic corresponding to the first swipe operation based on the swipe position and / or operation area. A controlled virtual object typically corresponds to multiple combat tactics. When a controlled virtual object corresponds to two combat tactics, the left or right edge area of the graphical user interface can be used as the starting point for the first swipe operation. The swipe direction of the first swipe operation can be from left to right or from right to left to switch to another tactic. When a controlled virtual object corresponds to many combat tactics, both the left and right edge areas of the graphical user interface can be used as the starting points for the first swipe operation. When the direction of the first swipe operation is from left to right, the previous tactic of the initial tactic can be switched; when the direction of the first swipe operation is from right to left, the next tactic of the initial tactic can be switched.
[0037] When the controlled virtual objects can be divided into two groups, the edge area of the graphical user interface can also be divided into two parts, such as... Figure 3As shown. When the starting point of the first sliding operation is located in the edge area of the first part and the sliding direction is the set direction, the tactics of the first group of controlled virtual objects are switched; when the starting point of the first sliding operation is located in the edge area of the second part and the sliding direction is the set direction, the tactics of the second group of controlled virtual objects are switched.
[0038] Since the controlled virtual object is in a game state, its attack and defense usually have opposite directions. If the attack and defense processes correspond to multiple tactics and need to be switched separately, the relationship between the attack direction, defense direction, and the starting position and direction of the first sliding operation can be used to determine whether to switch the attack or defense tactic through the first sliding operation.
[0039] Step S106: Control the controlled virtual object to execute the target tactics.
[0040] After determining the target tactic corresponding to the first sliding operation, it is necessary to control the controlled virtual objects to execute the target tactic. This could involve moving the controlled virtual objects from their initial layout position to the target tactic's layout position, or adjusting the number of controlled virtual objects to match the target tactic's number. The specific execution method depends on the target tactic and is not limited here.
[0041] The aforementioned interactive control method for combat tactics responds to a match trigger operation corresponding to the controlled virtual object, controlling the controlled virtual object to participate in the game match based on a preset initial tactic; responds to a first swipe operation acting on the graphical user interface, determining the target tactic corresponding to the first swipe operation; and controls the controlled virtual object to execute the target tactic. In this method, players can switch the controlled virtual object's tactics during the match through swipe operations, improving the player's gaming experience.
[0042] The following embodiments provide a method for determining the specific target tactic corresponding to a first swipe operation applied to a graphical user interface.
[0043] When a player performs the first swipe operation on the graphical user interface, it is necessary to respond to the first swipe operation on the graphical user interface, listen to the touch point of the first swipe operation, determine the specified operation parameters such as the start point of the touch point, the swipe direction, and the operation area, and further determine the target tactic corresponding to the first swipe operation based on the specified operation parameters of the touch point on the graphical user interface.
[0044] Before determining the target tactic, it's crucial to ascertain whether the swipe operation is the first swipe used to switch tactics. Edge regions can be pre-defined in the graphical user interface (GUI) as needed; if multiple tactical switching methods exist, multiple edge regions are typically required, as the target tactic corresponding to the swipe operation differs depending on the starting point's location within those regions. Specifically, first determine if the touch point's starting point in the GUI is located within the GUI's edge region; if so, the swipe operation can be preliminarily considered the first swipe operation. Then, based on the swipe direction, determine the target tactic corresponding to the first swipe operation.
[0045] When a controlled virtual object corresponds to multiple combat tactics, and the method of switching tactics needs to be set to switch between the previous tactic and the next tactic, a first edge region and a second edge region can be defined in the graphical user interface. For example... Figure 4 As shown, a first edge region located at the left edge of the graphical user interface and a second edge region located at the right edge of the graphical user interface are respectively defined. Furthermore, as... Figure 4 As shown, the graphical user interface also includes a central area. The sliding direction can be from the first edge area and the second edge area towards the central area, as... Figure 4 As shown, the arrow indicates the direction of the sliding operation.
[0046] When there are many combat tactics corresponding to a controlled virtual object, these combat tactics are usually arranged according to a preset switching order. Based on Figure 4 The specific method for determining the target tactic corresponding to the first sliding operation using the edge area, central area, and sliding direction shown is as follows: If the sliding direction of the touch point is from the first edge area of the graphical user interface to the central area, the combat tactic that precedes the initial tactic in the switching sequence is determined as the target tactic corresponding to the first sliding operation; if the sliding direction of the touch point is from the second edge area of the graphical user interface to the central area, the combat tactic that follows the initial tactic in the switching sequence is determined as the target tactic corresponding to the first sliding operation.
[0047] When a controlled virtual object corresponds to two combat tactics, these two tactics are referred to as the first tactic and the second tactic, respectively. The left and right edge regions can be set in the graphical user interface. When determining the target corresponding to the first swipe operation, if the touch point's starting point in the graphical user interface is located in the left edge region and the swipe direction is from left to right, the first tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first swipe operation; if the touch point's starting point in the graphical user interface is located in the right edge region and the swipe direction is from right to left, the second tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first swipe operation.
[0048] In some games, controlled virtual objects correspond to preset combat directions during gameplay, which typically include offensive and defensive directions; the defensive direction is the opposite of the offensive direction. For example, in a soccer game, a player dribbling the ball towards the opponent's goal is an offensive direction, while a player retreating towards their own goal is a defensive direction. Correspondingly, target tactics include target offensive tactics or target defensive tactics; controlled virtual objects correspond to multiple offensive tactics and multiple defensive tactics.
[0049] In the above scenario, it is typically necessary to first determine whether the sliding direction of the touch point is consistent with the attack direction. If the sliding direction is consistent with the attack direction, the target attack tactic corresponding to the sliding operation is determined based on multiple attack tactics corresponding to the controlled virtual object. If they are inconsistent, it is then determined whether the sliding direction is consistent with the defense direction. If the sliding direction is consistent with the defense direction, the target defense tactic corresponding to the sliding operation is determined based on multiple defense tactics corresponding to the controlled virtual object. In practice, the order of the steps for determining the consistency between the sliding direction and the attack direction and the consistency between the sliding direction and the defense direction can be interchanged.
[0050] In practical implementation, left and right edge regions can be set in the graphical user interface to correspond to the swipe operations for switching offensive and defensive tactics, respectively. Multiple offensive tactics corresponding to the controlled virtual object are typically arranged in a preset switching order, with the initial tactic including the initial offensive tactic. When determining the target offensive tactic corresponding to the swipe operation, if the attack direction is from left to right and the swipe direction is also from left to right, the offensive tactic following the initial offensive tactic in the switching order is determined as the target offensive tactic. If the attack direction is from right to left and the swipe direction is also from right to left, the offensive tactic following the initial offensive tactic in the switching order is determined as the target offensive tactic. This method can only switch offensive tactics in one direction according to the switching order and is more suitable for situations where the controlled virtual object has few offensive tactics.
[0051] Similarly, the multiple defensive tactics corresponding to the controlled virtual object are usually arranged according to a preset switching order; the initial tactic includes the initial defensive tactic. Corresponding to the above process of determining the target offensive tactic, the process of determining the target defensive tactic is as follows: if the defensive direction is from left to right and the sliding direction of the touch point is from left to right, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction of the touch point is from right to left, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation. Likewise, this method can only switch defensive tactics in one direction according to the switching order, and is more suitable for situations where the controlled virtual object has few defensive tactics.
[0052] When there are many offensive and defensive tactics corresponding to the controlled virtual object, the above-mentioned graphical user interface can be set with upper left, lower left, upper right, and lower right operation areas. This allows different combat tactics to be switched when the first swipe operation is located in different operation areas, such as... Figure 5 At this point, the specified operation parameters for the first sliding operation also include the operation area, used to distinguish the target tactic corresponding to the sliding operation. Assuming the attack direction is from left to right or from right to left, the corresponding defense direction is from right to left or from left to right. Multiple attack tactics corresponding to the controlled virtual object are arranged according to a preset switching order, and multiple defense tactics corresponding to the controlled virtual object are also arranged according to a preset switching order. The initial tactics include the initial attack tactic and the initial defense tactic.
[0053] In the above situations, the specific methods for determining the target offensive tactic are as follows: If the attack direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the upper left operating area, the offensive tactic that precedes the initial offensive tactic in the switching sequence is determined as the target offensive tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the lower left operating area, the offensive tactic that follows the initial offensive tactic in the switching sequence is determined as the target offensive tactic corresponding to the sliding operation; if the attack direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the upper right operating area, the offensive tactic that precedes the initial offensive tactic in the switching sequence is determined as the target offensive tactic corresponding to the sliding operation; if the attack direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the lower right operating area, the offensive tactic that follows the initial offensive tactic in the switching sequence is determined as the target offensive tactic corresponding to the sliding operation.
[0054] Correspondingly, in the above situations, the specific methods for determining the target defensive tactic are as follows: If the defensive direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the upper left operating area, the defensive tactic preceding the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the lower left operating area, the defensive tactic following the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the upper right operating area, the defensive tactic preceding the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the lower right operating area, the defensive tactic following the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation.
[0055] This invention also provides another interactive control method for combat tactics. This method... Figure 1 This method is implemented based on the method shown. It is applied to online football games. The method allows users to switch preset tactics by swiping their finger from outside the screen on the left or right side (equivalent to the aforementioned "graphical user interface"), reducing the need for control settings and accidental operations.
[0056] Normally, when playing games on mobile devices, swiping in from the top and bottom edges of the screen is a global system operation. However, swiping in from the left and right edges of the screen in landscape mode does not involve a specific operation. Therefore, the following interaction method can be used to switch between preset tactical plans:
[0057] (1) Because football games have a lateral attack direction, if the player controls the team to attack from left to right, then when the finger is swiped from the left side of the screen into the screen, it corresponds to switching the attack tactic; when the finger is swiped from the right side of the screen into the screen, it corresponds to switching the defense tactic. The above "tactics" can also be called "plans".
[0058] (2) If the player attacks from right to left, then the opposite applies.
[0059] (3) This method is also applicable to the case of a preset tactic with only one type. In this case, the interaction operation can be: when the finger is swiped from the left side of the screen into the screen, it corresponds to switching to the next tactic; when the finger is swiped from the right side of the screen into the screen, it corresponds to switching to the previous tactic.
[0060] The above method allows for quick and accurate switching of tactics by swiping your finger from the left or right side of the screen into the center, reducing the need for control settings and accidental operation. It also allows for rapid adjustment of tactics based on the situation on the field without pausing, thus improving the user experience.
[0061] For the above method embodiments, see Figure 6 The illustrated interactive control device for combat tactics provides a graphical user interface (GUI) via a terminal device; the GUI displays a scene of the game environment where the controlled virtual object is located; the device includes:
[0062] The game triggering module 602 is used to respond to the game triggering operation corresponding to the controlled virtual object and control the controlled virtual object to participate in the game based on the preset initial tactics; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship;
[0063] The target tactic determination module 604 is used to respond to a first sliding operation applied to the graphical user interface and determine the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation have a corresponding relationship with the target tactic; the specified operation parameters include one or more of the following: the starting point of the first sliding operation, the sliding direction, or the operation area;
[0064] The target tactical execution module 606 is used to control the controlled virtual object to execute target tactics.
[0065] The aforementioned interactive control device for combat tactics responds to a game trigger operation corresponding to a controlled virtual object, controlling the controlled virtual object to participate in the game based on a preset initial tactic; responds to a first swipe operation applied to the graphical user interface, determining the target tactic corresponding to the first swipe operation; and controls the controlled virtual object to execute the target tactic. In this method, players can switch the controlled virtual object's tactics during combat through swipe operations, improving the player's gaming experience.
[0066] The aforementioned target tactic determination module is also used to: respond to a first sliding operation applied to the graphical user interface, listen to the touch point of the first sliding operation; and determine the target tactic corresponding to the first sliding operation based on the specified operation parameters of the touch point in the graphical user interface.
[0067] The aforementioned graphical user interface includes an edge region; the specified operation parameters include the starting point and sliding direction of the first sliding operation; the aforementioned target tactic determination module is also used to: determine whether the starting point of the touch point in the graphical user interface is located in the edge region of the graphical user interface; if so, determine the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point.
[0068] The aforementioned edge regions include a first edge region and a second edge region; the graphical user interface also includes a central region; the controlled virtual objects correspond to multiple combat tactics; the combat tactics are arranged according to a preset switching order; the aforementioned target tactic determination module is further used to: if the sliding direction of the touch point is from the first edge region of the graphical user interface to the central region, determine the combat tactic that is before the initial tactic in the switching order as the target tactic corresponding to the first sliding operation; if the sliding direction of the touch point is from the second edge region of the graphical user interface to the central region, determine the combat tactic that is after the initial tactic in the switching order as the target tactic corresponding to the first sliding operation.
[0069] The aforementioned edge regions include the left edge region and the right edge region; the controlled virtual object corresponds to the first tactic and the second tactic; the aforementioned target tactic determination module is further configured to: if the touch point is located in the left edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from left to right, determine the first tactic corresponding to the controlled virtual object as the target tactic corresponding to the first sliding operation; if the touch point is located in the right edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from right to left, determine the second tactic corresponding to the controlled virtual object as the target tactic corresponding to the first sliding operation.
[0070] The aforementioned controlled virtual object corresponds to a preset battle direction; the battle direction includes an offensive direction and a defensive direction; the defensive direction is opposite to the offensive direction; the target tactic includes a target offensive tactic or a target defensive tactic; the controlled virtual object corresponds to multiple offensive tactics and multiple defensive tactics; the aforementioned target tactic determination module is also used to: determine whether the sliding direction of the touch point is consistent with the offensive direction; if the sliding direction of the touch point is consistent with the offensive direction, determine the target offensive tactic corresponding to the sliding operation based on the multiple offensive tactics corresponding to the controlled virtual object; if they are inconsistent, determine whether the sliding direction of the touch point is consistent with the defensive direction; if the sliding direction of the touch point is consistent with the defensive direction, determine the target defensive tactic corresponding to the sliding operation based on the multiple defensive tactics corresponding to the controlled virtual object.
[0071] The aforementioned edge regions include the left edge region and the right edge region; multiple attack tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes the initial attack tactic; the aforementioned target tactic determination module is also used to: if the attack direction is from left to right and the sliding direction of the touch point is from left to right, determine the attack tactic that is after the initial attack tactic in the switching order as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left and the sliding direction of the touch point is from right to left, determine the attack tactic that is after the initial attack tactic in the switching order as the target attack tactic corresponding to the sliding operation.
[0072] The aforementioned edge regions include the left edge region and the right edge region; multiple defensive tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes the initial defensive tactic; the aforementioned target tactic determination module is also used to: if the defensive direction is from left to right and the sliding direction of the touch point is from left to right, determine the defensive tactic that is after the initial defensive tactic in the switching order as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction of the touch point is from right to left, determine the defensive tactic that is after the initial defensive tactic in the switching order as the target defensive tactic corresponding to the sliding operation.
[0073] The aforementioned graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; specified operation parameters also include the operation area; the attack direction is from left to right or from right to left; multiple attack tactics are arranged according to a preset switching order; the initial tactic includes the initial attack tactic; the aforementioned target tactic determination module is further used to: if the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, determine the attack tactic that precedes the initial attack tactic in the switching order as the target attack tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right... If the sliding operation area is located in the lower left operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left and the sliding direction is from right to left, and the sliding operation area is located in the upper right operating area, the attack tactic preceding the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left and the sliding direction is from right to left, and the sliding operation area is located in the lower right operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation.
[0074] The graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; specified operation parameters also include the operation area; the defensive direction is from left to right or from right to left; multiple defensive tactics are arranged according to a preset switching order; the initial tactic includes the initial defensive tactic; the target tactic determination module is further used to: if the defensive direction is from left to right, the sliding direction is from left to right, and the sliding operation operation area is located in the upper left operation area, determine the defensive tactic that precedes the initial defensive tactic in the switching order as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from left to right, the sliding direction is from left to right... If the sliding operation area is located in the lower left operating area, the defensive tactic following the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction is from right to left, and the sliding operation area is located in the upper right operating area, the defensive tactic preceding the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction is from right to left, and the sliding operation area is located in the lower right operating area, the defensive tactic following the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation.
[0075] This embodiment also provides an electronic device, including a processor and a memory. The memory stores machine-executable instructions that can be executed by the processor. The processor executes the machine-executable instructions to implement the aforementioned interactive control method for combat tactics, for example:
[0076] A graphical user interface is provided through a terminal device; the graphical user interface displays the scene of the game scene where the controlled virtual object is located; the method includes: responding to a game trigger operation corresponding to the controlled virtual object, controlling the controlled virtual object to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; responding to a first sliding operation acting on the graphical user interface, determining the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation correspond to the target tactic; the specified operation parameters include one or more of the following: the starting point, sliding direction, or operation area of the first sliding operation; controlling the controlled virtual object to execute the target tactic.
[0077] In the above method, players can switch the tactics of the controlled virtual object during the battle by sliding, which improves the player's gaming experience.
[0078] Optionally, the steps of responding to the first sliding operation of the graphical user interface and determining the target tactic corresponding to the first sliding operation include: responding to the first sliding operation of the graphical user interface and listening to the touch point of the first sliding operation; and determining the target tactic corresponding to the first sliding operation based on the specified operation parameters of the touch point in the graphical user interface.
[0079] Optionally, the graphical user interface includes an edge region; the specified operation parameters include the starting point and sliding direction of the first sliding operation; the step of determining the target tactic corresponding to the first sliding operation based on the specified operation parameters of the touch point in the graphical user interface includes: determining whether the starting point of the touch point in the graphical user interface is located in the edge region of the graphical user interface; if so, determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point.
[0080] Optionally, the aforementioned edge region includes a first edge region and a second edge region; the graphical user interface also includes a central region; the controlled virtual object corresponds to multiple combat tactics; the combat tactics are arranged according to a preset switching order; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: if the sliding direction of the touch point is from the first edge region of the graphical user interface to the central region, the combat tactic located before the initial tactic in the switching order is determined as the target tactic corresponding to the first sliding operation; if the sliding direction of the touch point is from the second edge region of the graphical user interface to the central region, the combat tactic located after the initial tactic in the switching order is determined as the target tactic corresponding to the first sliding operation.
[0081] Optionally, the aforementioned edge region includes a left edge region and a right edge region; the controlled virtual object corresponds to a first tactic and a second tactic; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: if the touch point is located in the left edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from left to right, the first tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation; if the touch point is located in the right edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from right to left, the second tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation.
[0082] Optionally, the aforementioned controlled virtual object corresponds to a preset battle direction; the battle direction includes an offensive direction and a defensive direction; the defensive direction is opposite to the offensive direction; the target tactic includes a target offensive tactic or a target defensive tactic; the controlled virtual object corresponds to multiple offensive tactics and multiple defensive tactics; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: determining whether the sliding direction of the touch point is consistent with the offensive direction; if the sliding direction of the touch point is consistent with the offensive direction, determining the target offensive tactic corresponding to the sliding operation based on the multiple offensive tactics corresponding to the controlled virtual object; if they are inconsistent, determining whether the sliding direction of the touch point is consistent with the defensive direction; if the sliding direction of the touch point is consistent with the defensive direction, determining the target defensive tactic corresponding to the sliding operation based on the multiple defensive tactics corresponding to the controlled virtual object.
[0083] Optionally, the aforementioned edge region includes a left edge region and a right edge region; multiple attack tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes an initial attack tactic; the step of determining the target attack tactic corresponding to the sliding operation based on the multiple attack tactics corresponding to the controlled virtual object includes: if the attack direction is from left to right and the sliding direction of the touch point is from left to right, the attack tactic located after the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left and the sliding direction of the touch point is from right to left, the attack tactic located after the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation.
[0084] Optionally, the aforementioned edge region includes a left edge region and a right edge region; multiple defensive tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes an initial defensive tactic; the step of determining the target defensive tactic corresponding to the sliding operation based on the multiple defensive tactics corresponding to the controlled virtual object includes: if the defensive direction is from left to right and the sliding direction of the touch point is from left to right, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction of the touch point is from right to left, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation.
[0085] Optionally, the graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the attack direction is from left to right or from right to left; multiple attack tactics are arranged according to a preset switching order; the initial tactic includes an initial attack tactic; the step of determining the target attack tactic corresponding to the sliding operation based on multiple attack tactics corresponding to the controlled virtual object includes: if the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the attack tactic that precedes the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the attack tactic that precedes the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right, the sliding direction is from right to left, the sliding direction is from left to right ... If the attack direction is from left to right, and the sliding direction is from left to right, with the sliding operation area located in the lower left operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left, and the sliding direction is from right to left, with the sliding operation area located in the upper right operating area, the attack tactic preceding the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left, and the sliding direction is from right to left, with the sliding operation area located in the lower right operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation.
[0086] Optionally, the graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the defense direction is from left to right or from right to left; multiple defense tactics are arranged according to a preset switching order; the initial tactic includes an initial defense tactic; the step of determining the target defense tactic corresponding to the sliding operation based on multiple defense tactics corresponding to the controlled virtual object includes: if the defense direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the defense tactic that precedes the initial defense tactic in the switching order is determined as the target defense tactic corresponding to the sliding operation; if the defense direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the defense tactic that precedes the initial defense tactic in the switching order is determined as the target defense tactic corresponding to the sliding operation; if the defense direction is from left to right, the sliding direction is from left to right, the sliding direction is from left to right, and the sliding direction is from right to left, the sliding direction is from left to right ... If the defense direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the lower left operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defense direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the upper right operation area, the defensive tactic that precedes the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defense direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the lower right operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation.
[0087] See Figure 7As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine-executable instructions that can be executed by the processor 100. The processor 100 executes the machine-executable instructions to implement the aforementioned interactive control method for combat tactics.
[0088] Furthermore, Figure 7 The electronic device shown also includes a bus 102 and a communication interface 103, with the processor 100, the communication interface 103 and the memory 101 connected via the bus 102.
[0089] The memory 101 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 103 (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network. The bus 102 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0090] Processor 100 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 100 or by instructions in software form. Processor 100 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a readily available storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 101, and the processor 100 reads the information from memory 101 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.
[0091] This embodiment also provides a machine-readable storage medium storing machine-executable instructions. When the machine-executable instructions are invoked and executed by the processor, the machine-executable instructions cause the processor to implement the above-mentioned interactive control method for combat tactics.
[0092] The present invention provides an interactive control method, apparatus, and electronic device for combat tactics, including a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the preceding method embodiments, for example:
[0093] A graphical user interface is provided through a terminal device; the graphical user interface displays the scene of the game scene where the controlled virtual object is located; the method includes: responding to a game trigger operation corresponding to the controlled virtual object, controlling the controlled virtual object to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; responding to a first sliding operation acting on the graphical user interface, determining the target tactic corresponding to the first sliding operation; wherein, the specified operation parameters of the first sliding operation correspond to the target tactic; the specified operation parameters include one or more of the following: the starting point, sliding direction, or operation area of the first sliding operation; controlling the controlled virtual object to execute the target tactic.
[0094] In the above method, players can switch the tactics of the controlled virtual object during the battle by sliding, which improves the player's gaming experience.
[0095] Optionally, the steps of responding to the first sliding operation of the graphical user interface and determining the target tactic corresponding to the first sliding operation include: responding to the first sliding operation of the graphical user interface and listening to the touch point of the first sliding operation; and determining the target tactic corresponding to the first sliding operation based on the specified operation parameters of the touch point in the graphical user interface.
[0096] Optionally, the graphical user interface includes an edge region; the specified operation parameters include the starting point and sliding direction of the first sliding operation; the step of determining the target tactic corresponding to the first sliding operation based on the specified operation parameters of the touch point in the graphical user interface includes: determining whether the starting point of the touch point in the graphical user interface is located in the edge region of the graphical user interface; if so, determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point.
[0097] Optionally, the aforementioned edge region includes a first edge region and a second edge region; the graphical user interface also includes a central region; the controlled virtual object corresponds to multiple combat tactics; the combat tactics are arranged according to a preset switching order; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: if the sliding direction of the touch point is from the first edge region of the graphical user interface to the central region, the combat tactic located before the initial tactic in the switching order is determined as the target tactic corresponding to the first sliding operation; if the sliding direction of the touch point is from the second edge region of the graphical user interface to the central region, the combat tactic located after the initial tactic in the switching order is determined as the target tactic corresponding to the first sliding operation.
[0098] Optionally, the aforementioned edge region includes a left edge region and a right edge region; the controlled virtual object corresponds to a first tactic and a second tactic; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: if the touch point is located in the left edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from left to right, the first tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation; if the touch point is located in the right edge region at the starting point of the graphical user interface and the sliding direction of the touch point is from right to left, the second tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation.
[0099] Optionally, the aforementioned controlled virtual object corresponds to a preset battle direction; the battle direction includes an offensive direction and a defensive direction; the defensive direction is opposite to the offensive direction; the target tactic includes a target offensive tactic or a target defensive tactic; the controlled virtual object corresponds to multiple offensive tactics and multiple defensive tactics; the step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the touch point includes: determining whether the sliding direction of the touch point is consistent with the offensive direction; if the sliding direction of the touch point is consistent with the offensive direction, determining the target offensive tactic corresponding to the sliding operation based on the multiple offensive tactics corresponding to the controlled virtual object; if they are inconsistent, determining whether the sliding direction of the touch point is consistent with the defensive direction; if the sliding direction of the touch point is consistent with the defensive direction, determining the target defensive tactic corresponding to the sliding operation based on the multiple defensive tactics corresponding to the controlled virtual object.
[0100] Optionally, the aforementioned edge region includes a left edge region and a right edge region; multiple attack tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes an initial attack tactic; the step of determining the target attack tactic corresponding to the sliding operation based on the multiple attack tactics corresponding to the controlled virtual object includes: if the attack direction is from left to right and the sliding direction of the touch point is from left to right, the attack tactic located after the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left and the sliding direction of the touch point is from right to left, the attack tactic located after the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation.
[0101] Optionally, the aforementioned edge region includes a left edge region and a right edge region; multiple defensive tactics corresponding to the controlled virtual object are arranged according to a preset switching order; the initial tactic includes an initial defensive tactic; the step of determining the target defensive tactic corresponding to the sliding operation based on the multiple defensive tactics corresponding to the controlled virtual object includes: if the defensive direction is from left to right and the sliding direction of the touch point is from left to right, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation; if the defensive direction is from right to left and the sliding direction of the touch point is from right to left, the defensive tactic following the initial defensive tactic in the switching order is determined as the target defensive tactic corresponding to the sliding operation.
[0102] Optionally, the graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the attack direction is from left to right or from right to left; multiple attack tactics are arranged according to a preset switching order; the initial tactic includes an initial attack tactic; the step of determining the target attack tactic corresponding to the sliding operation based on multiple attack tactics corresponding to the controlled virtual object includes: if the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the attack tactic that precedes the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the attack tactic that precedes the initial attack tactic in the switching order is determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from left to right, the sliding direction is from left to right, the sliding direction is from right to left, the sliding direction is from left to right ... If the attack direction is from left to right, and the sliding direction is from left to right, with the sliding operation area located in the lower left operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left, and the sliding direction is from right to left, with the sliding operation area located in the upper right operating area, the attack tactic preceding the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation; if the attack direction is from right to left, and the sliding direction is from right to left, with the sliding operation area located in the lower right operating area, the attack tactic following the initial attack tactic in the switching sequence will be determined as the target attack tactic corresponding to the sliding operation.
[0103] Optionally, the graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the defense direction is from left to right or from right to left; multiple defense tactics are arranged according to a preset switching order; the initial tactic includes an initial defense tactic; the step of determining the target defense tactic corresponding to the sliding operation based on multiple defense tactics corresponding to the controlled virtual object includes: if the defense direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the defense tactic that precedes the initial defense tactic in the switching order is determined as the target defense tactic corresponding to the sliding operation; if the defense direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the defense tactic that precedes the initial defense tactic in the switching order is determined as the target defense tactic corresponding to the sliding operation; if the defense direction is from left to right, the sliding direction is from left to right, the sliding direction is from left to right, and the sliding direction is from right to left, the sliding direction is from left to right ... If the defense direction is from left to right, the sliding direction is from left to right, and the sliding operation area is located in the lower left operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defense direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the upper right operation area, the defensive tactic that precedes the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation; if the defense direction is from right to left, the sliding direction is from right to left, and the sliding operation area is located in the lower right operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation.
[0104] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and apparatus described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0105] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through a central area medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.
[0106] If the aforementioned functions are implemented as 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 invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0107] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0108] Finally, it should be noted that the above embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. An interactive control method for combat tactics, characterized in that, A graphical user interface is provided through a terminal device; the graphical user interface displays the scene screen of the game scene where the controlled virtual object is located; the method includes: In response to the game trigger operation corresponding to the controlled virtual object, the controlled virtual object is controlled to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; In response to a first sliding operation applied to the graphical user interface, the touch point of the first sliding operation is monitored; wherein, the specified operation parameters of the first sliding operation correspond to the target tactic; the specified operation parameters include the starting point and sliding direction of the first sliding operation; the graphical user interface includes an edge region; Determine whether the touch point is located in the edge region of the graphical user interface at the starting point of the graphical user interface; If so, determine the target tactic corresponding to the first sliding operation based on the sliding direction of the contact point; Control the controlled virtual object to execute the target tactic; The controlled virtual object corresponds to a preset battle direction; the battle direction includes an offensive direction and a defensive direction; the defensive direction is opposite to the offensive direction; the target tactic includes a target offensive tactic or a target defensive tactic; the controlled virtual object corresponds to multiple offensive tactics and multiple defensive tactics; The step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the contact point includes: Determine whether the sliding direction of the contact point is consistent with the attack direction; If the sliding direction of the touch point is consistent with the attack direction, the target attack tactic corresponding to the sliding operation is determined based on multiple attack tactics corresponding to the controlled virtual object. If they are inconsistent, determine whether the sliding direction of the contact point is consistent with the defensive direction; If the sliding direction of the touch point is consistent with the defensive direction, the target defensive tactic corresponding to the sliding operation is determined based on multiple defensive tactics corresponding to the controlled virtual object.
2. The method according to claim 1, characterized in that, The edge region includes a first edge region and a second edge region; the graphical user interface also includes a central region; the controlled virtual object corresponds to multiple combat tactics; the combat tactics are arranged according to a preset switching order; The step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the contact point includes: If the sliding direction of the touch point is from the first edge area of the graphical user interface to the central area, the combat tactic that is located before the initial tactic in the switching sequence is determined as the target tactic corresponding to the first sliding operation. If the sliding direction of the touch point is from the second edge area of the graphical user interface to the central area, the combat tactic that follows the initial tactic in the switching sequence is determined as the target tactic corresponding to the first sliding operation.
3. The method according to claim 1, characterized in that, The edge region includes a left edge region and a right edge region; the controlled virtual object corresponds to the first tactic and the second tactic; The step of determining the target tactic corresponding to the first sliding operation based on the sliding direction of the contact point includes: If the touch point is located in the left edge region at the starting point of the graphical user interface, and the sliding direction of the touch point is from left to right, the first tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation; If the touch point is located at the right edge region of the starting point of the graphical user interface, and the sliding direction of the touch point is from right to left, the second tactic corresponding to the controlled virtual object is determined as the target tactic corresponding to the first sliding operation.
4. The method according to claim 1, characterized in that, The edge region includes a left edge region and a right edge region; the multiple attack tactics corresponding to the controlled virtual object are arranged in a preset switching order; the initial tactic includes an initial attack tactic; The step of determining the target attack tactic corresponding to the sliding operation based on multiple attack tactics corresponding to the controlled virtual object includes: If the attack direction is from left to right and the sliding direction of the touch point is from left to right, the attack tactic that follows the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation. If the attack direction is from right to left and the sliding direction of the touch point is from right to left, the attack tactic that follows the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation.
5. The method according to claim 1, characterized in that, The edge region includes a left edge region and a right edge region; the multiple defensive tactics corresponding to the controlled virtual object are arranged in a preset switching order; the initial tactic includes an initial defensive tactic; The step of determining the target defensive tactic corresponding to the sliding operation based on multiple defensive tactics corresponding to the controlled virtual object includes: If the defensive direction is from left to right and the sliding direction of the touch point is from left to right, the defensive tactic that is after the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation; If the defensive direction is from right to left and the sliding direction of the touch point is from right to left, the defensive tactic that follows the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation.
6. The method according to claim 1, characterized in that, The graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the attack direction is from left to right or from right to left; the multiple attack tactics are arranged in a preset switching order; the initial tactic includes an initial attack tactic; The step of determining the target attack tactic corresponding to the sliding operation based on multiple attack tactics corresponding to the controlled virtual object includes: If the attack direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the attack tactic that is before the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation. If the attack direction is from left to right and the sliding direction is from left to right, the operation area of the sliding operation is located in the lower left operation area. The attack tactic that is after the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation. If the attack direction is from right to left, the sliding direction is from right to left, and the operation area of the sliding operation is located in the upper right operation area, the attack tactic that precedes the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation. If the attack direction is from right to left, the sliding direction is from right to left, and the operation area of the sliding operation is located in the lower right operation area, the attack tactic that follows the initial attack tactic in the switching sequence is determined as the target attack tactic corresponding to the sliding operation.
7. The method according to claim 1, characterized in that, The graphical user interface includes an upper left operation area, a lower left operation area, an upper right operation area, and a lower right operation area; the specified operation parameters also include the operation area; the defensive direction is from left to right or from right to left; the multiple defensive tactics are arranged in a preset switching order; the initial tactic includes the initial defensive tactic; The step of determining the target defensive tactic corresponding to the sliding operation based on multiple defensive tactics corresponding to the controlled virtual object includes: If the defensive direction is from left to right, the sliding direction is from left to right, and the operation area of the sliding operation is located in the upper left operation area, the defensive tactic that precedes the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation. If the defensive direction is from left to right, and the sliding direction is from left to right, and the operation area of the sliding operation is located in the lower left operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence will be determined as the target defensive tactic corresponding to the sliding operation. If the defensive direction is from right to left, the sliding direction is from right to left, and the operation area of the sliding operation is located in the upper right operation area, the defensive tactic that precedes the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation. If the defensive direction is from right to left, the sliding direction is from right to left, and the operation area of the sliding operation is located in the lower right operation area, the defensive tactic that follows the initial defensive tactic in the switching sequence is determined as the target defensive tactic corresponding to the sliding operation.
8. An interactive control device for combat tactics, characterized in that, A graphical user interface is provided via a terminal device; the graphical user interface displays the scene of the game scene where the controlled virtual object is located; the device includes: The game triggering module is used to respond to the game triggering operation corresponding to the controlled virtual object and control the controlled virtual object to participate in the game based on a preset initial tactic; wherein, in the game, the controlled virtual object and the target virtual object have an adversarial relationship; The target tactic determination module is configured to: respond to a first sliding operation applied to the graphical user interface and monitor the touch point of the first sliding operation; wherein, the specified operation parameters of the first sliding operation correspond to the target tactic; the specified operation parameters include the starting point and sliding direction of the first sliding operation; and the graphical user interface includes an edge region. Determine whether the touch point is located in the edge region of the graphical user interface at the starting point of the graphical user interface; If so, determine the target tactic corresponding to the first sliding operation based on the sliding direction of the contact point; The target tactical execution module is used to control the controlled virtual object to execute the target tactic; The controlled virtual object corresponds to a preset battle direction; the battle direction includes an offensive direction and a defensive direction; the defensive direction is opposite to the offensive direction; the target tactic includes a target offensive tactic or a target defensive tactic; the controlled virtual object corresponds to multiple offensive tactics and multiple defensive tactics; The target tactical determination module is also used for: Determine whether the sliding direction of the contact point is consistent with the attack direction; If the sliding direction of the touch point is consistent with the attack direction, the target attack tactic corresponding to the sliding operation is determined based on multiple attack tactics corresponding to the controlled virtual object. If they are inconsistent, determine whether the sliding direction of the contact point is consistent with the defensive direction; If the sliding direction of the touch point is consistent with the defensive direction, the target defensive tactic corresponding to the sliding operation is determined based on multiple defensive tactics corresponding to the controlled virtual object.
9. An electronic device, characterized in that, It includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the interactive control method of combat tactics as described in any one of claims 1-7.
10. A machine-readable storage medium, characterized in that, The machine-readable storage medium stores machine-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the interactive control method of combat tactics as described in any one of claims 1-7.
Citation Information
Patent Citations
Edge interaction method and mobile terminal
CN107329682A
Football game control method, device and equipment and storage medium
CN112426719A