Game level editing method, device, electronic device and storage medium

By detecting and uploading level attribute information on the terminal device to the game server to generate editing results, the problem of high game level maintenance costs is solved, and convenient and efficient game level editing is achieved.

CN115671741BActive Publication Date: 2025-09-26HANGZHOU GAME WORKSHOP NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211334640.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-09-26
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

Existing game editors have strong customization functions and low numerical editability, resulting in high maintenance costs for game levels.

Method used

By detecting level editing operations on the terminal device's display editing interface, obtaining target level attribute information and performing verification processing, and uploading the editing results to the game server, convenient and efficient level editing is achieved.

Benefits of technology

It reduces the maintenance cost of game levels, improves the accuracy and efficiency of game level editing, and enhances the level of human-computer interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115671741B_ABST
    Figure CN115671741B_ABST
Patent Text Reader

Abstract

This application relates to a game level editing method, apparatus, electronic device, and storage medium. The game level editing method includes: detecting a level editing operation on an object to be edited in the editing interface when a terminal device displays an editing interface; obtaining target level attribute information corresponding to the object to be edited in response to the level editing operation, and performing level verification processing based on the target level attribute information to obtain a level verification result; uploading the target level attribute information to a game server if the level verification result indicates that the verification has passed; and receiving the target level editing result sent by the game server; wherein the target level editing result is generated by the game server based on the target level attribute information. This application solves the problem of high game level maintenance costs and implements a convenient and efficient game level editing method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and in particular to a method, device, electronic device, and storage medium for editing game levels. Background Art

[0002] As the popularity of games on terminal devices such as computers and mobile phones gradually increases, players have put forward higher requirements for games, such as a higher degree of freedom in gameplay. In related technologies, game editing services are opened through game editors to meet the high requirements of players. Among them, a game editor is a software used to write game-related content, thereby facilitating the design and implementation of the game. For a game editor, the editability of values ​​is an important factor affecting the author's freedom in designing gameplay, and is also an indispensable module of the editor. However, current game editors are generally developed based on mature games, and their functions are highly customized, that is, they are only edited based on the functions of the game, and the editability of values ​​is not high, which reduces the player's freedom in designing gameplay, resulting in high maintenance costs for game levels.

[0003] Currently, no effective solution has been proposed for the problem of high maintenance cost of game levels in related technologies. Summary of the Invention

[0004] The embodiments of the present application provide a game level editing method, device, electronic device, and storage medium to at least solve the problem of high maintenance costs of game levels in the related art.

[0005] In a first aspect, an embodiment of the present application provides a game level editing method, which is applied to a terminal device connected to a game server; the method comprises:

[0006] When the terminal device displays an editing interface, detecting a level editing operation on an object to be edited in the editing interface;

[0007] In response to the level editing operation, obtaining target level attribute information corresponding to the object to be edited, performing level verification processing based on the target level attribute information to obtain a level verification result; if the level verification result indicates that the verification is passed, uploading the target level attribute information to the game server;

[0008] Receive a target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

[0009] In some embodiments, the object to be edited includes a basic object to be edited and an optional object to be edited; when the terminal device displays an editing interface, the method further includes:

[0010] Detecting a basic editing operation on the basic object to be edited in the editing interface;

[0011] When detecting that the optional editing operation on the optional object to be edited in the editing interface fails, in response to the basic editing operation, obtaining basic level attribute information corresponding to the basic object to be edited, and generating the target level attribute information based on the basic level attribute information;

[0012] When an optional editing operation is detected for the optional object to be edited in the editing interface, basic level attribute information corresponding to the basic object to be edited is obtained in response to the basic editing operation, and optional level attribute information corresponding to the optional object to be edited is obtained in response to the optional editing operation, and the target level attribute information is generated based on the basic level attribute information and the optional level attribute information.

[0013] In some embodiments, the basic object to be edited includes a level map, level elements, and level goals; and the method further includes:

[0014] detecting a map editing operation on the level map, and generating a corresponding map result in response to the map editing operation;

[0015] detecting an element editing operation on the level element, acquiring corresponding element information in response to the element editing operation, and overlaying the element information onto the map result to generate game scene information;

[0016] Detecting a target editing operation on the level target, generating corresponding game clearance setting information in response to the target editing operation, and generating the basic level attribute information based on at least the game scene information and the game clearance setting information.

[0017] In some embodiments, performing level verification processing according to the target level attribute information to obtain a level verification result includes:

[0018] Performing simulation verification processing on the target level attribute information to obtain validity verification results and difficulty verification results;

[0019] Acquire historical checkpoint information, perform matching processing based on the historical checkpoint information and the target checkpoint attribute information, and obtain a homogeneity verification result;

[0020] The level verification result is generated according to the validity verification result, the difficulty verification result and the homogeneity verification result.

[0021] In some embodiments, the method further comprises:

[0022] Obtaining a preset user score range, and determining an actual user score range corresponding to the current user within the preset score range;

[0023] Determining a target permission level in the editing permission levels that matches the actual user score range based on a mapping relationship between the preset user score range and the editing permission levels;

[0024] A target object to be edited that matches the target permission level among the objects to be edited is displayed on the editing interface, and a level editing operation of the current user on the target object to be edited is detected.

[0025] In some embodiments, after obtaining the target level editing result sent by the game server, the method further includes:

[0026] Obtaining a level search instruction currently input by the user, and displaying a corresponding first level visualization result according to the level search instruction; wherein the first level visualization result is generated according to the level search instruction and the target level editing result; or,

[0027] Obtain historical interaction records of the current user, and display corresponding second level visualization results according to the historical interaction records; wherein the second level visualization results are generated according to the historical interaction records and the target level editing results.

[0028] In some embodiments, in response to the level editing operation, obtaining target level attribute information corresponding to the object to be edited includes:

[0029] Get preset custom editing information;

[0030] In response to the level editing operation, initial level attribute information corresponding to the object to be edited is acquired, and the target level attribute information is generated according to the customized editing information and the initial level attribute information.

[0031] In a second aspect, an embodiment of the present application provides a game level editing device, which is applied to a terminal device connected to a game server; the device includes: a detection module, an editing module, and a generation module;

[0032] The detection module is configured to detect, when the terminal device displays an editing interface, a level editing operation on an object to be edited in the editing interface;

[0033] The editing module is configured to, in response to the level editing operation, obtain target level attribute information corresponding to the object to be edited, perform level verification processing based on the target level attribute information, and obtain a level verification result; if the level verification result indicates that the verification has passed, upload the target level attribute information to the game server;

[0034] The generating module is configured to receive a target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

[0035] In a third aspect, an embodiment of the present application provides an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the game level editing method as described in the first aspect above is implemented.

[0036] In a fourth aspect, an embodiment of the present application provides a storage medium on which a computer program is stored. When the program is executed by a processor, the game level editing method described in the first aspect above is implemented.

[0037] Compared to related technologies, the game level editing method, apparatus, electronic device, and storage medium provided in the embodiments of the present application detect, when a terminal device displays an editing interface, a level editing operation on an object to be edited in the editing interface; in response to the level editing operation, obtain target level attribute information corresponding to the object to be edited, and perform level verification processing based on the target level attribute information to obtain a level verification result; if the level verification result indicates that the verification has passed, upload the target level attribute information to a game server; and receive the target level editing result sent by the game server; wherein the target level editing result is generated by the game server based on the target level attribute information, thereby solving the problem of high game level maintenance costs and realizing a convenient and efficient game level editing method.

[0038] The details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0040] Figure 1 This is an application environment diagram of a game level editing method according to an embodiment of the present application;

[0041] Figure 2 is a flowchart of a method for editing game levels according to an embodiment of the present application;

[0042] Figure 3 is a flowchart of another game level editing method according to an embodiment of the present application;

[0043] Figure 4 is a structural block diagram of a game level editing device according to an embodiment of the present application;

[0044] Figure 5 This is a structural diagram of the interior of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means and should not be understood as the contents disclosed in the present application being insufficient.

[0046] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it refer to independent or alternative embodiments that are mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments unless there is a conflict.

[0047] Unless otherwise defined, the technical or scientific terms used in this application should have the ordinary meaning understood by a person of ordinary skill in the technical field to which this application belongs. The words "one", "a", "the" and the like used in this application do not indicate a limit on quantity and may indicate the singular or plural. The terms "include", "comprise", "have" and any variations thereof used in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units that are inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like used in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The word "multiple" used in this application means greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in this application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.

[0048] The game level editing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, a terminal device 102 communicates with a game server 104 via a network. A data storage system can store data that the game server 104 needs to process. The data storage system can be integrated with the game server 104, or located on a cloud or other network server. The terminal device 102 detects a level editing operation on an object to be edited in a displayed editing interface. In response to the level editing operation, the terminal device 102 obtains target level attribute information corresponding to the object to be edited and performs level verification based on the target level attribute information to obtain a level verification result. If the level verification result indicates a passing verification, the target level attribute information is uploaded to the game server 104. The game server 104 processes the target level attribute information to generate the target level editing result. The terminal device 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The game server 104 can be implemented as a standalone server or a server cluster consisting of multiple servers.

[0049] This embodiment provides a game level editing method, which is applied to a terminal device connected to a game server; Figure 2is a flowchart of a method for editing game levels according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:

[0050] Step S210 : When the terminal device displays an editing interface, detecting a level editing operation on an object to be edited in the editing interface.

[0051] The terminal device can first access the pre-set game components to obtain all the game resources required for level editing, including game elements, obstacle elements, and map elements. The terminal device then loads an editing interface for human-computer interaction and displays the game resources available for user editing, namely the aforementioned objects to be edited. The user can manipulate the objects to be edited through interactive methods such as clicking and dragging, and the terminal device detects the user's input of level editing operations such as clicking and dragging on the objects to be edited. It is understood that the aforementioned users can be players or staff members such as developers or operators.

[0052] Step S220: In response to the level editing operation, the target level attribute information corresponding to the object to be edited is obtained, and a level verification process is performed based on the target level attribute information to obtain a level verification result; if the level verification result indicates that the verification has passed, the target level attribute information is uploaded to the game server.

[0053] The terminal device displays the editing scene through an editing interface, loads all game element resources, and displays them on the right side of the editing interface. The display of game element resources can be as follows: the terminal device categorizes all game elements, then numbers and distinguishes them within the subcategories for display. After entering the editing interface, the user's local level data can be read. For example, the readJsonList function can be used to convert the read local JSON file into List data and store it for subsequent use. After reading the local level data, the terminal device displays it on the left side of the editing interface, allowing the user to edit the level by clicking or searching for it. After completing the game level editing process through the above steps, the terminal device can display a preview interface, allowing the user to play the edited game level in the editor on the preview interface to initially confirm the feasibility of the level edit and obtain the level verification results. Alternatively, the terminal device can further perform level verification on the target level attribute information based on a verification algorithm such as simulated drop. The verified level attribute information is then compiled and stored on the game server. After the user completes the editing, they can click the Save button on the editing interface. After the terminal device receives the save command triggered by the user, it collects and integrates all the target level attribute information into the newly created storage collection file, and can use stringify to serialize the stored data into a Json string format. It should be noted that when the terminal device uploads the level attribute information, it can directly upload the data in the cache or upload the level file in Json format; for example, after the terminal device completes the editing settings, it directly uploads the serialized Json string to the game server through URLRequest, or, after the user selects the corresponding file in the file file system, it reads the level data in the file through FileReader and then uploads it to the game server through URLRequest.

[0054] Step S230: receiving the target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

[0055] After generating a game level based on the target level attribute information, the game server can distribute the game level to different terminal devices for display. For example, the game server can push all game levels uploaded by users to users using a distributed loading method to achieve data synchronization. Distributed loading means that specific content is only loaded when the user needs to challenge the game. Otherwise, the terminal device only loads the entry data to avoid the problem of slow loading caused by repeatedly loading large data packets. The above steps enable connectivity and interaction between users, namely, game level data is uploaded from user A to the game server for storage, transfer, and identification, and then distributed to user B for challenge. It should be noted that after receiving the target level attribute information, the game server can categorize and store the generated target level editing results, i.e., the corresponding generated game levels, to facilitate subsequent level access and query.

[0056] Through the above steps S210 to S230, in response to a level editing operation on an object to be edited in the editing interface, target level attribute information corresponding to the object to be edited is obtained, and verification processing is performed based on the target level attribute information. If the verification passes, the target level editing result generated by the game server based on the target level attribute information is obtained, thereby improving the level of human-computer interaction with the player during the game level editing process, solving the problem of high game level maintenance costs, and realizing a convenient and efficient game level editing method.

[0057] In some embodiments, the objects to be edited include basic objects to be edited and optional objects to be edited. Basic objects to be edited refer to objects that must be edited by the user when editing a game level. These basic objects can be pre-set and may include, for example, a level number, a map grid, an element drop slot, an element drop probability, a number of operation steps, a star score, and a level goal. Optional objects to be edited refer to optional objects that are not necessarily edited by the user when editing a game level. For example, these optional objects to be edited may include portals, fences, and kite collection slots.

[0058] Figure 3 is a flowchart of another game level editing method according to an embodiment of the present application. Figure 3 As shown, when the terminal device displays the editing interface, the game level editing method includes Figure 2 Step S220 and step S230 in the embodiment further include the following steps:

[0059] Step S310 detects basic editing operations for the basic editable object in the editing interface. For example, for a basic editable object, a level number, a user can enter a custom level number in the edit input box displayed in the editing interface. For a basic editable object, a map grid, a user can configure the corresponding map area, map placement elements, and other information in the editing interface. For a basic editable object, a step count input box can be created by the terminal device to collect the user-entered step limit data.

[0060] Step S320 , when detecting that the optional editing operation on the optional object to be edited in the editing interface fails, in response to the basic editing operation, obtaining basic level attribute information corresponding to the basic object to be edited, and generating the target level attribute information according to the basic level attribute information.

[0061] Step S330: When an optional editing operation is detected for the optional object to be edited in the editing interface, basic level attribute information corresponding to the basic object to be edited is obtained in response to the basic editing operation, and optional level attribute information corresponding to the optional object to be edited is obtained in response to the optional editing operation, and the target level attribute information is generated based on the basic level attribute information and the optional level attribute information.

[0062] If the detection of the optional editing operation fails, it means that the user did not operate on the optional object to be edited at that time. In this case, the final target level attribute information can be generated based on the basic level attribute information. If the detection of the optional editing operation indicates that the user has edited the optional object to be edited on the editing interface, the target level attribute information needs to be generated by combining the basic level attribute information and the optional level attribute information.

[0063] Through the above steps S310 to S330, target level attribute information is generated by using the basic level attribute information corresponding to the basic object to be edited, or by using the basic level attribute information and the optional level attribute information corresponding to the optional object to be edited, thereby realizing game level settings in different scenarios. At the same time, by providing the user with an automatic level editing function, a large number of level designs are collected to form new level fragments, which liberates the long-term iteration of levels and reduces the maintenance cost of game levels.

[0064] In some embodiments, the basic objects to be edited include a level map, level elements, and level targets; the game level editing method further includes the following steps: detecting a map editing operation on the level map, and generating a corresponding map result in response to the map editing operation; detecting an element editing operation on the level element, obtaining corresponding element information in response to the element editing operation, and superimposing the element information on the map result to generate game scene information; detecting a target editing operation on the level target, generating corresponding game clearance setting information in response to the target editing operation, and generating the basic level attribute information at least based on the game scene information and the game clearance setting information.

[0065] Specifically, taking elimination games as an example, map editing includes the following steps: first, a new enumeration class constructor is created to set multiple editing modes, including: non-editable map, editing map grids, right-side elements, obstacles, setting drop entrances, portal creation, portal deletion, kite drop entrances, and fence creation; second, a new gridTouch function is created so that after the user selects a map grid on the right side of the editing interface, they can click the center area of ​​the interface to add or delete map grids. Blank map grids cannot generate elements or be moved to this position; third, elements can be placed in multiple layers, for example, ice and other elements can be placed on the bottom layer, ordinary elements can be placed in the middle layer, and wooden cages that restrict the movement of elements can be placed on the upper layer; third, the elements on the map are stored in the newly created game map file through the terminal device, for example, the map grids are stored in a map file named gridMap, the bottom elements are stored in a map file named objectsZeroMap, the middle elements are stored in a map file named objectsOneMap, and the upper elements are stored in a map file named objectsTwoMap.

[0066] After creating a map grid, users can place game elements on top of it. Select the desired element from the list on the right, then click on the map grid to place the element. If an element already exists at the current location, it will be replaced. Furthermore, users can configure drop rules for game elements, including element drop slots and element drop probabilities, through the editing interface. Configuring element drop slots involves the following steps: The user clicks the Set Drop Slot button at the bottom of the editing interface to enter the "Set Drop Slot" editing mode. Clicking on the map generates a drop slot above the map grid. The terminal device determines that a drop slot must be placed on a map grid; empty slots cannot be placed. Regarding element drop probabilities, users can set multiple drop slots in the editing interface and store them on the terminal device. The terminal device also supports the ability to set a specific drop probability for each drop slot. The edited element information is then overlaid on the edited map to generate the game scene information. Furthermore, users can set multiple level objectives through the editing interface, creating a new level management mode on the terminal device, allowing for different logic and configurations to be applied to different game levels. For example, for a score-based level, the user can set a corresponding pass score through the editing interface. Based on this goal edit, the terminal device generates game pass setting information for the corresponding score and stores it in a newly created score management file. Alternatively, for a collection-based level, the user can set collection goals for different game elements through the editing interface. (This will not be discussed further here.) Ultimately, the terminal device generates basic level attribute information based on the aforementioned game scenario information and the game pass setting information.

[0067] In some embodiments, performing the level verification process based on the target level attribute information to obtain the level verification result further includes the following steps:

[0068] Step S221 : performing simulation verification processing on the target level attribute information to obtain validity verification results and difficulty verification results.

[0069] Among them, after the user completes the level editing operation on the editing interface displayed by the terminal device, the game level edited by the user needs to be verified. It can only be uploaded successfully after the verification is passed. Specifically, the terminal device can simulate the dropping of components and verify according to the above-mentioned level attribute information to determine whether the game level edited by the current user can be completed. Only the game level that is determined to be complete can be preliminarily determined as a valid level. In addition, the target level attribute information can be simulated and verified based on the number of game steps, refresh mechanism, etc., and the challenge success rate for the corresponding generated game level can be obtained to obtain the difficulty verification result, so that the corresponding game level difficulty can be set according to the difficulty verification result.

[0070] Step S222: historical checkpoint information is obtained, and matching processing is performed based on the historical checkpoint information and the target checkpoint attribute information to obtain a homogeneity verification result.

[0071] Among them, the above-mentioned historical level information can be local level data obtained by the terminal device; specifically, the above-mentioned terminal device performs homogeneity verification on level data such as level elements, map layout and drop probability between the historical level information and the level attribute information. When the homogeneity ratio obtained by verification exceeds the preset homogeneity ratio, it is determined that the game level corresponding to the target level attribute information already exists, and the duplicate level will no longer be uploaded subsequently.

[0072] Step S223 : generating the level verification result according to the validity verification result, the difficulty verification result, and the homogeneity verification result.

[0073] The terminal device may perform a comprehensive analysis based on the multiple verification results to generate a final level verification result. Specifically, if the level verification result indicates that the validity verification, difficulty verification, and homogeneity verification have all passed, the terminal device may upload the target level attribute information to the game server and generate the corresponding game level.

[0074] Through the above steps S221 to S223, by performing validity verification, difficulty verification and homogeneity verification on the level attribute information, problems such as players being unable to pass the game level due to errors in level editing are avoided, thereby effectively improving the accuracy of game level editing.

[0075] In some embodiments, the game level editing method further includes the following steps:

[0076] Step S211: obtaining a preset user score range, and determining an actual user score range corresponding to the current user in the preset score range.

[0077] The above-mentioned preset user score range can be pre-set by the staff; for example, the points value or the number of level challenges of each logged-in user can be divided into multiple intervals, as shown in Table 1 below:

[0078] Table 1 Preset user score range division table

[0079] Logged in user Preset user score range High accumulated points <![CDATA[G1]]> Accumulated points <![CDATA[G2]]> Low accumulated points value <![CDATA[G3]]>

[0080] Taking Table 1 as an example, the preset user score range G1 indicating a high cumulative point value may be a range of 1000-800 cumulative point values, the preset user score range G2 indicating a medium cumulative point value may be a range of 800-400 cumulative point values, and the preset user score range G3 indicating a low cumulative point value may be a range of 400-100 cumulative point values. Based on Table 1, three preset user score ranges can be determined. After acquiring the currently logged-in user, the terminal device can determine an actual user score range that matches the current user's cumulative point value from these preset overlapping ranges. For example, if the current user's cumulative point value is detected to be within the range of 800-400, the actual user score range can be determined to be G2 within the preset user score range.

[0081] Step S212: Based on the mapping relationship between the preset user score range and the editing authority level, determine a target authority level in the editing authority level that matches the actual user score range.

[0082] Specifically, the terminal device may detect the target authority level that matches the actual user score range based on the mapping relationship. Taking Table 1 as an example, the above mapping relationship can be: if the preset user score range is in the G3 range, the corresponding editing permission level can be determined to be basic permission. This basic permission provides editing functions available to all general users, including adjustments to basic elements, level steps, and map blocks in game levels, as well as drop editing of six basic obstacle elements. In addition, the terminal device can also display level design guidance information corresponding to this basic permission on the editing interface. For example, after achieving a goal such as successfully designing 10 different game levels, the next level of permission can be unlocked. If the preset user score range is in the G2 range, the corresponding editing permission level can be determined to be medium permission. This medium permission allows the corresponding user to edit all obstacle elements in the game level. If the preset user score range is in the G1 range, the corresponding editing permission level can be determined to be high permission. This high permission is only available to a small number of experienced players. After the high permission is granted, the corresponding user can also upload data such as local resource backgrounds and obstacle imagery designed by themselves according to the preset art resources such as size and number of faces provided by the terminal device. Therefore, after the terminal device determines the actual user score range in the preset user score range through step S211, it can determine the target authority level matching the user score range in the mapping relationship according to the user score range.

[0083] Step S213 : Displaying the target object to be edited that matches the target permission level among the objects to be edited on the editing interface, and detecting the level editing operation of the current user on the target object to be edited.

[0084] Through the above steps S211 to S213, the actual user score range of the current user is determined through the preset score range, and the target permission level that matches the actual score range is determined based on the mapping relationship between the preset user score range and the editing permission level, thereby realizing different editing permission levels for different users, which is conducive to improving user management in the game level editing process and improving the security and efficiency of game level editing.

[0085] In some embodiments, after obtaining the target level editing result sent by the game server, the game level editing method further includes the following steps: obtaining a level search instruction input by the current user, and displaying a corresponding first level visualization result based on the level search instruction; wherein the first level visualization result is generated based on the level search instruction and the target level editing result; or obtaining the current user's historical interaction record, and displaying a corresponding second level visualization result based on the historical interaction record; wherein the second level visualization result is generated based on the historical interaction record and the target level editing result. Specifically, the user can specify the level they want to challenge by searching for it in the search function provided in the editing interface; for example, the terminal device can first create a new editing input box, and after the user enters the level attribute value in the editing input box, the terminal device can respond to the input level search instruction, search for the corresponding game level from the level database stored locally or on the game server, and then display the searched game level for the player to challenge. Alternatively, the terminal device or game server may convert the user's hidden score based on the user's current level completion rate and historical interaction records such as the number of challenges, and recommend and display game levels available for the current user based on the hidden score. Through the above embodiment, displaying the corresponding game levels to the user through level search instructions or historical interaction records can effectively improve the level of human-computer interaction with the user and also increase the efficiency of game level search.

[0086] In some embodiments, the step of obtaining target level attribute information corresponding to the object to be edited in response to the level editing operation further includes the following steps: obtaining preset customized editing information; obtaining initial level attribute information corresponding to the object to be edited in response to the level editing operation, and generating the target level attribute information based on the customized editing information and the initial level attribute information. The customized editing information refers to customized information regarding various attributes of a game level. For example, the customized editing information may include user-defined game element images or game backgrounds. This customized editing information may be locally obtained by a terminal device, or generated by a user uploading preset images or other information to the terminal. After obtaining the customized editing information, the terminal device generates the final target level attribute information based on the customized editing information and the initial level attribute information obtained by the user for the object to be edited. In these embodiments, generating the target level attribute information based on the customized editing information allows users to independently replace the inherent image of game elements through the editor, thereby realizing a personalized game level customization method and increasing the diversity of game level editing.

[0087] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0088] This embodiment also provides a game level editing device, applied to a terminal device connected to a game server; this device is used to implement the above-mentioned embodiments and preferred implementations, and details already described are omitted. As used below, terms such as "module," "unit," and "subunit" may refer to a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.

[0089] Figure 4 is a structural block diagram of a game level editing device according to an embodiment of the present application, such as Figure 4As shown, the apparatus includes: a detection module 42, an editing module 44, and a generation module 46. The detection module 42 is configured to detect, when the terminal device displays an editing interface, a level editing operation on an object to be edited in the editing interface. The editing module 44 is configured to, in response to the level editing operation, obtain target level attribute information corresponding to the object to be edited, and perform level verification processing based on the target level attribute information to obtain a level verification result. If the level verification result indicates that the verification has passed, the target level attribute information is uploaded to the game server. The generation module 46 is configured to receive the target level editing result sent by the game server. The target level editing result is generated by the game server based on the target level attribute information.

[0090] Through the above embodiment, the editing module 44 responds to a level editing operation on an object to be edited in the editing interface by obtaining target level attribute information corresponding to the object to be edited, and performs verification processing based on the target level attribute information. If the verification passes, the editing module 44 obtains the target level editing result generated by the game server based on the target level attribute information, thereby improving the level of human-computer interaction with the player during the game level editing process, solving the problem of high game level maintenance costs, and realizing a convenient and efficient game level editing device.

[0091] In some embodiments, the object to be edited includes a basic object to be edited and an optional object to be edited; the detection module 42 is further configured to detect a basic editing operation on the basic object to be edited in the editing interface; the editing module 44 is further configured to, if detecting that an optional editing operation on the optional object to be edited in the editing interface fails, obtain basic level attribute information corresponding to the basic object to be edited in response to the basic editing operation, and generate the target level attribute information based on the basic level attribute information; if detecting an optional editing operation on the optional object to be edited in the editing interface, the editing module 44, in response to the basic editing operation, obtains the basic level attribute information corresponding to the basic object to be edited, and, in response to the optional editing operation, obtains the optional level attribute information corresponding to the optional object to be edited, and generates the target level attribute information based on the basic level attribute information and the optional level attribute information.

[0092] In some embodiments, the basic objects to be edited include level maps, level elements, and level targets; the editing module 44 is also used to detect map editing operations on the level map, and generate corresponding map results in response to the map editing operations; the editing module 44 detects element editing operations on the level elements, obtains corresponding element information in response to the element editing operations, and superimposes the element information on the map results to generate game scene information; the editing module 44 detects target editing operations on the level targets, generates corresponding game pass setting information in response to the target editing operations, and generates the basic level attribute information at least based on the game scene information and the game pass setting information.

[0093] In some embodiments, the editing module 44 is further configured to perform simulation verification processing on the target level attribute information to obtain a validity verification result and a difficulty verification result; the editing module 44 obtains historical level information, performs matching processing based on the historical level information and the target level attribute information to obtain a homogeneity verification result; and the editing module 44 generates the level verification result based on the validity verification result, the difficulty verification result, and the homogeneity verification result.

[0094] In some embodiments, the game level editing device further includes a permission module, which is configured to obtain a preset user score range and determine an actual user score range corresponding to the current user within the preset score range. The permission module determines a target permission level within the editing permission level that matches the actual user score range based on a mapping relationship between the preset user score range and the editing permission level. The detection module 42 is further configured to display a target object to be edited that matches the target permission level within the object to be edited on the editing interface, and to detect a level editing operation performed by the current user on the target object to be edited.

[0095] In some embodiments, the game level editing device further includes a display module; the display module is configured to obtain a level search instruction input by a current user and display a corresponding first level visualization result based on the level search instruction; wherein the first level visualization result is generated based on the level search instruction and the target level editing result; or, the display module is configured to obtain a historical interaction record of the current user and display a corresponding second level visualization result based on the historical interaction record; wherein the second level visualization result is generated based on the historical interaction record and the target level editing result.

[0096] In some embodiments, the editing module 44 is further configured to obtain preset customized editing information. In response to the level editing operation, the editing module 44 obtains initial level attribute information corresponding to the object to be edited, and generates the target level attribute information based on the customized editing information and the initial level attribute information.

[0097] It should be noted that the above modules can be functional modules or program modules, and can be implemented through software or hardware. For modules implemented through hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0098] In some embodiments, a computer device is provided, which may be a server. Figure 5 This is a structural diagram of the internal structure of a computer device according to an embodiment of the present application. Figure 5 As shown. The computer device includes a processor, memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operating system and computer program in the non-volatile storage medium to run. The database of the computer device is used to store target level editing results. The network interface of the computer device is used to communicate with an external terminal via a network connection. When executed by the processor, the computer program implements the above-described open interface processing method.

[0099] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0100] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0101] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0102] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0103] S1 : When the terminal device displays an editing interface, detecting a level editing operation on an object to be edited in the editing interface.

[0104] S2. In response to the level editing operation, obtain target level attribute information corresponding to the object to be edited, and perform level verification processing based on the target level attribute information to obtain a level verification result; if the level verification result indicates that the verification is passed, upload the target level attribute information to the game server.

[0105] S3, receiving the target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

[0106] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be repeated here.

[0107] In addition, in conjunction with the game level editing method in the above embodiments, embodiments of the present application may provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the game level editing methods in the above embodiments is implemented.

[0108] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0109] Those skilled in the art should understand that the various technical features of the above-described embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the various technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0110] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A game level editing method, characterized in that: Applied to a terminal device, the terminal device is connected to a game server; the method comprises: When the terminal device displays an editing interface, detecting a level editing operation on an object to be edited in the editing interface; In response to the level editing operation, obtaining target level attribute information corresponding to the object to be edited, and performing level verification processing according to the target level attribute information to obtain a level verification result, including: Performing simulation verification processing on the target level attribute information to obtain validity verification results and difficulty verification results; Acquire historical checkpoint information, perform matching processing based on the historical checkpoint information and the target checkpoint attribute information, and obtain a homogeneity verification result; generating the level verification result according to the validity verification result, the difficulty verification result, and the homogeneity verification result; If the level verification result indicates that the verification has passed, uploading the target level attribute information to the game server; Receive a target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

2. The game level editing method according to claim 1, characterized in that: The objects to be edited include basic objects to be edited and optional objects to be edited; When the terminal device displays an editing interface, the method further includes: Detecting a basic editing operation on the basic object to be edited in the editing interface; When detecting that the optional editing operation on the optional object to be edited in the editing interface fails, in response to the basic editing operation, obtaining basic level attribute information corresponding to the basic object to be edited, and generating the target level attribute information based on the basic level attribute information; When an optional editing operation is detected for the optional object to be edited in the editing interface, basic level attribute information corresponding to the basic object to be edited is obtained in response to the basic editing operation, and optional level attribute information corresponding to the optional object to be edited is obtained in response to the optional editing operation, and the target level attribute information is generated based on the basic level attribute information and the optional level attribute information.

3. The game level editing method according to claim 2, characterized in that: The basic objects to be edited include a level map, level elements, and level targets; the method further includes: detecting a map editing operation on the level map, and generating a corresponding map result in response to the map editing operation; detecting an element editing operation on the level element, acquiring corresponding element information in response to the element editing operation, and overlaying the element information onto the map result to generate game scene information; Detecting a target editing operation on the level target, generating corresponding game clearance setting information in response to the target editing operation, and generating the basic level attribute information based on at least the game scene information and the game clearance setting information.

4. The game level editing method according to claim 1, characterized in that: The method further comprises: Obtaining a preset user score range, and determining an actual user score range corresponding to the current user within the preset user score range; Determining a target permission level in the editing permission levels that matches the actual user score range based on a mapping relationship between the preset user score range and the editing permission levels; A target object to be edited that matches the target permission level among the objects to be edited is displayed on the editing interface, and a level editing operation of the current user on the target object to be edited is detected.

5. The game level editing method according to claim 1, characterized in that: After receiving the target level editing result sent by the game server, the method further includes: Obtaining a level search instruction currently input by the user, and displaying a corresponding first level visualization result according to the level search instruction; wherein the first level visualization result is generated according to the level search instruction and the target level editing result; or, Obtain historical interaction records of the current user, and display corresponding second level visualization results according to the historical interaction records; wherein the second level visualization results are generated according to the historical interaction records and the target level editing results.

6. The game level editing method according to any one of claims 1 to 5, characterized in that: In response to the level editing operation, obtaining target level attribute information corresponding to the object to be edited includes: Get preset custom editing information; In response to the level editing operation, initial level attribute information corresponding to the object to be edited is acquired, and the target level attribute information is generated according to the customized editing information and the initial level attribute information.

7. A game level editing device, characterized in that: Applied to a terminal device, the terminal device is connected to a game server; the device comprises: a detection module, an editing module and a generation module; The detection module is configured to detect, when the terminal device displays an editing interface, a level editing operation on an object to be edited in the editing interface; The editing module is configured to, in response to the level editing operation, obtain target level attribute information corresponding to the object to be edited, perform level verification processing based on the target level attribute information, and obtain a level verification result; if the level verification result indicates that the verification has passed, upload the target level attribute information to the game server; The editing module is further configured to perform simulation verification processing on the target level attribute information to obtain a validity verification result and a difficulty verification result; obtain historical level information, perform matching processing based on the historical level information and the target level attribute information to obtain a homogeneity verification result; and generate the level verification result based on the validity verification result, the difficulty verification result, and the homogeneity verification result; The generating module is configured to receive a target level editing result sent by the game server; wherein the target level editing result is generated by the game server according to the target level attribute information.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the game level editing method according to any one of claims 1 to 6.

9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the game level editing method according to any one of claims 1 to 6 when running.

Citation Information

Patent Citations

  • Visual game level editing method and system based on trigger

    CN105653274A

  • Script generation method and device, electronic equipment and readable medium

    CN113885841A