Game-based Command Interaction Method, Device and Electronic Device

By using dual-screen cursor conversion and command control generation in the game, the problem of time-consuming and incorrect command operations in turn-based games is solved, efficient and accurate command and control are achieved, and user experience is improved.

CN114272607BActive Publication Date: 2025-07-25NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111667941.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2025-07-25
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

The existing command methods are time-consuming in turn-based games and are prone to incorrect operations, affecting the user experience.

Method used

The virtual object action is controlled by converting the touch operation on the first touch screen into the cursor on the second touch screen, and automatically generating a command control when the cursor is located in two virtual objects.

Benefits of technology

Save command time, improve command efficiency, avoid user misoperation, and improve game experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114272607B_ABST
    Figure CN114272607B_ABST
Patent Text Reader

Abstract

An embodiment of the present application discloses a game-based command interaction method, device, and electronic device. The method is applied to a terminal device, which includes a first touch screen and a second touch screen, and includes: responding to a first touch operation and a second touch operation on the first touch screen, and displaying a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen; responding to an operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, generating a command control between the first virtual object and the second virtual object; and responding to a third touch operation on the command control to control the action of the first virtual object or the second virtual object. This solution not only saves the time of command and improves the command efficiency, but also avoids the situation of user misoperation, thereby improving the user's game experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the technical field of games, and in particular, to a command interaction method, device, and electronic device based on games. Background Art

[0002] With the popularization of smart devices, more and more users start to play games using smart terminal devices, and the types of games are also becoming more and more diverse. For example, common game types can include turn-based games, role-playing games, or rhythm games, etc.

[0003] Turn-based games are the earliest game types to widely use the networking function. All players take turns in their own turns, and only in their own turns can they perform game operations. And in turn-based games, the cooperation between players is often the key to victory. Therefore, command in battles is a very important link, and because the time for each turn is limited, these operations need to be carried out against time. The existing command methods generally include long-pressing a character to pop up battle commands, or using a combination of typing and voice to conduct commands during battles.

[0004] However, both long-pressing and typing are time-consuming. Due to the limited time for each turn, it is easy to cause the user's operation to time out. And for the command method using voice, it is also easy to have unclear commands, which may cause the user's misoperation and affect the user's gaming experience. Summary of the Invention

[0005] Embodiments of the present application provide a command interaction method, device, and electronic device based on games to improve the efficiency and accuracy of user commands.

[0006] In a first aspect, an embodiment of the present application provides a command interaction method based on games, which is applied to a terminal device. The terminal device includes a first touch screen and a second touch screen, and includes:

[0007] Respond to a first touch operation and a second touch operation on the first touch screen, and display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen;

[0008] Respond to the operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, and generate a command control between the first virtual object and the second virtual object;

[0009] Respond to a third touch operation on the command control to control the action of the first virtual object or the second virtual object.

[0010] Optionally, the response acts on a third touch operation on the command control to control the action of the first virtual object or the second virtual object, including:

[0011] Responding to a first sliding operation from the command control in the direction of the first virtual object, generating and displaying a first command item control acting on the first virtual object;

[0012] Responding to a second sliding operation with an initial touch point located at the first command item control, a final touch point located at a first target command item in the first command item control, and continuous with the first sliding operation, selecting the first target command item, and controlling the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

[0013] Optionally, the response acts on a third touch operation on the command control to control the action of the first virtual object or the second virtual object, including:

[0014] Responding to a third sliding operation from the command control in the direction of the second virtual object, generating and displaying a second command item control acting on the second virtual object;

[0015] Responding to a fourth sliding operation with an initial touch point located at the second command item control, a final touch point located at a second target command item in the second command item control, and continuous with the third sliding operation, selecting the second target command item, and controlling the first virtual object to perform an action corresponding to the second target command item on the second virtual object.

[0016] Optionally, the generating of the first command item control acting on the first virtual object includes:

[0017] Generating a first command item control according to the attribute information of the first virtual object, where the first command item control includes any one or more of an ordinary attack command item, a blood drawing command item, a disk pointing command item, a confusion pointing command item, a celestial sound command item, and a protection command item.

[0018] Optionally, the response acts on a first touch operation and a second touch operation on a first touch screen, and displays a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on a second touch screen, including:

[0019] When there is a touch operation with two or more touch points on the first touch screen, determining the first detected touch operation as the first touch operation and the second detected touch operation as the second touch operation;

[0020] In response to the first touch operation, a first cursor corresponding to the touch point of the first touch operation is displayed on the second touch screen;

[0021] In response to the second touch operation, a second cursor corresponding to the touch point of the second touch operation is displayed on the second touch screen.

[0022] Optionally, after generating a command control between the first virtual object and the second virtual object, the method further includes:

[0023] In response to a fifth sliding operation from the command control towards the first virtual object or the second virtual object, a command item control corresponding to the first virtual object or the second virtual object is generated and displayed;

[0024] In response to a sixth sliding operation that is continuous with the fifth sliding operation and from the command item control corresponding to the first virtual object or the second virtual object to the command control, the display of the command item control corresponding to the first virtual object or the second virtual object is cancelled.

[0025] Optionally, the method further includes:

[0026] When performing the third touch operation on the command control, the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation are released.

[0027] Optionally, before generating a command control between the first virtual object and the second virtual object, the method further includes:

[0028] Generate a connection line between the first virtual object and the second virtual object in a preset style;

[0029] Then, generating a command control between the first virtual object and the second virtual object includes:

[0030] Generate a command control at the middle position of the connection line.

[0031] Optionally, the first touch screen is located on the back of the terminal device, the second touch screen is located on the front of the terminal device, and the first touch screen and the second touch screen are used to obtain touch operations of the same user.

[0032] In a second aspect, an embodiment of the present application provides a command interaction device based on a game, which is applied to a terminal device. The terminal device includes a first touch screen and a second touch screen. The device includes:

[0033] A display module, configured to respond to a first touch operation and a second touch operation on a first touch screen, and display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on a second touch screen;

[0034] A response module, configured to respond to an operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, and generate a command control between the first virtual object and the second virtual object;

[0035] The response module is further configured to respond to a third touch operation on the command control, and control the first virtual object or the second virtual object to act.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;

[0037] The memory stores computer-executable instructions;

[0038] The processor executes the computer-executable instructions stored in the memory, and implements the game-based command interaction method described in the first aspect and various possible designs of the first aspect as above.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the game-based command interaction method described in the first aspect and various possible designs of the first aspect as above is implemented.

[0040] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the game-based command interaction method described in the first aspect and various possible designs of the first aspect as above is implemented.

[0041] Embodiments of the present application can operate based on a terminal device including two screens, namely a first touch screen and a second touch screen, and provide a game-based command interaction method, device, and electronic device. After adopting the above solution, it is possible to first respond to a first touch operation and a second touch operation on the first touch screen, display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen, and then respond to the operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, generate a command control between the first virtual object and the second virtual object. After generating the command control, it is possible to respond to a third touch operation on the command control to control the actions of the first virtual object or the second virtual object. By correspondingly converting the touch operations on the first touch screen into cursors on the second touch screen and automatically generating a command control for commanding the actions of two virtual objects when the cursors are located at two virtual objects, the actions of the virtual objects are commanded, which not only saves the time of command and improves the efficiency of command, but also avoids the situation of user misoperation, thereby improving the user's game experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0043] Figure 1 Schematic diagram of the application scenario of the game-based command interaction method provided by the embodiments of the present application;

[0044] Figure 2 Schematic diagram of the flow of the game-based command interaction method provided by the embodiments of the present application;

[0045] Figure 3 Schematic diagram of the application of the command control generation process provided by the embodiments of the present application;

[0046] Figure 4 Schematic diagram of the application of the command control generation process provided by another embodiment of the present application;

[0047] Figure 5 Schematic diagram of the application of the command process provided by the embodiments of the present application;

[0048] Figure 6 Schematic diagram of the application of the command process provided by another embodiment of the present application;

[0049] Figure 7Structural schematic diagram of a game-based command interaction device provided by an embodiment of the present application;

[0050] Figure 8 Hardware structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0051] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0052] Terms such as "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application described here can also include other sequence examples in addition to those illustrated or described. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0053] During the game process, in order to increase the winning rate of the game, players often need to cooperate with each other to perform operations. When cooperating to operate the game, players usually need to express their ideas to improve the cooperation effect, that is, each player can command the operation process of the game. Since the time of each game round is limited, many operations need to be carried out against the clock. The existing command methods are generally to long-press the character to pop up the combat command, or to use typing combined with voice to conduct in-combat commands. However, both long-pressing and typing are time-consuming. Due to the limited time of each round, it is easy to cause the user to time out in the operation. And the method of conducting commands through voice is also prone to unclear commands, which may cause misoperations by the user and affect the user's game experience.

[0054] Based on the above technical problems, the present application converts the touch operation on the first touch screen into a cursor on the second touch screen, and automatically generates a command control for commanding the actions of two virtual objects when the cursor is located on two virtual objects, so as to command the actions of the virtual objects, achieving the technical effects of saving the command time, improving the command efficiency, avoiding misoperations by the user, and thus improving the user's game experience.

[0055] The command interaction method based on games in the embodiments of the present application can run on a local terminal device or a cloud interaction system.

[0056] Among them, the cloud interaction system includes a cloud server and user devices and is used to run cloud applications. The cloud applications run separately.

[0057] In an optional implementation manner, cloud game refers to a game mode based on cloud computing. In the operation mode of cloud games, the running entity of the game program and the entity presenting the game screen are separated. The storage and running of the object control method are completed on the cloud game server. The role of the cloud game client is to receive and send data and present the game screen. For example, the cloud game client can be a display device with data transmission function near the user side, such as a mobile terminal, a television, a computer, a personal digital assistant, etc.; however, the cloud game server in the cloud processes the game data. When playing a game, the player operates the cloud game client to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses data such as the game screen, returns it to the cloud game client through the network, and finally, the cloud game client decodes and outputs the game screen.

[0058] In an optional implementation manner, the 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, the game program is downloaded and installed on an electronic device and run. The manner in which the local terminal device provides the graphical user interface to the player can include various types. For example, it can be rendered and displayed on the display screen of the terminal, or provided to the player through holographic projection. For example, the local terminal device can include a display screen and a processor. The display screen is used to present the graphical user interface, and the graphical user interface includes a game screen. 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.

[0059] Figure 1 FIG. is a schematic diagram of an application scenario of the command interaction method based on games provided in the embodiments of the present application. The command interaction method based on games can be applied to a terminal device including a first touch screen and a second touch screen. As Figure 1 As shown in a of FIG., it is a schematic diagram of the application of the first touch screen of the terminal device. In this embodiment, a first touch area 101 is included in the first touch screen, and the user can perform touch operations in the first touch area 101. Further, the user can perform a first touch operation and a second touch operation in the first touch area 101 with the left and right fingers. As Figure 1As shown in Figure b, it is a schematic diagram of the application of the second touch screen of the terminal device. In this embodiment, the application scenario of the running game is displayed on the second touch display screen. In this application scenario, it may include virtual objects, terrain, terrain decorations, etc. For example, the virtual objects may include virtual object A and virtual object B.

[0060] In addition, the second touch screen may further include a first cursor 102 corresponding to the first touch operation and a second cursor 103 corresponding to the second touch operation. Among them, the first cursor can move correspondingly according to the position of the first touch operation, and the second cursor can move correspondingly according to the position of the second touch operation. And the first cursor and the second cursor can be represented by different shapes. Exemplarily, the first cursor and the second cursor can be graphics such as pentagrams, palm shapes, arrows, squares, solid circles, etc.

[0061] The technical solution of the present application will be described in detail below with specific embodiments. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0062] Figure 2 It is a schematic flowchart of the command interaction method based on a game provided by an embodiment of the present application. The method of this embodiment can be executed by a terminal device, and the terminal device includes a first touch screen and a second touch screen. As Figure 2 shown, the method of this embodiment may include:

[0063] S201: Respond to the first touch operation and the second touch operation acting on the first touch screen, and display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen.

[0064] In this embodiment, the terminal device is a mobile phone or a tablet computer with multiple touch screens, such as a folding screen terminal or a double-sided screen terminal, and the screen of the terminal device can be operated by fingers or a stylus. Specifically, the terminal device may include a first touch screen and a second touch screen. The first touch screen is located on the back of the terminal device, and the second touch screen is located on the front of the terminal device. The first touch screen and the second touch screen are used to obtain the touch operations of the same user.

[0065] As an example, the second touch screen can be the screen on the front of the terminal device (front screen), and the first touch screen can be the screen on the back of the terminal device (back screen). The user can hold the left and right sides of the terminal device with both hands respectively. At this time, the user can perform terminal operations in the same way as operating a conventional terminal device. Specifically, the thumbs of both hands of the user can control virtual objects on the front screen to perform terminal operations such as moving or releasing skills. Moreover, the user can also perform a sliding operation on the back screen with the fingers of both hands (such as the index finger, middle finger, ring finger, and little finger) to correspondingly slide and display a cursor on the front screen.

[0066] In addition, the area of the first touch screen can be the same as that of the second touch screen. The first touch operation can be a pressing operation, a clicking operation, a sliding operation, etc. The second touch operation can also be a pressing operation, a clicking operation, a sliding operation, etc.

[0067] Furthermore, in response to the first touch operation and the second touch operation acting on the first touch screen, a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation are displayed on the second touch screen. Specifically, it can include:

[0068] When there is a touch operation with two or more touch points on the first touch screen, the first detected touch operation is determined as the first touch operation, and the second detected touch operation is determined as the second touch operation.

[0069] In response to the first touch operation, a first cursor corresponding to the touch point of the first touch operation is displayed on the second touch screen.

[0070] In response to the second touch operation, a second cursor corresponding to the touch point of the second touch operation is displayed on the second touch screen.

[0071] Specifically, when the user operates on the first touch screen, there may be multiple contact points at the same time. That is, since the fingers of both hands of the user can perform touch operations on the first screen, for example, both the index finger and the middle finger can perform touch operations on the first screen. To avoid confusion caused by multiple finger operations resulting in abnormal cursor display, or due to inaccurate recognition of multiple touch points, in this embodiment where only two touch points are required, the first detected touch operation can be determined as the first touch operation (corresponding to the first touch point), and a first cursor corresponding to the first touch operation is displayed on the second touch screen. The second detected touch operation is determined as the second touch operation (corresponding to the second touch point), and a second cursor corresponding to the second touch operation is displayed on the second touch screen. Other touch operations other than the first touch operation and the second touch operation may no longer be responded to.

[0072] Further, the terminal device may be a foldable screen device. The first screen and the second screen of the foldable screen device belong to the same screen. Only the two screens are separated by a folding central axis. By rotating the folding central axis, the second touch screen of the foldable screen device can be adjusted to the front, and the first touch screen can be adjusted to the back. Based on the characteristic that the screens of the foldable screen device belong to the same screen, the cursor position of the cursor displayed on the second touch screen can be converted by calculating the vertical distance from the contact point of the first touch operation on the first touch screen to the folding central axis. Correspondingly, for the first cursor, the first touch point position of the touch point of the first touch operation and the vertical distance between the touch point and the folding central axis of the foldable screen device can be obtained first. According to the first touch point position and the vertical distance, the first cursor position on the second touch screen is obtained, and the first cursor is displayed at the first cursor position on the second touch screen. The display principle of the second cursor is similar to that of the first cursor and will not be elaborated in detail here.

[0073] And in this embodiment, since the touch operation is performed on the first touch screen of the terminal device, that is, the selection of the virtual object does not need to be implemented through the second touch screen, it will not be confused with other touch operations on the second touch screen, and the situation of object occlusion that occurs when dragging the virtual object on the second touch screen is also avoided, improving the accuracy of virtual object determination.

[0074] S202: Respond to the operation of moving the first cursor to the first virtual object and moving the second cursor to the second virtual object, and generate a command control between the first virtual object and the second virtual object.

[0075] In this embodiment, the user can control the movement of the cursor on the second touch screen by moving the position of the contact point on the first touch screen. Specifically, the first cursor can be moved to the position where the first virtual object is located, and the second cursor can be moved to the position where the second virtual object is located, so as to generate a command control for the user's command action between the first virtual object and the second virtual object.

[0076] Among them, the shape of the command control can be custom-set according to the actual application scenario. Exemplarily, it can be in the shape of a flag or a triangle, etc., and will not be specifically limited here.

[0077] Exemplarily, Figure 3 is an application schematic diagram of the command control generation process provided by the embodiment of the present application. As Figure 3As shown in Fig. a, in this embodiment, there are two virtual objects, a first virtual object A and a second virtual object B, on the second touch screen. There are also a first cursor C and a second cursor D located between the first virtual object A and the second virtual object B. The first cursor C can move in the direction of the first virtual object A, and the second cursor D can move in the direction of the second virtual object B. As Figure 3 As shown in Fig. b, in this embodiment, the first cursor C has moved to the position where the first virtual object A is located, and the second cursor D has moved to the position where the second virtual object B is located. Then, a flag-shaped command control can be generated between the first virtual object A and the second virtual object B.

[0078] In addition, before generating the command control between the first virtual object and the second virtual object, the method may further include:

[0079] Generate a connection line between the first virtual object and the second virtual object according to a preset style.

[0080] Correspondingly, generating the command control between the first virtual object and the second virtual object may include: generating the command control at the middle position of the connection line.

[0081] Specifically, when generating the command control between the first virtual object and the second virtual object, a connection line can be generated between the first virtual object and the second virtual object first, and then the command control can be generated on the connection line. Of course, the connection line can also be generated at the same time as generating the command control, that is, in response to the operation of moving the first cursor to the first virtual object and moving the second cursor to the second virtual object, a command control and a connection line are generated between the first virtual object and the second virtual object. The connection line is used to connect the first virtual object and the second virtual object, and its style can be preset and selected at the start of the game. Or a default style can be set. If the user does not select a style at the start of the game, the default style can be directly used. By setting the style for the connection line, the user experience is further improved.

[0082] In addition, the color, width, border style, etc. of the connection line can be custom-set according to the actual application scenario, which will not be specifically limited here.

[0083] Exemplarily, Figure 4 is an application schematic diagram of the command control generation process provided by another embodiment of the present application. As Figure 4As shown, in this embodiment, when the first cursor C moves to the position where the first virtual object A is located and the second cursor D moves to the position where the second virtual object B is located, a connection line with gray scale can be generated between the virtual object A and the virtual object B, and a flag-shaped command control is generated at the middle position of the connection line.

[0084] S203: In response to a third touch operation on the command control, control the first virtual object or the second virtual object to act.

[0085] In this embodiment, after the command control is generated, the user can control the first virtual object to perform related actions on the second virtual object according to the command control, or control the second virtual object to perform related actions on the first virtual object according to the command control. In addition, to perform related actions on which virtual object, a sliding operation can be performed in the direction where the virtual object is located. For example, if it is necessary to perform related actions on the first virtual object, a sliding operation can be performed in the direction where the first virtual object is located. If it is necessary to perform related actions on the second virtual object, a sliding operation can be performed in the direction where the second virtual object is located.

[0086] Further, in one implementation manner, in response to a third touch operation on the command control, controlling the first virtual object or the second virtual object to act may specifically include:

[0087] In response to a first sliding operation from the command control to the direction where the first virtual object is located, generate and display a first command item control acting on the first virtual object.

[0088] In response to a second sliding operation whose initial touch point is located in the first command item control, the final touch point is located in the first target command item in the first command item control, and is continuous with the first sliding operation, select the first target command item, and control the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

[0089] Specifically, when it is necessary to perform related actions on the first virtual object, a first sliding operation can be performed in the direction where the first virtual object is located first. The terminal device can generate and display a first command item control acting on the first virtual object in response to the first sliding operation. The first command item control includes command items related to the first virtual object. The user can slide among the command items, and determine the command item corresponding to the position of the final touch point as the first target command item, and control the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

[0090] Further, generating a first command item control acting on the first virtual object may specifically include: generating a first command item control according to the attribute information of the first virtual object.

[0091] Among them, the first command item control may include any one or more of an ordinary attack command item, a blood-drawing command item, a disk-pointing command item, a chaos-pointing command item, a celestial sound command item, and a protection command item. The attribute information of the first virtual object may be information such as constitution, strength, and mana that can determine the command item.

[0092] Exemplarily, Figure 5 is an application schematic diagram of the command process provided by an embodiment of the present application. In this embodiment, the second virtual object B commands the first virtual object A to act, as Figure 5 shown in a. The terminal device can respond to a sliding operation in the direction of the first virtual object A, generate and display a first command item control acting on the first virtual object A. The first command item control includes six command items: an ordinary attack command item, a blood-drawing command item, a disk-pointing command item, a chaos-pointing command item, a celestial sound command item, and a protection command, as Figure 5 shown in b. The user can slide at the positions where the six command items are located and finally release at the blood-drawing command item, so as to control the second virtual object B to perform a blood-drawing action on the first virtual object A.

[0093] In another implementation manner, responding to a third touch operation acting on the command control to control the first virtual object or the second virtual object to act may specifically include:

[0094] Responding to a third sliding operation from the command control in the direction of the second virtual object, generating and displaying a second command item control acting on the second virtual object.

[0095] Responding to a fourth sliding operation with the initial touch point located at the second command item control, the final touch point located at a second target command item in the second command item control, and continuous with the third sliding operation, selecting the second target command item, and controlling the first virtual object to perform an action corresponding to the second target command item on the second virtual object.

[0096] Specifically, when it is necessary to perform relevant actions on the second virtual object, a third sliding operation can be performed in the direction where the second virtual object is located. The terminal device can respond to the third sliding operation to generate and display a second command item control acting on the second virtual object. The second command item control includes command items related to the second virtual object. The user can slide among the command items and determine the second target command item corresponding to the position of the touch point where the final stop is located, and control the first virtual object to perform an action corresponding to the second target command item on the second virtual object.

[0097] Furthermore, generating the second command item control acting on the second virtual object may specifically include: generating the second command item control according to the attribute information of the second virtual object.

[0098] Among them, the second command item control may include any one or more of an ordinary attack command item, a blood drawing command item, a point disk command item, a point confusion command item, a celestial sound command item, and a protection command item. The attribute information of the first virtual object may be information such as constitution, strength, and mana that can determine the command item.

[0099] In addition, the command items in the first command item control may be the same as or different from the command items in the second command item control.

[0100] Exemplarily, Figure 6 FIG. is an application schematic diagram of the command process provided in another embodiment of the present application. In this embodiment, the first virtual object A commands the second virtual object B to act. As Figure 6 shown in a, the terminal device can respond to a sliding operation in the direction where the second virtual object B is located, generate and display a second command item control acting on the second virtual object B. The second command item control includes six command items: an ordinary attack command item, a blood drawing command item, a point disk command item, a point confusion command item, a celestial sound command item, and a protection command. As Figure 6 shown in b, the user can slide at the positions where the six command items are located and finally release at the blood drawing command item, and then can control the first virtual object A to perform a blood drawing action on the second virtual object B.

[0101] After adopting the above solution, it is possible to first respond to the first touch operation and the second touch operation on the first touch screen, display the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation on the second touch screen, and then respond to the operation of moving the first cursor to the first virtual object and moving the second cursor to the second virtual object, generate a command control between the first virtual object and the second virtual object. After generating the command control, it is possible to respond to the third touch operation on the command control to control the actions of the first virtual object or the second virtual object. By correspondingly converting the touch operation on the first touch screen into a cursor on the second touch screen and automatically generating a command control for commanding the actions of the two virtual objects when the cursor is located between the two virtual objects, the operation of commanding the virtual objects is simple and convenient, which not only saves the time of command and improves the efficiency of command, but also avoids the situation of user misoperation, thereby improving the user's gaming experience.

[0102] Based on Figure 2 the method, the embodiments of this specification also provide some specific implementation schemes of this method, which will be described below.

[0103] In addition, in another embodiment, after generating a command control between the first virtual object and the second virtual object, the method may further include:

[0104] Respond to a fifth sliding operation from the command control in the direction of the first virtual object or the second virtual object, and generate and display a command item control corresponding to the first virtual object or the second virtual object.

[0105] Respond to a sixth sliding operation that is continuous with the fifth sliding operation and from the command item control corresponding to the first virtual object or the second virtual object to the command control, and cancel the display of the command item control corresponding to the first virtual object or the second virtual object.

[0106] In this embodiment, if the user touches the command control and then wants to cancel the operation, they can slide within the range where the command control is located without releasing the sliding operation, and the trigger of the command control can be cancelled. This operation method is simple and convenient, which not only saves operation time, but also conforms to the user's operation habits and improves the user's gaming experience.

[0107] In addition, it is also possible to cancel the trigger of the command control by sliding in a direction other than the directions where the first virtual object and the second virtual object are located.

[0108] In addition, in another embodiment, the method may further include:

[0109] When performing the third touch operation on the command control, release the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation.

[0110] In this embodiment, the user generally operates on the second touch screen with the thumb or index finger, and operates on the first touch screen with the middle finger, index finger or other fingers. Therefore, when performing the third touch operation on the command control, it indicates that the user has already been manipulating the first virtual object or the second virtual object. Therefore, the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation can be released to liberate the user's fingers, without always keeping the cursor on the virtual object, which facilitates the user to command the game operation more flexibly and improves the user's gaming experience.

[0111] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 7 As shown in the structural schematic diagram of the command interaction device based on the game provided by the embodiment of the present application, which is applied to a terminal device. The terminal device includes a first touch screen and a second touch screen. The device includes, as Figure 7 shown, the device provided in this embodiment may include:

[0112] A display module 701, configured to respond to a first touch operation and a second touch operation acting on the first touch screen, and display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen.

[0113] In this embodiment, the display module 701 is further configured to:

[0114] When there are two or more touch points in the touch operation on the first touch screen, determine the first detected touch operation as the first touch operation, and determine the second detected touch operation as the second touch operation.

[0115] Respond to the first touch operation, and display a first cursor corresponding to the touch point of the first touch operation on the second touch screen.

[0116] Respond to the second touch operation, and display a second cursor corresponding to the touch point of the second touch operation on the second touch screen.

[0117] Wherein, the first touch screen is located on the back of the terminal device, the second touch screen is located on the front of the terminal device, and the first touch screen and the second touch screen are used to obtain touch operations of the same user.

[0118] A response module 702, configured to generate a command control between the first virtual object and the second virtual object in response to an operation of moving the first cursor to the first virtual object and moving the second cursor to the second virtual object.

[0119] In this embodiment, the response module 702 is further configured to:

[0120] Generate a connection line between the first virtual object and the second virtual object in a preset style.

[0121] Generate a command control at the middle position of the connection line.

[0122] The response module 702 is further configured to control the action of the first virtual object or the second virtual object in response to a third touch operation on the command control.

[0123] In this embodiment, in one implementation, the response module 702 is further configured to:

[0124] Generate and display a first command item control acting on the first virtual object in response to a first sliding operation from the command control in the direction of the first virtual object.

[0125] In response to a second sliding operation whose initial touch point is located on the first command item control, the final touch point is located on a first target command item in the first command item control, and is continuous with the first sliding operation, select the first target command item, and control the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

[0126] Furthermore, the response module 702 is further configured to:

[0127] Generate a first command item control according to the attribute information of the first virtual object, where the first command item control includes any one or more of a normal attack command item, a blood-drawing command item, a disk-pointing command item, a confusion-pointing command item, a celestial sound command item, and a protection command item.

[0128] In another implementation, the response module 702 is further configured to:

[0129] Generate and display a second command item control acting on the second virtual object in response to a third sliding operation from the command control in the direction of the second virtual object.

[0130] In response to a fourth swipe operation in which the initial touch point is located on the second command item control, the final touch point is located on a second target command item in the second command item control, and is continuous with the third swipe operation, the second target command item is selected, and the first virtual object is controlled to perform an action corresponding to the second target command item on the second virtual object.

[0131] In addition, in another embodiment, the response module 702 is further configured to:

[0132] In response to a fifth swipe operation from the command control towards the first virtual object or the second virtual object, generate and display a command item control corresponding to the first virtual object or the second virtual object.

[0133] In response to a sixth swipe operation that is continuous with the fifth swipe operation and from the command item control corresponding to the first virtual object or the second virtual object to the command control, cancel the display of the command item control corresponding to the first virtual object or the second virtual object.

[0134] In addition, in another embodiment, the response module 702 is further configured to:

[0135] When performing the third touch operation on the command control, release the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation.

[0136] The device provided by the embodiments of the present application can implement the method of the above embodiments as Figure 2 shown. The implementation principle and technical effects are similar, and will not be elaborated here.

[0137] Figure 8 is a schematic hardware structure diagram of an electronic device provided by an embodiment of the present application. As Figure 8 shown, the device 800 provided in this embodiment includes: a processor 801, and a memory communicatively connected to the processor. Among them, the processor 801 and the memory 802 are connected through a bus 803.

[0138] In a specific implementation process, the processor 801 executes computer execution instructions stored in the memory 802, so that the processor 801 executes the command interaction method based on the game in the above method embodiments.

[0139] The specific implementation process of the processor 801 can be referred to the above method embodiments. The implementation principle and technical effects are similar, and will not be elaborated here in this embodiment.

[0140] In the above Figure 8In the illustrated embodiments, it should be understood that the processor may be a central processing unit (CPU for short), or may also be other general-purpose processors, digital signal processors (DSP for short), application specific integrated circuits (ASIC for short), etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.

[0141] The memory may include high-speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.

[0142] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0143] The embodiments of the present application also provide a computer-readable storage medium, in which computer-executable instructions are stored. When the processor executes the computer-executable instructions, the command interaction method based on games in the above method embodiments is implemented.

[0144] The embodiments of the present application also provide a computer program product, including a computer program. When the computer program is executed by the processor, the command interaction method based on games as described above is implemented.

[0145] The above computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc. The readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0146] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0147] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0148] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements on some or all of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A game-based command interaction method, characterized in that, Applied to a terminal device, the terminal device includes a first touch screen and a second touch screen, and includes: Responding to a first touch operation and a second touch operation on the first touch screen, displaying a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen; Responding to the operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, generating a command control between the first virtual object and the second virtual object; Responding to a third touch operation on the command control, controlling the first virtual object or the second virtual object to act; The responding to a third touch operation on the command control to control the first virtual object or the second virtual object to act includes: Responding to a first sliding operation from the command control in the direction of the first virtual object, generating and displaying a first command item control acting on the first virtual object; Responding to a second sliding operation with an initial touch point located at the first command item control, a final touch point located at a first target command item in the first command item control, and continuous with the first sliding operation, selecting the first target command item, and controlling the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

2. The method according to claim 1, wherein The responding to a third touch operation on the command control to control the first virtual object or the second virtual object to act includes: Responding to a third sliding operation from the command control in the direction of the second virtual object, generating and displaying a second command item control acting on the second virtual object; Responding to a fourth sliding operation with an initial touch point located at the second command item control, a final touch point located at a second target command item in the second command item control, and continuous with the third sliding operation, selecting the second target command item, and controlling the first virtual object to perform an action corresponding to the second target command item on the second virtual object.

3. The method according to claim 1, wherein Generating a first command item control acting on the first virtual object includes: Generating a first command item control according to the attribute information of the first virtual object, where the first command item control includes any one or more of an ordinary attack command item, a blood pulling command item, a disk pointing command item, a confusion pointing command item, a celestial sound command item, and a protection command item.

4. The method according to claim 1, wherein The responding to a first touch operation and a second touch operation on the first touch screen to display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen includes: When there is a touch operation with two or more touch points on the first touch screen, determining the first detected touch operation as the first touch operation and the second detected touch operation as the second touch operation; Responding to the first touch operation, displaying a first cursor corresponding to the touch point of the first touch operation on the second touch screen; In response to the second touch operation, a second cursor corresponding to the touch point of the second touch operation is displayed on the second touch screen.

5. The method according to any one of claims 1-4, characterized in that, After generating a command control between the first virtual object and the second virtual object, the method further includes: In response to a fifth sliding operation from the command control towards the first virtual object or the second virtual object, generating and displaying a command item control corresponding to the first virtual object or the second virtual object; In response to a sixth sliding operation that is continuous with the fifth sliding operation and from the command item control corresponding to the first virtual object or the second virtual object to the command control, canceling the display of the command item control corresponding to the first virtual object or the second virtual object.

6. The method according to any one of claims 1 to 4, characterized in that The method further includes: When performing the third touch operation on the command control, releasing the first cursor corresponding to the first touch operation and the second cursor corresponding to the second touch operation.

7. The method according to any one of claims 1-4, characterized in that, Before generating a command control between the first virtual object and the second virtual object, the method further includes: Generating a connection line between the first virtual object and the second virtual object in a preset style; Then generating a command control between the first virtual object and the second virtual object includes: Generating a command control at the middle position of the connection line.

8. The method according to any one of claims 1 to 4, characterized in that The first touch screen is located on the back of the terminal device, and the second touch screen is located on the front of the terminal device. The first touch screen and the second touch screen are used to obtain touch operations of the same user.

9. A game-based command interaction device, characterized in that, Applied to a terminal device, the terminal device includes a first touch screen and a second touch screen, and the device includes: A display module, configured to, in response to a first touch operation and a second touch operation acting on the first touch screen, display a first cursor corresponding to the first touch operation and a second cursor corresponding to the second touch operation on the second touch screen; A response module, configured to, in response to an operation of moving the first cursor to a first virtual object and moving the second cursor to a second virtual object, generate a command control between the first virtual object and the second virtual object; The response module is further configured to, in response to a third touch operation acting on the command control, control the first virtual object or the second virtual object to act; The response module is specifically configured to, in response to a first sliding operation from the command control towards the direction where the first virtual object is located, generate and display a first command item control acting on the first virtual object; in response to a second sliding operation whose initial touch point is located in the first command item control, final touch point is located in a first target command item in the first command item control, and is continuous with the first sliding operation, select the first target command item, and control the second virtual object to perform an action corresponding to the first target command item on the first virtual object.

10. An electronic device, characterized in that, Including: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the game-based command interaction method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, Computer-executable instructions are stored in the computer-readable storage medium, and when the processor executes the computer-executable instructions, the game-based command interaction method according to any one of claims 1 to 8 is implemented.

12. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, the game-based command interaction method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Information processing method, device and equipment in game and storage medium

    CN111841001A