Object grouping formation switching method, device, electronic device and storage medium

By exchanging and eliminating pattern objects on the pattern matrix of real-time strategy games and adjusting the formation of virtual object marshalling, the problem of inconvenient switching of virtual object formation in the existing technology is solved, and rapid switching and player experience improvement are achieved.

CN113908536BActive Publication Date: 2025-03-07SHANGHAI INGOT NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111053615.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-08
Publication Date
2025-03-07
Estimated Expiration
2041-09-08

AI Technical Summary

Technical Problem

In the real-time strategy game running on mobile terminals, the formation switching of virtual objects is inconvenient, which leads to obstruction of players' observation and affects the experience.

Method used

By receiving object exchange instructions on the pattern matrix of the game scene, exchanging the position of the pattern object, and eliminating the pattern object when specific conditions are met, the formation of the object group is adjusted and quick switching is achieved.

Benefits of technology

It realizes rapid switching of multiple virtual object formations, avoids obstruction of virtual objects during formation switching, and improves player experience and interactivity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113908536B_ABST
    Figure CN113908536B_ABST
Patent Text Reader

Abstract

The present application discloses a formation switching method, device, electronic device and storage medium for object grouping, the method comprising: receiving an object exchange instruction on a pattern matrix displayed in a game scene; exchanging the positions of a first pattern object and a second pattern object in the pattern matrix according to the object exchange instruction, and eliminating the pattern object when a predetermined number of pattern objects of the same type are connected after detecting that the positions of the first pattern object and the second pattern object are exchanged; adjusting the formation of the object grouping in the game scene according to the type of the eliminated pattern object, the object grouping comprising a plurality of virtual objects. By adjusting the formation of the object grouping in the game scene according to the type of the eliminated pattern object, the formation switching of the object grouping can be completed without touching the screen to select the plurality of virtual objects separately, thereby avoiding the need to click on a plurality of virtual objects during the formation switching process, which hinders the player's observation of the plurality of virtual objects.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a formation switching method, device, electronic device and storage medium for object grouping. Background Art

[0002] In some games, such as RTS (Real-Time Strategy Game), it is usually necessary to select and control multiple virtual objects. When running such games on a mobile terminal, in the related art, if it is necessary to switch the formation of multiple virtual objects, a selection operation will be performed for each virtual object, such as dragging or pulling multiple virtual objects separately, so that multiple virtual objects can be selected and controlled to switch formations. However, this method cannot conveniently select multiple virtual objects, and cannot quickly adjust the formations of multiple virtual objects. At the same time, in the process of switching formations, since multiple virtual objects need to be dragged or pulled, the virtual objects will be blocked in the process, resulting in the process of switching the formations of multiple character objects. It will hinder the player's observation of multiple virtual objects and affect the player experience. Summary of the invention

[0003] The purpose of the present application is to solve at least one of the technical problems existing in the prior art, and to provide a formation switching method, device, electronic device and storage medium for object grouping, which can achieve rapid switching of the formations of multiple virtual objects while avoiding obstruction of the virtual objects during the formation switching process, reduce the player's observation of multiple virtual objects, and improve the player experience.

[0004] In a first aspect, an embodiment of the present application provides a formation switching method for object grouping, comprising:

[0005] Receiving an object exchange instruction on a pattern matrix displayed in a game scene, wherein the pattern matrix includes a plurality of matrix elements, each matrix element being used to display a pattern object;

[0006] exchanging positions of a first pattern object and a second pattern object in the pattern matrix according to an object exchange instruction, and eliminating the pattern object when a predetermined number of pattern objects of the same type are connected after detecting that the positions of the first pattern object and the second pattern object are exchanged;

[0007] According to the type of the pattern object to be eliminated, the formation of the object grouping in the game scene is adjusted accordingly, and the object grouping includes a plurality of virtual objects.

[0008] Furthermore, according to the type of the pattern object to be eliminated, the formation of the object grouping in the game scene is adjusted accordingly, including:

[0009] According to the type of the pattern object to be eliminated, obtain the corresponding formation control;

[0010] In response to the selection operation on the formation control, the formation of the object grouping in the game scene is adjusted accordingly according to the selected formation control.

[0011] Furthermore, according to the type of the pattern object to be eliminated, the corresponding formation control is obtained, including:

[0012] According to the type of the pattern object to be eliminated, the corresponding formation control is obtained from the server.

[0013] Further, according to the type of the pattern object to be eliminated, the corresponding formation control is obtained from the server, including:

[0014] According to the type of the pattern object to be eliminated, a corresponding formation control list is determined in the server;

[0015] According to the environmental information of the object grouping in the game scene, the formation control corresponding to the environmental information is obtained from the formation control list.

[0016] Further, according to the type of the pattern object to be eliminated, the corresponding formation control is obtained from the server, including:

[0017] According to the type of the pattern object to be eliminated, a corresponding formation control list is determined in the server;

[0018] According to the attribute information of the object group in the game scene, the formation control corresponding to the attribute information is obtained from the formation control list.

[0019] Furthermore, according to the selected formation control, the formation of the object grouping in the game scene is adjusted accordingly, including:

[0020] According to the selected formation control, obtain the formation track of the formation control in the game scene;

[0021] Determine multiple target locations based on formation trajectories;

[0022] The position of each virtual object in the object group in the game scene is determined according to multiple target positions.

[0023] Furthermore, multiple target positions are determined according to the formation trajectory, including:

[0024] Identify multiple target locations within a preset range of the lineup trajectory.

[0025] Furthermore, multiple target positions are determined within a preset range of the lineup trajectory, including:

[0026] Identify multiple target locations on the lineup track; or,

[0027] Multiple target locations are identified on one side of the lineup trajectory.

[0028] In a second aspect, in an embodiment of the present application, a formation switching device for object grouping is also provided, comprising:

[0029] include:

[0030] An instruction receiving module, used for receiving an object exchange instruction on a pattern matrix displayed in a game scene, wherein the pattern matrix includes a plurality of matrix elements, each matrix element is used for displaying a pattern object;

[0031] an image elimination module, configured to exchange the positions of the first pattern object and the second pattern object in the pattern matrix according to the object exchange instruction, and eliminate the pattern object when it is detected that after the positions of the first pattern object and the second pattern object are exchanged, there are a predetermined number of pattern objects of the same type connected;

[0032] The formation switching module is used to adjust the formation of the object grouping in the game scene according to the type of the pattern object to be eliminated, and the object grouping includes multiple virtual objects.

[0033] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the formation switching method for object grouping as described in the above embodiment is implemented.

[0034] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores computer executable instructions, and the computer executable instructions are used to enable a computer to execute the formation switching method for object grouping as described in the above embodiment.

[0035] The formation of the object group in the game scene is adjusted accordingly by the type of pattern object to be eliminated, and the formation switching of the object group can be completed without touching the screen to select multiple virtual objects separately, thereby realizing the rapid switching of the formation of multiple virtual objects while avoiding the need to click on multiple virtual objects during the formation switching process, which hinders the player's observation of multiple virtual objects. And the player can select the corresponding pattern object to eliminate according to the formation that needs to be changed, which increases the player's selectivity in formation change, and improves the participation of each player and the interactivity between players. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The present application is further described below with reference to the accompanying drawings and embodiments;

[0037] Figure 1 A diagram of an application environment of a formation switching method for object grouping provided by an embodiment;

[0038] Figure 2 A schematic diagram of a game scene provided for an embodiment;

[0039] Figure 3 is a schematic flow chart of a formation switching method for object grouping provided by an embodiment;

[0040] Figure 4 is a schematic diagram of a sliding operation provided by an embodiment;

[0041] Figure 5 A schematic diagram of a game scene after a sliding operation provided by an embodiment;

[0042] Figure 6 A schematic diagram of a game scene before and after a formation switch provided by an embodiment;

[0043] Figure 7 A schematic diagram of target location deployment provided by an embodiment;

[0044] Figure 8 A schematic diagram of a formation arrangement provided by an embodiment;

[0045] Fig. 9 Another target location deployment schematic diagram provided by an embodiment;

[0046] Fig.10 Another formation arrangement schematic diagram provided by an embodiment;

[0047] Fig.11 A schematic diagram of the structure of a formation switching device for object grouping in one embodiment;

[0048] Fig.12 FIG. 4 is a structural block diagram of a computer device in one embodiment. DETAILED DESCRIPTION

[0049] This section will describe in detail the specific embodiments of the present application. The preferred embodiments of the present application are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present application, but it cannot be understood as a limitation on the scope of protection of the present application.

[0050] To make the present application easier to understand, some concepts involved in the present application are explained as follows:

[0051] The game scene is a virtual scene displayed when the application is running on the terminal. The virtual scene can be a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional virtual scene, a 2.5-dimensional virtual scene, or a three-dimensional virtual scene.

[0052] Virtual objects refer to virtual portraits with high realism drawn through modeling and rendering technology. Virtual objects are not limited to human characters, but can also be animals and other characters.

[0053] The following is a detailed description of the embodiments of the present application in conjunction with the accompanying drawings. The object grouping formation switching method provided by the embodiments of the present application is applied to the following embodiments: Figure 1 In the application environment shown, a terminal device 110 and a server 120 are included. The terminal device 110 is connected to the server 120 via a network. The terminal device 110 may be a desktop terminal or a mobile terminal, wherein the mobile terminal may be a mobile phone, a tablet computer, a laptop computer, a wearable device, etc. The server 120 may be implemented by an independent server or a server group consisting of multiple servers, and may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The application 130 using the above-mentioned object grouping formation switching method is displayed through the terminal device 110.

[0054] When the application 130 is displayed through the terminal device 110, the game scene displayed by the terminal device 110 may be as follows: Figure 2 As shown. The game scene displays an object group 131 including multiple virtual objects and a pattern matrix 132. Each matrix element in the pattern matrix 132 corresponds to a pattern object 133. The object group and the pattern matrix are located in different display areas. The player exchanges the positions of two adjacent pattern objects 133 so that three or more identical pattern objects are connected together, and these identical pattern objects will be eliminated. When the pattern objects are eliminated, the formation of the object group corresponding to the type of the eliminated pattern object is searched from the server or terminal device, and the formation of the object group in the game scene is adjusted accordingly.

[0055] The formation of the object group in the game scene is adjusted accordingly by the type of pattern object to be eliminated, and the formation switching of the object group can be completed without touching the screen to select multiple virtual objects separately, thereby realizing the rapid switching of the formation of multiple virtual objects while avoiding the need to click on multiple virtual objects during the formation switching process, which hinders the player's observation of multiple virtual objects. And the player can select the corresponding pattern object to eliminate according to the formation that needs to be changed, which increases the player's selectivity in formation change, and improves the participation of each player and the interactivity between players.

[0056] Below, the formation switching method of object grouping provided in the embodiment of the present application will be introduced and explained in detail through several specific embodiments.

[0057] like Figure 3 As shown, in one embodiment, a method for switching the formation of an object group is provided. This embodiment mainly uses the method applied to a computer device as an example. The computer device can be the above-mentioned Figure 1 The terminal device 110 in.

[0058] Reference Figure 3 The formation switching method of the object group specifically includes the following steps:

[0059] S11. Receive an object exchange instruction on a pattern matrix displayed in a game scene, where the pattern matrix includes a plurality of matrix elements, each of which is used to display a pattern object.

[0060] In one embodiment, a game scene of an application is displayed on a screen of a terminal device, and the game scene displays a virtual character to be dressed up and a pattern matrix, wherein the virtual character may be a person or an animal.

[0061] In one embodiment, a pattern matrix of a predetermined size is displayed at a preset position of the game scene. Figure 2 As shown, there are 4*4 squares at the preset position of the game scene, each square corresponds to a matrix element, and all the squares form a pattern matrix.

[0062] In one embodiment, a border is displayed in the area where each square is located, and the area where each square is located is used to display a pattern object, which can be a pattern of a preset shape. Squares with different pattern objects can be distinguished by different backgrounds, such as by different background colors, background styles, or background graphics.

[0063] In one embodiment, the terminal device receives an image exchange instruction from a user on a pattern matrix through a screen. Exemplarily, the screen is a touch screen of the terminal device, and when receiving a touch operation of the user on the pattern matrix on the touch screen, the terminal device generates a corresponding control instruction. For example, when the terminal device receives a sliding operation from a position of a first pattern object in the pattern matrix to a position of a second pattern object on the touch screen, the object exchange instruction is generated according to the sliding operation.

[0064] Exemplarily, the screen may also be a display screen of a terminal device, and the terminal may further include an input device, and the user may trigger the terminal to generate corresponding control instructions by operating the input device. If the terminal is a desktop computer, the mouse corresponds to the operation control on the screen, and a pattern matrix of a game scene is displayed on the screen. The user controls the operation control to move to the position of the first pattern object in the pattern matrix by moving the mouse, and then controls the operation control to select the first pattern object by clicking the mouse, and then presses and drags the mouse so that the operation control moves to the position of the second pattern object in the pattern matrix while the first pattern object is selected. When the user releases the mouse, the terminal generates a pattern object exchange instruction.

[0065] In one embodiment, the first pattern object is a pattern object displayed in the square where the starting position of the sliding operation is located, and the second pattern object is a pattern object displayed in the square where the ending position of the sliding operation is located.

[0066] S12, exchanging positions of the first pattern object and the second pattern object in the pattern matrix according to the object exchange instruction, and eliminating the pattern object when a predetermined number of pattern objects of the same type are connected after detecting that the positions of the first pattern object and the second pattern object are exchanged.

[0067] In one embodiment, if Figure 4 As shown, the solid arrow indicates the direction of finger sliding, and when the finger slides, an object exchange instruction is generated. When receiving the object exchange instruction, the terminal device moves the first pattern object in the left figure from the square where it was originally located to the square where the second pattern object was originally located in the right figure, and moves the second pattern object in the left figure from the square where it was originally located to the square where the first pattern object was originally located in the right figure, and then detects whether there are a predetermined number of pattern objects of the same type connected after the first pattern object and the second pattern object are exchanged. If so, the connected pattern objects are eliminated; if not, the first pattern object and the second pattern object are reset, that is, the operation of exchanging the positions of the first pattern object and the second pattern object is canceled, so that the first pattern object and the second pattern object are restored to the positions before the exchange.

[0068] In one embodiment, being connected means being connected horizontally or vertically. Exemplarily, the predetermined number may be 3 or more. When 3 or more identical pattern objects are connected, these connected images will be eliminated. For example, if 3 triangular patterns are connected, these 3 triangular patterns will be eliminated. The specific number of the predetermined number may be set according to actual needs.

[0069] When the same pattern object is eliminated, a blank square will appear after the elimination. At this time, the pattern object above the position of the eliminated pattern object is translated to the elimination position. Then, after the existing pattern objects in the matrix are translated, there are still blank positions in the matrix equal to the number of eliminated pattern objects. In order to ensure the number of pattern objects in the matrix, new pattern objects are generated by the terminal device to fill the blank positions. In this way, there can be enough pattern objects in the game scene while reducing the area occupied by the image matrix in the game scene.

[0070] S13. According to the type of the pattern object to be eliminated, the formation of the object group in the game scene is correspondingly adjusted, wherein the object group includes a plurality of virtual objects.

[0071] In one embodiment, the type of pattern object is associated with the formation of the object group, and each type of pattern object can be associated with a formation. For example, if the pattern object to be eliminated is a triangle, the formation of the corresponding object group is a triangle formation; if the pattern object to be eliminated is a five-pointed star, the formation of the corresponding object group is an arc formation; if the pattern object to be eliminated is a six-pointed star, the formation of the corresponding object group is a square formation, etc.

[0072] In one embodiment, after the pattern object is eliminated, the formation of the corresponding object group is obtained from the association relationship between the pattern object type and the object group formation pre-stored in the terminal device or the server according to the type of the eliminated pattern object, and the formation of the object group is adjusted according to the obtained formation of the object group. For example, before the pattern object is eliminated, the formation of the object group is a square array, and the formation of the object group obtained according to the type of the eliminated pattern object is a triangle array, then the formation of the object group is adjusted from a square array to a triangle array.

[0073] By adjusting the formation of the object grouping according to the type of pattern objects to be eliminated, players can select the corresponding pattern objects to eliminate according to the required formation, thereby increasing the player's selectivity in the formation, thereby increasing the differences in the object grouping controlled by each player, thereby improving the participation of each player, and at the same time, by eliminating pattern objects to obtain the formation of the object grouping, so as to improve the interactivity with the user.

[0074] When the pattern objects are eliminated, if the formation of the object groups in the game scene is adjusted directly according to the type of the eliminated pattern objects, the formation of the object groups may be adjusted due to the player's misoperation of the pattern matrix, affecting the user experience. Therefore, in one embodiment, according to the type of the eliminated pattern objects, the formation of the object groups in the game scene is adjusted accordingly, including:

[0075] According to the type of the pattern object to be eliminated, the corresponding formation control is obtained; in response to the selection operation on the formation control, the formation of the object grouping in the game scene is adjusted accordingly according to the selected formation control.

[0076] In one embodiment, after eliminating the pattern object, according to the type of the eliminated pattern object, the corresponding object grouping formation is obtained from the association relationship between the pattern object type and the object grouping formation pre-stored in the terminal device or server, and the formation control corresponding to the formation is displayed in the game scene.

[0077] In one embodiment, the shape of the formation control is used to indicate the formation it corresponds to. For example, when the pattern object is eliminated, if the formation it corresponds to is a triangle formation, a triangle control corresponding to the triangle formation is displayed in the game scene; when the pattern object is eliminated, if the formation it corresponds to is an arc formation, an arc control corresponding to the arc formation is displayed in the game scene. Figure 5 As shown. This makes it convenient for players to select the corresponding formation controls to adjust the formation of the object grouping.

[0078] In one embodiment, the formation control can be displayed in the game scene with a highlight effect. For example, the game scene can set a circle with a brighter color than the background of the game scene around the formation control, or stroke the formation control to achieve a highlighted display of the formation control.

[0079] Alternatively, the formation control may be displayed in the game scene according to an animation effect, and the animation effect may be a flickering effect or a shaking effect. For example, the generated formation control may be displayed in a flickering or shaking manner in the game scene.

[0080] In order to realize the distinctive display of the formation control and effectively improve the eye-catching and prompting of the formation control, in one embodiment, corresponding effect display can be performed according to the generated different formation controls. For example, when the formation control is a triangular control, it is highlighted; when the formation control is an arc control, it is flashed; when the formation control is a rectangular control, it is jittered.

[0081] In one embodiment, each time a pattern object is eliminated, a corresponding formation control is generated. Therefore, when a user eliminates pattern objects multiple times, multiple formation controls can be obtained. When a player selects any of the multiple formation controls, such as a click operation, the formation control is determined to be the formation control selected by the player. Then, the formation of the object grouping in the game scene is adjusted according to the selected formation control. Figure 6 As shown, after the player clicks the triangle control on the left, the object grouping in the game scene switches from the square array on the left to the triangle array on the right. While switching the object grouping according to the formation control selected by the player, the clicked formation control can also be eliminated in the game scene.

[0082] By first obtaining the corresponding formation control according to the type of the pattern object to be eliminated when eliminating the pattern object, and then adjusting the formation of the object grouping in the game scene according to the selected formation control after receiving the player's selection operation on the formation control, it can avoid the situation where the formation of the object grouping is adjusted due to the player's misoperation of the pattern matrix, thereby improving the user experience.

[0083] Considering that when the formation control is pre-stored in the terminal device, it is necessary to download all the formations of the object grouping from the server at one time and store them in the memory. If there are a large number of formations, the data flow consumed at one time when downloading is too large, and the terminal device needs to store all the formations in advance, which puts a lot of storage pressure. To this end, in one embodiment, according to the type of the pattern object to be eliminated, the corresponding formation control is obtained, including: according to the type of the pattern object to be eliminated, the corresponding formation control is obtained from the server.

[0084] In one embodiment, when eliminating a pattern object, the terminal device sends the type information of the pattern object to be eliminated to the server, so that the server searches for the formation of the object grouping corresponding to the type information from all formations for the object grouping according to the type information, and then sends the formation to the terminal device, so that the terminal device obtains the formation.

[0085] When the pattern object is eliminated, the specified formation is downloaded from the server according to the eliminated image object, without having to download all the formations from the server at one time, thereby reducing traffic consumption and storage pressure on the terminal device.

[0086] Since the purpose of adjusting the formation is usually to give the object group a corresponding gain effect, different formations are usually set to bring different gain effects to the object group. For example, the triangular formation can be set to increase the attack power of the object group, and the arc formation can be set to increase the moving speed of the object group. In the game scene, there are usually formations with gain effects adapted to the environment in different environments. For example, there are a large number of NPCs (non-player characters) that need to be killed in the current environment of the game scene. At this time, the formation that expands the attack range can improve the killing efficiency; or the current environment of the game scene is a grassland or rainy day. The environmental attributes will affect the moving speed of the object group. At this time, the arc formation can effectively improve the moving speed of the object group. In order to make the formation adapt to the game environment and further improve the interactivity with the user and the playability of the game, in one embodiment, according to the type of the pattern object to be eliminated, the corresponding formation control is obtained, including: according to the type of the pattern object to be eliminated, the corresponding formation control list is determined in the server; according to the environmental information of the object group in the game scene, the formation control corresponding to the environmental information is obtained from the formation control list.

[0087] In one embodiment, the server pre-stores a correspondence between pattern object types and formation control lists, wherein the formation control list includes a defensive formation control list, an offensive formation control list, a trimming formation control list, etc. Exemplarily, the type of the pattern object is a triangle, and its corresponding formation type is a defensive formation control list; the type of the pattern object is a five-pointed star, and its corresponding formation type is an offensive formation control list, etc. When eliminating a pattern object, the terminal device sends the type information of the eliminated pattern object to the server, so that the server can first determine the formation control list corresponding to the type information according to the type information.

[0088] In one embodiment, after the server determines the formation control list, the terminal device sends environmental information of the object grouping in the game scene to the server, so that the server selects the formation control corresponding to the environmental information from the formation control list based on the received environmental information and sends it to the terminal device, thereby allowing the terminal device to obtain the formation control corresponding to the environmental information.

[0089] In one embodiment, the environmental information includes at least one of location information, weather information, or non-player character quantity information. The location information may be the location of the object group in the game scene, such as a castle, a meadow, a river, etc. The weather information may be the virtual weather of the game scene, such as rainy days, sunny days, cloudy days, etc. The non-player character quantity information may be the number of non-player characters. The association relationship between the formation control and the environmental information in the formation control list may be set according to actual needs.

[0090] Exemplarily, the formation control may be associated with the position information. If the position information is grass, a control that can speed up the movement speed of the object grouping is selected from the formation control list, such as an arc control as the formation control.

[0091] Exemplarily, the formation control may be associated with weather information. If the weather information is rainy, a control that can speed up the movement speed of the object grouping is selected from the formation control list, such as an arc control as the formation control.

[0092] For example, the formation control may be associated with the number of non-player characters. If the number of non-player characters is greater than a threshold, a control that can expand the attack range of the object grouping is selected from the formation control list, such as a circular control as the formation control; if the number is less than or equal to the threshold, a control that can increase the attack power of the object grouping is selected from the formation control list, such as a triangle control as the formation control.

[0093] After eliminating the pattern objects, according to the type of the eliminated pattern objects, a formation control list corresponding to the type is determined in the server, and then according to the environmental information of the current game scene, a formation control corresponding to the environmental information is selected from the formation control list. In this way, formation controls can be flexibly formed according to the environmental information, thereby further improving the interactivity between the game and the players and the players' participation.

[0094] In order to make the generated formation more in line with the current needs of the players and improve the interactivity between the game and the players, in one embodiment, the corresponding formation control is obtained according to the type of the pattern object to be eliminated, and it can also include: according to the type of the pattern object to be eliminated, the corresponding formation control list is determined in the server; according to the attribute information of the object grouping in the game scene, the formation control corresponding to the attribute information is obtained from the formation control list.

[0095] In one embodiment, the attribute information includes at least one of a level, a number of virtual objects in an object group, and remaining virtual transaction currency. The association between the formation control and the attribute information in the formation control list can be set according to actual needs.

[0096] Exemplarily, the formation control may be associated with the level of the avatar. For example, if the level is level 10, a formation control, such as a triangle control, for increasing the attack power of the object grouping is selected from the formation control list.

[0097] Exemplarily, the formation control may be associated with the number of virtual objects. If the number of virtual objects is greater than a preset value, a formation control, such as a circular control, for expanding the attack range of the object grouping is selected from the formation control list.

[0098] For example, the formation control may be associated with the remaining virtual trading currency of the avatar. If the remaining virtual trading currency of the avatar is in the range of 1000-2000 gold coins, a formation control for increasing the moving speed of the object group, such as an arc control, is selected from the formation control list.

[0099] After eliminating the pattern object, according to the type of the eliminated pattern object, a formation control list corresponding to the type is determined in the server, and then according to the attribute information of the virtual character, the formation control corresponding to the attribute information is selected from the formation control list. In this way, suitable formation controls can be generated according to the current player's game experience, thereby improving the player's gaming experience and further improving the interactivity between the game and the player and the player's participation.

[0100] In one embodiment, according to the selected formation control, the formation of the object grouping in the game scene is adjusted accordingly, including:

[0101] According to the selected formation control, the formation track of the formation control in the game scene is obtained; multiple target positions are determined according to the formation track; and the position of each virtual object in the object group in the game scene is determined according to the multiple target positions.

[0102] In one embodiment, after the player selects a formation control, the terminal device generates a display track of the formation control on the display area of ​​the object group in the game scene according to the selected formation control, and obtains the display track as the formation track of the formation control. If the selected formation control is a triangle control, a triangle formation track is generated on the display area of ​​the game object group. After obtaining the formation track, multiple target positions are determined on the display area of ​​the object group using the formation track. The number of target positions is determined according to the number of virtual objects in the object group, that is, the number of target positions is the same as the number of virtual objects in the object group. After determining multiple target positions, each virtual object in the object group is moved to the target position, thereby completing the formation adjustment of the object group.

[0103] In one embodiment, determining multiple target positions according to the formation trajectory includes: determining multiple target positions within a preset range of the formation trajectory. The preset range may be on the formation trajectory, on one side of the formation trajectory, etc. That is, determining multiple target positions within the preset range of the formation trajectory includes: determining multiple target positions on the formation trajectory, such as Figure 7 As shown, the formation of the adjusted object grouping is as follows Figure 8 Alternatively, multiple target locations can be determined on one side of the lineup trajectory, such as Fig. 9 As shown, the formation of the adjusted object grouping is as follows Fig.10 shown.

[0104] In one embodiment, a formation switching device for object grouping is provided, such as Fig.11 As shown, including:

[0105] The instruction receiving module 101 is used to receive an object exchange instruction on a pattern matrix displayed in a game scene, wherein the pattern matrix includes a plurality of matrix elements, each of which is used to display a pattern object.

[0106] The image elimination module 102 is used to exchange the positions of the first pattern object and the second pattern object in the pattern matrix according to the object exchange instruction, and eliminate the pattern object when it is detected that there are a predetermined number of pattern objects of the same type connected after the positions of the first pattern object and the second pattern object are exchanged.

[0107] The formation switching module 103 is used to adjust the formation of the object group in the game scene according to the type of the pattern object to be eliminated, and the object group includes multiple virtual objects.

[0108] In one embodiment, the formation switching module 103 is specifically used to: obtain the corresponding formation control according to the type of pattern object to be eliminated; respond to the selection operation of the formation control, and adjust the formation of the object grouping in the game scene according to the selected formation control.

[0109] In one embodiment, the formation switching module 103 is specifically used to obtain a corresponding formation control from a server according to the type of the pattern object to be eliminated.

[0110] In one embodiment, the formation switching module 103 is specifically used to: determine the corresponding formation control list in the server according to the type of pattern objects to be eliminated; and obtain the formation control corresponding to the environmental information from the formation control list according to the environmental information of the object grouping in the game scene.

[0111] In one embodiment, the formation switching module 103 is specifically used to: determine the corresponding formation control list in the server according to the type of pattern objects to be eliminated; and obtain the formation control corresponding to the attribute information from the formation control list according to the attribute information of the object grouping in the game scene.

[0112] In one embodiment, the formation switching module 103 is specifically used to: obtain the formation trajectory of the formation control in the game scene according to the selected formation control; determine multiple target positions according to the formation trajectory; determine the position of each virtual object in the object group in the game scene according to the multiple target positions.

[0113] In one embodiment, the formation switching module 103 is specifically used to determine a plurality of target positions within a preset range of the formation trajectory.

[0114] In one embodiment, the formation switching module 103 is specifically used to: determine a plurality of target positions on the formation trajectory; or determine a plurality of target positions on one side of the formation trajectory.

[0115] In one embodiment, a computer device is provided, such as Fig.12 As shown, the computer device includes a processor, a memory, a communication interface, an input device and a display screen connected via a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program. When the computer program is executed by the processor, the processor may implement the formation switching method for object grouping. The internal memory may also store a computer program. When the computer program is executed by the processor, the processor may implement the formation switching method for object grouping. Those skilled in the art will understand that Fig.12The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0116] In one embodiment, the object formation switching device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.12 The computer device shown in the figure is run. The memory of the computer device can store various program modules that constitute the formation switching device of the object group. The computer program composed of various program modules enables the processor to execute the steps of the formation switching method of the object group of each embodiment of the present application described in this specification.

[0117] In one embodiment, a storage medium is provided, wherein the storage medium stores computer executable instructions, wherein the computer executable instructions are used to cause a computer to execute the steps of the above-mentioned formation switching method for object grouping. The steps of the formation switching method for object grouping here may be the steps of the formation switching method for object grouping in the above-mentioned various embodiments.

[0118] The above is a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications are also considered to be within the scope of protection of the present application.

[0119] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a ROM (Read-Only Memory) or a RAM (Random Access Memory), etc.

Claims

1. A formation switching method for object grouping, characterized in that: include: Receiving an object exchange instruction on a pattern matrix displayed in a game scene, wherein the pattern matrix includes a plurality of matrix elements, each matrix element being used to display a pattern object; exchanging positions of a first pattern object and a second pattern object in the pattern matrix according to an object exchange instruction, and eliminating the pattern object when a predetermined number of pattern objects of the same type are connected after detecting that the positions of the first pattern object and the second pattern object are exchanged; According to the type of the pattern object to be eliminated, a corresponding formation control list is determined in the server; According to the environmental information or attribute information of the object grouping in the game scene, the formation control corresponding to the environmental information or attribute information is obtained from the formation control list; in response to the selection operation on the formation control, the formation of the object grouping in the game scene is adjusted accordingly according to the selected formation control.

2. The formation switching method of object grouping according to claim 1, characterized in that: According to the selected formation control, the formation of the object grouping in the game scene is adjusted accordingly, including: According to the selected formation control, obtain the formation track of the formation control in the game scene; Determine multiple target locations based on formation trajectories; The position of each virtual object in the object group in the game scene is determined according to multiple target positions.

3. The formation switching method of object grouping according to claim 2, characterized in that: Determine multiple target locations based on formation trajectories, including: Identify multiple target locations within a preset range of the lineup trajectory.

4. The formation switching method of object grouping according to claim 3, characterized in that: Identify multiple target locations within a preset range of the lineup trajectory, including: Identify multiple target locations on the lineup track; or, Multiple target locations are identified on one side of the lineup trajectory.

5. A formation switching device for object grouping, characterized in that: include: An instruction receiving module, used for receiving an object exchange instruction on a pattern matrix displayed in a game scene, wherein the pattern matrix includes a plurality of matrix elements, each matrix element is used for displaying a pattern object; an image elimination module, configured to exchange the positions of the first pattern object and the second pattern object in the pattern matrix according to the object exchange instruction, and eliminate the pattern object when it is detected that after the positions of the first pattern object and the second pattern object are exchanged, there are a predetermined number of pattern objects of the same type connected; The formation switching module is used to determine the corresponding formation control list in the server according to the type of pattern objects to be eliminated; obtain the formation control corresponding to the environmental information or attribute information from the formation control list according to the environmental information or attribute information of the object grouping in the game scene; respond to the selection operation of the formation control, and adjust the formation of the object grouping in the game scene according to the selected formation control.

6. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the formation switching method for object grouping as described in any one of claims 1 to 4 when executing the computer program.

7. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the formation switching method for object grouping according to any one of claims 1 to 4.