Formation method, device, electronic device and storage medium
By using the touch control method of pressing and sliding operations on the touch control terminal of RTS games on the mobile game terminal, the free formation of the game units is realized, and the problems of formation difficulties and inability to mix formations in the existing technology are solved, and the game is improved Operative.
Patent Information
- Application Number
- CN202010774683.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2040-08-04
AI Technical Summary
In the RTS games on the mobile game, the lack of convenient mouse box selection operations makes it difficult for game units to form formations, and the existing technology cannot realize the mixed formation of game units.
The free formation of the game unit is realized by responding to the pressing and sliding operations for the target game unit on the graphical user interface of the touch terminal, and displaying boundaries and using logos to mark the formation.
The free formation of game units is realized, allowing users to mix different types of game units according to their needs, improving the operability of the game.
Smart Images

Figure CN111841002B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a formation method, device, electronic device and storage medium. Background Art
[0002] In mobile RTS (Real-Time Strategy Game) games, the lack of convenient mouse selection operations brings certain difficulties to the formation of game units during the game.
[0003] In the prior art, the game interface of the RTS game on the mobile game terminal provides users with an option of unit formation. After the user clicks on a certain unit formation option, the user can operate the game units under the unit as a formation. However, the above-mentioned formation method cannot perform mixed formations on the game units in the game, thereby reducing the operability of the game. Summary of the invention
[0004] In view of this, embodiments of the present application provide a formation method, device, electronic device and storage medium to achieve the purpose of freely forming game units in a game.
[0005] In a first aspect, an embodiment of the present application provides a formation method, which is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, and the formation method includes:
[0006] In response to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, displaying a first border around a touch point of the pressing operation;
[0007] In response to a sliding operation exceeding the first boundary, when the sliding operation exceeds the first boundary, for each other game unit, use a first identification that can be used for formation to mark the game unit, and organize the game units selected by the sliding operation into a formation;
[0008] The pressing operation and the sliding operation are continuous touch operations.
[0009] Optionally, the method further comprises:
[0010] Before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0011] Optionally, in response to a pressing operation performed on the first target game unit for a duration exceeding a preset duration, displaying a first border around a touch point of the pressing operation includes:
[0012] In response to the pressing operation on the type identification of the first target game unit, the first border is displayed around the type identification of the first target game unit.
[0013] Optionally, the step of marking the game unit with a first identifier that can be used for formation includes:
[0014] The type identifier of the game unit is marked with a first identifier that can be used for formation.
[0015] Optionally, the method further comprises:
[0016] When the second target game unit is selected by the sliding operation to form a formation with the first target game unit, the first identifier of the second target game unit is replaced with the second identifier.
[0017] Optionally, the first identification is a second border displayed outside the type identification of the game unit, and the second identification is a third border displayed outside the type identification of the game unit.
[0018] Optionally, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0019] Optionally, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0020] Optionally, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0021] Optionally, in response to the sliding operation exceeding the first boundary, organizing the game units selected by the sliding operation into a formation includes:
[0022] In response to the sliding operation exceeding the first boundary, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0023] Optionally, the method further comprises:
[0024] According to the order in which the sliding operation passes through the type identifiers, the type identifiers that have passed through are connected using a connecting line.
[0025] Optionally, the method further comprises:
[0026] displaying controls for organizing the formation;
[0027] In response to a click operation on a target control, the formation is grouped using a grouping number corresponding to the target control after the formation is completed.
[0028] In a second aspect, an embodiment of the present application provides a formation method, which is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, and the formation method includes:
[0029] In response to a pressing operation on the first target game unit for a duration exceeding a preset duration, displaying an identifier corresponding to each game unit for indicating that formation is possible;
[0030] In response to the sliding operation under the pressing operation, the game units selected by the sliding operation are organized into a formation.
[0031] Optionally, the method further comprises:
[0032] Before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0033] Optionally, in response to a pressing operation performed on the first target game unit for a duration exceeding a preset duration, displaying an identifier corresponding to each game unit for indicating that formation can be performed includes:
[0034] In response to the pressing operation on the type identifier of the first target game unit, a first border is displayed around the type identifier corresponding to the first target game unit, and a second border is displayed around the type identifiers corresponding to other game units.
[0035] Optionally, the method further comprises:
[0036] When the sliding operation selects the second target game unit to form a formation with the first target game unit, the second boundary of the second target game unit is replaced with the third boundary.
[0037] Optionally, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0038] Optionally, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0039] Optionally, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0040] Optionally, in response to the sliding operation under the pressing operation, organizing the game units selected by the sliding operation into a formation includes:
[0041] In response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0042] Optionally, the method further comprises:
[0043] According to the order in which the sliding operation passes through the type identifiers, the type identifiers that have passed through are connected using a connecting line.
[0044] Optionally, the method further comprises:
[0045] displaying controls for organizing the formation;
[0046] In response to a click operation on a target control, the formation is grouped using a grouping number corresponding to the target control after the formation is completed.
[0047] In a third aspect, an embodiment of the present application provides a formation device, which is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, and the formation device includes:
[0048] A display unit, configured to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and to display a first border around a touch point of the pressing operation;
[0049] a formation unit, configured to respond to a sliding operation exceeding the first boundary, and when the sliding operation exceeds the first boundary, for each other game unit, mark the game unit with a first identification that can be used for formation, and organize the game units selected by the sliding operation into a formation;
[0050] The pressing operation and the sliding operation are continuous touch operations.
[0051] Optionally, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0052] Optionally, the display unit is configured to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and when a first border is displayed around a touch point of the pressing operation, includes:
[0053] In response to the pressing operation on the type identification of the first target game unit, the first border is displayed around the outer periphery of the type identification.
[0054] Optionally, the configuration of the formation unit, when used to mark the game unit with a first identification that can be used for formation, includes:
[0055] The type identifier of the game unit is marked with a first identifier that can be used for formation.
[0056] Optionally, the formation unit is further configured to replace the first identifier of the second target game unit with the second identifier when the sliding operation selects the second target game unit to form a formation with the first target game unit.
[0057] Optionally, the first identification is a second border displayed outside the type identification of the game unit, and the second identification is a third border displayed outside the type identification of the game unit.
[0058] Optionally, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0059] Optionally, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0060] Optionally, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0061] Optionally, the configuration of the formation unit, when used to respond to a sliding operation exceeding the first boundary and to organize the game units selected by the sliding operation into a formation, includes:
[0062] In response to the sliding operation exceeding the first boundary, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0063] Optionally, the formation unit is further used to connect the type identifiers that have passed through by using lines according to the order in which the sliding operation passes through the type identifiers.
[0064] Optionally, the display unit is further used to: display a control for grouping the formation;
[0065] The formation unit is further used to respond to a click operation on a target control, and after completing the formation, use the formation number corresponding to the target control to group the formation.
[0066] In a fourth aspect, an embodiment of the present application provides a formation device, which is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, and the formation device includes:
[0067] A display unit, in response to a pressing operation on a first target game unit for a duration exceeding a preset duration, displays an identification corresponding to each game unit for indicating that a formation can be performed;
[0068] The formation unit is used to respond to the sliding operation under the pressing operation and organize the game units selected by the sliding operation into a formation.
[0069] Optionally, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0070] Optionally, the configuration of the display unit, in response to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, to display an identification corresponding to each game unit for indicating that formation can be performed, includes:
[0071] In response to the pressing operation on the type identifier of the first target game unit, a first border is displayed around the type identifier corresponding to the first target game unit, and a second border is displayed around the type identifiers corresponding to other game units.
[0072] Optionally, the formation unit is further configured to replace the second boundary of the second target game unit with the third boundary when the sliding operation selects the second target game unit to form a formation with the first target game unit.
[0073] Optionally, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0074] Optionally, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0075] Optionally, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0076] Optionally, the configuration of the formation unit, when used to respond to the sliding operation under the pressing operation and to organize the game units selected by the sliding operation into a formation, includes:
[0077] In response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0078] Optionally, the formation unit is further used to connect the type identifiers that have passed through by using lines according to the order in which the sliding operation passes through the type identifiers.
[0079] Optionally, the display unit is used to display a control for grouping the formation;
[0080] The formation unit is further used to respond to a click operation on a target control, and after completing the formation, use the formation number corresponding to the target control to group the formation.
[0081] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the formation method as described in any one of the first aspect or the second aspect.
[0082] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the formation method as described in any one of the first aspect or the second aspect are executed.
[0083] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0084] In the present application, when forming a team of game units in a game, a first target game unit displayed on a graphical user interface of a touch terminal can be pressed. When the pressing operation duration exceeds a preset duration, a first boundary is displayed outside the touch point of the pressing operation, and when the sliding operation under the pressing operation exceeds the first boundary, the other game units displayed on the graphical user interface are marked with a first identifier that can be formed into a team. At this time, the first target game unit and the other game units enter a team-forming state, and then the game units selected under the sliding operation are formed into a team. Through the above operation, the first target game unit and the other game units displayed on the graphical user interface can be freely formed into a team. Furthermore, the user can form different types of game units into a team according to his own needs, and the user can form a certain number of game units into a team according to his own needs, thereby achieving the purpose of mixed formation of different types of game units, thereby increasing the operability of the game.
[0085] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0087] Figure 1 A schematic diagram of a process flow of a formation method provided in Example 1 of the present application;
[0088] Figure 2 A schematic diagram of a graphical user interface provided in Example 1 of the present application;
[0089] Figure 3 A schematic diagram of another graphical user interface provided in Example 1 of the present application;
[0090] Figure 4 A schematic diagram of another graphical user interface provided in Example 1 of the present application;
[0091] Figure 5 A schematic diagram of another graphical user interface provided in Example 1 of the present application;
[0092] Figure 6 A schematic diagram of another graphical user interface provided in Example 1 of the present application;
[0093] Figure 7 A schematic diagram of a flow chart of another formation method provided in Embodiment 1 of the present application;
[0094] Figure 8 A schematic diagram of a process flow of a formation method provided in Embodiment 2 of the present application;
[0095] Fig. 9 A schematic diagram of a graphical user interface provided in Example 2 of the present application;
[0096] Fig.10 A schematic diagram of the structure of a formation device provided in Embodiment 3 of the present application;
[0097] Fig.11 A schematic diagram of the structure of a formation device provided in Embodiment 4 of the present application;
[0098] Fig.12 A schematic diagram of the structure of an electronic device provided in Embodiment 5 of the present disclosure. DETAILED DESCRIPTION
[0099] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0100] RTS games include different types of arms (i.e. different types of game units). For PC (such as desktop) RTS games, users can select different types of arms with the mouse and then form teams. This allows a team to include different types of arms, so that different types of arms in a team can cooperate with each other to achieve the goal during the battle. However, for mobile RTS games, since game units cannot be selected with the mouse, it brings certain difficulties to the formation of game units during the game.
[0101] In the prior art, the game interface of the RTS game on the mobile game terminal provides the user with an option of arms formation. After the user clicks on a certain arms formation option, the user can operate the game units under the arms as a formation. However, the above formation method cannot perform mixed formation of game units in the game, that is, different arms are organized into one formation, and only a fixed number of game units can be organized into one formation. For example, the arms currently displayed on the graphical user interface include arms 1, arms 2 and arms 3, wherein the number of arms 1 is 5. After the user clicks on the option corresponding to arms 1, the formation obtained at this time is arms 1 with a number of 5. At this time, the user can only operate the formation with a number of 5 and arms of arms 1. Furthermore, in the above method, the user cannot freely mix the game units according to his own needs, that is, it is impossible to select the number of game units included in a formation and the types of game units included, thereby failing to meet the user's operation needs during the game, thereby reducing the operability of the game.
[0102] The present application provides a formation method, device, electronic device and storage medium to achieve the purpose of freely forming game units in an RTS game on a mobile game terminal.
[0103] It should be noted in advance that the formation involved in the present application refers to dividing multiple game units into a virtual team. After a virtual team receives a control instruction, the game units belonging to the virtual team perform the same virtual action based on the control instruction. For example, a movement instruction can be issued to a virtual team, and the game units belonging to the virtual team move to the same destination according to the movement instruction. The grouping involved in the present application refers to numbering a formation, and the corresponding virtual team can be found by the number.
[0104] It should be noted again that the game units displayed on the graphical user interface in this application may include different types of game units, and different types of game units refer to different types of arms, and different types of arms have different game attributes, for example, different types of arms have different movement methods, skills and common attack methods. The game unit involved in this application refers to the smallest unit that can be controlled in the game, for example, a virtual character, or a corps that performs the same virtual action in any situation.
[0105] The present application is described in detail below through examples.
[0106] Embodiment 1
[0107] Figure 1A flow chart of a formation method provided in Embodiment 1 of the present application is provided. The formation method is applied to a touch terminal. A plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal. The game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, such as Figure 1 As shown, the formation method includes the following steps:
[0108] Step 101: In response to a pressing operation on a first target game unit whose duration exceeds a preset duration, a first boundary is displayed around a touch point of the pressing operation.
[0109] Step 102, in response to a sliding operation that exceeds the first boundary, when the sliding operation exceeds the first boundary, for each other game unit, use a first identifier that can be used for formation to mark the game unit, and organize the game units selected by the sliding operation into a formation; wherein the pressing operation and the sliding operation are continuous touch operations.
[0110] Specifically, multiple game units are currently displayed on the graphical user interface. During the game, if the user wants to select several game units from the multiple game units (hereinafter referred to as game units to be formed) for formation, a game unit can be determined from the game units to be formed as the first target game unit, and then a press operation is performed on the first target game unit. When the pressing operation duration of the pressing operation exceeds a preset duration (for example, the pressing operation duration exceeds 0.3S), a first boundary is displayed around the touch point of the pressing operation. In order to determine that this operation is a formation operation, the first identifier for formation is used to mark other game units on the graphical user interface after the sliding operation under the pressing operation exceeds the first boundary, and the game units passed by the sliding operation are organized into a formation. After completing the formation, the user can perform unified operations on the game units in the formation, for example, using a move instruction to move all game units in the formation to a target position in the game scene.
[0111] For example, Figure 2 A display diagram of a graphical user interface provided in Example 1 of the present application is shown as follows: Figure 2 As shown, the game units on the graphical user interface include game unit A, game unit B, game unit C, game unit D and game unit E. When the pressing operation duration of the user on the game unit A exceeds the preset duration, a first boundary is displayed on the periphery of the game unit A. Figure 3 This is a schematic diagram of another graphical user interface provided in the first embodiment of the present application, in which a sliding operation (the direction of the sliding operation is as shown in FIG. 1 ) under the pressing operation is performed. Figure 3As shown by the dotted arrow in the figure, the touch point of the current sliding operation is as follows Figure 3 After the sliding operation exceeds the first boundary, the first identifier is used to mark game unit B, game unit C, game unit D and game unit E respectively. The starting point of the sliding operation is game unit A. If the sliding operation also passes through game unit B and game unit C, the game units passed by the sliding operation are game unit A, game unit B and game unit C. After the sliding operation is completed, game unit A, game unit B and game unit C are organized into one formation.
[0112] In the above operations, the first target game unit and other game units displayed on the graphical user interface can be freely formed into teams through one continuous operation (pressing operation and sliding operation). Furthermore, users can form different types of game units into a team according to their own needs, and users can form a certain number of game units into a team according to their own needs, thereby achieving the purpose of mixed formation of different types of game units, thereby increasing the operability of the game.
[0113] It should be noted that the specific preset duration can be set according to actual needs and is not specifically limited here. The specific first identifier can also be set according to actual needs. For example, the first identifier can be the second boundary (the style of the second boundary can be referred to Figure 2 and Figure 3 Alternatively, a bright color may be used as the first identifier (eg, after the sliding operation exceeds the first boundary, the game unit is highlighted by a bright color), etc. The specific first identifier is not specifically limited herein.
[0114] In a feasible implementation manner, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0115] Specifically, in order to facilitate users to distinguish the types of game units so that users can make formation selections, multiple game units displayed on the graphical user interface are marked with their respective corresponding type identifiers. Specifically, the type identifier can be displayed above the corresponding game unit. Users can intuitively distinguish the types of game units through the type identifier, which helps to reduce the probability of user selection errors.
[0116] For example, Figure 4 This is another display diagram of a graphical user interface provided in the first embodiment of the present application. After marking each game unit with a corresponding type identifier, the game unit can be displayed as follows: Figure 4 As shown, Figure 4 The game units shown include two types of identification, that is, two types of soldiers.
[0117] It should be noted that the specific type identification can be designed according to the type of game and is not specifically limited here.
[0118] In a feasible implementation manner, when executing step 101, in response to the pressing operation on the type identification of the first target game unit, the first border may be displayed around the type identification.
[0119] Specifically, the game units displayed on the graphical user interface are all marked with the type identification corresponding to the game units. The type identification allows the user to distinguish different types of game units. In addition, since the display area of the graphical user interface of the touch terminal is relatively small, if the game units are directly operated, misoperation may occur. In order to facilitate the user to select the first target game unit, the user can press the type identification of the first target game unit when performing the pressing operation, and a first boundary is displayed outside the type identification of the first target game unit, as shown in FIG. Figure 4 Display mode shown.
[0120] In a feasible implementation manner, when the game unit is marked with the first identification that allows formation, the type identification of the game unit may be marked with the first identification that allows formation.
[0121] Specifically, after marking the type identifier of each game unit with the first identifier, the user can be informed that other game units displayed on the graphical user interface have entered a state where they can be formed into a team. At this time, the user can select other game units to complete the formation operation.
[0122] For example, Figure 5 A schematic diagram of another graphical user interface provided in Example 1 of the present application, in Figure 4 The display mode after the touch point of the sliding operation exceeds the first boundary is as follows Figure 5 As shown, in Figure 5 In the example, the type identifiers of other game units are marked with the first identifier. After the type identifiers of other game units are marked with the first identifier, the user can continue to select game units for formation through sliding operations.
[0123] In a feasible implementation manner, when the sliding operation selects the second target game unit to form a formation with the first target game unit, the first identifier of the second target game unit is replaced with the second identifier.
[0124] Specifically, the game unit selected from other game units under the sliding operation is used as the second target game unit. After the sliding operation is completed, the first target game unit and the second target game unit can be organized into a formation, and in order to distinguish the selected game unit (i.e., the second target game unit) from the unselected game units among the other game units, after the sliding operation passes through a game unit among the other game units (i.e., the game unit is selected as a second target game unit), the first identifier of the game unit is replaced with the second identifier. Figure 6 A schematic diagram of another graphical user interface provided in the first embodiment of the present application is shown as follows: Figure 6 As shown, after being selected as the second target game unit by sliding operation, Figure 5 The first identifier shown in is replaced by Figure 6 The second identification shown in .
[0125] It should be noted that Figure 6 The second identifier shown is only a schematic illustration and does not constitute a specific limitation on the present application. The specific second identifier can be set according to actual needs. For example, any other identifier different from the first identifier can be used as the second identifier. The specific second identifier is not specifically limited here.
[0126] In a feasible implementation manner, the first identification is a second border displayed outside the type identification of the game unit, and the second identification is a third border displayed outside the type identification of the game unit.
[0127] Specifically, in order to make the style of the game screen relatively uniform and to distinguish the selected game unit from the other game units from the unselected game units, the first identifier is the second border displayed on the periphery of the type identifier of the game unit, and the second identifier is the third border displayed on the periphery of the type identifier of the game unit, that is, the second border corresponding to the game unit selected by the sliding operation from the other game units is replaced by the third border. For specific replacement methods, please refer to Figure 5 and Figure 6 .
[0128] In a feasible embodiment, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0129] Specifically, in order to make the style of the game screen relatively uniform and enable the user to distinguish which game units in the graphical user interface have been selected and which game units have not been selected, the first boundary and the third boundary can be used to mark the selected game units, and the second boundary can be used to mark the unselected game units, wherein the appearance of the first boundary and the third boundary is the same, and the appearance of the first boundary and the second boundary is different. Further, the shapes of the first boundary, the second boundary and the third boundary are the same, but the first boundary and the third boundary use the same color, and the first boundary and the second boundary use different colors, such as Figure 5 and Figure 6 As shown, the shapes of the first boundary, the second boundary and the third boundary are all circular, the first boundary and the third boundary are rendered using the same color, and the first boundary and the second boundary are rendered using different colors.
[0130] It should be noted that the specific colors used for the first boundary and the second boundary can be set according to actual needs and are not specifically limited here. In this application, solid lines and dotted lines are used to represent different colors.
[0131] In a feasible embodiment, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0132] Specifically, in order to enable the user to distinguish which game units in the graphical user interface have been selected and which game units have not been selected, the first boundary and the third boundary can be used to mark the selected game units, and the second boundary can be used to mark the unselected game units, wherein the first boundary and the third boundary have the same shape, and the first boundary and the second boundary have different shapes, that is, the game units selected by the user are judged by their shapes.
[0133] In a feasible embodiment, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0134] Specifically, in order to make the distinction between the selected game units and the unselected game units more obvious, on the basis of the first boundary and the third boundary having the same shape and the first boundary and the second boundary having different shapes, the first boundary and the third boundary may have the same color and the first boundary and the second boundary may have different colors.
[0135] In a feasible implementation, when executing the step of organizing the game units selected by the sliding operation into a formation in response to the sliding operation exceeding the first boundary, the game units corresponding to the type identifiers passed by the sliding operation can be organized into a formation in response to the sliding operation exceeding the first boundary.
[0136] Specifically, in order to distinguish different types of game units, the type identification of the game unit is displayed above the game unit, and for the convenience of user operation, the user can select the game unit to be organized into a formation by sliding the type identification. For example, the path of the sliding operation can be as follows: Figure 6 As shown, at this time, the game units corresponding to the type marks on the sliding path can be organized into a formation.
[0137] In a feasible implementation manner, the type identifiers that have been passed through can be connected by lines in the order in which the sliding operation passes through the type identifiers.
[0138] Specifically, in order to let the user know the starting point and the current end point of the sliding operation, the type identifiers of the sliding operation can be connected in sequence by using a connection method, as shown in the following example: Figure 6 As shown by the dotted line in Figure 6 The dashed lines in the figure can also be replaced by solid lines.
[0139] In one possible embodiment, Figure 7 A flow chart of another formation method provided in Example 1 of the present application is shown as follows: Figure 7 As shown, the formation method also includes the following steps:
[0140] Step 701: Display controls for grouping the formation.
[0141] Step 702: respond to a click operation on a target control, and after completing the formation, group the formation using a grouping number corresponding to the target control.
[0142] Specifically, the user can also group the completed formations. For example, a grouping control is displayed on the graphical user interface. The user can first click on the grouping control, and then perform the above-mentioned pressing and sliding operations. After completing the sliding operation, the game units that the sliding operation passes through are regarded as a formation, and the formation is grouped using the number corresponding to the grouping control clicked by the user; or, after completing the above-mentioned sliding operation, the game units that the sliding operation passes through are regarded as a formation. At this time, the user can click on the grouping control displayed on the graphical user interface, and then group the formation using the number corresponding to the grouping control clicked by the user. After completing the grouping operation of the formation, when the user wants to operate the formation, all the game units included in the formation can be found through the grouping, and then the formation can be controlled through touch operations.
[0143] Embodiment 2
[0144] Figure 8A flow chart of a formation method provided in Embodiment 2 of the present application is provided. The formation method is applied to a touch terminal. A plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal. The game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, such as Figure 8 As shown, the formation method comprises the following steps:
[0145] Step 801: In response to a pressing operation on a first target game unit for a duration exceeding a preset duration, displaying an identifier corresponding to each game unit for indicating that formation is possible.
[0146] Step 802: In response to the sliding operation under the pressing operation, the game units selected by the sliding operation are organized into a formation.
[0147] Specifically, multiple game units are currently displayed on the graphical user interface. During the game, if the user wants to select several game units from the multiple game units for formation, a game unit can be determined from the game units to be formed as the first target game unit, and then a press operation is performed on the first target game unit. When the pressing operation duration of the pressing operation exceeds a preset duration (for example, the pressing operation duration exceeds 0.3S), an identifier corresponding to each game unit is displayed to indicate that formation can be performed, that is, all game units displayed on the graphical user interface enter a state where formation can be performed, and then the user can determine the game units included in the formation through a sliding operation under the pressing operation.
[0148] For example, Fig. 9 A display diagram of a graphical user interface provided in Example 2 of the present application is shown as follows: Fig. 9 As shown, the game units on the graphical user interface include game unit A, game unit B, game unit C, game unit D and game unit E. When the pressing operation time of the user on the game unit A exceeds the preset time, the game unit A is opened by using the following method: Fig. 9 The icons shown mark each game unit, and the user can then select the game unit to form a team through a sliding operation after the pressing operation.
[0149] In the above operations, the first target game unit and other game units displayed on the graphical user interface can be freely formed into teams through one continuous operation (pressing operation and sliding operation). Furthermore, users can form different types of game units into a team according to their own needs, and users can form a certain number of game units into a team according to their own needs, thereby achieving the purpose of mixed formation of different types of game units, thereby increasing the operability of the game.
[0150] In a feasible implementation manner, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0151] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0152] In a feasible implementation, when executing step 801, in response to the pressing operation on the type identifier of the first target game unit, a first border can be displayed around the type identifier corresponding to the first target game unit, and a second border can be displayed around the type identifiers corresponding to other game units.
[0153] Specifically, the first target game unit and other game units can be distinguished through the above display method, and the user can be informed that the game unit in the graphical user interface has entered the team-forming state. For the first boundary and the second boundary, please refer to Figure 5 The display method and related description of the first boundary and the second boundary will not be described in detail here.
[0154] In a feasible implementation manner, when the sliding operation selects the second target game unit to form a formation with the first target game unit, the second boundary of the second target game unit is replaced with the third boundary.
[0155] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0156] In a feasible embodiment, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0157] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0158] In a feasible embodiment, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0159] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0160] In a feasible embodiment, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0161] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0162] In a feasible implementation, when executing the step of organizing the game units selected by the sliding operation into a formation in response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation can be organized into a formation in response to the sliding operation under the pressing operation.
[0163] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0164] In a feasible implementation manner, according to the order in which the sliding operation passes through the type identifications, the type identifications passed through are connected by lines.
[0165] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0166] In a feasible implementation, the formation method further includes: before responding to the pressing operation, displaying a control for grouping the formation; in response to a click operation on a target control, after the sliding operation is completed, grouping the formation using a grouping number corresponding to the target control.
[0167] The specific principles can be referred to the relevant explanations in the first embodiment, and will not be described in detail here.
[0168] Embodiment 3
[0169] Fig.10 A structural schematic diagram of a formation device provided in Embodiment 3 of the present application is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, wherein the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, and the formation device comprises:
[0170] The display unit 1001 is used to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and to display a first border around a touch point of the pressing operation;
[0171] A formation unit 1002 is used to respond to a sliding operation that exceeds the first boundary. When the sliding operation exceeds the first boundary, for each other game unit, use the first identification that can be used for formation to mark the game unit, and form the game units selected by the sliding operation into a formation;
[0172] The pressing operation and the sliding operation are continuous touch operations.
[0173] In a feasible implementation manner, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0174] In a feasible implementation, the display unit 1001 is configured to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and when a first border is displayed around a touch point of the pressing operation, the configuration includes:
[0175] In response to the pressing operation on the type identification of the first target game unit, the first border is displayed around the outer periphery of the type identification.
[0176] In a feasible implementation manner, the configuration of the formation unit 1002, when used to mark the game unit with a first identification that can be used for formation, includes:
[0177] The type identifier of the game unit is marked with a first identifier that can be used for formation.
[0178] In a feasible implementation manner, the formation unit 1002 is further used to replace the first identifier of the second target game unit with the second identifier when the second target game unit is selected by the sliding operation to form a formation with the first target game unit.
[0179] In a feasible implementation manner, the first identification is a second border displayed outside the type identification of the game unit, and the second identification is a third border displayed outside the type identification of the game unit.
[0180] In a feasible embodiment, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0181] In a feasible embodiment, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0182] In a feasible embodiment, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0183] In a feasible implementation, the configuration of the formation unit 1002, when used to respond to a sliding operation exceeding the first boundary and to form a formation of the game units selected by the sliding operation, includes:
[0184] In response to the sliding operation exceeding the first boundary, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0185] In a feasible implementation manner, the formation unit 1002 is further used to connect the type identifiers that have passed through by using lines according to the order in which the sliding operation passes through the type identifiers.
[0186] In a feasible implementation, the display unit 1001 is further used to: display a control for grouping the formation;
[0187] The formation unit 1002 is further used to respond to a click operation on a target control, and to group the formation using a grouping number corresponding to the target control after the formation is completed.
[0188] The detailed principle of the third embodiment can be referred to the related explanation in the first embodiment, and will not be described in detail here.
[0189] In the present application, the first target game unit and other game units displayed on the graphical user interface can be freely formed into teams through one continuous operation (pressing operation and sliding operation). Furthermore, users can form different types of game units into a team according to their own needs, and users can form a certain number of game units into a team according to their own needs, thereby achieving the purpose of mixed formation of different types of game units, thereby increasing the operability of the game.
[0190] Embodiment 4
[0191] Fig.11 A structural diagram of a formation device provided in Embodiment 4 of the present application is applied to a touch terminal, wherein a plurality of game units and part or all of a game scene are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal, such as Fig.11 As shown, the formation device includes:
[0192] The display unit 1101 is used to respond to a pressing operation on the first target game unit for a duration exceeding a preset duration, and to display an identification corresponding to each game unit for indicating that formation can be performed;
[0193] The formation unit 1102 is used to respond to the sliding operation under the pressing operation and organize the game units selected by the sliding operation into a formation.
[0194] In a feasible implementation manner, before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit.
[0195] In a feasible implementation, the configuration of the display unit 1101, in response to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, to display an identification corresponding to each game unit for indicating that formation can be performed, includes:
[0196] In response to the pressing operation on the type identifier of the first target game unit, a first border is displayed around the type identifier corresponding to the first target game unit, and a second border is displayed around the type identifiers corresponding to other game units.
[0197] In a feasible implementation manner, the formation unit 1102 is further configured to replace the second boundary of the second target game unit with the third boundary when the sliding operation selects the second target game unit and the first target game unit as a formation.
[0198] In a feasible embodiment, the first boundary, the second boundary and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0199] In a feasible embodiment, the first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
[0200] In a feasible embodiment, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
[0201] In a feasible implementation, the configuration of the formation unit 1102, when used to respond to the sliding operation under the pressing operation and to form a formation of the game units selected by the sliding operation, includes:
[0202] In response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
[0203] In a feasible implementation manner, the formation unit 1102 is further used to connect the type identifiers that have passed through the sliding operation using a connecting line in the order in which the type identifiers have passed through.
[0204] In a feasible implementation, the display unit 1101 is used to display controls for grouping the formation;
[0205] The formation unit 1102 is further used to respond to a click operation on a target control, and to group the formation using a grouping number corresponding to the target control after the formation is completed.
[0206] The detailed principle of the fourth embodiment can be referred to the related explanation in the second embodiment, which will not be described in detail here.
[0207] In the present application, the first target game unit and other game units displayed on the graphical user interface can be freely formed into teams through one continuous operation (pressing operation and sliding operation). Furthermore, users can form different types of game units into a team according to their own needs, and users can form a certain number of game units into a team according to their own needs, thereby achieving the purpose of mixed formation of different types of game units, thereby increasing the operability of the game.
[0208] Embodiment 5
[0209] Fig.12 A structural diagram of an electronic device provided for Example 5 of the present disclosure includes: a processor 1201, a storage medium 1202 and a bus 1203, wherein the storage medium 1202 stores machine-readable instructions executable by the processor 1201. When the electronic device runs the above-mentioned formation method, the processor 1201 communicates with the storage medium 1202 through the bus 1203, and the processor 1201 executes the machine-readable instructions to execute the method described in Example 1 or Example 2. For the specific execution method steps and principles, please refer to the description of Example 1 and Example 2, which will not be repeated here.
[0210] Embodiment 6
[0211] Embodiment 6 of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method described in Embodiment 1 or Embodiment 2 is executed. For the specific execution method steps and principles, please refer to the description of Embodiment 1 and Embodiment 2, which will not be repeated here.
[0212] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0213] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0214] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0215] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0216] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0217] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A formation method, characterized in that: Applied to a touch terminal, a plurality of game units and part or all of the game scenes are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal. The formation method includes: In response to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, displaying a first border around a touch point of the pressing operation; In response to a sliding operation exceeding the first boundary, when the sliding operation exceeds the first boundary, for each other game unit, the game unit is marked with a first identification that can be used for formation, and the game units selected by the sliding operation are organized into a formation, and when the sliding operation exceeds the first boundary, it is used to determine that this operation is a formation operation, and before responding to the pressing operation, each game unit is marked with a type identification corresponding to the game unit; In response to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, displaying a first border around a touch point of the pressing operation includes: In response to the pressing operation on the type identification of the first target game unit, displaying the first border around the type identification of the first target game unit; The step of marking the game unit with the first identification that can be used for formation includes: Mark the type identifier of the game unit using the first identifier that can be used for formation; The method further comprises: When the second target game unit is selected by the sliding operation to form a formation with the first target game unit, the first identifier of the second target game unit is replaced with the second identifier; In response to the sliding operation exceeding the first boundary, the game units selected by the sliding operation are organized into a formation, including: In response to a sliding operation that exceeds the first boundary, grouping the game units corresponding to the type identifiers that the sliding operation passes through into a formation; The pressing operation and the sliding operation are continuous touch operations.
2. The method according to claim 1, characterized in that The first mark is a second border displayed outside the type mark of the game unit, and the second mark is a third border displayed outside the type mark of the game unit.
3. The method according to claim 2, characterized in that The first boundary, the second boundary, and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
4. The method according to claim 2, characterized in that The first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
5. The method according to claim 4, characterized in that The first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
6. The method according to claim 1, characterized in that The method further comprises: According to the order in which the sliding operation passes through the type identifiers, the type identifiers that have passed through are connected using a connecting line.
7. The method according to claim 1, characterized in that The method further comprises: displaying controls for organizing the formation; In response to a click operation on a target control, the formation is grouped using a grouping number corresponding to the target control after the formation is completed.
8. A formation method, characterized in that: Applied to a touch terminal, a plurality of game units and part or all of the game scenes are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal. The formation method includes: In response to a pressing operation on the first target game unit for a duration exceeding a preset duration, displaying an identifier corresponding to each game unit for indicating that formation is possible; In response to the sliding operation under the pressing operation, the game units selected by the sliding operation are organized into a formation, wherein the pressing operation is used to determine that this operation is a formation operation; before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit; The response to the pressing operation on the first target game unit for a duration exceeding a preset duration, displaying the corresponding identification of each game unit for indicating that the formation can be performed, includes: In response to the pressing operation on the type identifier of the first target game unit, a first border is displayed around the type identifier corresponding to the first target game unit, and a second border is displayed around the type identifiers corresponding to other game units; The method further comprises: When the sliding operation selects the second target game unit to form a formation with the first target game unit, replacing the second boundary of the second target game unit with the third boundary; In response to the sliding operation under the pressing operation, the game units selected by the sliding operation are organized into a formation, including: In response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
9. The method according to claim 8, characterized in that The first boundary, the second boundary, and the third boundary have the same shape, the first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
10. The method according to claim 8, characterized in that The first boundary and the second boundary have the same shape, and the first boundary and the third boundary have different shapes.
11. The method according to claim 10, characterized in that The first boundary and the third boundary have the same color, and the first boundary and the second boundary have different colors.
12. The method according to claim 8, characterized in that The method further comprises: According to the order in which the sliding operation passes through the type identifiers, the type identifiers that have passed through are connected using a connecting line.
13. The method according to claim 8, characterized in that The method further comprises: displaying controls for organizing the formation; In response to a click operation on a target control, the formation is grouped using a grouping number corresponding to the target control after the formation is completed.
14. A formation device, characterized in that: Applied to a touch terminal, a plurality of game units and part or all of the game scenes are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal. The formation device includes: A display unit, configured to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and to display a first border around a touch point of the pressing operation; a formation unit, for responding to a sliding operation exceeding the first boundary, when the sliding operation exceeds the first boundary, for each other game unit, using a first identification that can be used for formation to mark the game unit, and forming the game units selected by the sliding operation into a formation, wherein when the sliding operation exceeds the first boundary, it is used to determine that this operation is a formation operation, and before responding to the pressing operation, each game unit is marked with a type identification corresponding to the game unit; The display unit is used to respond to a pressing operation performed on a first target game unit for a duration exceeding a preset duration, and when a first border is displayed around a touch point of the pressing operation, the display unit includes: In response to the pressing operation on the type identification of the first target game unit, displaying the first border around the type identification of the first target game unit; When the formation unit is used to mark the game unit using the first identification that can be used for formation, it includes: Mark the type identifier of the game unit using the first identifier that can be used for formation; The formation unit is further used for replacing the first identifier of the second target game unit with the second identifier when the second target game unit is selected by the sliding operation to form a formation with the first target game unit; The formation unit is used to respond to the sliding operation exceeding the first boundary and organize the game units selected by the sliding operation into a formation, including: In response to a sliding operation that exceeds the first boundary, grouping the game units corresponding to the type identifiers that the sliding operation passes through into a formation; The pressing operation and the sliding operation are continuous touch operations.
15. A formation device, characterized in that: Applied to a touch terminal, a plurality of game units and part or all of the game scenes are displayed on a graphical user interface of the touch terminal, and the game units can perform corresponding virtual actions in the game according to control instructions received by the touch terminal. The formation device includes: A display unit, in response to a pressing operation on a first target game unit for a duration exceeding a preset duration, displays an identification corresponding to each game unit for indicating that a formation can be performed; a formation unit, for responding to the sliding operation under the pressing operation, and forming the game units selected by the sliding operation into a formation, wherein the pressing operation is used to determine that this operation is a formation operation; before responding to the pressing operation, each game unit is marked with a type identifier corresponding to the game unit; The display unit is used to respond to the pressing operation performed on the first target game unit for a duration exceeding a preset duration, and when displaying the identification corresponding to each game unit for indicating that the formation can be performed, it includes: In response to the pressing operation on the type identifier of the first target game unit, a first border is displayed around the type identifier corresponding to the first target game unit, and a second border is displayed around the type identifiers corresponding to other game units; The formation unit is further configured to replace the second boundary of the second target game unit with the third boundary when the sliding operation selects the second target game unit to form a formation with the first target game unit; The formation unit is used to respond to the sliding operation under the pressing operation, and when the game units selected by the sliding operation are formed into a formation, it includes: In response to the sliding operation under the pressing operation, the game units corresponding to the type identifiers passed by the sliding operation are organized into a formation.
16. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the formation method as described in any one of claims 1 to 7 or claims 8 to 13.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the formation method as claimed in any one of claims 1 to 7 or claims 8 to 13 are executed.
Citation Information
Patent Citations
Virtual unit control method and device, electronic equipment and storage medium
CN110302530A