Game control method, device, electronic equipment and computer readable storage medium

文档序号:427735 发布日期:2021-12-24 浏览:3次 中文

阅读说明:本技术 游戏控制方法、装置、电子设备及计算机可读存储介质 (Game control method, device, electronic equipment and computer readable storage medium ) 是由 徐治钦 彭美 于 2021-08-27 设计创作,主要内容包括:本申请公开了一种游戏控制方法、装置、电子设备及计算机可读存储介质,所述方法包括:在屏幕的第一界面的图案矩阵上接收对象交换指令;根据对象交换指令交换第一图案对象和第二图案对象的位置,并在检测到第一图案对象和第二图案对象交换位置后,存在预定个数的相同类型的图案对象相连时,消除图案对象,减少第二界面的多个进攻对象中被选定的目标进攻对象的当前生命值。通过在消除相连的图案对象时,针对多个进攻对象中被选定的目标进攻对象进行攻击,确保图案对象消除时能够对进攻对象进行攻击,避免出现用户的操作为无效操作或用户没有进行相应的消除操作的情况,从而提高用户体验,减少游戏对局时长过长。(The application discloses a game control method, a game control device, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving an object exchange instruction on a pattern matrix of a first interface of a screen; and exchanging the positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminating the pattern objects when a preset number of pattern objects of the same type are connected after the exchange positions of the first pattern object and the second pattern object are detected, so as to reduce the current life value of the selected target attack object in the plurality of attack objects of the second interface. When the connected pattern objects are eliminated, the selected target attack object in the multiple attack objects is attacked, so that the attack object can be attacked when the pattern objects are eliminated, the condition that the operation of a user is invalid or the user does not perform corresponding elimination operation is avoided, the user experience is improved, and the game-to-game time is shortened.)

1. A game control method, comprising:

receiving an object exchange instruction on a pattern matrix of a first interface of a screen, the pattern matrix comprising a plurality of matrix elements, each matrix element for displaying a pattern object;

exchanging positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminating the connected pattern objects when a preset number of pattern objects of the same type are connected after the exchange positions of the first pattern object and the second pattern object are detected;

and generating an attack instruction according to the connected pattern objects so as to reduce the current life value of the selected target attack object in the plurality of attack objects of the second interface according to the attack instruction.

2. The game control method of claim 1, wherein receiving an object exchange instruction on a first interface of a screen comprises:

receiving an object exchange instruction on a pattern matrix of a designated area of a first interface, wherein the designated area is determined according to the position of a target attack object in a second interface, the target attack object exists in a preset attack range of an attack instruction generated after any pattern object in the designated area is eliminated, and the designated area is highlighted in the first interface.

3. The game control method of claim 2, wherein the target attack object is highlighted in the second interface.

4. The game control method according to claim 2 or 3, wherein an area other than the designated area in the first interface is in an unselected state, and the unselected state is used to indicate that the receiving of the object exchange instruction is stopped.

5. The game control method according to claim 1, further comprising:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in the first interface.

6. The game control method according to claim 5, wherein when a display duration of the attack object in the first interface satisfies a preset condition, controlling the attack object to attack at least one defense object in the first interface comprises:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in a preset attack range of the attack object.

7. The game control method according to claim 5, wherein the number of attacks by the attack object is proportional to a display duration of the attack object in the second interface, the display duration is determined according to a current life value of the attack object, and the attack object disappears in the second interface when the current life value is less than a preset value.

8. The game control method of claim 1, further comprising, after removing the connected pattern object:

according to the elimination position corresponding to the pattern object, the pattern object above the elimination position is translated downwards to fill the elimination position;

filling the shifted blank positions with the newly generated pattern object.

9. A game control apparatus, comprising:

the command receiving module is used for receiving an object exchange command on a pattern matrix of a first interface of a screen, wherein the pattern matrix comprises a plurality of matrix elements, and each matrix element is used for displaying a pattern object;

the object exchange module is used for exchanging the positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminating the connected pattern objects when a preset number of pattern objects of the same type are connected after the exchange positions of the first pattern object and the second pattern object are detected;

and the attack control module is used for generating an attack instruction according to the connected pattern objects so as to reduce the current life value of the selected target attack object in the plurality of attack objects of the second interface according to the attack instruction.

10. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor implements the game control method according to any one of claims 1 to 8 when executing the computer program.

11. A computer-readable storage medium, characterized in that it stores a computer program which, when run on one or more processors, implements the game control method of any one of claims 1-8.

Technical Field

The present application relates to the field of computer technologies, and in particular, to a game control method and apparatus, an electronic device, and a computer-readable storage medium.

Background

For the combination of the tower defense type game and the three-elimination type game, a game interface is divided into two parts, the upper half part of the interface displays an attack object and a defense object in the tower defense type game, the attack object corresponds to an initial life value, and the defense object corresponds to an initial defense value; the lower half interface displays a pattern matrix of the Sanxiao type game, each matrix element in the pattern matrix corresponds to one pattern object, and the player can eliminate three or more than three same pattern objects by exchanging the positions of two adjacent pattern objects to connect the same pattern objects together. While the pattern object is eliminated, an attacking object in front of the pattern object subtracts the current vital value from the predetermined vital value.

However, when the pattern object is eliminated, only the attack object in front of the eliminated pattern object can be attacked, so that when the user needs to attack the specified attack object, the user cannot accurately know which region of the pattern object is eliminated and can attack the specified object, and the user needs to estimate whether the eliminated pattern object can attack the specified attack object. The number of pattern objects in the pattern matrix is usually large, so that it is difficult for a user to estimate whether the front of the eliminated pattern object is a designated attack object, and it is easy for the user to think that the eliminated pattern object can attack the attack object, but the user cannot actually attack the attack object, so that the operation of the user is invalid; or the eliminated pattern object can actually attack the attack object, and the user thinks that the eliminated pattern object cannot attack the attack object, so that the user does not perform corresponding elimination operation. Both of the two situations can affect the user experience, and can also cause that the user needs a long time to clear the attack object, so that the game-to-game duration is too long, and each game-to-game needs to occupy more processing resources of the terminal and the server.

Disclosure of Invention

The present application aims to solve at least one of the technical problems in the prior art, and provides a game control method, device and electronic device, which reduce invalid operations of a user, improve user experience, and reduce the situation that the game session duration is too long due to the invalid operations.

In a first aspect, an embodiment of the present application provides a game control method, including:

receiving an object exchange instruction on a pattern matrix of a first interface of a screen, the pattern matrix comprising a plurality of matrix elements, each matrix element for displaying a pattern object;

exchanging positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminating the connected pattern objects when a preset number of pattern objects of the same type are connected after the exchange positions of the first pattern object and the second pattern object are detected;

and generating an attack instruction according to the connected pattern objects so as to reduce the current life value of the selected target attack object in the plurality of attack objects of the second interface according to the attack instruction.

Further, receiving an object exchange instruction on a first interface of the screen, including:

receiving an object exchange instruction on a pattern matrix of a designated area of a first interface, wherein the designated area is determined according to the position of a target attack object in a second interface, the target attack object exists in a preset attack range of an attack instruction generated after any pattern object in the designated area is eliminated, and the designated area is highlighted in the first interface.

Further, the target attack object is highlighted in the second interface.

Further, an area of the first interface except the designated area is in an unselected state, and the unselected state is used for indicating that the object exchange instruction is stopped being received.

Further, the method also comprises the following steps:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in the first interface.

Further, when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in the first interface, including:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in a preset attack range of the attack object.

Furthermore, the attack times of the attack object are in direct proportion to the display duration of the attack object in the second interface, the display duration is determined according to the current life value of the attack object, and the attack object disappears in the second interface when the current life value is less than a preset value.

Further, after removing the connected pattern objects, the method further comprises:

according to the elimination position corresponding to the pattern object, the pattern object above the elimination position is translated downwards to fill the elimination position;

filling the shifted blank positions with the newly generated pattern object.

In a second aspect, in an embodiment of the present application, there is also provided a game control apparatus including:

the command receiving module is used for receiving a role switching command on a game interface displaying a first role when the first role is in the game interface of a game process;

the data acquisition module is used for acquiring role data corresponding to a second role according to the role switching instruction;

and the role switching module is used for switching the first role to the second role from the game interface according to the role data.

In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the game control method as described in the above embodiments when executing the program.

In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions for causing a computer to execute a game control method according to the above embodiments.

By generating the attack instruction aiming at the selected target attack object in the plurality of attack objects when the connected pattern objects are eliminated, the attack object can be attacked when the pattern objects are eliminated, the condition that the operation of a user is invalid or the user does not perform corresponding elimination operation is avoided, the user experience is improved, the condition that the game-to-game duration is too long due to invalid operation or the user does not perform corresponding elimination operation is reduced, and the processing resources of the terminal and the server are excessively occupied.

Drawings

The present application is further described with reference to the following figures and examples;

FIG. 1 is a diagram of an application environment of a game control method according to an embodiment;

FIG. 2 is a schematic diagram of a user interface for a tower defense type game in combination with a sanxiao type game as provided in one embodiment;

FIG. 3 is a flow diagram illustrating a method of game control in one embodiment;

FIG. 4 is a schematic illustration of a sliding operation provided by one embodiment;

FIG. 5 is a schematic diagram of a user interface after a selected target has attacked an object, according to an embodiment;

FIG. 6 is a schematic interface diagram of a second interface after a selected target has attacked an object, according to an embodiment;

FIG. 7 is a diagram illustrating life values of defending objects provided by one embodiment;

FIG. 8 is a schematic illustration of a life value of an attacking object provided by an embodiment;

FIG. 9 is a schematic diagram of the structure of a game control apparatus according to an embodiment;

FIG. 10 is a block diagram showing a configuration of a computer device according to an embodiment.

Detailed Description

Reference will now be made in detail to the present embodiments of the present application, preferred embodiments of which are illustrated in the accompanying drawings, which are for the purpose of visually supplementing the description with figures and detailed description, so as to enable a person skilled in the art to visually and visually understand each and every feature and technical solution of the present application, but not to limit the scope of the present application.

The following describes an embodiment of the present application in detail with reference to the drawings, and the game control method of the application provided by the embodiment of the present application is applied to an application environment including a terminal device 110 and a server 120 as shown in fig. 1. Wherein the terminal device 110 and the server 120 are connected via a network. The terminal device 110 may be a desktop terminal or a mobile terminal, wherein the mobile terminal may be one of a mobile phone, a tablet computer, a notebook computer, a wearable device, and the like. The server 120 may be implemented by an independent server or a server cluster composed of a plurality of servers, and may also be a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform. The application 130 using the above-described game control method is displayed by the terminal device 110.

When the application 130 is displayed through the terminal device 110, a user interface displayed by the terminal device 110 may be as shown in fig. 2. The user interface split screen is a two-part interface, and comprises a first interface 11 on the lower half part and a second interface 12 on the upper half part. The first interface displays a pattern matrix 140 and a defense object 150 of the sanxiao type game, each matrix element in the pattern matrix 140 corresponds to one pattern object 141, a player connects three or more same pattern objects together by exchanging the positions of two adjacent pattern objects 141, the same pattern objects are eliminated, and then a new pattern object is randomly dropped to fill the blank position generated by the elimination. The second interface displays an attack object 160 in a tower defense type game. While the pattern object is eliminated, the terminal device generates an attack instruction to subtract a predetermined life value from a current life value of a target attack object 161 selected from the attack objects, and then synchronizes data generated after subtracting the predetermined life value from the current life value to the server. The attacking object attacks the defending object at regular time, and the preset defending value is subtracted from the current defending value of the defending object. If the defense value of the defense object is reduced to 0, the game fails; if all the attack objects are destroyed before the defense value of the defense object is reduced to 0, the game wins.

By generating the attack instruction aiming at the selected target attack object in the plurality of attack objects when the connected pattern objects are eliminated, the attack object can be attacked when the pattern objects are eliminated, the condition that the operation of a user is invalid or the user does not perform corresponding elimination operation is avoided, the user experience is improved, the condition that the game-to-game duration is too long due to invalid operation or the user does not perform corresponding elimination operation is reduced, and the processing resources of the terminal and the server are excessively occupied.

Hereinafter, the mail processing method provided by the embodiment of the present application will be described and explained in detail through several specific embodiments.

As shown in FIG. 2, in one embodiment, a game control method is provided. The embodiment is mainly illustrated by applying the method to computer equipment. The computer device may specifically be the terminal device 110 in fig. 1 described above.

Referring to fig. 3, the game control method specifically includes the following steps:

s11, receiving an object exchange instruction on a pattern matrix of a first interface of a screen, the pattern matrix including a plurality of matrix elements, each matrix element for displaying a pattern object.

In one embodiment, a user interface of an application is displayed on a screen of the terminal device, and the lower half of the user interface is a first interface with a pattern matrix of a predetermined size. The first interface includes a plurality of squares, as shown in fig. 2, there are 6 × 6 squares in the first interface, each square corresponds to a matrix element, and all the squares form a pattern matrix.

In an embodiment, a frame is displayed in an area where each square is located, and a pattern object is displayed in the area where each square is located, where the pattern object may be a pattern with a preset shape. The squares of different pattern objects may be distinguished by different backgrounds, such as by different background colors, background patterns, or background graphics.

Illustratively, the screen is a touch screen of the terminal device, and when a touch operation of a user on the touch screen is received, the terminal device generates a corresponding control instruction. When the terminal equipment receives a sliding operation of a user from the position of the first pattern object to the position of the second pattern object on the touch screen, an object exchange instruction is generated according to the sliding operation.

The screen may also be a display screen of the terminal device, and the terminal further includes an input device, and the user triggers the terminal to generate a corresponding control instruction by operating the input device. If the terminal is a desktop computer, the mouse corresponds to the operation control on the screen, a first interface is displayed on the screen, the user controls the operation control to move to the position of the first pattern object by moving the mouse, then clicks the mouse to control the operation control to select the first pattern object, presses and drags the mouse, so that the operation control moves to the position of the second pattern object under the state that the first pattern object is selected, and when the user releases the mouse, the terminal generates a pattern object exchange instruction.

In one embodiment, the first pattern object is a pattern object displayed in a cell where a start position of the sliding operation is located, and the second pattern object is a pattern object displayed in a cell where an end position of the sliding operation is located.

And S12, exchanging the positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminating the connected pattern objects when a preset number of pattern objects of the same type are connected after the exchange position of the first pattern object and the second pattern object is detected.

In order to further avoid that the user's operation is an invalid operation, in an embodiment, before exchanging the positions of the first pattern object and the second pattern object according to the object exchange instruction, it is detected whether a target attack object selected by the user exists in the multiple attack objects of the second interface, if so, the positions of the first pattern object and the second pattern object are exchanged according to the object exchange instruction, otherwise, prompt information for prompting the user to select the target attack object is generated and displayed on a screen, so that after the user completes the selection of the target attack object according to the prompt information, the user is prompted to re-input the object exchange instruction, and the positions of the first pattern object and the second pattern object are exchanged according to the re-input object exchange instruction.

In one embodiment, as shown in FIG. 4, the solid arrows indicate the direction of finger sliding, and when the finger slides, an object exchange instruction is generated. When receiving the object exchange instruction, the terminal equipment moves the first pattern object in the left graph from the square where the first pattern object originally locates to the square where the second pattern object originally locates in the right graph, moves the second pattern object in the left graph from the square where the second pattern object originally locates to the square where the first pattern object originally locates in the right graph, then detects whether the preset number of pattern objects of the same type are connected after the first pattern object and the second pattern object are exchanged. If so, eliminating the connected pattern objects; if the first pattern object and the second pattern object do not exist, the first pattern object and the second pattern object are reset, namely, the operation of exchanging the positions of the first pattern object and the second pattern object is cancelled, and the first pattern object and the second pattern object are restored to the positions before exchanging.

In one embodiment, the connections are either transverse or longitudinal. Illustratively, the predetermined number may be 3 or more, and when 3 or more than 3 identical pattern objects are connected, the connected images are eliminated. If the 3 triangular patterns are connected, the 3 triangular patterns are eliminated. The specific number of the preset number can be set according to actual requirements.

And S13, generating an attack instruction according to the connected pattern objects, so as to reduce the current life value of the selected target attack object in the plurality of attack objects of the second interface according to the attack instruction.

The attack object is a non-player character, i.e. a game character which is not manipulated by a real player in a game, is generally controlled by artificial intelligence of a computer, and is a character with a self behavior mode.

In one embodiment, the target attack object is determined according to a click operation of the user in the second interface. Wherein the user can select any attack object in the second interface. When a clicking operation of a certain attack object in the second interface by the user is received, the clicked attack object is marked as a target attack object. In an embodiment, after the connected pattern objects are eliminated, the selected target attack object is searched from the multiple attack objects on the second interface, and after the target attack object is searched, an attack value is generated to attack the target attack object, so as to reduce the current life value of the target attack object according to the attack value.

In order to improve the game experience of the user, in an embodiment, the preset attack values corresponding to different types of pattern objects are different. When the pattern object is eliminated, the generated attack value for attacking the target attack object is the number of eliminated image objects multiplied by a preset attack value corresponding to the pattern object.

As shown in fig. 5, after attacking the target attack object, subtracting the attack value received by the target attack object from the current life value of the target attack object, so as to change the state of the target attack object from the state of the left image to the state of the right image, and displaying the state of the right image in the second interface to prompt the user that the target attack object has received an attack.

By generating the attack instruction aiming at the selected target attack object in the plurality of attack objects when the connected pattern objects are eliminated, the attack object can be attacked when the pattern objects are eliminated, the condition that the operation of a user is invalid or the user does not perform corresponding elimination operation is avoided, the user experience is improved, the condition that the game-to-game duration is too long due to invalid operation or the user does not perform corresponding elimination operation is reduced, and the processing resources of the terminal and the server are excessively occupied.

When the designated target attack object is attacked, because the corresponding relationship between the target attack object selected by the user and the preset attack range of the connected pattern object is not unique, if the target attack object may appear right above or above the connected pattern object, and the preset attack range of the pattern object is right above the pattern object, the attack on the target attack object can be realized only by calculating the corresponding attack path in real time according to the attack range of the connected pattern object and the position of the target attack object. In order to reduce the operating pressure of the server and the terminal device caused by the real-time operation of the attack path, in an embodiment, the receiving of the object exchange instruction on the first interface of the screen includes: receiving an object exchange instruction on a pattern matrix of a designated area of a first interface, wherein the designated area is determined according to the position of a target attack object in a second interface, the target attack object exists in a preset attack range of an attack instruction generated after any pattern object in the designated area is eliminated, and the designated area is highlighted in the first interface.

In an embodiment, before receiving the object exchange instruction on the pattern matrix of the first interface designated area, the terminal device receives an object selection instruction sent by a user on the second interface, and selects a corresponding target attack object from each attack object according to the object selection instruction. And after the target attack object is selected according to the object selection instruction, matching the position of the target attack object with a preset attack range to determine all pattern objects which can attack the attack object in the first interface, and taking the pattern objects as specified areas.

For example, the terminal device or the server may have a pre-stored association table, in which a plurality of preset attack ranges associated with the positions of each attack object one by one are stored, and the pattern object eliminated within the preset range may attack the attack object associated with the preset range. After the terminal device selects the target attack object according to the object selection instruction, a preset attack range corresponding to the position of the attack object can be searched from the association table, and therefore all pattern objects capable of attacking the attack object are determined from the first interface according to the preset attack range.

In an embodiment, the preset attack range of the attack instruction generated after the pattern object is eliminated is fixed, for example, the attack range of the attack instruction after the three identical pattern objects are eliminated is set to be right in front of the three identical pattern objects. Wherein the preset attack range determined according to the positions of the connected pattern objects is a union of the attack ranges of each pattern object.

Illustratively, each pattern object has a fixed attack range, and considering that the attack ranges of adjacent pattern objects usually overlap, the preset attack range is a union of the attack ranges of each pattern object.

After the target attack object is selected, in order to prompt the user to perform pattern object exchange in the designated area so as to further reduce the probability that the user falsely triggers the wrong pattern object, in an embodiment, the terminal device displays the designated area in the first interface in a highlighted manner. The highlighting may be performed by performing a border process on the designated area, so that the designated area is highlighted in the pattern matrix 140, as shown in fig. 6.

By receiving the object exchange instruction in the specified area where the target attack object exists in the preset attack range of the pattern object, when the attack instruction is generated, the target attack object can be attacked only by directly carrying out attack operation according to the preset attack range, the attack path of the target attack object does not need to be calculated in real time, and therefore the operation pressure of a server and terminal equipment is reduced.

To facilitate the user in determining whether the selected target attack image is the attack image that the user wants to select, to improve the user's interactivity with the game, in one embodiment, the target attack object is highlighted in the second interface after the user selects the target attack object from the plurality of attack objects. The highlighting may be to perform a stroking process on the target attack object, so that the target attack object is highlighted in the second interface, which is convenient for a user to identify the target attack object, as shown in fig. 7.

In an embodiment, an area of the first interface except the designated area is an unselected state, and the unselected state is used for indicating that the receiving of the object exchange instruction is stopped.

When the designated area of the first interface is determined according to the position of the target attack object selected by the user, the terminal equipment marks the area except the designated area in the first interface as a non-selectable state, so that the other area except the designated area in the first interface does not receive the object exchange instruction, namely, the detection of the other area in the first interface on the user operation is closed, and at the moment, the terminal equipment does not perform position exchange or elimination of the pattern object when the user performs sliding operation or other operation on the pattern object in the other area.

The areas except the designated area in the first interface are marked as the non-selectable state, so that other areas in the first interface do not need to detect the object exchange instruction, the calculation amount of the terminal equipment and the server is reduced, the condition that the server and the terminal have invalid calculation due to the fact that a player triggers wrong pattern objects in other areas by mistake is avoided, and the misoperation probability of the user on the pattern objects is reduced.

In an embodiment, after reducing the current life value of the selected target attack object of the plurality of attack objects of the second interface according to the attack instruction, the method further includes: and detecting whether an attack object exists in the second interface, if so, controlling the attack object to attack at least one defense object in the first interface when the display time of the attack object in the first interface meets a preset condition.

In one embodiment, the preset condition may be a timing setting for the attack object, such as 10 seconds. I.e. every 10 seconds the attacking object is controlled to attack at least one defending object in the first interface.

For example, the attack times of different types of attack objects are different, for example, when one type of attack object attacks a defense object, one attack is generated; another type of attack object, when attacking a defending object, generates two attacks. The specific attack times can be set according to actual conditions.

As shown in fig. 8, after the attack object attacks the defense object, the attack value of the attack object is subtracted from the current defense value of the defense object, so that the state of the defense object is changed from the left graph to the right graph, and the state is displayed in the first interface to prompt the user that the attack object has initiated the attack.

In one embodiment, when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in the first interface comprises: when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in a preset attack range of the attack object.

Illustratively, when the display duration of the attack object in the first interface meets a preset condition, the terminal device obtains a preset attack range of the attack object, and attacks all defense objects or a random one defense object within the preset attack range of the attack object.

In one embodiment, the number of attacks by the attack object is proportional to the display duration of the attack object in the second interface, i.e., the longer the display duration of the attack object in the second interface is, the more the number of attacks by the attack object is. And if the current life value of the attack object is less than the preset value, the attack object disappears in the second interface. And when all attack objects in the second interface disappear and the defense value of the defense object is greater than 0, displaying a target object for representing the victory on the user interface. The target object may be a picture or animation representing a game win.

In order to reduce the occupied area of the first interface while the pattern object enough to eliminate the attack object can exist in the first interface, in an embodiment, after eliminating the connected pattern object, the method further includes: according to the elimination position corresponding to the pattern object, the pattern object above the elimination position is translated downwards to fill the elimination position; filling the shifted blank positions with the newly generated pattern object.

When the same pattern object is erased, an erased blank square appears, and the pattern object above the erased pattern object is translated to the erased position. And then after the existing pattern objects in the matrix are translated, blank positions with the same number as the eliminated pattern objects are still left in the matrix, and in order to ensure the number of the pattern objects in the matrix, new pattern objects are generated by the terminal equipment to fill the blank positions.

In one embodiment, there is provided a game control apparatus, as shown in fig. 9, including:

the instruction receiving module 101 is configured to receive an object exchange instruction on a pattern matrix of a first interface of a screen, where the pattern matrix includes a plurality of matrix elements, and each matrix element is used to display a pattern object.

And the object exchange module 102 is configured to exchange positions of the first pattern object and the second pattern object according to the object exchange instruction, and eliminate the connected pattern objects when a predetermined number of pattern objects of the same type are connected after the exchange positions of the first pattern object and the second pattern object are detected.

And the attack control module 103 is configured to generate an attack instruction according to the connected pattern object, so as to reduce the current life value of the selected target attack object in the plurality of attack objects on the second interface according to the attack instruction.

In an embodiment, the instruction receiving module 101 is specifically configured to: and receiving an object exchange instruction on a pattern matrix of a designated area of the first interface, wherein the designated area is determined according to the position of a target attack object in the second interface, and the target attack object exists in a preset attack range of an attack instruction generated after any pattern object in the designated area is eliminated.

In one embodiment, the designated area is highlighted in the first interface.

In an embodiment, the target attack object is highlighted in the second interface.

In an embodiment, an area of the first interface except the designated area is an unselected state, and the unselected state is used for indicating that the receiving of the object exchange instruction is stopped.

In an embodiment, the attack control module 103 is further configured to:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in the first interface.

In an embodiment, the attack control module 103 is further configured to:

when the display duration of the attack object in the first interface meets a preset condition, controlling the attack object to attack at least one defense object in a preset attack range of the attack object.

In an embodiment, the attack frequency of the attack object is proportional to a display duration of the attack object in the second interface, the display duration is determined according to a current life value of the attack object, and the attack object disappears in the second interface when the current life value is less than a preset value.

In an embodiment, the object exchange module 102 is further configured to, after eliminating the connected pattern objects, translate the pattern objects above the elimination positions downwards according to the elimination positions corresponding to the pattern objects to fill the elimination positions; filling the shifted blank positions with the newly generated pattern object.

In one embodiment, a computer device is provided, as shown in fig. 10, comprising a processor, a memory, a communication interface, an input device, and a display screen connected by a system bus. Wherein 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 that, when executed by the processor, causes the processor to implement the game control method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to execute a game control method. Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, the game control apparatus provided in the present application may be implemented in the form of a computer program that is executable on a computer device such as that shown in fig. 10. The memory of the computer device may store various program modules constituting the game control apparatus. The respective program modules constitute computer programs that cause processors to execute the steps in the game control methods of the respective embodiments of the present application described in this specification.

In one embodiment, a computer-readable storage medium is provided, which stores computer-executable instructions for causing a computer to perform the steps of the above-described game control method. The steps of the game control method here may be the steps in the game control methods of the respective embodiments described above.

The foregoing is a preferred embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a ROM (Read-Only Memory), a RAM (Random Access Memory), or the like.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:虚拟游戏角色的部署方法、装置、存储介质和电子装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类