Game scene content generation method and device, equipment and medium
By obtaining and utilizing standardized resource table data and scene configuration parameters, the game scene content is automatically generated, which solves the problem of inefficient generation of game scene content in the existing technology, and achieves more efficient and intelligent scene content generation.
Patent Information
- Application Number
- CN202411478750.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-02-28
AI Technical Summary
In the prior art, the workload of generating game scene content is complicated and inefficient, resulting in slow game development speed and affecting game development progress.
By obtaining standardized resource table data and scene configuration parameters of the scene to be generated, scene content data is generated based on these data, and the data is converted into executable scene generation code through visualization tools, and finally, the scene content is generated through the set editor running the code.
It improves the efficiency and intelligence of scene content generation during game development, reduces manual operation steps, and solves the problems of complicated workload and inefficiency.
Smart Images

Figure CN119524421A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of game development technology, and in particular to a method, device, equipment and medium for generating game scene content. Background Art
[0002] Game scenes refer to the collection of spaces, environments, and objects in virtual games, except for game characters. Game scenes usually contain virtual objects for interacting with players. Virtual objects refer to non-real characters or objects that exist in game scenes. These virtual objects can be non-player characters, items, and other objects that interact with players or other virtual objects in the game. As the complexity of games increases, the content of their scenes also becomes more and more complex, making game development more difficult.
[0003] In the related art, when developing a game, for the generation of game scene content, various pre-set sub-units / modules are usually assembled to obtain the corresponding scene to be generated. This method has low applicability and development efficiency for situations with more scene content, requires a large workload, and is not conducive to the rapid and efficient development of the game. Summary of the invention
[0004] The embodiments of the present application provide a method, device, equipment and medium for generating game scene content, which solves the problem in the related art that the workload of generating game scene content is complicated and inefficient, resulting in slow game development and affecting the progress of game development, and can improve the efficiency and intelligence of scene content generation during the game development process.
[0005] In a first aspect, an embodiment of the present application provides a method for generating game scene content, comprising:
[0006] Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure;
[0007] Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data;
[0008] The scene content data is converted into executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate scene content corresponding to the scene to be generated.
[0009] Optionally, before obtaining the standardized resource table data, the method further includes:
[0010] Acquire a table to be imported and standardized resource data, wherein the table structure of the table to be imported is a preset table structure, and the standardized resource data includes scene class parameter data and scene object parameter data;
[0011] The standardized resource data is imported into the table to be imported to obtain standardized resource table data.
[0012] Optionally, the table structure includes scene class parameter items and scene object parameter items, each of the scene class parameter items and the scene object parameter items includes multiple parameter categories, each of the parameter categories corresponds to one or more parameter values, and the step of importing the standardized resource data into the table to be imported to obtain the standardized resource table data includes:
[0013] The scene class parameter data in the standardized resource data are correspondingly imported into the scene class parameter items of the table to be imported, and the scene object parameter data in the standardized resource data are correspondingly imported into the scene object parameter items of the table to be imported to obtain standardized resource table data.
[0014] Optionally, the generating the scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data includes:
[0015] Data information corresponding to and / or associated with the scene configuration parameters is screened out from the standardized resource table data, and combined to obtain scene content data of the scene to be generated.
[0016] Optionally, before filtering out the data information associated with the scene configuration parameters in the standardized resource table data, the method further includes:
[0017] In the case that the standardized resource table data does not have a parameter item consistent with the scene configuration parameter, data information of the parameter item with the highest similarity to the scene configuration parameter is determined as the associated data information.
[0018] Optionally, before converting the scene content data into executable scene generation code by using a visualization tool, the method further includes:
[0019] Select the conversion target language of the pre-installed visualization tool according to the set language type;
[0020] Accordingly, the step of converting the scene content data into executable scene generation code by using a visualization tool includes:
[0021] The scene content data is imported into the visualization tool to generate executable scene generation code corresponding to the conversion target language.
[0022] Optionally, the step of running the scene generation code through a set editor to generate scene content corresponding to the scene to be generated includes:
[0023] Automatically create scene items through the set editor;
[0024] The scene generation code is imported into the scene project, and is run to generate scene content including scene classes and scene objects corresponding to the scene project.
[0025] In a second aspect, the embodiment of the present application further provides a game scene content generating device, including:
[0026] An acquisition module, used to acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure;
[0027] A data generation module, used to generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data;
[0028] The content generation module is used to convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
[0029] In a third aspect, an embodiment of the present application further provides a game scene content generating device, the device comprising:
[0030] one or more processors;
[0031] a storage device for storing one or more programs,
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement a method for generating game scene content as described in an embodiment of the present application.
[0033] In a fourth aspect, an embodiment of the present application further provides a storage medium storing computer executable instructions, which, when executed by a computer processor, are used to execute a method for generating game scene content described in an embodiment of the present application.
[0034] In an embodiment of the present application, by obtaining standardized resource table data and scene configuration parameters of the scene to be generated, and generating scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data, the scene content data is converted into an executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate the scene content corresponding to the scene to be generated. By using pre-created standardized resource table data, the scene configuration parameters of the scene to be generated can be directly automatically generated. The scene content solves the problem of complicated and inefficient workload in generating game scene content in related technologies, resulting in slow game development and affecting the progress of game development, and can improve the efficiency and intelligence of scene content generation during game development. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 A flowchart of a method for generating game scene content provided in an embodiment of the present application;
[0036] Figure 2 A flowchart of another method for generating game scene content provided in an embodiment of the present application;
[0037] Figure 3 A flowchart of another method for generating game scene content provided in an embodiment of the present application;
[0038] Figure 4 A flowchart of another method for generating game scene content provided in an embodiment of the present application;
[0039] Figure 5 A flowchart of another method for generating game scene content provided in an embodiment of the present application;
[0040] Figure 6 A block diagram of the module structure of a game scene content generation device provided in an embodiment of the present application;
[0041] Figure 7 A schematic diagram of the structure of a game scene content generation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The embodiments of the present application are further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the embodiments of the present application, rather than to limit the embodiments of the present application. It should also be noted that, for ease of description, only parts related to the embodiments of the present application are shown in the accompanying drawings, rather than all structures.
[0043] The terms "first", "second", etc. in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and or or" in the specification and claims represents at least one of the connected objects, and the character "or" generally indicates that the objects associated before and after are in an "or" relationship.
[0044] A method for generating game scene content provided in an embodiment of the present application can be applied to a scene for generating game scene content. For example, when developing the scene content of a certain game, the game development can be performed by a method for generating game scene content provided in an embodiment of the present application. In a method for generating game scene content provided in an embodiment of the present application, the execution subject of each step can be a computer device, which refers to any electronic device with data calculation, processing and storage capabilities, such as a PC (Personal Computer), a tablet computer and other terminal devices, or a server and other devices for developing products, which is not limited by the embodiment of the present application.
[0045] Figure 1 A flowchart of a method for generating game scene content provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, specifically including:
[0046] Step S101: Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in standardized resource data using a preset table structure.
[0047] Among them, the standardized resource table data is a pre-generated table that can obtain the corresponding scene content data based on the scene configuration parameters of the scene to be generated configured by the user or developer. It is obtained by filling in the standardized resource data with a pre-set table structure. Optionally, the pre-set table structure can be a structure in which a row (such as the first row) in the table is set in the form of a header and each header corresponds to a column data value to be filled. The standardized resource data can be imported into the table of the preset structure to obtain the standardized resource table data. The standardized resource data can be data corresponding to different scenes in the game scene, and it can be used to generate the scene content for use. Optionally, it can be manually written and stored by the game developer, or it can be automatically generated and stored according to the game information and preset rules. Exemplarily, the standardized resource data can include scene class parameter data and scene object parameter data, which are respectively used to obtain specific scenes and scene objects in the scene content.
[0048] In one embodiment, before obtaining the standardized resource table data and the scene configuration parameters of the scene to be generated, it also includes: obtaining the table to be imported and the standardized resource data, wherein the table structure of the table to be imported is a preset table structure, and the standardized resource data includes scene class parameter data and scene object parameter data; importing the standardized resource data into the table to be imported to obtain the standardized resource table data. The import table can be a preset Excel table with a header, and the stored or written standardized resource data can be imported into the table to obtain the standardized resource table data for subsequent generation of scene content.
[0049] Among them, the above-mentioned scene configuration parameters are configuration parameters corresponding to the scene content that actually needs to be generated. Based on the configuration parameters, the corresponding data information can be automatically obtained from the standardized resource table data for scene generation. Optionally, the scene configuration parameters can be configured by game development designers, who perform corresponding configurations according to the needs of game scenes and gameplay design. For example, after the configuration is completed, it is saved and stored in the form of a configuration file, which is used for subsequent direct reading to automatically generate the required scene content based on the standardized resource table data.
[0050] Step S102: Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data.
[0051] In one embodiment, when generating scene content, only the pre-obtained standardized resource table data and the scene configuration parameters configured by the developer need to be used to complete the automatic generation of scene content. When generating different scene contents, the developer only needs to change or configure new scene configuration parameters accordingly. Thus, a large amount of repeated work can be unified and summarized into the same standard library (i.e., standardized resource table data), thereby improving the efficiency of generating game scene content.
[0052] The scene content data of the scene to be generated may be data corresponding to the scene configuration parameters screened out from the standardized resource table data, which is used to generate the corresponding scene content. Optionally, it may be: data information corresponding to the scene configuration parameters is screened out from the standardized resource table data, and the scene content data of the scene to be generated is obtained by combining them. The scene content data may also be stored in the form of a table.
[0053] In one embodiment, the standardized resource table records different parameters that can be used to generate various scenes. For example, for a certain scene object, it includes different size parameters, each size parameter corresponds to a fixed size, such as large, medium and small. When the scene object needs to be included in the generated scene content, it can be configured in the scene configuration parameters accordingly, such as configuring the size parameters of the scene object and marking the ID of the corresponding scene object, so as to perform corresponding matching and screening in the standardized resource table to obtain data information and then combine to generate the scene content data of the scene to be generated.
[0054] Step S103: convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
[0055] After the scene content data is obtained, the scene content data can be converted into executable scene generation code through a visualization tool. The scene generation code can exemplarily include game scene code and scene object code.
[0056] The game scene code is used to represent the code data used to generate the game scene. The scene object code is the code data for generating the virtual objects in the game scene. The game scene code and the scene object code can be used to generate the corresponding game scene and the scene objects in the game scene. The game scene is used to represent the virtual environment in which the player is in the game. The scene object is used to represent each virtual game object in the game scene, and the scene object can represent various entities in the game, such as spirit beasts, medical clinics, stalls and other entities.
[0057] In one embodiment, the scene content data may be imported into an installed Pycel tool and run to generate executable scene generation code, wherein the Pycel tool is a tool that can convert a spreadsheet into Python code.
[0058] In another embodiment, the conversion target language of a pre-installed visualization tool may be selected according to the set language type, the scene content data may be imported into the visualization tool, and executable scene generation code corresponding to the conversion target language may be generated. Thus, corresponding executable scene generation code may be generated according to the needs of different design languages.
[0059] In one embodiment, after obtaining the executable scene generation code, the scene generation code is run through a set editor to generate scene content corresponding to the scene to be generated. Optionally, a method of generating scene content can be to import the scene generation code into the game project using the installed Unity editor, and run the scene generation code to generate the corresponding scene content. Through the use of the above-mentioned visualization tools and editors, the obtained scene content data can be efficiently converted into the final scene content, which can improve the efficiency of generating game scene content and reduce manual operation steps.
[0060] From the above, it can be seen that by obtaining standardized resource table data and scene configuration parameters of the scene to be generated, and generating the scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data, the scene content data is converted into an executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate the scene content corresponding to the scene to be generated. It can directly automate the generation of scene content for the scene configuration parameters of the scene to be generated by using pre-created standardized resource table data, which solves the problem of complicated workload and low efficiency in generating game scene content in related technologies, resulting in slow game development and affecting the progress of game development, and can improve the efficiency and intelligence of scene content generation during game development.
[0061] Figure 2 A flowchart of another method for generating game scene content provided in an embodiment of the present application provides a method for importing standardized resource data into a table to be imported to obtain standardized resource table data, such as Figure 2 As shown, including:
[0062] Step S201: Acquire a table to be imported and standardized resource data, wherein the table structure of the table to be imported is a preset table structure, and the standardized resource data includes scene class parameter data and scene object parameter data.
[0063] Optionally, the table structure may include scene class parameter items and scene object parameter items, each of the scene class parameter items and scene object parameter items includes multiple parameter categories, and each parameter category corresponds to one or more parameter values.
[0064] Step S202: import the scene class parameter data in the standardized resource data into the scene class parameter items in the table to be imported, and import the scene object parameter data in the standardized resource data into the scene object parameter items in the table to be imported to obtain standardized resource table data.
[0065] In one embodiment, when importing resource data, the scene class parameter data may be imported into the scene class parameter items of the table to be imported, and the scene object parameter data in the standardized resource data may be imported into the scene object parameter items of the table to be imported.
[0066] Exemplarily, the scene parameter data may be:
[0067] Scene name: tropical rain forest; Scene size: 5*3*1; Sticker Figure 1 id:1338;post Figure 1 Location: Northeastern; Post Figure 2 id:1223;post Figure 2 Location:Southwest.
[0068] Scene object parameter data can be:
[0069] Object 1 id: 4556; object 1 position: lower left; object 1 size: 0.5*0.2*0.1; object 1 trigger result: explosion; object 2 id: 4678; object 2 position: upper right; object 2 size: 0.1*0.1*0.1; object 2 trigger result: Dropped supplies.
[0070] The corresponding standardized resource table data obtained after import is as follows:
[0071]
[0072] Step S203: Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data.
[0073] Step S204: convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
[0074] From the above, it can be seen that by obtaining standardized resource table data and scene configuration parameters of the scene to be generated, and generating the scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data, the scene content data is converted into an executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate the scene content corresponding to the scene to be generated. By using the pre-created standardized resource table data, the scene configuration parameters of the scene to be generated can be directly automatically generated. The scene content is obtained by importing the standardized resource data in advance through the set table to be imported. At the same time, the standardized resource data includes scene class parameter data and scene object parameter data, and can be generated for the scene and the scene objects contained therein at the same time, which solves the problem that the workload of generating game scene content in the related technology is complicated and inefficient, resulting in slow game development and affecting the progress of game development. It can improve the efficiency and intelligence of scene content generation in the game development process, and its scene content generation is more flexible and more scalable.
[0075] Figure 3 A flowchart of another method for generating game scene content provided in an embodiment of the present application provides a specific method for obtaining scene content data, such as Figure 3 As shown, including:
[0076] Step S301: Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in standardized resource data using a preset table structure.
[0077] Step S302: When there is no parameter item consistent with the scene configuration parameter in the standardized resource table data, determine the data information of the parameter item with the highest similarity to the scene configuration parameter as associated data information, filter out the associated data information in the standardized resource table data, and combine them to obtain the scene content data of the scene to be generated.
[0078] In one embodiment, when there is no consistent parameter item of the standardized resource table data in the scene configuration parameters, a similarity comparison mechanism can be used to obtain the parameter item with the highest similarity and filter it out. The specific similarity comparison mechanism can be to use a character-by-character comparison method to determine the character string with the largest number of consistent characters in the character string as the associated data information.
[0079] Step S303: convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
[0080] From the above, it can be seen that when generating scene content data, a similarity ratio mechanism is introduced to avoid small errors in scene configuration parameters or failures in scene content generation due to slight differences between different designers, further improving the efficiency and intelligence of scene content generation.
[0081] Figure 4 A flowchart of another method for generating game scene content provided in an embodiment of the present application provides a method for obtaining a scene generation code, such as Figure 4 As shown, specifically including:
[0082] Step S401: Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in standardized resource data using a preset table structure.
[0083] Step S402: Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data.
[0084] Step S403: select the conversion target language of the pre-installed visualization tool according to the set language type, import the scene content data into the visualization tool, generate an executable scene generation code corresponding to the conversion target language, and run the scene generation code through the set editor to generate the scene content corresponding to the scene to be generated.
[0085] The set language type may be a pre-set code language type, such as Python, Java, C#, etc. When the scene generation code is obtained, it can be selectively generated according to the pre-set language type, that is, the conversion target language of the pre-installed visualization tool is selected, and the conversion target language is the language into which the scene generation code needs to be generated, and the scene generation code executable corresponding to the conversion target language is generated in the visualization tool.
[0086] In one embodiment, the visualization tool that can be used can be the ExcelToCode tool, which is an open source tool that converts the table file into executable code in multiple programming languages such as C language, Python, Java, C#, etc. Exemplarily, if the language type is set to Java, Java is selected as the conversion target language in the ExcelToCode tool, and the scene content data is imported into the ExcelToCode tool. The ExcelToCode tool converts the scene content data into executable scene generation code in the form of Java language by executing command line operations.
[0087] From the above, it can be seen that when generating executable scene generation code, the table-based scene content data can be executed using a visualization tool to obtain the code of the corresponding set language type, which can significantly improve the efficiency of game development without the need to convert between multiple programming languages.
[0088] Figure 5 A flowchart of another method for generating game scene content provided in an embodiment of the present application is provided, which provides a process for executing scene generation code, such as Figure 5 As shown, including:
[0089] Step S501: Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in standardized resource data using a preset table structure.
[0090] Step S502: Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data.
[0091] Step S503: convert the scene content data into executable scene generation code through a visualization tool, automatically create a scene project through a set editor, import the scene generation code into the scene project, and run to generate the scene content including scene classes and scene objects corresponding to the scene project.
[0092] Among them, an optional editor may be the Unity editor. The Unity editor is a powerful integrated development environment for game, virtual reality and augmented reality application development. The Unity editor allows developers to create, edit and manage various resources in the game, such as scenes, models, textures, etc. The Unity editor can be used to convert scene generation code into corresponding game scene content.
[0093] In one embodiment, a scene project is automatically created using a set editor, the scene generation code is imported into the scene project, and the scene content corresponding to the scene project including the scene class and the scene object is generated. A separate scene project can be created for each scene content generation to import the scene generation code and run to obtain the final scene content. The full process of code generation and scene content generation is automated.
[0094] From the above, it can be seen that when generating scene content, the set editor is used to automatically create a scene project, the scene generation code is imported into the scene project, and the scene content corresponding to the generated scene project, including the scene class and scene objects, can be run. When the scene content is generated, detailed editing of the scene objects and the scenes they are in can be performed, which can more easily realize the cross-calling of scene objects in each scene, and at the same time realize the full process automation of code generation and scene content generation.
[0095] Figure 6 This is a module structure diagram of a game scene content generation device provided in an embodiment of the present application. The device is used to execute a game scene content generation method provided in the above embodiment, and has functional modules and beneficial effects corresponding to the execution method. Figure 6 As shown, the device specifically includes:
[0096] An acquisition module 101 is used to acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure;
[0097] A data generation module 102, configured to generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data;
[0098] The content generation module 103 is used to convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
[0099] It can be seen from the above scheme that by obtaining standardized resource table data and scene configuration parameters of the scene to be generated, and generating the scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data, the scene content data is converted into an executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate the scene content corresponding to the scene to be generated. It can directly automate the generation of scene content for the scene configuration parameters of the scene to be generated by using pre-created standardized resource table data, which solves the problem of complicated workload and low efficiency in generating game scene content in related technologies, resulting in slow game development and affecting the progress of game development, and can improve the efficiency and intelligence of scene content generation during game development.
[0100] In a possible embodiment, the acquisition module 101 is further used for:
[0101] Before obtaining the standardized resource table data, obtaining a table to be imported and standardized resource data, wherein the table structure of the table to be imported is a preset table structure, and the standardized resource data includes scene class parameter data and scene object parameter data;
[0102] The device also includes an import module for:
[0103] The standardized resource data is imported into the table to be imported to obtain standardized resource table data.
[0104] In a possible embodiment, the table structure includes scene class parameter items and scene object parameter items, each of the scene class parameter items and the scene object parameter items includes multiple parameter categories, each of the parameter categories corresponds to one or more parameter values, and the import module is specifically used to:
[0105] The scene class parameter data in the standardized resource data are correspondingly imported into the scene class parameter items of the table to be imported, and the scene object parameter data in the standardized resource data are correspondingly imported into the scene object parameter items of the table to be imported to obtain standardized resource table data.
[0106] In a possible embodiment, the data generating module 102 is specifically configured to:
[0107] Data information corresponding to and / or associated with the scene configuration parameters is screened out from the standardized resource table data, and combined to obtain scene content data of the scene to be generated.
[0108] In a possible embodiment, the data generating module 102 is further used for:
[0109] Before filtering out the data information associated with the scene configuration parameter in the standardized resource table data, if there is no parameter item consistent with the scene configuration parameter in the standardized resource table data, the data information of the parameter item with the highest similarity to the scene configuration parameter is determined as the associated data information.
[0110] In a possible embodiment, the device further includes a selection module, specifically configured to:
[0111] Before converting the scene content data into executable scene generation code by the visualization tool, selecting a conversion target language of a pre-installed visualization tool according to a set language type;
[0112] Accordingly, the content generation module 103 is specifically used for:
[0113] The scene content data is imported into the visualization tool to generate executable scene generation code corresponding to the conversion target language.
[0114] In a possible embodiment, the content generation module 103 is specifically used to:
[0115] Automatically create scene items through the set editor;
[0116] The scene generation code is imported into the scene project, and is run to generate scene content including scene classes and scene objects corresponding to the scene project.
[0117] Figure 7 A schematic diagram of the structure of a game scene content generation device provided in an embodiment of the present application, such as Figure 7 As shown, the device includes a processor 201, a memory 202, an input device 203 and an output device 204; the number of processors 201 in the device can be one or more. Figure 7 A processor 201 is taken as an example; the processor 201, memory 202, input device 203 and output device 204 in the device can be connected by a bus or other means. Figure 7 In the example of connecting via a bus. The memory 202, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions or modules corresponding to a method for generating game scene content in an embodiment of the present application. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, implements the above-mentioned method for generating game scene content. The input device 203 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 204 may include a display device such as a display screen.
[0118] The embodiment of the present application further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for generating game scene content when executed by a computer processor, the method comprising:
[0119] Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure;
[0120] Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data;
[0121] The scene content data is converted into executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate scene content corresponding to the scene to be generated.
[0122] It is worth noting that in the above-mentioned embodiment of a game scene content generation method system, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0123] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made to the present application without departing from the protection scope of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims
1. A method for generating game scene content, characterized in that: include: Acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure; Generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data; The scene content data is converted into executable scene generation code through a visualization tool, and the scene generation code is run through a set editor to generate scene content corresponding to the scene to be generated.
2. The method for generating game scene content according to claim 1, characterized in that: Before obtaining the standardized resource table data, the method further includes: Acquire a table to be imported and standardized resource data, wherein the table structure of the table to be imported is a preset table structure, and the standardized resource data includes scene class parameter data and scene object parameter data; The standardized resource data is imported into the table to be imported to obtain standardized resource table data.
3. The method for generating game scene content according to claim 2, characterized in that: The table structure includes a scene class parameter item and a scene object parameter item, each of the scene class parameter item and the scene object parameter item includes a plurality of parameter categories, each of the parameter categories corresponds to one or more parameter values, and the step of importing the standardized resource data into the table to be imported to obtain the standardized resource table data includes: The scene class parameter data in the standardized resource data are correspondingly imported into the scene class parameter items of the table to be imported, and the scene object parameter data in the standardized resource data are correspondingly imported into the scene object parameter items of the table to be imported to obtain standardized resource table data.
4. The method for generating game scene content according to claim 1, characterized in that: The step of generating the scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data includes: Data information corresponding to and / or associated with the scene configuration parameters is screened out from the standardized resource table data, and combined to obtain scene content data of the scene to be generated.
5. The method for generating game scene content according to claim 4, characterized in that: Before filtering out the data information associated with the scene configuration parameters from the standardized resource table data, the method further includes: In the case that the standardized resource table data does not have a parameter item consistent with the scene configuration parameter, data information of the parameter item with the highest similarity to the scene configuration parameter is determined as the associated data information.
6. The method for generating game scene content according to any one of claims 1 to 5, characterized in that: Before converting the scene content data into executable scene generation code by using a visualization tool, the method includes: Select the conversion target language of the pre-installed visualization tool according to the set language type; Accordingly, the step of converting the scene content data into executable scene generation code by using a visualization tool includes: The scene content data is imported into the visualization tool to generate executable scene generation code corresponding to the conversion target language.
7. The method for generating game scene content according to any one of claims 1 to 5, characterized in that: The step of running the scene generation code through the set editor to generate scene content corresponding to the scene to be generated includes: Automatically create scene items through the set editor; The scene generation code is imported into the scene project, and is run to generate scene content including scene classes and scene objects corresponding to the scene project.
8. A game scene content generating device, characterized in that: include: An acquisition module, used to acquire standardized resource table data and scene configuration parameters of a scene to be generated, wherein the standardized resource table data is obtained by filling in the standardized resource data with a preset table structure; A data generation module, used to generate scene content data of the scene to be generated based on the scene configuration parameters and the standardized resource table data; The content generation module is used to convert the scene content data into executable scene generation code through a visualization tool, and run the scene generation code through a set editor to generate scene content corresponding to the scene to be generated.
9. A game scene content generating device, the device comprising: one or more processors; A storage device for storing one or more programs, when the one or more programs are executed by the one or more processors, the one or more processors implement the game scene content generation method as described in any one of claims 1-7.
10. A storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the game scene content generation method according to any one of claims 1 to 7 when executed by a computer processor.