Game interaction control method and device and electronic equipment
By using a graphical user interface to generate marching paths and waypoints in SLG games, the problem of players having to set their destinations multiple times is solved, improving the operating experience.
Patent Information
- Application Number
- CN202510839580.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-09-16
AI Technical Summary
In SLG games, players need to set the destination of their troops multiple times, which makes marching operations cumbersome and affects the gaming experience.
A graphical user interface is provided through the terminal device to generate a marching route in response to a route drawing operation, and marching waypoints are generated during the route drawing process. Waypoint tasks are set according to the number and type of waypoint confirmation operations to simplify destination setting.
The setting of destinations during the march has been simplified, which improves the game operation experience and reduces the number of operations required by players during the march.
Smart Images

Figure CN120643914A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a method, device and electronic equipment for interactive control of games. Background Art
[0002] In SLG (Simulation Game) games, players can control troops on the march. Once the player sets a destination, the troops will march towards it. If the troops have multiple destinations, the player must first set the first destination. Once the troops reach that destination, the player can then set the next destination, controlling the troops' march to the next destination. This method requires the player to set destinations multiple times during the march, making the process more cumbersome. Summary of the Invention
[0003] In view of this, an object of the present invention is to provide a method, device and electronic device for interactive control of a game, so as to simplify the setting of the destination during the march, thereby improving the gaming experience.
[0004] In a first aspect, an embodiment of the present invention provides an interactive control method for a game, providing a graphical user interface through a terminal device, the graphical user interface displaying at least a portion of a scene screen of a game scene; the game scene includes a virtual object; the method includes: responding to a path drawing operation for the virtual object, drawing a marching path in the game scene; while the path drawing operation continues, responding to at least one waypoint confirmation operation, generating at least one marching waypoint on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of waypoints of the marching waypoints matches the operation number of the waypoint confirmation operation; in response to a path drawing end operation, controlling the virtual object to march along the marching path; when the virtual object marches to the marching waypoint, controlling the virtual object to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0005] In a second aspect, an embodiment of the present invention provides an interactive control device for a game, which provides a graphical user interface through a terminal device, and the graphical user interface displays at least part of a scene screen of a game scene; the game scene includes a virtual object; the device includes: a marching path drawing module, which is used to respond to a path drawing operation for a virtual object and draw a marching path in the game scene; a marching waypoint generation module, which is used to respond to at least one waypoint confirmation operation while the path drawing operation continues, and generate at least one marching waypoint on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of waypoints of the marching waypoints matches the operation number of the waypoint confirmation operation; a marching control module, which is used to control the virtual object to march along the marching path in response to a path drawing end operation; and a waypoint task execution module, which is used to control the virtual object to execute a waypoint task that matches the waypoint type of the marching waypoint when the virtual object marches to the marching waypoint.
[0006] In a third aspect, an embodiment of the present invention provides an electronic device including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned interactive control method of the game.
[0007] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the interactive control method of the above-mentioned game.
[0008] The embodiments of the present invention bring the following beneficial effects:
[0009] The interactive control method, device and electronic device of the above-mentioned game provide a graphical user interface through a terminal device, and the graphical user interface displays at least part of the scene screen of the game scene; the game scene includes virtual objects; in response to a path drawing operation for the virtual object, a marching path is drawn in the game scene; while the path drawing operation continues, in response to at least one waypoint confirmation operation, at least one marching waypoint is generated on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of waypoints of the marching waypoints matches the operation number of the waypoint confirmation operation; in response to the path drawing end operation, the virtual object is controlled to march along the marching path; when the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0010] In this method, during the process of performing a path drawing operation on a virtual object, a marching waypoint is generated according to the operation contact of the path drawing operation when the waypoint confirmation operation is triggered. Then, during the marching process of the virtual object, it is controlled to perform the waypoint task according to the waypoint type of each marching waypoint, which simplifies the setting of the destination during the march and improves the game operation experience.
[0011] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or understood by practicing the present invention. The purposes and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.
[0012] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.
[0014] Figure 1 A flowchart of a method for interactive control of a game provided by an embodiment of the present invention;
[0015] Figure 2 A schematic diagram of a path indication mark provided by an embodiment of the present invention;
[0016] Figure 3 A schematic diagram of a waypoint marker for a marching waypoint provided by an embodiment of the present invention;
[0017] Figure 4 A schematic diagram of a subpath identification and subpath length determination provided by an embodiment of the present invention;
[0018] Figure 5 A schematic diagram of determining a subpath shape provided by an embodiment of the present invention;
[0019] Figure 6 A schematic diagram of a marching route provided by an embodiment of the present invention in which the starting point and the end point are the same;
[0020] Figure 7 A schematic structural diagram of an interactive control device for a game provided by an embodiment of the present invention;
[0021] Figure 8A schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0022] To make the objectives, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work shall fall within the scope of protection of the present invention.
[0023] In SLG (Simulation Game) games, players can control troops to march. When the player completes the setting of a destination, the troops can march towards the destination.
[0024] When a unit has multiple destinations, the player needs to complete the settings for the first destination first. After the unit reaches the first destination, the player needs to complete the settings for the next destination, thus controlling the unit's march to the next destination, and so on. This method requires the player to set destinations multiple times during the unit's march, which is quite cumbersome.
[0025] Based on this, an interactive control method, device, and electronic device for a game provided by an embodiment of the present invention can be applied to a game scenario for setting a destination during a march.
[0026] In one embodiment of the present disclosure, the interactive control method for a game can be run on a local terminal device or a server. When the interactive control method for a game is run 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 a client device.
[0027] In an optional embodiment, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud gaming operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the interactive control method of the game are completed on the cloud gaming server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud gaming server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud gaming server. The cloud gaming server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0028] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0029] In one possible implementation, an embodiment of the present invention provides an interactive control method for a game, providing a graphical user interface through a terminal device, wherein the terminal device can be the local terminal device mentioned above, or it can be a client device in the cloud interactive system mentioned above.
[0030] The above-mentioned graphical user interface displays at least part of the scene screen of the game scene, which may include virtual objects and virtual strongholds; for example, land, mountains, rivers, fortresses, etc. may be distributed in the game scene, and virtual objects can move in the game scene. For example, virtual objects can march towards a set destination in units of troops, legions, generals, etc.; virtual strongholds can be plots of land, cities, etc.
[0031] In this embodiment, the player performs interactive operations on the terminal device, and the terminal device can save the data information corresponding to the interactive operations and control the virtual objects. Figure 1 As shown, the interactive control method of the game includes the following steps:
[0032] Step S102, in response to the path drawing operation for the virtual object, drawing a marching path in the game scene;
[0033] The path drawing operation includes but is not limited to a click operation, a double-click operation, a long press operation, a slide operation, and a drag operation; when the path drawing operation is applied to a graphical user interface, there is a corresponding operation contact point in the graphical user interface.
[0034] In one implementation, a terminal device receives a path drawing operation for a virtual object. For example, in a graphical user interface of a touch terminal device, a player controls a first touching finger to touch a virtual object and continuously performs a sliding operation or a dragging operation. Then, the terminal device can control the shooting angle of the game scene to always face the operation touch point of the path drawing operation, and display at least part of the scene screen in the graphical user interface with the operation touch point of the path drawing operation as the center. Moreover, a marching path is drawn in the game scene according to the moving path of the operation touch point of the path drawing operation.
[0035] In an optional implementation, when the operating point of the path drawing operation moves in the graphical user interface, a path indicator, such as an arrow, a solid line, a dotted line, a dashed line, etc., can be displayed in the game scene according to the moving path of the operating point. The path indicator can be displayed in a target display format, such as a color format, a line format, etc., to indicate the marching path during the drawing process.
[0036] Step S104: while the path drawing operation is ongoing, in response to at least one waypoint confirmation operation, generating at least one marching waypoint on the marching path based on the operation touch point of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of the marching waypoints matches the number of the waypoint confirmation operations;
[0037] The waypoint confirmation operation includes but is not limited to a click operation, a double-click operation, a long press operation, a slide operation, and a drag operation; if the operation type of the waypoint confirmation operation is different, then the type of the march waypoint corresponding to the waypoint confirmation operation is usually different.
[0038] The above-mentioned marching waypoints can be understood as the destinations of the virtual objects during the marching process. There can be one or more marching waypoints. When there are multiple marching waypoints, the types of marching waypoints can be the same or different. Different types of marching waypoints can be configured with different tasks, such as stop tasks, patrol tasks, attack tasks, support tasks, etc.
[0039] While the path drawing operation is ongoing, the terminal device receives a waypoint confirmation operation. For example, in the graphical user interface, the player performs a click operation or a slide operation to trigger the waypoint confirmation operation. Then, the terminal device can generate a marching waypoint at the scene position corresponding to the operation touch point of the path drawing operation when the waypoint confirmation operation is triggered.
[0040] It can be understood that while the path drawing operation continues, if the terminal device receives at least one waypoint confirmation operation, then at least one marching waypoint is generated on the marching path; that is, the number of marching waypoints matches the number of waypoint confirmation operations.
[0041] The above method sets at least one marching waypoint through the coordination of the path drawing operation and the waypoint confirmation operation, thereby simplifying the setting of the destination during the march.
[0042] Step S106, in response to the path drawing end operation, controlling the virtual object to march along the marching path;
[0043] The path drawing end operation includes but is not limited to a click operation, a double-click operation, a long press operation, a slide operation, and a drag operation; the path drawing end operation may also be the disappearance of the operation contact of the path drawing operation.
[0044] In one implementation, the terminal device receives a path drawing end operation, for example, the player lifts the first touch finger that performs the path drawing operation, then the continuous path drawing operation is disconnected, and the operation contact disappears at this time, that is, the marching path drawing is completed; then the terminal device can control the virtual object to march according to the drawn marching path, and the virtual object can start from the object position of the virtual object and march to at least one marching point on the marching path in sequence.
[0045] In an optional implementation, after the terminal device receives the path drawing completion operation, the path indicator displayed in the game scene is updated to a path identifier, which is usually different from the path indicator identifier to indicate the completed marching path.
[0046] Step S108 : When the virtual object marches to a marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0047] The waypoint types include but are not limited to parking waypoints, patrol waypoints, attack waypoints, and support waypoints. Different waypoint types usually match different waypoint tasks.
[0048] The above-mentioned waypoint tasks can be configured according to the waypoint types of the marching waypoints. For example, when the waypoint types are respectively stop waypoints, patrol waypoints, attack waypoints, and support waypoints, the waypoint tasks can be respectively stop tasks, patrol tasks, attack tasks, and support tasks.
[0049] In one implementation, when the terminal device controls the virtual object to march to a marching waypoint on the marching path, it controls the virtual object to perform a waypoint task that matches the waypoint type of the marching waypoint at the marching waypoint; then it controls the virtual object to continue marching to the next marching waypoint, and so on.
[0050] In this method, the marching waypoints generated on the marching path have been configured with waypoint types, so that the virtual objects can be controlled to automatically execute waypoint tasks matching the waypoint types at the marching waypoints, saving players' game time.
[0051] The interactive control method of the above-mentioned game provides a graphical user interface through a terminal device, and the graphical user interface displays at least a part of the scene screen of the game scene; the game scene includes virtual objects; in response to a path drawing operation for the virtual object, a marching path is drawn in the game scene; while the path drawing operation continues, in response to at least one waypoint confirmation operation, based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered, at least one marching waypoint is generated on the marching path; wherein the number of waypoints of the marching waypoints matches the operation number of the waypoint confirmation operation; in response to the path drawing end operation, the virtual object is controlled to march along the marching path; when the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0052] In this method, during the process of performing a path drawing operation on a virtual object, a marching waypoint is generated according to the operation contact of the path drawing operation when the waypoint confirmation operation is triggered. Then, during the marching process of the virtual object, it is controlled to perform the waypoint task according to the waypoint type of each marching waypoint, which simplifies the setting of the destination during the march and improves the game operation experience.
[0053] In one method, the marching waypoints include multiple, and the arrangement order of the multiple marching waypoints is determined according to the operation order of the waypoint confirmation operations corresponding to the multiple marching waypoints; the object position of the virtual object is the starting point of the marching path, and the end point of the marching path is the last marching waypoint.
[0054] In actual implementation, when there are multiple waypoint confirmation operations, the marching path includes multiple marching waypoints, and the marching path usually takes the object position of the virtual object as the path starting point and the last marching waypoint as the path end point; for multiple marching waypoints on the marching path, the terminal device can determine the arrangement order of the multiple marching waypoints according to the operation order of the waypoint confirmation operations.
[0055] The following embodiments provide specific implementation methods for drawing a marching route.
[0056] In one implementation, in response to a first sliding operation starting from the virtual object, a marching path is drawn in the game scene based on the sliding path of the first sliding operation.
[0057] The first sliding operation may be a sliding operation on a virtual object in the graphical user interface in any direction; the first sliding operation takes the virtual object as a starting point.
[0058] In one example, the terminal device receives a first sliding operation starting from a virtual object, for example, the player controls the first touching finger to touch the virtual object and slide continuously; then the terminal device can draw a marching path in the game scene according to the sliding path of the first sliding operation on the graphical user interface, for example, the marching path can be drawn according to the moving path of the operating contact of the first sliding operation.
[0059] In one embodiment, in response to a first sliding operation starting from a virtual object, a path indicator is displayed in the game scene; wherein the path indicator starts from the virtual object and ends at the operation touch point of the first sliding operation.
[0060] After the terminal device receives the first sliding operation starting from the virtual object, a path indication mark may be displayed in the game scene with the virtual object as the starting point and the operation touch point of the first sliding operation as the end point, such as Figure 2 In the example of FIG, the path indication mark is displayed as a dotted line with the virtual object as the starting point and the operation touch point of the first sliding operation as the end point.
[0061] In one implementation, while the first sliding operation continues, in response to at least one waypoint confirmation operation, at least one marching waypoint is generated on the marching path based on the operation contact of the first sliding operation when the waypoint confirmation operation is triggered.
[0062] In actual implementation, the terminal device receives a continuous first sliding operation, for example, the player controls the first touch finger to slide continuously; when the first sliding operation continues, the waypoint confirmation operation serves as a trigger condition for generating a marching waypoint. If the terminal device receives at least one waypoint confirmation operation, then the operation contact of the first sliding operation when the waypoint confirmation operation is triggered can be obtained, and then at least one marching waypoint is generated on the marching path based on at least one operation contact of the first sliding operation.
[0063] In one optional manner, while the first sliding operation continues, in response to the first waypoint confirmation operation, a first waypoint is generated at the scene location where the operating contact point of the first sliding operation was located when the first waypoint confirmation operation was triggered; a waypoint identifier of the first waypoint is displayed in the game scene, and a path indicator identifier is displayed with the virtual object as the starting point and the first waypoint as the end point;
[0064] While the first sliding operation continues, in response to the second waypoint confirmation operation, a second marching waypoint is generated at the scene position where the operating touch point of the first sliding operation is located when the second waypoint confirmation operation is triggered; the waypoint identifier of the second marching waypoint is displayed in the game scene, and the path indication identifier with the first marching waypoint as the starting point and the second marching waypoint as the end point is displayed.
[0065] The first waypoint confirmation operation generally refers to the first waypoint confirmation operation when the first sliding operation is continued. The waypoint identifier of the first march waypoint generally corresponds to the type of the first march waypoint; the waypoint identifier can specifically be text, an icon, etc.
[0066] The second waypoint confirmation operation generally refers to a waypoint confirmation operation other than the first waypoint confirmation operation while the first sliding operation is continued. The waypoint identifier of the second march waypoint generally corresponds to the type of the second march waypoint; the waypoint identifier can specifically be text, an icon, etc.
[0067] In one example, if the terminal device receives a first sliding operation and a first waypoint confirmation operation at the same time, the scene position of the operation touch point of the first sliding operation when the first waypoint confirmation operation is triggered can be obtained, and a first marching waypoint can be generated at the scene position; and, based on the type of the first marching waypoint, a waypoint identifier of the first marching waypoint can be displayed, and then a path indication identifier can be displayed with the virtual object as the starting point and the first marching waypoint as the end point; Figure 3 In the example, the waypoint marker of the first marching waypoint is displayed as a gray circular marker, that is, the type of the first marching waypoint is a stop, and the path indication marker is displayed as a dotted line with the virtual object as the starting point and the first marching waypoint as the end point.
[0068] In another example, if the terminal device receives a first sliding operation and a second waypoint confirmation operation at the same time, then the scene position of the operation touch point of the first sliding operation when the second waypoint confirmation operation is triggered can be obtained, and a second marching waypoint can be generated at this scene position; and, the waypoint identifier of the second marching waypoint can be displayed according to the type of the second marching waypoint, and then the path indication identifier can be displayed with the first marching waypoint as the starting point and the second marching waypoint as the end point.
[0069] In an optional manner, in response to the first sliding operation, the operating contact point is located in a legal area preset in the game scene, and the path indication mark is displayed in a first display format; wherein, the legal area has the authority to generate marching waypoints; in response to the first sliding operation, the operating contact point is located in an illegal area preset in the game scene, and the path indication mark is displayed in a second display format; wherein, the illegal area does not have the authority to generate marching waypoints; the second display format is different from the first display format.
[0070] The first display format indicates that the scene location where the operating contact point of the first sliding operation is located is a valid area; the first display format may specifically be a color format, a bold format, etc. The second display format indicates that the scene location where the operating contact point of the first sliding operation is located is an invalid area; the second display format may specifically be a color format, a highlight format, etc. It should be noted that the second display format is different from the first display format.
[0071] In one example, the game scene is preset with a legal area, such as a virtual plot, which has the authority to generate marching waypoints, that is, marching waypoints can be generated in the legal area; if the operating contact point of the first sliding operation received by the terminal device is located in the legal area preset in the game scene, then the path indication mark is displayed in the first display format, thereby indicating that the scene position where the current operating contact point is located can generate marching waypoints.
[0072] In another example, the game scene is preset with an illegal area, such as a virtual plot, which does not have the authority to generate marching waypoints, that is, marching waypoints cannot be generated in the legal area; if the operating contact point of the first sliding operation received by the terminal device is located in the illegal area preset in the game scene, then the path indication mark is displayed in the second display format, thereby indicating that the scene position where the current operating contact point is located cannot generate marching waypoints.
[0073] In one implementation, while the path drawing operation continues, in response to at least one waypoint confirmation operation, a waypoint type of the march waypoint is determined based on the operation type of the waypoint confirmation operation.
[0074] This operation type corresponds to the waypoint confirmation operation, and can specifically be a click operation, double-click operation, long press operation, slide operation, drag operation, or other operation types.
[0075] While the path drawing operation is continuing, the operation type of the waypoint confirmation operation is used as a condition for determining the type of the marching waypoint; if the terminal device receives at least one waypoint confirmation operation, then after determining the operation type for each waypoint confirmation operation, the waypoint type of the marching waypoint corresponding to each waypoint confirmation operation is determined based on the operation type of each waypoint confirmation operation, and the waypoint type of at least one marching waypoint is obtained. For example, the waypoint type can be a stop waypoint, a patrol waypoint, a capture waypoint, a support waypoint, etc.
[0076] In one embodiment, when the operation type of the waypoint confirmation operation is a click operation, the waypoint type of the marching waypoint is a stop waypoint; wherein, the stop waypoint is used to: control the virtual object to perform a stop task at the stop waypoint; when the operation type of the waypoint confirmation operation is a slide operation, the waypoint type of the marching waypoint is a patrol waypoint; wherein, the patrol waypoint is used to: control the virtual object to perform a patrol task at the patrol waypoint.
[0077] In one example, if the waypoint confirmation operation type is a click operation (e.g., the player controls a second touch finger to perform a click operation on a graphical user interface), the waypoint type of the marching waypoint is a stop waypoint. In actual implementation, if the marching waypoint reached by the virtual object along the marching path is a stop waypoint, the virtual object is controlled to perform a stop task at the stop waypoint. Optionally, the stop target is preset with a stop duration threshold. When the virtual object's stop duration meets the stop duration threshold, it moves to the next waypoint.
[0078] In another example, when the operation type of the waypoint confirmation operation is a sliding operation, for example, the player controls the second touch finger to perform a sliding operation on the graphical user interface, then the waypoint type of the marching waypoint is a patrol waypoint; in actual implementation, if the marching waypoint reached by the virtual object along the marching path is a patrol waypoint, then the virtual object is controlled to perform a patrol task at the patrol waypoint.
[0079] In an optional manner, when the operation type of the waypoint confirmation operation is a double-click operation, the waypoint type of the march waypoint is an attack waypoint; wherein the attack target is used to: control the virtual object to perform an attack mission at the attack waypoint.
[0080] When the operation type of the waypoint confirmation operation is a double-click operation, for example, the player controls the second touch finger to perform a double-click operation on the graphical user interface, then the waypoint type of the marching waypoint is an attack waypoint; in actual implementation, if the marching waypoint reached by the virtual object along the marching path is an attack waypoint, then the virtual object is controlled to perform an attack task at the attack waypoint.
[0081] In the above method, while executing the path drawing operation, the waypoint type is configured for the marching waypoint according to the operation type of the waypoint confirmation operation. Different waypoint types are used to perform different tasks, which is conducive to improving game efficiency and saving players' time.
[0082] In one implementation, while the path drawing operation continues, in response to at least one second sliding operation, a patrol path for the marching waypoint is generated based on the operation parameters of the second sliding operation.
[0083] The second sliding operation can be applied to any scene location in the graphical user interface and in any direction; this second sliding operation is different from the first sliding operation described above. The patrol path is the path that the virtual object takes when performing patrol tasks at a patrol point; the patrol path is typically configured with parameters such as path length and path shape.
[0084] While the path drawing operation continues, if the terminal device receives at least one second sliding operation, then the operation parameters for each second sliding operation are obtained, such as sliding distance, sliding direction, duration, etc.; the terminal device can generate a patrol path for the marching point corresponding to each second sliding operation based on the operation parameters of each second sliding operation, and obtain a patrol path for at least one marching point.
[0085] Specifically, the patrol path is generated around the marching waypoint with the marching waypoint as the center. For example, the patrol path can be a closed loop path of a specified shape centered on the marching waypoint, and the specified shape is usually pre-set, such as a circle, a rectangle, or other arbitrary shapes.
[0086] In one implementation, in response to the second sliding operation, a sub-path identifier is displayed on the graphical user interface; in response to the end of the second sliding operation, the sub-path indicated by the sub-path identifier is determined as a patrol path for the marching waypoint.
[0087] The sub-path marker can indicate the patrol path of the waypoint. For example, the sub-path marker can be an arrow, a solid line, a dashed line, a dotted line, etc. The sub-path marker can also be configured with a shape. In one example, the sub-path marker is displayed as a circle centered at the waypoint, or as a line segment with the waypoint as an endpoint.
[0088] When the terminal device receives the second sliding operation, a sub-path identifier is generated for the marching waypoint and the sub-path identifier is displayed on the graphical user interface. For example, the sub-path identifier can be pre-configured or generated based on the operating contact of the second sliding operation; if the terminal receives the end of the second sliding operation, for example, the player lifts the second touch finger that performs the second sliding operation, and the continuous second sliding operation is disconnected, that is, the second sliding operation ends, then the terminal device can determine the sub-path indicated by the sub-path identifier as the patrol path for the marching waypoint.
[0089] In a specific implementation, a sub-path length is determined based on the sliding distance of the second sliding operation; and a patrol path corresponding to the sub-path length is generated.
[0090] That is, the operational parameters of the second sliding operation may include a sliding distance, which generally corresponds to the sub-path length. The sliding distance may specifically be the linear distance between the active contact point of the second sliding operation and the initial contact point, or the distance the operating contact point of the second sliding operation moves on the graphical user interface. A longer sliding distance corresponds to a longer sub-path length, while a shorter sliding distance corresponds to a shorter sub-path length.
[0091] After the terminal device receives the second sliding operation, the sub-path length can be determined according to the sliding distance of the second sliding operation. For example, the longer the sliding distance, the longer the line segment with the marching waypoint as the endpoint; or the longer the sliding distance, the longer the circumference of the circle generated for the marching waypoint. Figure 4 In the example, the longer the sliding distance of the second sliding operation, the longer the circumference of the circle formed with the waypoint as the center, that is, the larger the radius corresponding to the sub-path length. After the terminal device determines the sub-path length, it generates a patrol path corresponding to the sub-path length.
[0092] In a specific implementation, a sub-path shape is determined based on the sliding direction of the second sliding operation; and a patrol path corresponding to the sub-path shape is generated.
[0093] That is, the operation parameter of the second sliding operation may include a sliding direction, which generally corresponds to a sub-path shape.
[0094] After the terminal device receives the second sliding operation, the sub-path shape can be determined based on the sliding direction of the second sliding operation. For example, a shape control is generated for the operating contact of the second sliding operation, and the shape control is divided into multiple areas, each area containing a shape, and the multiple shapes contained in the multiple areas are different. When the sliding direction of the second sliding operation points to the target area, the shape corresponding to the target area is determined as the sub-path shape. After the terminal device determines the sub-path shape, it generates a patrol path corresponding to the sub-path shape.
[0095] In one embodiment, in response to a second sliding operation, a shape identifier of at least one alternative shape is displayed on a graphical user interface; wherein, different shape identifiers are located in different relative directions of the operating contact point of the second sliding operation; in response to the continuation of the second sliding operation, the alternative shape matching the sliding direction of the second sliding operation is determined as a sub-path shape.
[0096] The candidate shapes include but are not limited to circle, rectangle, and triangle, and different candidate shapes are preset with different shape identifiers.
[0097] After the terminal device receives the second sliding operation, one or more shape identifiers of alternative shapes are displayed in the graphical user interface; it should be noted that when there are multiple shape identifiers of alternative shapes, if the shape identifiers displayed in the graphical user interface are different, the relative directions of the different shape identifiers and the operating contacts of the second sliding operation are different.
[0098] like Figure 5 , the alternative shapes are triangle, circle, and square, which respectively correspond to shape identifier 1 located on the right side of the operating contact of the second sliding operation, shape identifier 2 located above the operating contact of the second sliding operation, and shape identifier 3 located on the left side of the operating contact of the second sliding operation.
[0099] When the second sliding operation continues, for example, the player controls the second touch finger to slide toward the shape identifier displayed in the graphical user interface; the terminal device can determine an alternative shape that matches the sliding direction of the second sliding operation, and then determine the alternative shape that matches the sliding direction as the sub-path shape. Figure 5 In the example, if the alternative shape is a square, the player can control the second touch finger to slide toward the shape mark 3, that is, the sliding direction of the second sliding operation is the left direction.
[0100] The following embodiments provide specific implementation methods for controlling a virtual object to march along a marching path.
[0101] In one implementation, the starting point and end point of the marching path are determined to be the same, and the virtual object is controlled to execute the marching task cyclically along the marching path. The marching task can be understood as the virtual object needing to execute the waypoint task at each marching point on the marching path while marching along the marching path.
[0102] In one example, when a marching path includes a marching waypoint, if the player triggers the waypoint confirmation operation twice and sets the marching waypoint corresponding to the second waypoint confirmation operation at the starting point of the path, that is, the marching path forms a line segment, then the terminal device receives that the starting point and the end point of the marching path are the same, and can control the virtual object to perform the marching task repeatedly along the line segment.
[0103] In another example, when a marching path includes two or more marching waypoints, if the player triggers the waypoint confirmation operation three or more times and sets the last marching waypoint at the starting point of the path, the marching path forms a closed loop, such as Figure 6 , then the starting point and the end point of the marching path received by the terminal device are the same, and the virtual object can be controlled to perform the marching task repeatedly according to the closed loop; for example, the virtual object can circle the city in the game scene and perform the marching task repeatedly according to the closed loop marching path.
[0104] In one implementation, in response to a virtual object moving to a designated marching waypoint, and the waypoint type of the designated marching waypoint is a patrol waypoint, the virtual object is controlled to perform a patrol mission along the patrol path of the designated marching waypoint; wherein the waypoint type of the designated marching waypoint is a patrol waypoint; in response to the virtual object completing the patrol mission along the patrol path, the virtual object is controlled to march to the next marching waypoint of the designated marching waypoint.
[0105] While the terminal device is controlling a virtual object to march along a marching path, if the virtual object moves to a designated waypoint on the marching path, and the designated waypoint's waypoint type is a patrol waypoint, the terminal device can control the virtual object to perform a patrol mission along the patrol path at the designated waypoint. After the virtual object completes its patrol mission along the patrol path, the terminal device can control the virtual object to move from the designated waypoint to the next one. When the virtual object reaches the next waypoint, the terminal device can control the virtual object to perform the waypoint mission corresponding to the next waypoint, based on the waypoint type of the next waypoint.
[0106] The above embodiments of the present application have the following advantages:
[0107] This embodiment can more flexibly set the destination of the troops' march through the operation of two hands, thereby completing the drawing of the marching path. In addition, the type of destination can be set during the drawing of the marching path, thereby controlling the troops to perform corresponding tasks at the destination, such as patrolling the surrounding area at the destination, which makes the operation more convenient. By setting the last destination at the starting point, the troops can march in a circle on a closed-loop marching path.
[0108] Corresponding to the aforementioned method embodiment, see Figure 7 The schematic diagram of the structure of an interactive control device for a game is shown, wherein a graphical user interface is provided through a terminal device, and the graphical user interface displays at least a portion of a scene of a game scene; the game scene includes virtual objects; the device includes:
[0109] a marching path drawing module 71 for responding to a path drawing operation on a sub-path shape virtual object and drawing a marching path in the sub-path shape game scene;
[0110] A marching waypoint generating module 72 is configured to, while the sub-path shape path drawing operation is ongoing, respond to at least one waypoint confirmation operation and generate at least one marching waypoint on the sub-path shape marching path based on the operation touch point of the sub-path shape path drawing operation when the sub-path shape waypoint confirmation operation is triggered; wherein the number of waypoints in the sub-path shape marching path matches the number of sub-path shape waypoint confirmation operations;
[0111] A marching control module 73 is configured to control the sub-path shape virtual object to march along the sub-path shape marching path in response to a path drawing end operation;
[0112] The waypoint task execution module 74 is used to control the sub-path shape virtual object to execute a waypoint task that matches the waypoint type of the sub-path shape marching waypoint when the sub-path shape virtual object marches to the sub-path shape marching waypoint.
[0113] The interactive control device of the above-mentioned game provides a graphical user interface through a terminal device, and the graphical user interface displays at least a part of the scene screen of the game scene; the game scene includes virtual objects; in response to a path drawing operation for the virtual object, a marching path is drawn in the game scene; while the path drawing operation continues, in response to at least one waypoint confirmation operation, based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered, at least one marching waypoint is generated on the marching path; wherein the number of waypoints of the marching waypoints matches the operation number of the waypoint confirmation operations; in response to the path drawing end operation, the virtual object is controlled to march along the marching path; when the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0114] In this method, during the process of performing a path drawing operation on a virtual object, a marching waypoint is generated according to the operation contact of the path drawing operation when the waypoint confirmation operation is triggered. Then, during the marching process of the virtual object, it is controlled to perform the waypoint task according to the waypoint type of each marching waypoint, which simplifies the setting of the destination during the march and improves the game operation experience.
[0115] The above-mentioned marching waypoints include multiple ones, and the arrangement order of the multiple marching waypoints is determined according to the operation order of the waypoint confirmation operations corresponding to the multiple marching waypoints; the object position of the virtual object is the starting point of the marching path, and the end point of the marching path is the last marching waypoint.
[0116] The marching path drawing module is further configured to respond to a first sliding operation starting from the virtual object and draw a marching path in the game scene based on the sliding path of the first sliding operation.
[0117] The above-mentioned marching waypoint generation module is also used to respond to at least one waypoint confirmation operation while the first sliding operation continues, and generate at least one marching waypoint on the marching path based on the operation contact of the first sliding operation when the waypoint confirmation operation is triggered.
[0118] The apparatus further includes a waypoint type determination module configured to respond to at least one waypoint confirmation operation while the path drawing operation continues, and determine the waypoint type of the marching waypoint based on the operation type of the waypoint confirmation operation.
[0119] The above-mentioned waypoint type determination module is also used when the operation type of the waypoint confirmation operation is a click operation, and the waypoint type of the marching waypoint is a stop waypoint; wherein, the stop waypoint is used to: control the virtual object to perform a stop task at the stop waypoint; when the operation type of the waypoint confirmation operation is a slide operation, the waypoint type of the marching waypoint is a patrol waypoint; wherein, the patrol waypoint is used to: control the virtual object to perform a patrol task at the patrol waypoint.
[0120] The above-mentioned device also includes: a patrol path generating module, which is used to respond to at least one second sliding operation when the path drawing operation continues, and generate a patrol path for the marching waypoint based on the operation parameters of the second sliding operation.
[0121] The above patrol routes are centered on the marching waypoints and are generated around the marching waypoints.
[0122] The above-mentioned device also includes: a sub-path identification display module, which is used to display the sub-path identification on the graphical user interface in response to the second sliding operation; in response to the end of the second sliding operation, determine the sub-path indicated by the sub-path identification as the patrol path for the marching waypoint.
[0123] The patrol path generation module is further configured to determine a sub-path length based on a sliding distance of the second sliding operation, and generate a patrol path corresponding to the sub-path length.
[0124] The patrol path generation module is further configured to determine a sub-path shape based on the sliding direction of the second sliding operation; and generate a patrol path corresponding to the sub-path shape.
[0125] The above-mentioned patrol path generation module is also used to display a shape identifier of at least one alternative shape on the graphical user interface in response to a second sliding operation; wherein different shape identifiers are located in different relative directions of the operating contact point of the second sliding operation; in response to the continuation of the second sliding operation, the alternative shape matching the sliding direction of the second sliding operation is determined as the sub-path shape.
[0126] The marching control module is further used to determine that the starting point and the end point of the marching path are the same, and to control the virtual object to cyclically execute the marching task along the marching path.
[0127] The above-mentioned marching control module is also used to control the virtual object to perform a patrol mission along the patrol path of the designated marching point in response to the virtual object moving to the designated marching point; wherein the waypoint type of the designated marching point is a patrol waypoint; in response to the virtual object completing the patrol mission along the patrol path, control the virtual object to march to the next marching point of the designated marching point.
[0128] This embodiment further provides an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the above-mentioned interactive control method for the game. The electronic device can be a server or a terminal device.
[0129] See also Figure 8As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores computer-executable instructions that can be executed by the processor 100. The processor 100 executes the computer-executable instructions to implement the interactive control method of the above-mentioned game.
[0130] Further, Figure 8 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .
[0131] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or one type of bus.
[0132] The processor 100 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by hardware integrated logic circuits in the processor 100 or software instructions. The above 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 various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-known in the art, such as a random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or register. The storage medium is located in the memory 101. The processor 100 reads the information in the memory 101 and, in conjunction with its hardware, completes the steps of the method of the aforementioned embodiment.
[0133] The processor in the electronic device can implement the following operations in the interactive control method of the game by executing computer-executable instructions:
[0134] A graphical user interface is provided through a terminal device, and the graphical user interface displays at least a portion of a scene screen of a game scene; the game scene includes a virtual object; in response to a path drawing operation for the virtual object, a marching path is drawn in the game scene; while the path drawing operation continues, in response to at least one waypoint confirmation operation, at least one marching waypoint is generated on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of waypoints of the marching waypoints matches the number of operations of the waypoint confirmation operation; in response to the path drawing end operation, the virtual object is controlled to march along the marching path; when the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0135] There are multiple marching waypoints, and the arrangement order of the multiple marching waypoints is determined according to the operation order of the waypoint confirmation operations corresponding to the multiple marching waypoints; the object position of the virtual object is the starting point of the marching path, and the end point of the marching path is the last marching waypoint.
[0136] In response to a first sliding operation starting from the virtual object, a marching path is drawn in the game scene based on a sliding path of the first sliding operation.
[0137] In response to at least one waypoint confirmation operation while the first sliding operation continues, at least one march waypoint is generated on the marching path based on the operation contact point of the first sliding operation when the waypoint confirmation operation is triggered.
[0138] In a case where the path drawing operation continues, in response to at least one waypoint confirmation operation, a waypoint type of the march waypoint is determined based on an operation type of the waypoint confirmation operation.
[0139] When the operation type of the waypoint confirmation operation is a click operation, the waypoint type of the marching waypoint is a stop waypoint; wherein, the stop waypoint is used to: control the virtual object to perform a stop task at the stop waypoint; when the operation type of the waypoint confirmation operation is a slide operation, the waypoint type of the marching waypoint is a patrol waypoint; wherein, the patrol waypoint is used to: control the virtual object to perform a patrol task at the patrol waypoint.
[0140] When the path drawing operation continues, in response to at least one second sliding operation, a patrol path for the marching waypoint is generated based on the operation parameters of the second sliding operation.
[0141] The patrol path is centered on the marching waypoint and is generated around the marching waypoint.
[0142] In response to the second sliding operation, a sub-path identifier is displayed on the graphical user interface; in response to the end of the second sliding operation, the sub-path indicated by the sub-path identifier is determined as a patrol path for the marching waypoint.
[0143] Based on the sliding distance of the second sliding operation, a sub-path length is determined; and a patrol path corresponding to the sub-path length is generated.
[0144] Based on the sliding direction of the second sliding operation, a sub-path shape is determined; and a patrol path corresponding to the sub-path shape is generated.
[0145] In response to a second sliding operation, a shape identifier of at least one alternative shape is displayed on a graphical user interface; wherein, different shape identifiers are located in different relative directions of the operating contact point of the second sliding operation; in response to the continuation of the second sliding operation, the alternative shape matching the sliding direction of the second sliding operation is determined as a sub-path shape.
[0146] Determine that the starting point and the end point of the marching path are the same, and control the virtual object to cyclically execute the marching task along the marching path.
[0147] In response to the virtual object moving to a designated marching waypoint, the virtual object is controlled to perform a patrol mission along a patrol path of the designated marching waypoint; wherein the waypoint type of the designated marching waypoint is a patrol waypoint; in response to the virtual object completing the patrol mission along the patrol path, the virtual object is controlled to march to the next marching waypoint of the designated marching waypoint.
[0148] In the above method, in the process of performing a path drawing operation on a virtual object, a marching waypoint is generated according to the operation contact of the path drawing operation when the waypoint confirmation operation is triggered, and then in the process of the virtual object marching, it is controlled to perform the waypoint task according to the waypoint type of each marching waypoint, which simplifies the setting of the destination during the march and improves the game operation experience.
[0149] This embodiment also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the interactive control method of the above game.
[0150] The computer-executable instructions stored in the computer-readable storage medium can implement the following operations in the interactive control method of the game by executing the computer-executable instructions:
[0151] A graphical user interface is provided through a terminal device, and the graphical user interface displays at least a portion of a scene screen of a game scene; the game scene includes a virtual object; in response to a path drawing operation for the virtual object, a marching path is drawn in the game scene; while the path drawing operation continues, in response to at least one waypoint confirmation operation, at least one marching waypoint is generated on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of waypoints of the marching waypoints matches the number of operations of the waypoint confirmation operation; in response to the path drawing end operation, the virtual object is controlled to march along the marching path; when the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
[0152] There are multiple marching waypoints, and the arrangement order of the multiple marching waypoints is determined according to the operation order of the waypoint confirmation operations corresponding to the multiple marching waypoints; the object position of the virtual object is the starting point of the marching path, and the end point of the marching path is the last marching waypoint.
[0153] In response to a first sliding operation starting from the virtual object, a marching path is drawn in the game scene based on a sliding path of the first sliding operation.
[0154] In response to at least one waypoint confirmation operation while the first sliding operation continues, at least one march waypoint is generated on the marching path based on the operation contact point of the first sliding operation when the waypoint confirmation operation is triggered.
[0155] In a case where the path drawing operation continues, in response to at least one waypoint confirmation operation, a waypoint type of the march waypoint is determined based on an operation type of the waypoint confirmation operation.
[0156] When the operation type of the waypoint confirmation operation is a click operation, the waypoint type of the marching waypoint is a stop waypoint; wherein, the stop waypoint is used to: control the virtual object to perform a stop task at the stop waypoint; when the operation type of the waypoint confirmation operation is a slide operation, the waypoint type of the marching waypoint is a patrol waypoint; wherein, the patrol waypoint is used to: control the virtual object to perform a patrol task at the patrol waypoint.
[0157] When the path drawing operation continues, in response to at least one second sliding operation, a patrol path for the marching waypoint is generated based on the operation parameters of the second sliding operation.
[0158] The patrol path is centered on the marching waypoint and is generated around the marching waypoint.
[0159] In response to the second sliding operation, a sub-path identifier is displayed on the graphical user interface; in response to the end of the second sliding operation, the sub-path indicated by the sub-path identifier is determined as a patrol path for the marching waypoint.
[0160] Based on the sliding distance of the second sliding operation, a sub-path length is determined; and a patrol path corresponding to the sub-path length is generated.
[0161] Based on the sliding direction of the second sliding operation, a sub-path shape is determined; and a patrol path corresponding to the sub-path shape is generated.
[0162] In response to a second sliding operation, a shape identifier of at least one alternative shape is displayed on a graphical user interface; wherein, different shape identifiers are located in different relative directions of the operating contact point of the second sliding operation; in response to the continuation of the second sliding operation, the alternative shape matching the sliding direction of the second sliding operation is determined as a sub-path shape.
[0163] Determine that the starting point and the end point of the marching path are the same, and control the virtual object to cyclically execute the marching task along the marching path.
[0164] In response to the virtual object moving to a designated marching waypoint, the virtual object is controlled to perform a patrol mission along a patrol path of the designated marching waypoint; wherein the waypoint type of the designated marching waypoint is a patrol waypoint; in response to the virtual object completing the patrol mission along the patrol path, the virtual object is controlled to march to the next marching waypoint of the designated marching waypoint.
[0165] In the above method, in the process of performing a path drawing operation on a virtual object, a marching waypoint is generated according to the operation contact of the path drawing operation when the waypoint confirmation operation is triggered, and then in the process of the virtual object marching, it is controlled to perform the waypoint task according to the waypoint type of each marching waypoint, which simplifies the setting of the destination during the march and improves the game operation experience.
[0166] The computer program product of the interactive game control method, device, and electronic device provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. For specific implementation, please refer to the method embodiments and will not be repeated here.
[0167] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems and devices can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0168] In addition, in the description of the embodiments of the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," and "connected" should be understood in a broad sense. For example, they may refer to fixed connections, detachable connections, or integral connections; they may refer to mechanical connections or electrical connections; they may refer to direct connections or indirect connections through an intermediate medium; and they may refer to internal communication between two components. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on the specific circumstances.
[0169] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0170] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present 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.
[0171] Finally, it should be noted that the above embodiments are only specific implementation methods of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. 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 above embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above embodiments within the technical scope disclosed by the present invention, or replace some of the technical features therein with equivalents. Such modifications, changes or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A method for interactive control of a game, characterized in that: Providing a graphical user interface through a terminal device, wherein the graphical user interface displays at least a portion of a scene screen of a game scene; The game scene includes a virtual object; the method includes: In response to a path drawing operation for the virtual object, drawing a marching path in the game scene; In response to at least one waypoint confirmation operation while the path drawing operation is ongoing, generating at least one marching waypoint on the marching path based on the operation touch point of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of the marching waypoints matches the number of the waypoint confirmation operations; In response to a path drawing end operation, controlling the virtual object to march along the marching path; When the virtual object marches to the marching waypoint, the virtual object is controlled to execute a waypoint task that matches the waypoint type of the marching waypoint.
2. The method according to claim 1, characterized in that The marching waypoints include a plurality of marching waypoints, and an arrangement order of the plurality of marching waypoints is determined according to an operation order of the waypoint confirmation operations corresponding to the plurality of marching waypoints; The object position of the virtual object is the starting point of the marching path, and the end point of the marching path is the last marching waypoint.
3. The method according to claim 1, characterized in that In response to the path drawing operation for the virtual object, the step of drawing a marching path in the game scene includes: In response to a first sliding operation starting from the virtual object, a marching path is drawn in the game scene based on a sliding path of the first sliding operation.
4. The method according to claim 1, wherein While the path drawing operation is continuing, in response to at least one waypoint confirmation operation, generating at least one marching waypoint on the marching path based on the operation contact of the path drawing operation when the waypoint confirmation operation is triggered, includes: In a case where the first sliding operation continues, in response to at least one waypoint confirmation operation, at least one march waypoint is generated on the marching path based on the operation contact point of the first sliding operation when the waypoint confirmation operation is triggered.
5. The method according to claim 1, wherein The method further comprises: In a case where the path drawing operation continues, in response to at least one waypoint confirmation operation, a waypoint type of the march waypoint is determined based on an operation type of the waypoint confirmation operation.
6. The method according to claim 5, characterized in that The step of determining the waypoint type of the march waypoint based on the operation type of the waypoint confirmation operation includes: When the operation type of the waypoint confirmation operation is a click operation, the waypoint type of the marching waypoint is a stop waypoint; wherein the stop waypoint is used to: control the virtual object to perform a stop task at the stop waypoint; When the operation type of the waypoint confirmation operation is a sliding operation, the waypoint type of the march waypoint is a patrol waypoint; wherein the patrol waypoint is used to control the virtual object to perform a patrol mission at the patrol waypoint.
7. The method according to claim 1, characterized in that The method further comprises: In a case where the path drawing operation continues, in response to at least one second sliding operation, a patrol path for the marching waypoint is generated based on an operation parameter of the second sliding operation.
8. The method according to claim 7, characterized in that The patrol path is centered on the marching waypoint and is generated around the marching waypoint.
9. The method according to claim 7, characterized in that The method further comprises: In response to the second sliding operation, displaying a sub-path identifier on the graphical user interface; In response to the completion of the second sliding operation, the sub-path indicated by the sub-path identifier is determined as the patrol path for the marching waypoint.
10. The method according to claim 7, characterized in that The step of generating a patrol path for the marching waypoint based on the operation parameters of the second sliding operation includes: determining a subpath length based on a sliding distance of the second sliding operation; A patrol path corresponding to the sub-path length is generated.
11. The method according to claim 7, characterized in that The step of generating a patrol path for the marching waypoint based on the operation parameters of the second sliding operation includes: determining a subpath shape based on a sliding direction of the second sliding operation; Generate a patrol path corresponding to the sub-path shape.
12. The method according to claim 11, characterized in that The step of determining the shape of the subpath based on the sliding direction of the second sliding operation includes: In response to the second sliding operation, displaying a shape identifier of at least one candidate shape on the graphical user interface; wherein different shape identifiers are located in different relative directions of the operating contact point of the second sliding operation; In response to the continuation of the second sliding operation, a candidate shape matching the sliding direction of the second sliding operation is determined as a sub-path shape.
13. The method according to claim 1, wherein The step of controlling the virtual object to march along the marching path includes: Determine that a starting point and an end point of the marching path are the same, and control the virtual object to cyclically execute a marching task along the marching path.
14. The method according to claim 1, wherein The step of controlling the virtual object to march along the marching path includes: In response to the virtual object moving to a designated marching waypoint, controlling the virtual object to perform a patrol mission along a patrol path of the designated marching waypoint; wherein the waypoint type of the designated marching waypoint is a patrol waypoint; In response to the virtual object completing the patrol mission along the patrol path, the virtual object is controlled to march to a next marching waypoint of the designated marching waypoint.
15. An interactive control device for a game, characterized in that: Providing a graphical user interface through a terminal device, wherein the graphical user interface displays at least a portion of a scene screen of a game scene; The game scene includes a virtual object; the device includes: a marching path drawing module, configured to draw a marching path in the game scene in response to a path drawing operation on the virtual object; a marching waypoint generation module, configured to, while the path drawing operation continues, generate at least one marching waypoint on the marching path in response to at least one waypoint confirmation operation, based on the operation contact point of the path drawing operation when the waypoint confirmation operation is triggered; wherein the number of the marching waypoints matches the number of the waypoint confirmation operations; a marching control module, configured to control the virtual object to march along the marching path in response to a path drawing end operation; A waypoint task execution module is used to control the virtual object to execute a waypoint task that matches the waypoint type of the marching waypoint when the virtual object marches to the marching waypoint.
16. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the interactive control method of the game according to any one of claims 1 to 14.
17. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the interactive control method for a game according to any one of claims 1 to 14.