Idiom elimination level production method and system, control device, and storage medium
By constructing a grid array in the idiom elimination game and utilizing translation and rotation control information to eliminate reference edges, the problem of low level production efficiency and inability to eliminate situations in the existing technology is solved, and efficient level data generation and design simplicity are achieved. .
Patent Information
- Application Number
- CN202111502740.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-12-09
AI Technical Summary
The production efficiency of existing idiom elimination game levels is low. Programmers need to fill in the word blocks one by one and plan their positions, which is prone to errors and leads to situations that cannot be eliminated.
By constructing a grid array and setting the elimination reference edge, the text strip group and operation information are obtained. The word blocks are set in the filling grid in one-to-one correspondence, and the text blocks are driven to translate toward the elimination reference edge according to the translation and rotation control information to eliminate the vacant Fill the grid to form text array level data.
The efficiency of idiom elimination level production is improved, and the design is simple to ensure that game levels will not be impossible to eliminate.
Smart Images

Figure CN114344910B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and system for making idiom elimination levels, a control device, and a storage medium. Background Art
[0002] An idiom elimination game, such as Figure 1 As shown, a grid array is provided, which includes a plurality of filling grids arranged in an array, and word blocks are provided on the filling grids. Players need to find several consecutive word blocks arranged in a column or a row that can form an idiom, and eliminate them after selecting them. After elimination, the word blocks above will fall into the empty filling grids, and players can continue to choose to eliminate them.
[0003] Each game level has different text array level data, and each text array level data needs to be set by programmers. However, in the past, programmers filled each word block into each filling grid one by one, and also planned and arranged the position of each word block to prevent the situation where there are still word blocks in the grid array after the player eliminates them, but no combination of word blocks can be eliminated again. As a result, programmers spend a lot of time and effort in designing, which is inefficient and prone to errors. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides an idiom elimination level production method and system, a control device, and a storage medium, which improves the efficiency of idiom elimination level production and has a simple design.
[0005] According to a first aspect of the present invention, an idiom elimination level production method includes: constructing a grid array, the grid array includes a plurality of filling cells arranged in an array, and the grid array is provided with an elimination reference edge; obtaining a plurality of text strip groups, the text strip groups include a plurality of character blocks arranged in sequence along a length direction; obtaining operation information, and setting a position and a direction of a corresponding text strip group in the grid array according to the operation information, wherein the character blocks are arranged in the filling cells one by one; driving the character blocks to translate toward the elimination reference edge to eliminate the vacant filling cells between the character blocks and the elimination reference edge; and forming text array level data.
[0006] A method for creating an idiom elimination level according to an embodiment of the present invention has at least the following beneficial effects:
[0007] The method for making idiom elimination levels of the present invention firstly places a plurality of word blocks into a word strip group in a grid array, and each word block is arranged in a filling grid in a one-to-one correspondence. A programmer can change the position and direction of the word strip group in the grid array, and then uniformly drive the word blocks to translate toward an elimination reference edge to eliminate the vacant filling grids between the word blocks and the elimination reference edge, thereby forming word array level data. The game level formed in this way will not appear in a situation where it cannot be eliminated, thereby improving the efficiency of making idiom elimination levels and having a simple design.
[0008] According to some embodiments of the present invention, the operation information includes translation control information and rotation control information; the corresponding text bar group is controlled to translate in the grid array according to the translation control information; and the corresponding text bar group is controlled to rotate in the grid array according to the rotation control information.
[0009] According to some embodiments of the present invention, the step of driving the character block to translate toward the elimination reference edge to eliminate the vacant filling cells between the character block and the elimination reference edge includes: detecting in a grid array whether there are vacant filling cells on the side of each character block facing the elimination reference edge; if there are vacant filling cells, driving the character block to translate toward the elimination reference edge to eliminate the vacant filling cells.
[0010] According to some embodiments of the present invention, along the direction of the character block toward the elimination reference edge, from the character block relatively close to the elimination reference edge to the character block relatively far from the elimination reference edge, it is detected in sequence whether there are empty filling cells on the side toward the elimination reference edge. If there are empty filling cells, the character block is driven to translate toward the elimination reference edge to eliminate the empty filling cells.
[0011] According to some embodiments of the present invention, along the direction of the character block toward the elimination reference edge, each character block detects the number information of the vacant filling grids on the side toward the elimination reference edge, and drives the corresponding character block to translate toward the elimination reference edge according to the number information.
[0012] According to the second aspect of the present invention, the control system includes: a control module for selecting or inputting multiple text bar groups and inputting operation information; a processing module connected to the control module, the processing module is used to construct a grid array, and the grid array is provided with an elimination reference edge. The processing module obtains multiple text bar groups, and the processing module sets the position and orientation of the corresponding text bar groups in the grid array according to the operation information. The character blocks are set one by one in the multiple filling grids arranged in an array in the grid array, and the processing module drives the character blocks to translate toward the elimination reference edge to eliminate the vacant filling grids between the character blocks and the elimination reference edge, thereby forming character array level data.
[0013] The control system according to the embodiment of the present invention has at least the following beneficial effects:
[0014] In the control system of the present invention, a programmer selects or inputs a plurality of text bar groups and inputs operation information, thereby placing a plurality of character blocks into a text bar group in a grid array, wherein each character block is arranged in a filling grid one by one, and at the same time, the position and direction of the text bar group in the grid array are changed according to the operation information, and then the character blocks are uniformly driven to translate toward the elimination reference edge to eliminate the vacant filling grids between the character blocks and the elimination reference edge, thereby forming text array level data. The game level formed in this way will not be unable to be eliminated, thereby improving the efficiency of making idiom elimination levels and being simple in design.
[0015] According to an embodiment of the third aspect of the present invention, the control device includes: one or more memories; one or more processors, used to execute one or more computer programs stored in the one or more memories, and also used to execute the idiom elimination level creation method disclosed in any of the above embodiments.
[0016] The computer-readable storage medium according to the fourth aspect of the present invention is characterized in that it includes instructions, which, when executed on a computer, enable the computer to execute the idiom elimination level creation method disclosed in any of the above embodiments.
[0017] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0019] Figure 1 This is a schematic diagram of the interface of the idiom elimination game;
[0020] Figure 2A flowchart of one embodiment of the method for making idiom elimination levels of the present invention;
[0021] Figure 3 A schematic diagram of a first state of an interface of one embodiment of a control system of the present invention;
[0022] Figure 4 A schematic diagram of a second state of an interface of one embodiment of a control system of the present invention;
[0023] Figure 5 This is a schematic diagram of the principle structure of one embodiment of the control device of the present invention.
[0024] Figure 6 This is a principle structural block diagram of one embodiment of the control device of the present invention.
[0025] Reference numerals:
[0026] Control module 100 , processing module 200 , memory 300 , processor 400 . DETAILED DESCRIPTION
[0027] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.
[0028] In the description of the present invention, "several" means one or more, "more" means more than two, "greater than", "less than", "exceed" etc. are understood as not including the number itself, and "above", "below", "within" etc. are understood as including the number itself. If there is a description of "first" or "second", it is only used for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0029] like Figure 1 -5, according to a first aspect of the present invention, a method for making an idiom elimination level includes:
[0030] S100, constructing a grid array, wherein the grid array includes a plurality of filling grids arranged in an array, and an elimination reference edge is provided in the grid array;
[0031] S200, obtaining a plurality of text strip groups, wherein the text strip groups include a plurality of character blocks sequentially arranged along a length direction;
[0032] S300, obtaining operation information, and setting the position and direction of the corresponding text strip group in the grid array according to the operation information, wherein the character blocks are set in the filling grid in a one-to-one correspondence;
[0033] S400, driving the character block to translate toward the elimination reference edge to eliminate the empty filling cells between the character block and the elimination reference edge;
[0034] S500, forming text array level data.
[0035] It should be noted that the grid array is generally rectangular, and the elimination reference edge is a row or column at the edge of the grid array set by the programmer. During the game, when idiom text elimination occurs, if there is an empty filling grid between the word block and the elimination reference edge, the word block will be translated toward the elimination reference edge.
[0036] Specifically, Figure 1 , 3 , 4, for example, taking the bottom edge below the grid array as an example, when the idiom text is eliminated, if there is an empty filling grid between the character block and the bottom edge, the character block will fall and move toward the bottom edge.
[0037] Among them, this design is applied to the idiom elimination game, and the number of word blocks in the text bar group is generally four, and can also be five or more.
[0038] The method for making idiom elimination levels of the present invention firstly places a plurality of word blocks into a word strip group in a grid array, and each word block is arranged in a filling grid in a one-to-one correspondence. A programmer can change the position and direction of the word strip group in the grid array, and then uniformly drive the word blocks to translate toward an elimination reference edge to eliminate the vacant filling grids between the word blocks and the elimination reference edge, thereby forming word array level data. The game level formed in this way will not appear in a situation where it cannot be eliminated, thereby improving the efficiency of making idiom elimination levels and having a simple design.
[0039] In some embodiments of the present invention, Figure 3 , 4 As shown, the operation information includes translation control information and rotation control information. The corresponding text bar group is controlled to translate in the grid array according to the translation control information, and the corresponding text bar group is controlled to rotate in the grid array according to the rotation control information.
[0040] It should be noted that the translation control information controls the overall movement of the text bar group. Specifically, the translation control information may include movement direction information and displacement distance information, so that the text bar group may move up, down, left, or right according to the movement distance.
[0041] The rotation control information controls the overall rotation of the text bar group. Specifically, the rotation control information may include rotation direction information, thereby controlling the overall text bar group to rotate 90° counterclockwise or clockwise. After the rotation, the character blocks are still arranged one-to-one in the filling grid.
[0042] In some embodiments of the present invention, driving the character block to translate toward the elimination reference edge to eliminate the empty filling cells between the character block and the elimination reference edge includes: detecting whether there are empty filling cells on the side of each character block facing the elimination reference edge in the grid array, and if there are empty filling cells, driving the character block to translate toward the elimination reference edge to eliminate the empty filling cells.
[0043] It should be noted that after the plurality of text bar groups are arranged in a grid array and the position and orientation of each text bar group are set, step S400 may be performed automatically or triggered by a programmer.
[0044] In some embodiments of the present invention, along the direction of the character block toward the elimination reference edge, from the character block relatively close to the elimination reference edge to the character block relatively far from the elimination reference edge, it is detected in sequence whether there are empty filling cells on the side facing the elimination reference edge. If there are empty filling cells, the character block is driven to translate toward the elimination reference edge to eliminate the empty filling cells.
[0045] Specifically, the detection can be started from the character block relatively close to the elimination reference edge, and whether there is an empty filling grid on the side facing the elimination reference edge. If so, the character block is driven to translate toward the elimination reference edge until the empty filling grid is eliminated, and then the character blocks behind are detected one by one.
[0046] In some embodiments of the present invention, along the direction of the character block toward the elimination reference edge, each character block detects the number of empty filling cells on the side toward the elimination reference edge, and drives the corresponding character block to translate toward the elimination reference edge according to the number information.
[0047] Specifically, the number of empty filling squares on the side of each character block facing the elimination reference edge can be calculated, and the number of squares by which the character block should be displaced can be determined based on the number information. For example, if the number of empty filling squares on the side of a character block facing the elimination reference edge is 2, then the character block will be moved two squares toward the elimination reference edge.
[0048] According to the control system of the second embodiment of the present invention, Figure 5 As shown, it includes: a control module 100, used for selecting or inputting multiple text bar groups and inputting operation information; a processing module 200, connected to the control module 100, the processing module 200 is used to construct a grid array, and an elimination reference edge is set in the grid array. The processing module 200 obtains multiple text bar groups, and the processing module 200 sets the position and direction of the corresponding text bar group in the grid array according to the operation information. The word blocks are set one by one in a plurality of filling grids arranged in an array in the grid array. The processing module 200 drives the word blocks to translate toward the elimination reference edge to eliminate the vacant filling grids between the word blocks and the elimination reference edge, thereby forming word array level data.
[0049] The control module 100 may be a display screen, a touch screen or other components for displaying an interface, and if a display screen is used, it may be used with a mouse, a keyboard or other peripherals to input operation information. The processing module 200 may be composed of a processor such as a CPU or an MCU and an auxiliary circuit. The processing module 200 is electrically connected to the control module 100 to process the operation information and control the control module 100 to output the display grid array, the text bar group and the setting of the word blocks in the grid array and other related information. Specifically, a computer device such as a desktop computer, a laptop computer, a tablet computer or a mobile phone may be used as the operating system of the embodiment of the present invention.
[0050] Specifically, the text bar group may be stored in a database connected to the processing module 200 , and the programmer may select multiple text bar groups through the manipulation module 100 . Of course, the programmer may also input the text bar group through the manipulation module 100 .
[0051] In the control system of the present invention, a programmer selects or inputs a plurality of text bar groups and inputs operation information, thereby placing a plurality of character blocks into a text bar group in a grid array, wherein each character block is arranged in a filling grid one by one, and at the same time, the position and direction of the text bar group in the grid array are changed according to the operation information, and then the character blocks are uniformly driven to translate toward the elimination reference edge to eliminate the vacant filling grids between the character blocks and the elimination reference edge, thereby forming text array level data. The game level formed in this way will not be unable to be eliminated, thereby improving the efficiency of making idiom elimination levels and being simple in design.
[0052] According to a control device of a third aspect of the present invention, Figure 6 As shown, it includes: one or more memories 300; one or more processors 400, which are used to execute one or more computer programs stored in the one or more memories 300, and are also used to execute the idiom elimination level making method disclosed in any of the above embodiments.
[0053] It should be noted that the specific implementation process of this embodiment can refer to the specific implementation process of the above method embodiment, which will not be described here.
[0054] The computer-readable storage medium according to the fourth aspect of the present invention is characterized in that it includes instructions, which, when executed on a computer, enable the computer to execute the idiom elimination level creation method disclosed in any of the above embodiments.
[0055] It should be noted that the specific implementation process of this embodiment can refer to the specific implementation process of the above method embodiment, which will not be described here.
[0056] The embodiments of the present application further disclose a computer program product, wherein when the computer program product is executed on a computer, the computer is enabled to execute part or all of the steps of the methods in the above method embodiments.
[0057] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read only memory (EPROM), a one-time programmable read only memory (OTPROM), an electrically-erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0058] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0059] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
Claims
1. A method for making idiom elimination levels, characterized in that: include: Constructing a grid array, wherein the grid array includes a plurality of filling grids arranged in an array, and wherein the grid array is provided with an elimination reference edge; Acquire a plurality of text strip groups, wherein the text strip groups include a plurality of character blocks arranged in sequence along a length direction; Acquire operation information, and set the position and direction of the corresponding text bar group in the grid array according to the operation information, wherein the word blocks are set in the filling grid in a one-to-one correspondence; Driving the character block to translate toward the elimination reference edge to eliminate the empty filling cells between the character block and the elimination reference edge; Form text array level data; The step of driving the character block to translate toward the elimination reference edge to eliminate the vacant space between the character block and the elimination reference edge comprises: Detecting in the grid array whether there is an empty filling cell on the side of each character block facing the elimination reference edge, and if there is an empty filling cell, driving the character block to translate toward the elimination reference edge to eliminate the empty filling cell; Along the direction of the character block toward the elimination reference edge, from the character block relatively close to the elimination reference edge to the character block relatively far from the elimination reference edge, detect in sequence whether there are empty filling cells on the side toward the elimination reference edge; if there are empty filling cells, drive the character block to translate toward the elimination reference edge to eliminate the empty filling cells.
2. The method for making an idiom elimination level according to claim 1, characterized in that: The operation information includes translation control information and rotation control information; Controlling the corresponding text bar group to translate in the grid array according to the translation control information; The corresponding text bar group is controlled to rotate in the grid array according to the rotation control information.
3. The method for making idiom elimination levels according to claim 1, characterized in that: Along the direction of the character block toward the elimination reference edge, each character block detects the number information of the vacant filling grids on the side toward the elimination reference edge, and drives the corresponding character block to translate toward the elimination reference edge according to the number information.
4. A control system for implementing the idiom elimination level creation method as described in any one of claims 1 to 3, characterized in that: include: A control module, used to select or input multiple text bar groups and input operation information; A processing module is connected to the control module, the processing module is used to construct a grid array, the grid array is provided with an elimination reference edge, the processing module obtains a plurality of text bar groups, the processing module sets the position and orientation of the corresponding text bar groups in the grid array according to the operation information, the character blocks are arranged one by one in the plurality of filling grids arranged in an array in the grid array, the processing module drives the character blocks to translate toward the elimination reference edge to eliminate the vacant filling grids between the character blocks and the elimination reference edge, thereby forming character array level data.
5. A control device, characterized in that: include: one or more memories; One or more processors are used to execute one or more computer programs stored in the one or more memories, and are also used to execute the idiom elimination level production method as described in any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, enable the computer to execute the idiom elimination level making method as claimed in any one of claims 1 to 3.
