Game editing method, game editing device, program product, and electronic device
By providing table editing functions in the game editor, the problem of scattered game map editing information is solved, and unified information management and editing efficiency are achieved.
Patent Information
- Application Number
- CN202510185960.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-04-11
AI Technical Summary
The editing information in the game map is scattered, which is inconvenient to unified management and affects editing efficiency.
During the game editing stage, the table editing function is provided, the table editing interface of the target game map is displayed through the graphical user interface, the game editing statement is generated in response to the editing instructions, and the target code is loaded during the game running stage.
It realizes unified management of game map editing information, improves user editing efficiency, and quickly and batch editing game map information through table editing functions.
Smart Images

Figure CN119792946A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer and game technology, and in particular to a game editing method, a game editing device, a computer program product and an electronic device. Background Art
[0002] The editing function in the game allows users to customize the game map, such as placing scene components in the game map, editing the rules of play, etc. In the related art, the editing information in the game map is usually scattered, which is not convenient for unified management and affects the editing efficiency. Summary of the invention
[0003] The present disclosure provides a game editing method, a game editing device, a computer program product and an electronic device, so as to at least to some extent solve the problem that the editing information in the game map is not convenient for unified management.
[0004] According to a first aspect of the present disclosure, a game editing method is provided, the method comprising: in a game editing stage, displaying a table editing interface corresponding to a target game map in a graphical user interface; determining a first table in response to a first editing instruction in the table editing interface; generating a game editing statement according to information in the first table in response to a second editing instruction; and in a game running stage, loading a target code corresponding to the game editing statement in response to running the target game map.
[0005] According to a second aspect of the present disclosure, a game editing device is provided, the device comprising: an interface display module, configured to display a table editing interface corresponding to a target game map in a graphical user interface during a game editing stage; a first editing module, configured to determine a first table in response to a first editing instruction in the table editing interface; a second editing module, configured to generate a game editing statement according to information in the first table in response to a second editing instruction; and a game running processing module, configured to load a target code corresponding to the game editing statement in response to running the target game map during a game running stage.
[0006] According to a third aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the method of the first aspect and possible implementations thereof are implemented.
[0007] According to a fourth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the method of the above-mentioned first aspect and its possible implementation methods by executing the executable instructions.
[0008] The technical solution disclosed in this disclosure has the following beneficial effects:
[0009] A table editing function is provided in the game editor. Users can edit tables and quickly and batch-edit game map information through tables. The edited information can be centrally saved and displayed, realizing unified management of game map editing information and improving user editing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Figure 1 A schematic diagram showing a system architecture in this exemplary embodiment;
[0011] Figure 2 A flowchart showing a method for editing a game in this exemplary embodiment;
[0012] Figure 3 A flowchart for determining a first table in this exemplary embodiment is shown;
[0013] Figure 4 A schematic diagram showing a first sub-interface in this exemplary embodiment;
[0014] Figure 5 A schematic diagram showing a second sub-interface in this exemplary embodiment;
[0015] Figure 6 A schematic diagram showing another first sub-interface in this exemplary embodiment;
[0016] Figure 7 A schematic diagram showing a method of setting data type in this exemplary embodiment;
[0017] Figure 8 A schematic diagram showing a method of editing biological preset data in this exemplary embodiment;
[0018] Fig. 9 A schematic diagram showing an error prompt message in this exemplary embodiment;
[0019] Fig.10 A flowchart of editing a table to be edited in this exemplary embodiment is shown;
[0020] Fig.11 A schematic diagram showing an editing target column in this exemplary embodiment;
[0021] Fig.12 A schematic diagram showing a moving target column in this exemplary embodiment;
[0022] Fig.13 A schematic diagram showing an editing cell in this exemplary embodiment;
[0023] Fig.14 A schematic diagram showing a graphical programming interface in this exemplary embodiment;
[0024] Fig.15 A schematic diagram showing a method of adding a sub-graphic in this exemplary embodiment;
[0025] Fig.16 A schematic diagram showing a method of modifying a table by programming graphics in this exemplary embodiment is shown;
[0026] Fig.17 A schematic diagram showing the structure of a game editing device in this exemplary embodiment;
[0027] Fig.18 A schematic structural diagram of an electronic device in this exemplary embodiment is shown. DETAILED DESCRIPTION
[0028] Exemplary embodiments of the present disclosure will be described more fully hereinafter with reference to the accompanying drawings.
[0029] The accompanying drawings are schematic diagrams of the present disclosure and are not necessarily drawn to scale. Some of the block diagrams shown in the accompanying drawings may be functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in hardware modules or integrated circuits, or in networks, processors or microcontrollers. The embodiments can be implemented in various forms and should not be construed as being limited to the examples set forth herein. The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the description below, many specific details are provided to provide a full description of the embodiments of the present disclosure. However, those skilled in the art should appreciate that one or more specific details may be omitted when implementing the technical solution of the present disclosure, or one or more specific details may be replaced by other methods, components, devices, steps, etc.
[0030] The editing function in the game allows users to customize the game map, such as placing scene components in the game map, editing the rules of play, etc. In the related art, the editing information in the game map is usually scattered and not easy to manage uniformly. Users usually need to use fragmented editing methods. For example, if a user wants to edit an NPC (Non-Player Character) in the game map, it is necessary to find each NPC in the game scene and edit each NPC separately, which is cumbersome. This affects the user's editing efficiency.
[0031] In view of the above problems, an exemplary embodiment of the present disclosure provides a game editing method.
[0032] Figure 1 The system architecture diagram of the operating environment of this exemplary embodiment is shown. The system architecture may include a terminal device 110 and a server 120. Among them, the terminal device 110 may be a mobile phone, a tablet computer, a personal computer, an intelligent wearable device, a game console, etc., which has a display function and can display a graphical user interface. The graphical user interface may include an operating system interface or an application interface, etc. The terminal device 110 is installed with an application, such as a game program or an editing program. When the terminal device 110 runs the application, interfaces such as a table editing interface and a game editing scene may be displayed in the graphical user interface. The server 120 generally refers to a background system that provides game or editing services in this exemplary embodiment, which may be a server or a cluster of multiple servers. Exemplarily, a game server program is deployed on the server 120 for executing game data processing on the server side. The terminal device 110 and the server 120 may be connected via a wired or wireless communication link to perform data transmission. The method in this exemplary embodiment may be executed by any one or more of the terminal device 110 and the server 120.
[0033] In one embodiment, the above method can be implemented and executed based on a cloud interactive system. The cloud interactive system can be the above system architecture. Various cloud applications can be run under the cloud interactive system, such as cloud games. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operation subject of the game program and the game screen presentation subject are separated, the storage and operation of the control and interaction methods in the game are completed on the cloud game server (such as the above server 120), and the cloud game client (such as the above terminal device 110) is used to receive and send data and present the game screen. For example, the cloud game client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, etc.; and the cloud game server in the cloud performs information processing. When playing games or editing games, the user operates the cloud game client to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the cloud game client through the network. Finally, the cloud game client decodes and outputs the game screen.
[0034] In one embodiment, the game map edited by the terminal device 110 can be uploaded to the server 120 for storage. For example, the currently edited game map can be automatically saved at regular intervals during the editing process, or the currently edited game map can be saved according to a manual save operation performed by the user, or the currently edited game map can be automatically saved when exiting the editing. When saving the game map, the terminal device 110 can upload the game map data to the server 120, and the server 120 can save it.
[0035] In one embodiment, the server 120 may maintain a game map pool, such as deploying a database for storing game maps on the server side. In response to an instruction to publish a game map on the terminal device 110, the server 120 may add game map data to the game map pool, so that other players can download the game map data from the game map pool and use the game map to play the game. This enables a fast UGC (User Generated Content) function.
[0036] In one implementation, the above method may be implemented by the terminal device 110 alone. For example, without deploying the server 120, the terminal device 110 may run an application in a stand-alone environment to implement the editing function and execute the above method.
[0037] Figure 2 The schematic flow of the game editing method is shown, which may include the following steps:
[0038] Step S210, in the game editing stage, displaying a table editing interface corresponding to the target game map in the graphical user interface;
[0039] Step S220, in response to a first editing instruction in the table editing interface, determining a first table;
[0040] Step S230, in response to the second editing instruction, generating a game editing statement according to the information in the first table;
[0041] Step S240, during the game running phase, in response to running the target game map, load the target code corresponding to the game editing statement.
[0042] based on Figure 2 The method provides a table editing function in the game editor, and the user can edit the table. The game map information can be edited quickly and in batches through the table, and the edited information can be centrally saved and displayed, thereby realizing unified management of the editing information of the game map and improving the user editing efficiency.
[0043] Below Figure 2 Provide detailed instructions for each step.
[0044] In step S210, during the game editing stage, a table editing interface corresponding to the target game map is displayed in a graphical user interface.
[0045] This exemplary embodiment divides the game process into at least two stages as follows: a game editing stage, which is the stage in which the user uses the editing function to edit the game map and other contents; and a game running stage, which is the stage in which the user plays the game and can use the content edited in the game editing stage to play, such as the user can play the game in the edited game map.
[0046] This exemplary embodiment provides editing functions through an application. The application may be a game program, which has an editing function. When the game program is running, the user can select a specific option to enter the editing interface and use the editing function. In another embodiment, the application may be an editing program, which is not a game program. It provides editing functions but cannot be used to play games. Exemplarily, the editing program may be an editing program that is compatible with the game program, which can be run separately outside the game program, or it may be an editing program independent of the game, which is universal for different games, such as DCC (Digital Content Creation) software, game engines, etc. When the editing program is running, the user can use the editing function.
[0047] The target game map is the game map currently edited by the user, and can be any game map, such as a newly created game map, a game map preset in the program, a game map previously edited by the user, a game map edited by other users, etc. Exemplarily, the editing function in the application provides a map selection interface, and the user can select a game map for editing in the map selection interface, and the game map is the target game map.
[0048] When editing a target game map, a table editing interface corresponding to the target game map may be provided. The table editing interface supports users to edit a table. The information in the table can be used by the target game map. For example, a user can edit NPC information in the table and set the corresponding NPC in the target game map based on the NPC information in the table. Of course, the information in the table can also be reused in other game maps by sharing or other means.
[0049] In one embodiment, during the game editing stage, displaying a table editing interface corresponding to a target game map in a graphical user interface may include the following steps:
[0050] In the game editing stage, a target game map is loaded to display a game editing scene in a graphical user interface;
[0051] In response to a first trigger instruction in the game editing scene, a table editing interface corresponding to the target game map is displayed.
[0052] Among them, the game editing scene is a scene formed by loading the target game map in the editing mode. In the game editing scene, the user can edit the scene components, scene environment, virtual characters and other contents. The first trigger instruction is an instruction to trigger the opening of table editing. For example, a table editing function option is provided in the relevant setting interface of the game editing scene. The instruction of the user selecting this option is the first trigger instruction, which can trigger the display of the table editing interface. In response to the first trigger instruction, you can jump from the game editing scene to the table editing interface, or display the table editing interface in the game editing scene in a window or other manner.
[0053] In one embodiment, after the user selects to edit the target game map in the editing function, the game editing scene corresponding to the target game map is first displayed. The user selects the table editing function option in the game editing scene, triggering the display of the table editing interface corresponding to the target game map. Then, the table editing interface can be edited. In one embodiment, in response to exiting the table editing interface, the game editing scene is returned.
[0054] Continue to refer Figure 2 In step S220, in response to a first editing instruction in the table editing interface, a first table is determined.
[0055] The first editing instruction is an instruction for editing a table in the table editing interface, including but not limited to the following operation instructions: creating a new table, editing rows, columns, and cells in a table, editing a table name, and deleting a table. The first table can be any table edited by the user in the table editing interface.
[0056] The specific editing method in the table editing interface is explained below.
[0057] In one embodiment, reference Figure 3 As shown, in response to the first editing instruction in the table editing interface, determining the first table may include the following steps S310 to S330:
[0058] Step S310 , in response to a second trigger instruction in the table editing interface, displaying the table to be edited.
[0059] The second trigger instruction is an instruction to determine the table to be edited, such as an instruction for the user to select the table to be edited and confirm. In response to the second trigger instruction, the table to be edited can be opened and the content in the table can be displayed.
[0060] In one implementation, the above-mentioned displaying the table to be edited in response to the second trigger instruction in the table editing interface may include the following steps:
[0061] Displaying a first sub-interface in the table editing interface; the first sub-interface includes one or more options corresponding to the candidate table;
[0062] In response to the second trigger instruction in the first sub-interface, the first candidate table specified by the second trigger instruction is used as the table to be edited, and the first candidate table is displayed in the second sub-interface of the table editing interface.
[0063] Among them, the first sub-interface is a sub-interface for selecting a table to be edited, and may be the first interface displayed after entering the table editing interface. The candidate table is a table that can be edited by the user, including a table previously created by the user, a table automatically provided by the program (such as a table generated by the program based on the edited information in the target game map, or a table preset in the program), a newly created table, etc. The first sub-interface provides options corresponding to the candidate table, and the second trigger instruction may be a selection instruction for these options. The first candidate table is the candidate table selected by the user through the second trigger instruction, and it is used as the table to be edited, and the first candidate table is displayed in the second sub-interface. The second sub-interface is a sub-interface for editing a table. Exemplarily, different editing sub-interfaces may be set for different candidate tables, that is, each candidate table may have a corresponding editing sub-interface, and the second sub-interface is the editing sub-interface corresponding to the first candidate table. Alternatively, a unified editing sub-interface may be set for different candidate tables, and the second sub-interface is the unified editing sub-interface.
[0064] Figure 4 A schematic diagram of the first sub-interface is shown. Figure 4 The document in is equivalent to a table. The first sub-interface is provided with options of different forms corresponding to the candidate tables, including: a control for creating a new table (i.e., a "new document" control), indicating that the newly created table is used as the table to be edited; recently opened documents, i.e., a selection control corresponding to one or more (e.g., 8) recently opened tables; a document list, i.e., a list of all candidate tables. The user can click on the control for creating a new table, the selection control corresponding to the recently opened document, or the open control of a candidate table in the document list to generate a second trigger instruction, and the candidate table corresponding to the option selected by the user is the first candidate table. In addition, in the first sub-interface, the user can also enter a table name to search for the corresponding candidate table, and determine the first candidate table in the search results. The first candidate table is used as the table to be edited, and the first candidate table is displayed in the second sub-interface.
[0065] Figure 5 Schematic diagram of the second sub-interface is shown. If the user specifies document AAA as the first candidate table through the second trigger instruction, then Figure 5The second sub-interface shown displays the document AAA. The second sub-interface can be in the form of a table interface, which is convenient for users to edit the information in the table.
[0066] In one embodiment, reference Figure 6 As shown, when the first candidate table is displayed, the open control corresponding to the first candidate table in the first sub-interface can be changed to a close control (such as Figure 6 In response to the trigger instruction for the close control, the displayed first candidate form is closed, that is, the first candidate form is no longer used as a form to be edited.
[0067] In one embodiment, the game editing method may further include the following steps:
[0068] In response to a folding instruction for the first sub-interface, displaying the folded form of the first sub-interface;
[0069] In response to an expansion instruction for the first sub-interface, an expanded state of the first sub-interface is displayed; the first sub-interface displays more content in the expanded state than in the folded state.
[0070] For example, Figure 4 The first sub-interface shown is in an expanded form, which can display all the contents of the first sub-interface. Figure 5 The “expand document list” area shown is a folded form of the first sub-interface, which can display a small amount of content of the first sub-interface, or even no content of the first sub-interface.
[0071] In one embodiment, in the expanded state, a folding control (such as Figure 4 The "fold list" control shown in the figure) is a command for the user to click the fold control, which triggers the first sub-interface to switch from the expanded state to the collapsed state. In the collapsed state, the first sub-interface can be set with an expansion control (such as Figure 5 The triangle control on the left side of "Expand Document List" shown in the figure), the instruction when the user clicks the expansion control is the expansion instruction, which triggers the switching of the first sub-interface from the folded form to the expanded form. In this way, the user can flexibly control the form of the first sub-interface to meet the editing operation requirements. For example, when the first candidate table is displayed, the user can trigger the display of the expanded form of the first sub-interface through the expansion instruction, and change to edit other tables in the first sub-interface.
[0072] In one embodiment, in response to determining the table to be edited in the first sub-interface, such as the user selecting the table to be edited through the second trigger instruction in the first sub-interface, the folding instruction is triggered to display the folded form of the first sub-interface, so that the first sub-interface does not cover the second sub-interface.
[0073] In one embodiment, in response to closing the second sub-interface, an expansion instruction is triggered to display the expanded form of the first sub-interface, so that it is convenient for the user to continue to operate in the first sub-interface.
[0074] In one embodiment, the game editing method may further include the following steps:
[0075] In response to a third trigger instruction for an option corresponding to the second candidate table in the first sub-interface, the displayed first candidate table is closed, the second candidate table is used as the table to be edited, and the second candidate table is displayed in the third sub-interface of the table editing interface.
[0076] Among them, the third trigger instruction is an instruction to change the table to be edited to another table when the table to be edited has been determined, and can be a selection instruction for the option corresponding to the candidate table in the first sub-interface. The second candidate table is the candidate table selected by the user through the third trigger instruction. Only one table is allowed to be edited at the same time in the table editing interface. Therefore, if the user specifies the second candidate table as the table to be edited through the third trigger instruction, the displayed first candidate table can be closed and the second candidate table can be displayed in the third sub-interface. It means that the table to be edited is changed from the first candidate table to the second candidate table. The user no longer edits the first candidate table, but can edit the second candidate table. The third sub-interface is the editing sub-interface corresponding to the second candidate table. Alternatively, if different candidate tables correspond to a unified editing sub-interface, the third sub-interface and the second sub-interface can be the same sub-interface, that is, the unified editing sub-interface. For example, when document AAA is displayed, if the user in Figure 6 In the first sub-interface shown, click the open control corresponding to the document BBB. This click instruction is the third trigger instruction, which triggers the closing of the displayed document AAA and displays the document BBB in the third sub-interface. Of course, before closing the document AAA, the user can be prompted to save the document AAA. If the user is prompted to open the document BBB, the document AAA will be automatically closed. There is unsaved content in the document AAA. It is recommended to save the document AAA before opening the document BBB. Through the third trigger instruction, the user can freely switch the table to be edited.
[0077] Step S320, in response to the data editing instruction for the designated cell in the table to be edited, determining the data of the designated cell; the data type of the designated cell is the target type, and the data of the designated cell is the data under the target type.
[0078] The designated cell can be a designated row, column, cell, etc., and can be any cell in the table to be edited. The data type of the designated cell is the target type, which can be set by the user or automatically by the program. The data editing instruction is an instruction for editing the data of the designated cell, such as an operation instruction for inputting data or selecting data in the designated cell. The data of the designated cell should conform to the target type. By limiting the data type of the designated cell, it is easier for the program to identify the data of the designated cell.
[0079] In one embodiment, the determining of the first table in response to the first editing instruction in the table editing interface may further include the following steps:
[0080] In response to a data type setting instruction in the table to be edited, the data type of the designated cell is determined to be a target type.
[0081] For example, the user can set the data type of a row or a column, or the user can select one or more cells and set their data types as designated cells.
[0082] In one embodiment, the first preset row in the table to be edited is a data type row; the designated unit includes cells in the designated column that are in a preset row range, and the preset row range does not include the first preset row. In response to the data type setting instruction in the table to be edited, determining that the data type of the designated unit is the target type may include the following steps:
[0083] In response to an edit instruction for a first cell in a table to be edited, a target type is determined according to edit information of the first cell, and a data type of a designated cell is determined as the target type; the first cell is a cell in a first preset row and a designated column.
[0084] The data type row is used to set the data type, which can be applied to cells in the same column that are within a preset row range. The preset row range can be set automatically by the program or by the user. For example, refer to Figure 7 As shown in the figure, in the table to be edited, the first preset row is the second row, which means that the second row in the table to be edited is used to set the data type. The preset row range includes the third row and rows after the third row. If the user is currently editing the second column (Column 2), that is, the specified column is the second column, then the first cell is the cell in the second row and the second column, that is, Figure 7The currently selected cell in the table. The specified cells include cells in the third row and below in the second column. When editing the first cell, multiple candidate data types are provided, such as integers, real numbers, Boolean values, etc. The user can select from them to determine the data type of the specified cell. For example, if the user selects an integer, that is, the editing information of the first cell is "integer", then the data types of the cells in the third row and below in the second column are determined to be integers. In this way, users can quickly set the data type for an entire column or multiple cells in a column, realizing batch setting of data types. In addition, the first preset row is fixedly used to set the data type, realizing data parsing and type visualization, and the relevant information and meaning of the data type are intuitively displayed in the table to be edited, which is convenient for users to perform standardized editing, lower the threshold of understanding, and simplify the operation method.
[0085] In one embodiment, in response to the data editing instruction for the specified cell in the table to be edited, determining the data of the specified cell may include the following steps:
[0086] When the specified cell is the current editing object, a data editing control corresponding to the target type is provided;
[0087] In response to a data editing instruction for a data editing control, data of a designated cell is determined.
[0088] If the data type of the specified cell is determined to be the target type, when editing the specified cell, a data editing control corresponding to the target type is provided, which is suitable for editing data under the target type. Figure 8 As shown, if the target type is biological preset, when the specified unit is selected, the data editing control corresponding to the biological preset type is provided, which can be Figure 8 The biological preset sub-interface shown includes options corresponding to different preset biological components, from which users can choose. For example, if the user selects "firefighter", the data of the specified unit is determined to be "firefighter". In addition, if the target type is an integer, the corresponding data editing control can be an integer input box; if the target type is a string, the corresponding data editing control can be a string input box; if the target type is a Boolean value, the corresponding data editing control can be a Boolean value selection control; if the target type is a sound, the corresponding data editing control can be a sound sub-interface, including options corresponding to different preset sounds. By providing a data editing control corresponding to the target type, it is convenient for users to edit the data under the target type in the specified unit, and it can prevent users from editing data of the wrong type.
[0089] In one embodiment, the second preset row in the table to be edited is a name row, which is used to enter the field name. Figure 8As shown, the first row in the table to be edited is the second preset row, and the user can enter the group name in this row, such as entering "Key" in the cell of the first row and the first column, indicating that the field name of the first column is "Key". In one embodiment, the above preset row range does not include the second preset row. Since the second preset row is used to enter the field name, its data type can be a string.
[0090] This exemplary embodiment can implement classified summary editing of tables, making the information in the tables more standardized, clear, and easy to understand, which is conducive to improving editing efficiency.
[0091] In one implementation, the data in the table to be edited may be verified, and if the verified data is abnormal, an error prompt message may be displayed.
[0092] In one embodiment, the determining of the first table in response to the first editing instruction in the table editing interface may further include the following steps:
[0093] If the data of the specified unit does not conform to the target type, an error message will be displayed.
[0094] For example, if the target type of a specified cell is an integer, and the user enters a string in the specified cell that does not conform to the target type, an error message for the specified cell can be displayed to prompt the user that the data type is incorrect. This can reduce or avoid situations where the data type is incorrect.
[0095] In one embodiment, the above-mentioned display of error prompt information may include the following steps:
[0096] The designated cell is displayed according to the first display parameter; the first display parameter is different from the second display parameter, and the second display parameter is used to display the normal cell in the table to be edited, and the data of the normal cell conforms to the data type corresponding to the normal cell.
[0097] Among them, a normal cell refers to a row, column or cell with a normal verification result. If the data of a specified cell does not conform to the target type, the specified cell can be regarded as an abnormal cell. Abnormal cells and normal cells use different display parameters, such as different colors, shapes, fonts, etc., to facilitate user distinction. Exemplarily, the first display parameter includes a first cell fill color, such as red, and the second display parameter includes a second cell fill color, such as black, white, etc., and there is a significant visual difference between the two. Through the differentiated display method, it is equivalent to presenting an error prompt message in the abnormal cell. It allows users to quickly recognize which cells in the table to be edited are abnormal.
[0098] Fig. 9The example shows that the cell in the third column of the first row has abnormal data. The cell cannot be empty (its data type should be a string). In this case, the cell can be displayed in a color different from other cells, and a corresponding error mark (such as an exclamation mark) or text information can be added. In this way, the user can clearly recognize that the cell is abnormal and make corrections in time.
[0099] By providing a verification function in the table to detect the correctness of the data edited by the user, it is helpful for the user to edit a standardized table, ensure that the information in the table conforms to the game logic, and avoid problems caused by erroneous data.
[0100] In one embodiment, reference Fig.10 As shown, the above-mentioned determining the first table in response to the first editing instruction in the table editing interface may also include at least one of the following steps S1010 to S1060:
[0101] Step S1010 , when a target column in a table to be edited is a current editing object, a column editing control is provided, and in response to a trigger instruction for the column editing control, the target column is edited.
[0102] The target column is the column that the user is currently editing, which can be any column in the table to be edited. Fig.11 As shown, the user can click the "Column 2" cell of the second column to select the second column, and the target column is the second column, and the second column is the current editing object. In this case, column editing controls are provided, including but not limited to any one or more of the following: Modify column name control, used to modify the name of the target column, such as after the user clicks the modify column name control, the name can be entered, so that the name of the second column is changed from "Column 2" to the name entered by the user; Add column control to the left, after the user clicks the control, a new column is added to the left of the target column; Add column control to the right, after the user clicks the control, a new column is added to the right of the target column; Copy column control, after the user clicks the control, the target column is copied, and the target column can be pasted elsewhere; Cut column control, after the user clicks the control, the target column is cut, and the target column can be pasted elsewhere; Paste column control, after the user clicks the control, the copied column is pasted in the target column; Delete entire column control, after the user clicks the control, the target column is deleted. Users can use these column editing controls to edit the target column.
[0103] Step S1020 , when the target column in the table to be edited is the current editing object, in response to a move instruction for the target column, the position of the target column in the table to be edited is moved.
[0104] For example, a user can long press a specified position in the target column (such as the column header position, i.e. Fig.112) and drag to move the entire target column, thereby adjusting the position of the target column in the table to be edited.
[0105] In one embodiment, in response to the move instruction for the target column, moving the position of the target column in the table to be edited may include the following steps:
[0106] In response to a movement instruction for a target column, providing a movement reference identifier;
[0107] In response to the target column moving to the moving reference mark and ending the moving instruction, the target column is moved to a column position corresponding to the moving reference mark in the table to be edited.
[0108] The moving reference mark can be used to locate the movement of the target column. Fig.12 As shown, in response to a moving instruction for a target column, such as a user long pressing the "Column 2" cell instruction, a moving object 1201 of the target column is displayed, which is an operation object in the process of moving the target column and may have the same or similar appearance as the target column. A moving reference mark 1202 is provided according to the position of the moving object 1201. Exemplarily, in the process of moving the moving object 1201 to the right, a corresponding moving reference mark 1202 is provided according to the column position where the right edge of the moving object 1201 is located; in the process of moving the moving object 1201 to the left, a corresponding moving reference mark 1202 is provided according to the column position where the left edge of the moving object 1201 is located, which may be in the form of a positioning line or the like. Fig.12 In the example, the user moves the moving object 1201 to the right, and the right edge of the moving object 1201 is located at the position of the third column, and a moving reference mark 1202 corresponding to the third column is provided. The moving reference mark 1202 helps the user to locate the moving object 1201 to the third column. For example, if the user moves the moving object 1201 to the right edge to align the moving reference mark 1202 and ends the moving instruction, the target column is moved to the position of the third column. It can be seen that the moving reference mark can provide an accurate reference for the moving process of the target column, which is conducive to improving the accuracy of the user's operation.
[0109] In one embodiment, the mobile reference marker has an adsorption effect. When the distance between the mobile object and the mobile reference marker is less than a preset distance, the mobile object can be automatically aligned to the mobile reference marker, thereby improving user operation efficiency.
[0110] In one implementation, after the target column is moved to a position in the table to be edited, the numbers of the columns can be adjusted according to the current column order. For example, if "Column 2" is moved to the position of "Column 3", the original "Column 2" becomes "Column 3", and the original "Column 3" becomes "Column 2", that is, the numbers of the original second column and the third column are swapped.
[0111] In one embodiment, multiple target columns can be used as current editing objects at the same time, such as when a user selects multiple target columns at the same time. In this case, multiple target columns can be edited or moved through the column editing control.
[0112] Step S1030 , when the target row in the table to be edited is the current editing object, a row editing control is provided, and in response to a trigger instruction for the row editing control, the target row is edited.
[0113] The target row is the column that the user is currently editing, and can be any row in the table to be edited. For example, the user can click the number cell of a row in the table to be edited to select the row and make the row the current editing object. In this case, row edit controls are provided, including but not limited to any one or more of the following: an add row control upwards, after the user clicks the control, a new row is added above the target row; an add row control downwards, after the user clicks the control, a new row is added below the target row; a copy row control, after the user clicks the control, the target row is copied, and the target row can be pasted elsewhere; a cut row control, after the user clicks the control, the target row is cut, and the target row can be pasted elsewhere; a paste row control, after the user clicks the control, the copied row is pasted in the target row; a delete entire row control, after the user clicks the control, the target row is deleted. Users can use these row edit controls to edit the target row.
[0114] Step S1040 , when the target row in the table to be edited is the current editing object, in response to a move instruction for the target row, the position of the target row in the table to be edited is moved.
[0115] For example, the user can long press a designated position in the target row (such as the row header position, that is, the numbering grid of a row) and drag to move the entire target row, thereby adjusting the position of the target row in the table to be edited.
[0116] In one embodiment, in response to a move instruction for a target row, a moving reference identifier is provided; in response to the target row moving to the moving reference identifier and ending the moving instruction, the target row is moved to the row position corresponding to the moving reference identifier in the table to be edited. The moving reference identifier can be used to position the movement of the target row, such as a horizontal positioning line. In the process of the user moving the target row, the moving reference identifier provides positioning reference information, which is beneficial to improve the accuracy of the user's operation. In one embodiment, the moving reference identifier has an adsorption effect. In the process of moving the target row or the moving object of the target row, when the distance between the target row or its moving object and the moving reference identifier is less than a preset distance, the target row or the moving object can be automatically aligned to the moving reference identifier, thereby improving the efficiency of user operation.
[0117] In one implementation, after the target row is moved to a position in the table to be edited, the numbers of the rows may be adjusted according to the current row order. For example, if the second row is moved to the position of the third row, the numbers of the second row and the third row may be swapped.
[0118] In one embodiment, multiple target rows can be used as current editing objects at the same time, such as when a user selects multiple target rows at the same time. In this case, multiple target rows can be edited or moved through a row edit control.
[0119] Step S1050: When the second cell in the table to be edited is the current editing object, a cell editing control is provided, and the second cell is edited in response to a trigger instruction for the cell editing control.
[0120] The second cell is the cell currently being edited by the user, which can be any cell in the table to be edited. Fig.13 As shown, the user can click on the cell in the third column of the first row to select the cell, and the cell is the second cell, and the cell is now the current editing object. In this case, cell editing controls are provided, including but not limited to any one or more of the following: an editing control, which allows the user to enter or modify data in the second cell after clicking; a copy control, which allows the user to copy the second cell after clicking the control, and then paste the second cell at another location; a cut control, which allows the user to cut the second cell after clicking the control, and then paste the second cell at another location; a paste control, which allows the user to paste the copied cell in the second cell after clicking the control; and a clear control, which allows the user to clear the data in the second cell after clicking the control. The user can use these cell editing controls to edit the second cell.
[0121] Step S1060 , in response to a filling instruction to fill a fourth cell with the third cell, determining data of the fourth cell according to data of the third cell.
[0122] Exemplary, reference Fig.13 As shown, the cell in the third column of the first row can be used as the third cell. The user can press and hold the circular fill control 1301 in the lower right corner of the third cell and drag downward, such as dragging two cells downward, and use the two cells as the fourth cell. The data of the fourth cell is determined according to the data of the third cell. For example, the data of the third cell can be copied to the fourth cell, and the data of the two fourth cells are both 11. For another example, the data of the third cell is added by one in sequence to obtain the data of the fourth cell, and the data of the two fourth cells are 12 and 13 respectively. The filling method can simplify user operations and improve editing efficiency.
[0123] The above describes the editing methods in the editable table. For different editing objects such as rows, columns, cells, etc., by providing corresponding controls or supporting visual operation methods, the user's editing process is simplified and the editing efficiency is improved.
[0124] It should be understood that the present disclosure is not limited to the above-mentioned editing method, and the user may also use other editing methods to edit the table to be edited, such as copying the entire table, editing the functional relationship between different cells, etc.
[0125] Step S330 , in response to an edit completion instruction for the table to be edited, determining a first table according to the edited table to be edited.
[0126] The edit completion instruction may be an instruction to confirm the completed edit operation. For example, the edit completion instruction may be an instruction to save the table to be edited. Figure 5 As shown, a save control is provided in the table editing interface, and the user's operation on the save control can trigger an edit completion instruction, triggering the saving of the current table to be edited. Alternatively, the current table to be edited is automatically saved when the table to be edited is closed, and the save instruction is equivalent to an edit completion instruction. Alternatively, in the process of editing the table to be edited, the table to be edited can be saved, such as automatically saved at intervals, or automatically saved after the user performs certain operations, and the save instruction is equivalent to an edit completion instruction. The edited table to be edited can be saved to local map data or map files, or uploaded to a server for saving, and the saved table to be edited is the first table.
[0127] based on Figure 3 The method and the intuitive table editing interface are conducive to simplifying the user operation mode and lowering the user's learning and usage threshold. By restricting the data type of the specified unit, it is convenient for the user to edit the first standardized table according to the data type, thereby realizing the unified management of the editing information of the game map.
[0128] Continue to refer Figure 2In step S230, in response to the second editing instruction, a game editing statement is generated according to the information in the first table.
[0129] The game editing statement is a statement describing the game logic and other information set in the target game map, which can be in natural language or programming language. The second editing instruction is an instruction for editing the game editing statement. When editing the game editing statement, the information in the first table can be used. For example, when writing the game editing statement, a cell in the first table can be referenced as a variable in the game editing statement. In this way, the game logic is implemented based on the first table.
[0130] For example, the user can edit the first table, including the NPC information in the target game map, through the first editing instruction, and edit the game editing statement, which describes the NPC generation conditions, such as generating the corresponding NPC according to the information in the first table under certain conditions. This implements a relatively complete NPC-related game logic.
[0131] In one embodiment, the game editing statement includes a programming graphic; in response to the second editing instruction, the game editing statement is generated according to the information in the first table, including:
[0132] In response to the fourth trigger instruction, displaying a graphical programming interface corresponding to the target game map;
[0133] In response to a second editing instruction in the graphical programming interface, a programming graphic is generated according to the information in the first table.
[0134] The graphical programming interface is an interface for editing game logic through programming graphics. The graphical programming interface provides programming graphic controls, and the programming graphic controls are configured to generate corresponding programming graphics in the graphical programming interface in response to trigger instructions. Fig.14 Figure 1 shows a schematic diagram of the graphical programming interface. Fig.14As shown, the graphical programming interface can provide corresponding programming graphic controls 1401 according to different categories such as events, actions, controls, conditions, values, variables, etc., and each category can provide more subdivided programming graphic controls 1401, such as providing programming graphic controls 1401 for different events such as "game initialization", "game end", "timer expiration", "receiving custom events", "specified component is clicked" under the event category. The user can drag the programming graphic control 1401 to the graphical programming interface, and the dragging operation generates a trigger instruction to generate a programming graphic corresponding to the programming graphic control 1401 in the graphical programming interface, such as the user drags the programming graphic control 301 of "game initialization" to the graphical programming interface to trigger the generation of the programming graphic of "game initialization". Of course, the trigger instruction can also be realized by other operation modes, such as clicking the programming graphic control 1401, and then clicking a certain position in the graphical programming interface to trigger the generation of the corresponding programming graphic at that position.
[0135] Developers can configure corresponding codes for programming graphic controls in advance. For example, for event-type programming graphic controls, the code can be a statement describing the event, for action-type programming graphic controls, the code can be a command function, for condition-type programming graphic controls, the code can be a conditional statement, etc. In addition, visualization information can be configured in advance for programming graphic controls. The visualization information includes the shape and color of the programming graphics, as well as text, symbols, and other information used to describe the code logic. In this case, the programming graphics generated by the programming graphic controls have the visualization information of the programming graphic controls and the corresponding code configured by the programming graphic controls, which is convenient for users to edit.
[0136] Exemplarily, the programming graphic control and the programming graphic can be in the form of building blocks. Building blocks are physical objects that can be spliced together. The programming graphic control and the programming graphic are represented in the form of building blocks, which is easy for users to understand. Different programming graphics can be spliced together to form a programming graphic group.
[0137] Different types of programming graphics can have different shapes or colors. Users can combine programming graphics in the graphical programming interface. Programming graphics with matching shapes can be spliced to ensure the rationality of the code sequence. Visual information such as text in the programming graphics makes it easier for users to understand the logic of the combined programming graphics. The program combines the codes corresponding to the programming graphics according to the combination of programming graphics to form a section of code that can implement the game logic. It can be seen that the graphical programming interface provides a graphical programming method. Users can edit the game logic through a visual graphic combination method. Users do not need to master professional computer programming knowledge, which greatly reduces the threshold and difficulty of programming.
[0138] The fourth trigger instruction is an instruction for triggering the display of the graphical programming interface. For example, in the table editing interface or the game editing scene, the option corresponding to the graphical programming interface is set, and the fourth trigger instruction can be a trigger instruction for the option, such as a user clicking or long pressing the option instruction, which can trigger the jump from the table editing interface or the game editing scene to the graphical programming interface. In the graphical programming interface, the user can use the second editing instruction to reference the information in the first table to edit and form a programming graphic.
[0139] In one embodiment, the programming graph includes a sub-graph. The above-mentioned generating the programming graph according to the information in the first table in response to the second editing instruction in the graphical programming interface may include the following steps:
[0140] In response to a second editing instruction in the graphical programming interface, a sub-graphic is added to the graphic template according to the information in the first table, and a programming graphic is generated based on the combination of the graphic template and the sub-graphic.
[0141] The graphic template may be a templated programming graphic generated by a programming graphic control. In the graphic template, it is usually necessary to add information such as parameters (including variables), which can be added to the graphic template in the form of a sub-graphic. The graphic template and the sub-graphic are combined to obtain a complete programming graphic. When adding a sub-graphic, the information in the first table can be used. Fig.15 A schematic diagram of adding a sub-graph according to the information in the first table is shown. When the graph template 1502 has been generated, the user can add a sub-graph 1501 to the graph template 1502 through the second editing instruction, and the sub-graph 1501 refers to the information of the number of columns of the table AAA. The graph template 1502 and the sub-graph 1501 are combined to form a complete programming graph, which expresses a relatively complete game logic.
[0142] In one embodiment, the above-mentioned adding a sub-graphic in the graphic template according to the information of the first table in response to the second editing instruction in the graphical programming interface may include the following steps:
[0143] In response to a parameter adding instruction for the graphic template, providing one or more edited tables, the edited tables including a first table;
[0144] In response to selecting a first table among the one or more edited tables, a sub-graph is added to the graph template according to information in the first table.
[0145] Exemplarily, a parameter adding control may be set in a graphic template or a graphical programming interface for adding parameters to the graphic template. When a user clicks the control, a parameter adding instruction for the graphic template is generated, triggering the provision of one or more edited tables. These edited tables may be tables edited by the user in the table editing interface, including a first table. For example, in response to a parameter adding instruction for the graphic template, a table information selection interface is displayed, including one or more edited tables. Furthermore, the user may make a selection in the edited table, such as selecting the first table, which triggers the addition of a sub-graphic to the graphic template according to the information in the first table. Alternatively, after the user selects the first table, the user may further select specific information in the first table, such as selecting parameters such as the number of rows and columns of the first table, or selecting specific rows, columns, cells, etc. in the first table, which triggers the addition of a sub-graphic to the graphic template according to the information in the first table selected by the user.
[0146] In one embodiment, in response to selecting a first table from one or more edited tables, adding a sub-graph to a graph template according to information in the first table may include the following steps:
[0147] In response to selecting a first table in the one or more edited tables and selecting a fifth cell in the first table, a sub-graphic is added to the graphic template according to data of the fifth cell.
[0148] Exemplarily, in response to a parameter adding instruction for a graphic template, a table information selection interface is displayed, including one or more edited tables, and in response to a user selecting a first table therein, information of the first table is displayed in the table information selection interface, such as displaying cells of the first table, and in response to a user selecting a fifth cell therein, a sub-graph is added to the graphic template according to the data of the fifth cell. In this way, the user can freely and conveniently use the information in the table when editing a programming graphic.
[0149] Through the above method, the table and programming graphics are effectively and flexibly combined, supporting visual editing of programming graphics in a graphical programming interface based on the information in the table on the basis of editing the table, realizing advanced and complex game logic, which is conducive to improving the user's editing quality.
[0150] Continue to refer Figure 2 In step S240, during the game running phase, in response to running the target game map, the target code corresponding to the game editing statement is loaded.
[0151] The game editing statement itself can be a code written in a programming language, which is the target code. Alternatively, the game editing statement can be a natural language statement, such as a programming graphic, which corresponds to the target code in the program. During the game running phase, when the target game map is running, the target code corresponding to the game editing statement can be loaded into the memory, and the target code can be executed under specific circumstances (such as when the conditions of the target code are met) to implement the game logic edited by the user through the first editing instruction and the second editing instruction.
[0152] The information in the first table is deeply bound to the game content of the target game map, so that the user can intuitively feel the editing effect by running the target game map.
[0153] In one embodiment, the game running phase may include a game testing phase. For example, in a game editing scene, in response to a test instruction, the game testing scene is triggered, and the target game map currently edited by the user is used for testing. At this time, the target game map can be run in a manner that simulates the actual operation of the game, and the target code can be loaded. In this way, after editing the first table and the game editing statement, the editing effect can be tested in time, and the corresponding information in the first table and the game editing statement can be adjusted when the editing effect is not ideal, thereby improving the editing feedback efficiency and the editing effect.
[0154] In one embodiment, the programming graph may include: a programming graph for modifying the first table. The game editing method may also include:
[0155] When the target code corresponding to the game editing statement is loaded, the first table is modified by executing the target code;
[0156] The game logic in the target game map is executed according to the modified first table.
[0157] The modification of the first table includes but is not limited to: adding rows, columns, and cells; deleting rows, columns, and cells; modifying the data of rows, columns, and cells; and deleting the table. Fig.16 As shown, the programming graphics can be used to modify the first table, such as Fig.16 The second line of programming graphics shown is used to add a new column "cc" to table AAA and set its data type to integer. During the game running phase, by executing the target code corresponding to the programming graphics, the operation of adding a new column "cc" to table AAA and setting the integer type is performed. Then, the game logic in the target game map can be executed according to the modified table AAA, such as executing Fig.16 The third line of programming graphics shown corresponds to the target code. This can achieve more complex game logic and improve the flexibility of user editing.
[0158] In one embodiment, the table can also be created by programming graphics.
[0159] In one embodiment, the game editing method may further include the following steps:
[0160] Serialize the data in the first table and save it into the map data of the target game map;
[0161] In response to an upload instruction for a target game map, the map data is uploaded.
[0162] Among them, serialization can convert the data of the first table into a format that can be stored or transmitted, such as binary files, JSON (JavaScript Object Notation), XML (Extensible Markup Language) and other formats. Map data usually needs to be serialized before being saved. The data of the first table, as part of the map data of the target game map, also needs to be serialized before being saved. For example, the data of the first table can be serialized together with other data of the target game map and saved as a map file of the target game map.
[0163] In one embodiment, the above-mentioned serializing the data of the first table and saving it into the map data of the target game map may include the following steps:
[0164] The data in the first table are serialized into a one-dimensional array and / or serialized into a two-dimensional array according to fields, and saved into the map data of the target game map.
[0165] The first table may be serialized in one dimension to obtain a one-dimensional array, or the first table may be serialized in two dimensions with the field as the dimension to obtain a two-dimensional array. The data of the first table saved in the map data may include the one-dimensional array or the two-dimensional array, or may include both the one-dimensional array and the two-dimensional array.
[0166] The data structure of the first table after serialization is described below.
[0167] The first table is serialized to form data in JSON format, and its data structure is as follows:
[0168] {
[0169] "table":{
[0170] "Pursuing Hero":{
[0171] "column_width":{"0":77...}#row width value
[0172] "table_data":{#Table data module
[0173] “data”:[…],
[0174] "dict":[…],
[0175] “key”:[…],
[0176] }
[0177] "table_type":0,#table type
[0178] "tid":15288xxxxx#table unique identifier
[0179] }
[0180] "config1":{"table_type":0…},
[0181] "config2":{"table_type":0…}
[0182] }
[0183] }
[0184] In the above data structure, there are three tables, namely "Pursuing Heroes", "config1" and "config2". The data of the "Pursuing Heroes" table includes row width values and table_data. In table_data, data represents the above one-dimensional array, which can be a structure in which all data in the table is stored in a list format. dict represents the above two-dimensional array, and key represents the column number index that needs to be used as the key of dict. Exemplarily, each column in the "Pursuing Heroes" table is a field, and the data can be stored as a two-dimensional array in units of columns to obtain a dict.
[0185] In one embodiment, in response to running the target game map, loading the target code corresponding to the game editing statement may include the following steps:
[0186] In response to running the target game map, the map data is deserialized into the memory, and the target code corresponding to the game editing statement is executed according to the deserialized map data.
[0187] Among them, deserialization is the reverse process of serialization. When running and loading the target game map, the game program can read the map data, convert the serialized stored map data back into a data structure that the game program can understand and load it into the memory. In particular, if the serialized map data includes the above-mentioned two-dimensional array, the data in the table can be deserialized according to the field information in the two-dimensional array. When the map data is deserialized into the memory, the target code therein is executed according to the information in the table, such as determining the parameters and variables in the target code according to the data in the table, and the game logic of the game editing statement is implemented by executing the target code.
[0188] An exemplary embodiment of the present disclosure provides a game editing device. Fig.17 As shown, the game editing device 1700 includes the following modules:
[0189] The interface display module 1710 is configured to display a table editing interface corresponding to the target game map in a graphical user interface during the game editing stage;
[0190] The first editing module 1720 is configured to determine a first table in response to a first editing instruction in the table editing interface;
[0191] The second editing module 1730 is configured to generate a game editing statement according to the information in the first table in response to the second editing instruction;
[0192] The game running processing module 1740 is configured to load the target code corresponding to the game editing statement in response to running the target game map during the game running phase.
[0193] The above modules can be software modules, such as program modules, or hardware modules.
[0194] In one embodiment, during the game editing stage, a table editing interface corresponding to a target game map is displayed in a graphical user interface, including: during the game editing stage, loading the target game map to display a game editing scene in the graphical user interface; in response to a first trigger instruction in the game editing scene, displaying a table editing interface corresponding to the target game map.
[0195] In one embodiment, in response to a first editing instruction in a table editing interface, determining a first table includes: in response to a second trigger instruction in the table editing interface, displaying the table to be edited; in response to a data editing instruction for a specified cell in the table to be edited, determining the data of the specified cell; the data type of the specified cell is a target type, and the data of the specified cell is data under the target type; in response to an edit completion instruction for the table to be edited, determining the first table based on the edited table to be edited.
[0196] In one embodiment, in response to a first editing instruction in the table editing interface, determining the first table further includes: in response to a data type setting instruction in the table to be edited, determining the data type of the designated cell as the target type.
[0197] In one embodiment, the first preset row in the table to be edited is a data type row; the designated unit includes cells in the designated column that are in a preset row range, and the preset row range does not include the first preset row; in response to a data type setting instruction in the table to be edited, the data type of the designated unit is determined to be a target type, including: in response to an editing instruction for the first cell in the table to be edited, the target type is determined based on the editing information of the first cell, and the data type of the designated unit is determined to be the target type; the first cell is a cell in the first preset row and the designated column.
[0198] In one embodiment, in response to a data editing instruction for a specified cell in a table to be edited, determining the data of the specified cell includes: providing a data editing control corresponding to the target type when the specified cell is the current editing object; and determining the data of the specified cell in response to a data editing instruction for the data editing control.
[0199] In one embodiment, in response to a first editing instruction in the table editing interface, determining the first table further includes: if it is detected that the data of the designated unit does not conform to the target type, displaying an error prompt message.
[0200] In one embodiment, displaying error prompt information includes: displaying a specified unit according to a first display parameter; the first display parameter is different from a second display parameter, and the second display parameter is used to display a normal unit in the table to be edited, and the data of the normal unit conforms to the data type corresponding to the normal unit.
[0201] In one embodiment, in response to a first editing instruction in a table editing interface, determining a first table also includes at least one of the following steps: when a target column in the table to be edited is the current editing object, providing a column editing control, and editing the target column in response to a triggering instruction for the column editing control; when the target column in the table to be edited is the current editing object, in response to a move instruction for the target column, moving the target column to a position in the table to be edited; when the target row in the table to be edited is the current editing object, providing a row editing control, and editing the target row in response to a triggering instruction for the row editing control; when the target row in the table to be edited is the current editing object, in response to a move instruction for the target row, moving the target row to a position in the table to be edited; when the second cell in the table to be edited is the current editing object, providing a cell editing control, and editing the second cell in response to a triggering instruction for the cell editing control; and in response to a fill instruction for filling a fourth cell with a third cell, determining data of the fourth cell based on data of the third cell.
[0202] In one embodiment, in response to a move instruction for a target column, the position of the target column in the table to be edited is moved, including: in response to the move instruction for the target column, providing a move reference identifier; in response to the target column moving to the move reference identifier and ending the move instruction, moving the target column to the column position corresponding to the move reference identifier in the table to be edited.
[0203] In one embodiment, in response to a second trigger instruction in a table editing interface, a table to be edited is displayed, including: displaying a first sub-interface in the table editing interface; the first sub-interface includes options corresponding to one or more candidate tables; in response to the second trigger instruction in the first sub-interface, the first candidate table specified by the second trigger instruction is used as the table to be edited, and the first candidate table is displayed in the second sub-interface of the table editing interface.
[0204] In one embodiment, the first editing module 1720 is further configured to: display the folded form of the first sub-interface in response to a collapse instruction for the first sub-interface; display the expanded form of the first sub-interface in response to an expand instruction for the first sub-interface; the first sub-interface displays more content in the expanded form than in the folded form.
[0205] In one embodiment, the first editing module 1720 is further configured to: in response to a third trigger instruction for an option corresponding to the second candidate table in the first sub-interface, close the displayed first candidate table, use the second candidate table as the table to be edited, and display the second candidate table in the third sub-interface of the table editing interface.
[0206] In one embodiment, the game editing device 1700 further includes a map data processing module configured to: serialize the data of the first table and save it into the map data of the target game map; and upload the map data in response to an upload instruction for the target game map.
[0207] In one embodiment, in response to running a target game map, loading a target code corresponding to a game editing statement includes: in response to running a target game map, deserializing map data into memory, and executing the target code corresponding to the game editing statement according to the deserialized map data.
[0208] In one embodiment, serializing the data of the first table and saving it into the map data of the target game map includes: serializing the data of the first table into a one-dimensional array and / or serializing it into a two-dimensional array according to fields, and saving it into the map data of the target game map.
[0209] In one embodiment, the game editing statement includes a programming graphic; in response to a second editing instruction, a game editing statement is generated according to the information in the first table, including: in response to a fourth trigger instruction, a graphical programming interface corresponding to the target game map is displayed; in response to the second editing instruction in the graphical programming interface, a programming graphic is generated according to the information in the first table.
[0210] In one embodiment, the programming graphic includes a sub-graphic; in response to a second editing instruction in the graphical programming interface, the programming graphic is generated according to the information in the first table, including: in response to the second editing instruction in the graphical programming interface, the sub-graphic is added to the graphic template according to the information in the first table, and the programming graphic is generated based on the combination of the graphic template and the sub-graphic.
[0211] In one embodiment, in response to a second editing instruction in a graphical programming interface, a sub-graphic is added to a graphic template based on information in a first table, including: in response to a parameter adding instruction for the graphic template, one or more edited tables are provided, the edited tables including a first table; in response to selecting a first table in the one or more edited tables, a sub-graphic is added to the graphic template based on information in the first table.
[0212] In one embodiment, in response to selecting a first table in one or more edited tables, a sub-graphic is added to a graphic template based on information in the first table, including: in response to selecting a first table in one or more edited tables and selecting a fifth cell in the first table, a sub-graphic is added to the graphic template based on data in the fifth cell.
[0213] In one embodiment, the programming graphics include: a programming graphics for modifying a first table; the game operation processing module 1740 is also configured to: modify the first table by executing the target code when loading the target code corresponding to the game editing statement; and execute the game logic in the target game map according to the modified first table.
[0214] The specific details of each part of the above-mentioned device have been described in detail in the implementation method of the method part. The undisclosed details can be found in the implementation method of the method part, so they will not be repeated here.
[0215] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0216] The exemplary embodiments of the present disclosure also provide a computer program product, which includes a computer program, and the computer program implements the above method when executed by a processor.
[0217] In one embodiment, the computer program product may be a tangible product containing a computer program, such as a computer-readable storage medium storing a computer program. The readable storage medium may be a storage medium based on electrical, magnetic, optical, electromagnetic, infrared, or other signals, including but not limited to: random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid-state drive (SSD), and the like. Exemplarily, the computer program product may be implemented as a non-volatile storage medium storing a computer program, such as a read-only memory, a NAND flash memory, and the like.
[0218] In one embodiment, the computer program product may be an intangible product including a computer program. Exemplarily, the computer program product may be implemented as a virtual digital product, such as a digital file storing an executable file, an installation package, etc. of the computer program.
[0219] The code of the computer program can be written in one or more programming languages. Programming languages such as C language, Java, C++, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (e.g., an Internet connection provided by an operator).
[0220] Computer programs can be carried or transmitted through electrical, magnetic, optical, electromagnetic, infrared and other signals. Electronic devices can convert signals carrying computer programs into digital signals to run computer programs. When a computer program is running on an electronic device, its code is used to enable the electronic device to execute (more specifically, it can enable the processor of the electronic device to execute) the method steps of various exemplary embodiments of the present disclosure, for example: Step S210, in the game editing stage, display the table editing interface corresponding to the target game map in the graphical user interface; Step S220, in response to the first editing instruction in the table editing interface, determine the first table; Step S230, in response to the second editing instruction, generate a game editing statement according to the information in the first table; Step S240, in the game running stage, in response to running the target game map, load the target code corresponding to the game editing statement.
[0221] The above method steps are implemented through a computer program, and a table editing function is provided in the game editor. Users can edit tables. Game map information can be edited quickly and in batches through tables, and the edited information can be centrally saved and displayed, thereby achieving unified management of game map editing information and improving user editing efficiency.
[0222] The exemplary embodiments of the present disclosure also provide an electronic device. The electronic device may include a processor and a memory. The memory stores executable instructions of the processor, such as a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device may also include a display for displaying a graphical user interface.
[0223] Reference below Fig.18 , the electronic device is exemplarily described in the form of a general-purpose computing device. It should be understood that Fig.18 The electronic device 1800 shown is merely an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0224] like Fig.18 As shown, the electronic device 1800 may include: a processor 1810 , a memory 1820 , a bus 1830 , an I / O (input / output) interface 1840 , a network adapter 1850 , and a display 1860 .
[0225] The memory 1820 may include a volatile memory, such as a RAM 1821, a cache unit 1822, and may also include a non-volatile memory, such as a ROM 1823. The memory 1820 may also include one or more program modules 1824, such program modules 1824 include but are not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or a combination thereof may include the implementation of a network environment. For example, the program module 1824 may include each module in the above-mentioned device.
[0226] Processor 1810 may include one or more processing units. For example, processor 1810 may include an AP (Application Processor), a modem processor, a GPU (Graphics Processing Unit), an ISP (Image Signal Processor), a controller, an encoder, a decoder, a DSP (Digital Signal Processor), a baseband processor and / or an NPU (Neural-Network Processing Unit) and other processing units.
[0227] Processor 1810 can be used to execute executable instructions stored in memory 1820 to execute the above-mentioned method of the present disclosure, such as the following steps: Step S210, in the game editing stage, displaying a table editing interface corresponding to the target game map in a graphical user interface; Step S220, in response to a first editing instruction in the table editing interface, determining a first table; Step S230, in response to a second editing instruction, generating a game editing statement according to the information in the first table; Step S240, in the game running stage, in response to running the target game map, loading the target code corresponding to the game editing statement.
[0228] By executing the above method steps through processor 1810, a table editing function is provided in the game editor. Users can edit tables and quickly and batch edit game map information through tables. The edited information can be centrally saved and displayed, thereby realizing unified management of game map editing information and improving user editing efficiency.
[0229] The bus 1830 is used to realize the connection between different components of the electronic device 1800, and may include a data bus, an address bus, and a control bus.
[0230] The electronic device 1800 can communicate with one or more external devices 1900 (eg, a keyboard, a mouse, an external controller, etc.) through the I / O interface 1840 .
[0231] The electronic device 1800 can communicate with one or more networks through the network adapter 1850. For example, the network adapter 1850 can provide mobile communication solutions such as 3G / 4G / 5G, or provide wireless communication solutions such as wireless LAN, Bluetooth, near field communication, etc. The network adapter 1850 can communicate with other modules of the electronic device 1800 through the bus 1830.
[0232] The electronic device 1800 may display a graphical user interface through the display 1860 , such as a game editing scene, a table editing interface, and the like.
[0233] although Fig.18 Not shown, other hardware and / or software modules may also be provided in the electronic device 1800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems.
[0234] As can be seen from the above, the technical solution of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, a storage medium, an electronic device, etc. Those skilled in the art can understand that various aspects of the present disclosure can be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software, such as being respectively referred to as a "circuit", "module" or "system".
[0235] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art will easily think of other embodiments based on the specific embodiments provided by the present disclosure. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and any variations, uses or adaptive changes of the present disclosure should be covered, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the technical field that are not disclosed in the present disclosure.
Claims
1. A game editing method, characterized in that: The method comprises: During the game editing phase, a table editing interface corresponding to the target game map is displayed in the graphical user interface; In response to a first editing instruction in the table editing interface, determining a first table; In response to a second editing instruction, generating a game editing statement according to the information in the first table; During the game running phase, in response to running the target game map, the target code corresponding to the game editing statement is loaded.
2. The method according to claim 1, characterized in that: In the game editing stage, a table editing interface corresponding to the target game map is displayed in a graphical user interface, including: In the game editing stage, a target game map is loaded to display a game editing scene in the graphical user interface; In response to a first trigger instruction in the game editing scene, a table editing interface corresponding to the target game map is displayed.
3. The method according to claim 1, characterized in that The step of determining a first table in response to a first editing instruction in the table editing interface includes: In response to a second trigger instruction in the table editing interface, displaying a table to be edited; In response to a data editing instruction for a designated cell in the table to be edited, determining the data of the designated cell; the data type of the designated cell is a target type, and the data of the designated cell is data under the target type; In response to an edit completion instruction for the table to be edited, the first table is determined according to the edited table to be edited.
4. The method according to claim 3, characterized in that The determining of the first table in response to the first editing instruction in the table editing interface further includes: In response to a data type setting instruction in the table to be edited, the data type of the designated cell is determined to be the target type.
5. The method according to claim 4, characterized in that The first preset row in the table to be edited is a data type row; the designated unit includes cells in a designated column that are in a preset row range, and the preset row range does not include the first preset row; The step of determining the data type of the designated cell as the target type in response to the data type setting instruction in the table to be edited comprises: In response to an edit instruction for a first cell in the table to be edited, determining the target type according to the edit information of the first cell, and determining the data type of the designated cell to be the target type; The first cell is a cell located in the first preset row and the designated column.
6. The method according to claim 3, characterized in that The step of determining the data of the designated cell in response to the data editing instruction for the designated cell in the table to be edited comprises: In the case where the designated unit is the current editing object, providing a data editing control corresponding to the target type; In response to a data editing instruction for the data editing control, the data of the designated cell is determined.
7. The method according to claim 3, characterized in that The determining of the first table in response to the first editing instruction in the table editing interface further includes: If it is detected that the data of the designated unit does not conform to the target type, an error prompt message is displayed.
8. The method according to claim 7, characterized in that The error message displayed includes: The designated cell is displayed according to a first display parameter; the first display parameter is different from a second display parameter, and the second display parameter is used to display a normal cell in the table to be edited, and the data of the normal cell conforms to the data type corresponding to the normal cell.
9. The method according to claim 3, characterized in that: The determining of the first table in response to the first editing instruction in the table editing interface further comprises at least one of the following steps: In the case where a target column in the table to be edited is a current editing object, a column editing control is provided, and in response to a trigger instruction for the column editing control, the target column is edited; In a case where a target column in the table to be edited is a current editing object, in response to a move instruction for the target column, moving the position of the target column in the table to be edited; In the case where a target row in the table to be edited is a current editing object, providing a row editing control, and editing the target row in response to a trigger instruction for the row editing control; In a case where a target row in the table to be edited is a current editing object, in response to a move instruction for the target row, moving the position of the target row in the table to be edited; In the case where a second cell in the table to be edited is a current editing object, a cell editing control is provided, and in response to a trigger instruction for the cell editing control, the second cell is edited; In response to a filling instruction to fill a fourth cell with a third cell, data of the fourth cell is determined according to data of the third cell.
10. The method according to claim 9, characterized in that The step of moving the target column in the table to be edited in response to the move instruction for the target column comprises: In response to a movement instruction for the target column, providing a movement reference identifier; In response to the target column moving to the moving reference mark and ending the moving instruction, the target column is moved to a column position corresponding to the moving reference mark in the table to be edited.
11. The method according to claim 3, characterized in that The step of displaying a table to be edited in response to a second trigger instruction in the table editing interface includes: Displaying a first sub-interface in the table editing interface; the first sub-interface includes one or more options corresponding to the candidate table; In response to a second trigger instruction in the first sub-interface, a first candidate table specified by the second trigger instruction is used as the table to be edited, and the first candidate table is displayed in a second sub-interface of the table editing interface.
12. The method according to claim 11, characterized in that The method further comprises: In response to a folding instruction for the first sub-interface, displaying the folded form of the first sub-interface; In response to an expansion instruction for the first sub-interface, the expanded form of the first sub-interface is displayed; the first sub-interface displays more content in the expanded form than in the folded form.
13. The method according to claim 11, characterized in that The method further comprises: In response to a third trigger instruction for an option corresponding to the second candidate table in the first sub-interface, the displayed first candidate table is closed, the second candidate table is used as the table to be edited, and the second candidate table is displayed in a third sub-interface of the table editing interface.
14. The method according to claim 1, characterized in that The method further comprises: Serializing the data in the first table and saving it into the map data of the target game map; In response to an upload instruction for the target game map, the map data is uploaded.
15. The method according to claim 14, characterized in that In response to running the target game map, loading the target code corresponding to the game editing statement includes: In response to running the target game map, the map data is deserialized into memory, and the target code corresponding to the game editing statement is executed according to the deserialized map data.
16. The method according to claim 14, characterized in that The step of serializing the data in the first table and saving the data in the map data of the target game map includes: The data in the first table are serialized into a one-dimensional array and / or serialized into a two-dimensional array according to fields, and saved into the map data of the target game map.
17. The method according to claim 1, characterized in that The game editing statement includes a programming graphic; The step of generating a game editing statement according to the information in the first table in response to the second editing instruction includes: In response to a fourth trigger instruction, displaying a graphical programming interface corresponding to the target game map; In response to a second editing instruction in the graphical programming interface, the programming graph is generated according to the information in the first table.
18. The method according to claim 17, characterized in that The programming graph includes a sub-graph; the generating the programming graph according to the information in the first table in response to the second editing instruction in the graphical programming interface includes: In response to a second editing instruction in the graphical programming interface, a sub-graphic is added to the graphic template according to the information in the first table, and the programming graphic is generated based on a combination of the graphic template and the sub-graphic.
19. The method according to claim 18, characterized in that The step of adding a sub-graphic in a graphic template according to information in the first table in response to a second editing instruction in the graphical programming interface includes: In response to a parameter adding instruction for the graphic template, providing one or more edited tables, the edited tables including the first table; In response to selecting the first table among the one or more edited tables, a sub-graphic is added to the graphic template according to information in the first table.
20. The method according to claim 19, characterized in that In response to selecting the first table from among the one or more edited tables, adding a sub-graphic in the graphic template according to information in the first table comprises: In response to selecting the first table among the one or more edited tables and selecting a fifth cell in the first table, adding a sub-graphic to the graphic template according to data of the fifth cell.
21. The method according to claim 17, characterized in that The programming graph includes: a programming graph for modifying the first table; the method further includes: When the target code corresponding to the game editing statement is loaded, the first table is modified by executing the target code; The game logic in the target game map is executed according to the modified first table.
22. A game editing device, characterized in that: The device comprises: An interface display module is configured to display a table editing interface corresponding to a target game map in a graphical user interface during a game editing phase; A first editing module, configured to determine a first table in response to a first editing instruction in the table editing interface; A second editing module is configured to generate a game editing statement according to the information in the first table in response to a second editing instruction; The game running processing module is configured to load the target code corresponding to the game editing statement in response to running the target game map during the game running stage.
23. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 21 is implemented.
24. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 21 by executing the executable instructions.