Game development method and device, equipment and storage medium
Through pre-built game templates and user-uploaded materials, the game is directly generated, and automatic testing and video playback is carried out, which solves the problems of long development cycle, high cost and high threshold when developing small games in individuals, and achieves fast and low-cost game development.
Patent Information
- Application Number
- CN202411432185.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-03-04
AI Technical Summary
When developing small games in person, the development cycle is long, the investment cost is high, the development threshold is high, and professional programming skills are required.
The game is generated directly through pre-built game templates and game materials uploaded by the user, and automatically tests are performed to generate test run videos for users to manually adjust game parameters.
It reduces the cost and threshold of game development and shortens the game development cycle, so users do not need to write game code or manually test games.
Smart Images

Figure CN119548827A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game technology, and in particular to a game development method, device, equipment and storage medium. Background Art
[0002] There are various types of games in the game market. If divided by game volume, they can be divided into large games and small games. Large games usually have complex plots, huge world views, diverse character and prop systems, and rich gameplay. These elements together constitute a large and complex game world. Small games usually have concise and clear plots and world views, as well as limited character and prop systems. These elements together constitute a simple and interesting game world. Large games involve more game content and are usually developed by large game companies or studios, while small games involve less game content and can be developed by individuals, studios or game companies.
[0003] In the prior art, when individuals develop small games, the developer has to take care of the game's design, programming, art, testing, and optimization, which results in a long game development cycle and high investment costs. In addition, developers need professional programming skills, and the threshold for individuals to develop small games is high. Summary of the invention
[0004] The present application provides a game development method, apparatus, device and storage medium, which directly generates a game through a pre-built game template and game materials uploaded by a user, and then automatically tests the game and plays a test run video, so that the user can manually adjust the game parameters based on the test run video. The user only needs to select a suitable game template and upload game materials to generate the game he wants to develop with one click, without having to write game code and manually test the game, which solves the problems of long development cycle, high investment cost and high development threshold when individuals develop games in the prior art.
[0005] In a first aspect, the present application provides a game development method, comprising:
[0006] Determine the target game template according to the template selection operation, and obtain the target game material according to the material upload operation;
[0007] Replace the basic materials in the material library corresponding to the target game template with the target game materials, and create a target game according to the target game template and the corresponding material library;
[0008] Acquire a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video;
[0009] After the test run video is played, the game parameters of the target game are adjusted according to the parameter adjustment operation, and the adjusted target game is released.
[0010] In a second aspect, the present application provides a game development device, comprising:
[0011] A template material acquisition module is configured to determine a target game template according to a template selection operation, and to acquire a target game material according to a material upload operation;
[0012] A game development module, configured to replace the basic materials in the material library corresponding to the target game template with the target game materials, and create a target game according to the target game template and the corresponding material library;
[0013] A game testing module is configured to obtain a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video;
[0014] The game publishing module is configured to adjust the game parameters of the target game according to the parameter adjustment operation after the test run video is played, and publish the adjusted target game.
[0015] In a third aspect, the present application provides a game development device, comprising:
[0016] one or more processors;
[0017] A memory stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the game development method as described in the first aspect.
[0018] In a fourth aspect, the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the game development method as described in the first aspect.
[0019] In this application, the target game template is determined according to the template selection operation, and the target game material is obtained according to the material upload operation; the target game material replaces the basic material in the material library corresponding to the target game template, and the target game is created according to the target game template and the corresponding material library; the preset test operation corresponding to the target game template is obtained, and the test operation is run through the target game and a test run video of the target game is generated, and the test run video is played; after the test run video is played, the game parameters of the target game are adjusted according to the parameter adjustment operation, and the adjusted target game is released. Through the above-mentioned technical means, the target game material uploaded by the user can replace the basic material in the material library of the target game template selected by the user, so as to directly generate the game based on the pre-built target game template and the target game material uploaded by the user. The user only needs to select the appropriate game template and upload the game material to generate the game he wants to develop with one click, without writing complex game code, which reduces the threshold and cost of game development and shortens the game development cycle. After the game is generated, it can be automatically tested based on pre-created test operations. After the test is completed, the game test run video can be automatically played so that users can manually adjust game parameters based on the test run video and design a game that better suits the user's needs. Users do not need to manually test the game, further shortening the game development cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 is a flowchart of a game development method provided by an embodiment of the present application;
[0021] Figure 2 is a flow chart of generating a target game template provided by an embodiment of the present application;
[0022] Figure 3 This is one of the schematic diagrams of the game development interface provided in the embodiment of the present application;
[0023] Figure 4 This is the second schematic diagram of the game development interface provided in the embodiment of the present application;
[0024] Figure 5 This is a flowchart of obtaining target game materials provided by an embodiment of the present application;
[0025] Figure 6 This is a flow chart of replacing the basic material in the material library with the target game material provided by an embodiment of the present application;
[0026] Figure 7 is a flowchart of generating a test run video provided by an embodiment of the present application;
[0027] Figure 8 is a flowchart of adjusting game code according to a test run video provided in an embodiment of the present application;
[0028] Fig. 9 is a flowchart of adjusting game parameters provided by an embodiment of the present application;
[0029] Fig.10 This is the third schematic diagram of the game development interface provided in the embodiment of the present application;
[0030] Fig.11 It is a structural schematic diagram of a game development device provided in an embodiment of the present application;
[0031] Fig.12 It is a structural diagram of a game development device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0033] The terms "first", "second", etc. in the specification and claims of the present 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" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0034] In the more common existing implementation methods, when an individual develops a small game, the developer takes care of the game's design, programming, art, testing, and optimization. That is, the developer needs to complete the game's design, programming, art, testing, and optimization process alone. The entire development process takes a long time and the development cycle is long. During the game development period, developers need to invest a lot of energy and material resources in any link, and the cost of game development is high. In the programming stage of the game, developers need professional programming skills to write reliable game code, and the threshold for game development is high.
[0035] To solve the above problems, the present embodiment provides a game development method to directly generate a game through a pre-built game template and game materials uploaded by the user, and then automatically test the game and play the test run video so that the user can manually adjust the game parameters based on the test run video. The user only needs to select a suitable game template and upload game materials to generate the game he wants to develop with one click, without having to write game code and manually test the game, which reduces the cost and threshold of game development and shortens the game development cycle.
[0036] The game development method provided in this embodiment can be executed by a game development device, which can be implemented by software and / or hardware, and can be composed of two or more physical entities, or one physical entity. For example, the game development device can be a game development platform, or a server corresponding to the game development platform.
[0037] The game development device is installed with at least one type of operating system, wherein the operating system includes but is not limited to Android system, Linux system and Windows system. The game development device can install at least one application based on the operating system, and the application can be an application that comes with the operating system or an application downloaded from a third-party device or server. In this embodiment, the game development device has at least an application that can execute the game development method.
[0038] For ease of understanding, this embodiment is described by taking a game development platform as an example of a subject for executing the game development method.
[0039] Figure 1 A flowchart of a game development method provided by an embodiment of the present application is given. Figure 1 , the game development method specifically includes:
[0040] S110: Determine a target game template according to a template selection operation, and obtain target game materials according to a material upload operation.
[0041] Among them, the template selection operation is an operation input by the user for selecting a game template for a game to be developed. The target game template is a game template corresponding to the game category that the user wants to develop. Exemplarily, after the user opens the game development platform, the game development platform displays a game development interface, and the game development interface displays icons or names corresponding to multiple pre-created game template categories, such as shooting game templates, parkour game templates, racing game templates, and fighting game templates, etc. The user can select the corresponding game template category according to the type of game he wants to develop. For example, if the user wants to develop a parkour game, the user can click on the icon of the parkour game template displayed in the game development interface. Correspondingly, when the user clicks on the icon of the parkour game template displayed in the game development interface, the template selection operation is triggered, and the parkour game template is determined as the target game template according to the template selection operation.
[0042] In one embodiment, the pre-created game template may be a complete set of game codes, which includes all necessary game logic, user interaction elements, and a complete game experience, and a corresponding game may be created directly based on the game template and the corresponding material library.
[0043] In another embodiment, the pre-created game template may include multiple game level templates, one game level template corresponds to a complete set of game codes, and a game can be created based on multiple game level templates and corresponding material libraries. Furthermore, in order to reflect the differentiation of the same type of games, the game development platform provides a mechanism for randomly extracting a preset number of game level templates from multiple game level templates, so that different users can have different game content when using the game development platform to develop the same type of game. For example, after the user clicks on the icon of the parkour game template in the game development interface, the game development platform receives the template selection operation triggered by the user, obtains the multiple game level templates corresponding to the parkour game template according to the template selection operation, and randomly extracts a preset number of game level templates from the multiple game level templates to form the target game template.
[0044] Optionally, after selecting a game template category, the user may also select a target game level template from a plurality of game level templates corresponding to the game template category to form a target game template, thereby generating a target game template based on the target game level template. Figure 2 : is a flow chart of generating a target game template provided by an embodiment of the present application. Figure 2 As shown, the step of determining the target game template specifically includes S1101-S1103:
[0045] S1101. Determine a target game template category according to a category selection operation of a game template category triggered by a game development interface, and display a plurality of game template categories in the game development interface.
[0046] In this embodiment, the template selection operation includes a category selection operation and a level selection operation. The category selection operation is an operation input by the user for selecting a game template category for the game to be developed. The level selection operation is an operation input by the user for selecting a game level template for the game to be developed. Figure 3 This is one of the schematic diagrams of the game development interface provided in the embodiment of the present application. Figure 3 As shown, a plurality of game template category controls 11 are displayed in the game development interface 10, which are shooting controls, parkour controls, fighting controls and racing controls. If the user clicks on the parkour control, the corresponding category selection operation is triggered, and the game development platform determines the parkour category as the target game template category according to the category selection operation. Among them, the target game template category is the game template category of the game to be developed.
[0047] S1102. Acquire multiple corresponding game level templates according to the target game template category, and display the game level templates of different game difficulties in different areas in the game development interface according to the game difficulties of the multiple game level templates.
[0048] For example, after the game development platform determines that the parkour category is the target game template category according to the currently triggered category selection operation, it obtains multiple game level templates corresponding to the previously created parkour game template. The game difficulty levels corresponding to the multiple game level templates are different. The game level templates of the same game difficulty can be divided into the same group according to the game difficulty of the multiple game level templates. Afterwards, the game level templates in each group are displayed in each area of the game development interface, so that the user can select game level templates of different difficulty levels in each group. For example, Figure 4 This is the second schematic diagram of the game development interface provided by the embodiment of the present application. Figure 4 As shown, the game development interface 10 displays multiple level display areas 12, and a level display area 12 displays a game level template control 13 of the same difficulty. The game difficulty corresponding to the level display area 12 is marked by the number of five-pointed stars above. The more five-pointed stars there are, the higher the difficulty of the game level template control 12 in the corresponding level display area 12. When the user clicks on the game level template control 12, the background color of the game level template control 12 changes to mark that the game level template control 12 is selected. For example, after the user clicks on the game level template control 12 corresponding to level B, the background color of the game level template control 12 corresponding to level B becomes dark to mark that the user has selected level B to form the target game template, so that the user can know in real time which level game templates he has selected to form the target game template. After the user selects the game level template used to form the target game template, he can click on the template confirmation control 14 in the game development interface 10 to trigger the level selection operation.
[0049] S1103, determining a plurality of target game level templates according to the level selection operation of the game level template triggered in the game development interface, and sorting and integrating the plurality of target game level templates based on the difficulty order or the selection order to obtain the target game template.
[0050] refer to Figure 4 After the user clicks the template determination control 14 at the bottom of the game development interface 10, the game development platform receives the corresponding triggered level selection operation, and according to the level selection operation, the game level template corresponding to the game level template control 12 with a darker background color in each level display area 12 can be determined as the target game level template used to form the target game template. Afterwards, multiple target game level modules can be integrated to generate a target game template in the order of game difficulty from small to large, so as to subsequently generate a target game with a level difficulty from low to high, which conforms to the traditional difficulty setting mechanism of the game. Alternatively, multiple target game level modules can be integrated to generate a target game template in the order selected by the user, so as to subsequently generate a target game that conforms to the user's design.
[0051] This embodiment displays multiple game template categories in the game development interface so that the user can quickly select a suitable game template category as the target game template category, and then displays game level templates of different difficulties corresponding to the target game template category in partitions in the game development interface so that the user can quickly select game level templates of different difficulties as the target game level template in different display areas, thereby improving the convenience of users in selecting target game template categories and target game level templates.
[0052] Furthermore, the game development platform provides the function of developing combined games, that is, the game development platform supports combining multiple categories of game templates to develop a game. Figure 3 , the user can select two or more game template category controls 11 in the game development interface 10, and determine the game template category corresponding to the selected game template category control 11 as the target game template category. After that, the game development interface 10 jumps to Figure 4 The page shown, Figure 4A plurality of game level template controls 13 corresponding to one of the target game template categories are shown. After the user selects the target game level template corresponding to the target game template category, the game development interface 10 switches to display a plurality of game level template controls 13 corresponding to another target game template category, and the user continues to select the target game level template corresponding to the target game template category. After selecting the target game level templates corresponding to the plurality of target game template categories, all the corresponding selected target game level templates are displayed in the game development interface 10, and the user can adjust the order of the target game level templates in the game development interface 10. The game development interface sorts and integrates the target game level templates based on the order of the target game level templates in the game development interface 10 to obtain the target game template.
[0053] It is understandable that a complete game includes not only game code but also game materials such as sound effects, elements and backgrounds. In order to reflect the differentiation of games of the same type, the game development platform supports users to upload target game materials for developing target games, and then create target games based on the target game materials and target game templates.
[0054] Exemplarily, the game development platform may provide an upload window for sound effect materials, element materials, and background materials. A user may drag the sound effect material data into the upload window of the sound effect material to upload the sound effect material data, and the game development platform uses the sound effect material data as the target game sound effect material. A user may drag the element material data into the upload window of the element material to upload the element material data, and the game development platform uses the element material data as the target game element material. A user may drag the background material data into the upload window of the background material to upload the background material data, and the game development platform uses the background material data as the target game background material.
[0055] Optionally, in order to simplify the operation of users uploading game materials, the game development platform provides an upload window for uploading all types of game materials. The game development platform can distinguish between sound effect materials, element materials and background materials based on the data type and size of the game materials. Figure 5 : is a flowchart of obtaining target game materials provided by an embodiment of the present application. Figure 5 As shown, the step of obtaining the target game material specifically includes S1104-S1107:
[0056] S1104. Acquire corresponding uploaded material data according to the material uploading operation, and divide the material data into image material data and sound effect material data according to the data type of the material data.
[0057] The material upload operation is an operation triggered when the user uploads material data, which may be an operation in which the user drags the material data to the upload window. After the game development platform obtains the material data uploaded by the user based on the material upload operation, the data of the material data whose data type is an image type is used as image material data, and the data of the material data whose data type is a sound effect type is used as sound effect material data. For example, when the data type of the material data is png or jpg, the material data may be determined to be image material data, and when the data type of the material data is mp3, the material data may be determined to be sound effect material data.
[0058] S1105. According to a preset image material format and sound effect material format, respectively adjust the data formats of the image material data and the sound effect material data.
[0059] Among them, the preset image material format and sound effect material format are respectively the image material format and sound effect material format used for developing games.
[0060] Exemplarily, since the preset image material format and sound effect material format may be different from the data format of the image material data and sound effect material data uploaded by the user, in order to ensure the normal development of the subsequent game, when the data format of the image material data and the sound effect material data is different from the preset image material format and the sound effect material format, the data format of the image material data and the sound effect material data needs to be adjusted to the preset image material format and the sound effect material format respectively. For example, the image material data uploaded by the user is compared with the preset image material format, and when the two are different, the data format of the image material data is adjusted to the preset image material format. And, the sound effect material data uploaded by the user is compared with the preset sound effect material format, and when the two are different, the data format of the sound effect material data is adjusted to the preset sound effect material format.
[0061] S1106. Divide the image material data into element material data and background material data according to the size and / or data volume of the image material data.
[0062] Exemplarily, both the element material and the background material in the game belong to the image material, so the element material data and the background material data can be distinguished in the image material data uploaded by the user. Generally speaking, the background in the game occupies the entire interface of the game, and the elements of the game are in a certain area in the interface, so the size of the element material will be smaller than the size of the background material, and / or the data volume of the element material will be smaller than the data volume of the background material. Accordingly, a size threshold and / or a data volume threshold can be set in advance, and when the image material data is greater than or equal to the size threshold and / or the data volume threshold, the image material data is determined to be background material data. When the image material data is less than the size threshold and / or the data volume threshold, the image material data is determined to be element material data. Among them, the size threshold is the minimum size of the image used as the game background, and the data volume threshold is the minimum data volume of the image used as the game background.
[0063] It should be noted that there is a case where the size or data volume of the background material data uploaded by the user is smaller than the size threshold and / or data volume threshold, or the size or data volume of the element material data uploaded by the user is larger than the size threshold and / or data volume threshold. In this regard, the size mean and / or data volume mean of the image material data can also be calculated, and the image material data whose size and / or data volume is larger than the size mean and / or data volume mean is used as the background material data, and the image material data whose size and / or data volume is smaller than the size mean and / or data volume mean is used as the element material data, so as to accurately distinguish the background material and the element material in the image material data.
[0064] S1107. Determine the element material data, the background material data, and the sound effect material data as target game element materials, target game background materials, and target game sound effect materials, respectively.
[0065] Exemplarily, the element material data is determined as the target game element material, the background material data is determined as the target game background material, and the sound effect material data is determined as the target game sound effect material, so as to subsequently create a target game based on the target game element material, target game background material, target game sound effect material and target game template.
[0066] In this embodiment, when a user uploads material data with one click, the data format and data volume or size of the material data are used to accurately screen out target game element materials, target game background materials and target game sound effect materials. The user does not need to upload each type of game material one by one, which simplifies the operation of users uploading game materials, thereby improving game development efficiency.
[0067] S120: Replace the basic materials in the material library corresponding to the target game template with the target game materials, and create the target game according to the target game template and the corresponding material library.
[0068] The material library is a database for storing game materials corresponding to the game template. The basic materials in the material library are game materials added to the material library when the game template is created in advance. The game template and the basic materials can create a basic game. In this embodiment, the target game material can replace the basic material in the material library corresponding to the target game template, so that when the target game is subsequently created based on the target game template and the corresponding material library, the target game material is inserted into the target game template to generate the target game.
[0069] Optional, Figure 6 1 is a flowchart of replacing the basic material in the material library with the target game material provided by the embodiment of the present application. Figure 6 As shown, the step of replacing the basic material in the material library with the target game material specifically includes S1201-S1203:
[0070] S1201. According to the time length and sound intensity of the basic sound effect material in the material library corresponding to the target game template, the time length and sound intensity of the target game sound effect material are adjusted accordingly, and the basic sound effect material in the material library is replaced with the adjusted target game sound effect material.
[0071] Exemplarily, the material library includes basic sound effect materials, basic element materials, and basic background materials. The duration and sound intensity of the basic sound effect materials are adapted to the target game template. In order to ensure that the target game sound effect materials can be normally inserted into the target game template, the duration and sound intensity of the target game sound effect materials can be adjusted accordingly according to the duration and sound intensity of the basic sound effect materials.
[0072] For example, when the time length of the target game sound effect material is greater than the time length of the basic sound effect material, the playback speed of the target game sound effect material may be increased to shorten its time length, so that the time length of the adjusted target game sound effect material is equal to the time length of the basic sound effect material. When the time length of the target game sound effect material is less than the time length of the basic sound effect material, the playback speed of the target game sound effect material may be reduced to extend its time length, so that the time length of the adjusted target game sound effect material is equal to the basic sound effect material. When the time length of the target game sound effect material is equal to the time length of the basic sound effect material, the time length of the target game sound effect material is not adjusted.
[0073] When the sound intensity of the target game sound effect material is greater than the sound intensity of the basic sound effect material, the playback gain of the target game sound effect material may be reduced to reduce its sound intensity, so that the adjusted sound intensity of the target game sound effect material is equal to the sound intensity of the basic sound effect material. When the sound intensity of the target game sound effect material is less than the sound intensity of the basic sound effect material, the playback gain of the target game sound effect material may be increased to increase its sound intensity, so that the adjusted sound intensity of the target game sound effect material is equal to the sound intensity of the basic sound effect material. When the sound intensity of the target game sound effect material is equal to the sound intensity of the basic sound effect material, the sound intensity of the target game sound effect material is not adjusted.
[0074] Afterwards, the target game sound effect material is added to the material library of the target game template, and the basic sound effect material in the material library is deleted, thereby completing the replacement of the basic sound effect material with the target game sound effect material.
[0075] S1202. According to the resolution and size of the basic element material in the material library, the resolution and size of the target game element material are adjusted accordingly, and the basic element material in the material library is replaced with the adjusted target game element material.
[0076] Exemplarily, the resolution and size of the basic element material are adapted to the target game template. To ensure that the target game element material can be normally inserted into the target game template, the resolution and size of the target game element material can be adjusted accordingly according to the resolution and size of the basic element material.
[0077] For example, when the length or width of the target game element material is less than the length or width of the basic element material, the length or width of the target game element material may be increased accordingly so that the adjusted length or width of the target game element material is equal to the length or width of the basic element material. When the length or width of the target game element material is greater than the length or width of the basic element material, the length or width of the target game element material may be reduced accordingly so that the adjusted length or width of the target game element material is equal to the length or width of the basic element material. When the length or width of the target game element material is equal to the length or width of the basic element material, the length or width of the target game element material may not be adjusted.
[0078] After adjusting the size of the target game element, the resolution of the target game element material can be compared with the resolution of the basic element material. When the resolution of the target game element material is smaller than the resolution of the basic element material, new pixels are inserted into the target game element material through an interpolation algorithm, thereby increasing the resolution of the game element material, so that the resolution of the adjusted target game element material is equal to the resolution of the basic element material. When the resolution of the target game element material is greater than the resolution of the basic element material, the target game element material is sampled according to the ratio of the resolution of the game element material to the resolution of the basic element material, and the sampled pixels are retained as the adjusted target game element material, thereby reducing the resolution of the game element material, so that the resolution of the adjusted target game element material is equal to the resolution of the basic element material. When the resolution of the target game element material is equal to the resolution of the basic element material, the resolution of the target game element material may not be adjusted.
[0079] Afterwards, the target game element material is added to the material library of the target game template, and the basic element material in the material library is deleted, thereby completing the replacement of the basic element material with the target game element material.
[0080] S1203. According to the resolution and size of the basic background material in the material library, the resolution and size of the target game background material are adjusted accordingly, and the basic background material in the material library is replaced with the adjusted target game background material.
[0081] Exemplarily, the resolution and size of the basic background material are adapted to the target game template. In order to ensure that the target game background material can be normally inserted into the target game template, the resolution and size of the target game background material can be adjusted accordingly according to the resolution and size of the basic background material. The adjustment process of the target game background material is the same as the adjustment process of the target game element material, and the adjustment process of the target game element material can be referred to, which will not be repeated here.
[0082] Afterwards, the target game background material is added to the material library of the target game template, and the basic background material in the material library is deleted, thereby completing the replacement of the basic background material with the target game background material.
[0083] This embodiment adjusts the parameters of the target game material to adapt to the target game template before replacing the base material with the target game material, so that the target game material can be normally inserted into the target game template to complete the creation of the target game, thereby improving the reliability of the creation of the target game. In addition, based on this embodiment, the game development platform can automatically adjust the game material, without the need for the user to manually adjust the game material to the appropriate parameters before uploading, simplifying the user's operation of creating game materials, thereby improving the efficiency of game development.
[0084] After replacing the basic material in the material library of the target game template with the target game material, the target game material in the material library is loaded and inserted into the corresponding position of the target game template to complete the creation of the target game.
[0085] S130: Obtain a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video.
[0086] This embodiment can create a target game through steps S110-S120. At this time, the operation of the target game does not meet the user's expectations. In this regard, the target game can be tested and a test operation video of the target game during the test process can be recorded and played back, so that the user can adjust the game parameters of the target game based on the test operation video.
[0087] The test operation is an operation created in advance for testing the game generated corresponding to the game template. The test operation can be understood as an operation that imitates the user's operation when playing the game. For example, when the game template is a parkour game template, a parkour game can be generated based on the parkour game template. Then the test operation of the parkour game template can be an operation of controlling the character in the parkour game to jump, avoid obstacles, etc. in the game scene.
[0088] After creating the target game, obtain the test operation created in advance by the target game template, run the test operation through the target game, and render the game screen when running the test operation in the game interface. When the target game starts to run the test operation, start the screen recording mode to record the game screen displayed in the game interface, and generate a test run video from the recorded game screen. After the target game runs all test operations, determine that the test run video has been recorded, and play the test run video in the game development interface, so that the user can adjust the game parameters of the target game based on the game screen played by the test run video.
[0089] Optionally, the target game template contains multiple target game level templates with corresponding test operations. In order to improve the test efficiency, the game level to be tested can be selected from multiple target games, and the game level can be tested through the test operation of the target game level template corresponding to the game level. That is, this embodiment only tests the running process of one game level, and does not need to test the running process of the entire target game, which shortens the test cycle and improves the test efficiency. Specifically, Figure 7 This is a flow chart of generating a test run video provided by an embodiment of the present application. Figure 7 As shown, the step of generating the test running video specifically includes S1301-S1303:
[0090] S1301. Randomly select a target game level template from a plurality of target game level templates corresponding to the target game template as a test game level template, and obtain a preset test operation corresponding to the test game level template.
[0091] The test game level template is a game level template corresponding to the game level to be tested. A target game level template is randomly selected from a plurality of target game level templates as the test game level template. Then, a test operation corresponding to the pre-created test game level template is obtained.
[0092] S1302: Load the game level corresponding to the test game level template through the target game, and run the preset test operation corresponding to the test game level template.
[0093] Exemplarily, the target game opens the game level corresponding to the test game level template, and then the target game runs the test operation corresponding to the test game level template, thereby playing the game screen of the game level corresponding to the test game level template in the game interface.
[0094] S1303. Start the screen recording mode when the target game is running the test operation, record the game screen when the target game is running the test operation and generate a test operation video of the target game.
[0095] Exemplarily, the screen recording mode is started when the target game starts to run the test operation. In the screen recording mode, the game development platform automatically records the game screen when the target game runs the test operation, and splices the game screen according to the recording sequence to generate a test operation video.
[0096] This embodiment runs a test operation of a game level through the target game to generate a test running video of the corresponding game level. While ensuring that the user can preview the game running screen, it avoids testing the running process of the entire target game, effectively shortening the test cycle and improving test efficiency.
[0097] In addition to the target game not running in accordance with user expectations, the target game may also have abnormal operation problems, such as freezing or flickering of the game screen during operation. Optionally, it is possible to determine whether abnormal problems occur during the operation of the target game based on the test operation video, so as to repair the game code of the target game when abnormal problems occur, thereby improving the operation reliability of the target game. Specifically, Figure 8 This is a flowchart of adjusting the game code according to the test run video provided by the embodiment of the present application. Figure 8 As shown, the step of adjusting the game code according to the test run video specifically includes S1304-S1306:
[0098] S1304: When the video duration of the test running video meets a preset duration range, obtain each video frame in the test running video.
[0099] Among them, the preset duration range is the duration range of the corresponding running video when the target game runs normally. When the video duration of the test running video is greater than the preset duration range, it indicates that a freeze problem occurs when the target game is running, resulting in an increase in the running time, thereby causing the video duration of the test running video to exceed the preset duration range. When the video duration of the test running video is less than the preset duration range, it indicates that a frame skipping problem occurs when the target game is running, resulting in a shortened running time, thereby causing the video duration of the test running video to be less than the preset duration range. When the video duration of the test running video is within the preset duration range, it indicates that there are no freezes or jumps when the target game is running, and then it can be determined whether the game screen has a screen flickering problem based on the video frames in the test running video.
[0100] S1305. Perform anomaly detection on the video frame using a pre-trained anomaly detection model; wherein the anomaly detection model is used to detect anomalies and anomaly types of the video frame.
[0101] Exemplarily, multiple video frames of the test run video are input into the anomaly detection model one by one, and the anomaly detection model is used to detect anomalies in the video frames to determine whether the video frames have a flickering problem. The anomaly detection model can be trained in advance using normal game pictures and game pictures with flickering problems.
[0102] S1306: When an abnormality is detected in the video frame, adjust the game code of the target game according to the abnormality type of the video frame.
[0103] For example, when the anomaly detection model detects that the game screen has a flickering problem, or detects that the game is stuck or skipping frames based on the video length of the test run video, the game code of the target game can be adjusted accordingly according to the type of anomaly in the game.
[0104] S140: After the test run video is played, adjust the game parameters of the target game according to the parameter adjustment operation, and publish the adjusted target game.
[0105] For example, after recording the test run video, the test run video is automatically played in the game development interface, and after the test run video is played, the game development interface jumps to the page for adjusting game parameters, and then the user can trigger the parameter adjustment operation in the game development interface. The parameter adjustment operation is an operation input by the user to adjust the game parameters of the target game.
[0106] Optionally, the game parameters include parameters of the characters in the game, such as the moving speed and jumping height of the characters in the parkour game, and parameters of non-characters in the game, such as the number, size and placement of props in the parkour game. After the test run video is played, the user can adjust the character parameters and non-character parameters in the target game accordingly to design a game that suits their needs. Specifically, Fig. 9 This is a flowchart of adjusting game parameters provided by an embodiment of the present application. Fig. 9 As shown, the step of adjusting the game parameters specifically includes S1401-S1403:
[0107] S1401. Display a first adjustment control for character parameters and a second adjustment control for non-character parameters on a game development interface.
[0108] This embodiment is described by taking the target game as a jumping game as an example. The non-character parameter is a prop parameter. Fig.10 This is the third schematic diagram of the game development interface provided by the embodiment of the present application. Fig.10 As shown, a first adjustment control 16 for jumping height and moving speed is displayed in the character parameter area 17 of the game development interface 10 , and a second adjustment control 15 for size and quantity is displayed in the prop parameter area 18 of the game development interface 10 .
[0109] S1402: Adjust the game parameters of the game character in the target game according to the character parameter adjustment operation triggered by the first adjustment control.
[0110] The role parameter adjustment operation is an operation input by the user to adjust the role parameters. Fig.10 When the user clicks the first adjustment control 16 for the jump height, the first adjustment control 16 can expand multiple height parameters, and the jump height currently set for the target game among the multiple height parameters is highlighted. The user can select a smaller height parameter or a larger height parameter according to the highlighted jump height, thereby reducing or increasing the jump height of the character. After selecting the height parameter, the selected height parameter will be displayed in the first adjustment control 16. After the height parameter is selected, the first adjustment control corresponding to the jump height triggers the character parameter adjustment operation, and the game development platform adjusts the character's jump height according to the character parameter adjustment operation.
[0111] S1403: Adjust the game parameters of the non-game character in the target game according to the non-character parameter adjustment operation triggered by the second adjustment control.
[0112] The non-role parameter adjustment operation is an operation input by the user for adjusting the non-role parameters. Fig.10When the user clicks the second quantity adjustment control 15, the second adjustment control 15 can expand multiple quantity parameters, and the number of props currently set in the target game is highlighted among the multiple quantity parameters. The user can select a smaller quantity parameter or a larger quantity parameter according to the highlighted prop quantity, thereby reducing or increasing the number of props. After selecting the quantity parameter, the selected quantity parameter will be displayed in the second adjustment control 15. After the quantity parameter is selected, the second adjustment control corresponding to the quantity triggers a non-character parameter adjustment operation, and the game development platform adjusts the number of props according to the non-character parameter adjustment operation.
[0113] This embodiment displays adjustment controls for various game parameters in the game development interface through the game development platform, so that users can quickly and conveniently adjust the game parameters of the target game through the adjustment controls, thereby improving the optimization convenience of the target game and thus improving the game development efficiency.
[0114] After that, after adjusting the game parameters of the target game, if the user confirms that the target game has been developed, the game development platform can publish it in the game section so that the player can choose the target game in the game section to experience it. Optionally, the game development platform can publish the target game in the game section of the corresponding category according to the game category of the target game.
[0115] In summary, the game development method provided by the embodiment of the present application determines the target game template according to the template selection operation, obtains the target game material according to the material upload operation; replaces the target game material with the basic material in the material library corresponding to the target game template, and creates the target game according to the target game template and the corresponding material library; obtains the preset test operation corresponding to the target game template, runs the test operation through the target game and generates the test run video of the target game, and plays the test run video; after the test run video is played, adjusts the game parameters of the target game according to the parameter adjustment operation, and publishes the adjusted target game. Through the above-mentioned technical means, the target game material uploaded by the user can replace the basic material in the material library of the target game template selected by the user, so as to directly generate the game based on the pre-built target game template and the target game material uploaded by the user. The user only needs to select the appropriate game template and upload the game material to generate the game he wants to develop with one click, without writing complex game code, which reduces the threshold and cost of game development and shortens the game development cycle. After the game is generated, it can be automatically tested based on pre-created test operations. After the test is completed, the game test run video can be automatically played so that users can manually adjust game parameters based on the test run video and design a game that better suits the user's needs. Users do not need to manually test the game, further shortening the game development cycle.
[0116] Based on the above embodiments, Fig.11A schematic diagram of the structure of a game development device provided in an embodiment of the present application. Fig.11 The game development device provided in this embodiment specifically includes: a template material acquisition module 21, a game development module 22, a game testing module 23 and a game publishing module 24.
[0117] The template material acquisition module 21 is configured to determine the target game template according to the template selection operation, and acquire the target game material according to the material upload operation;
[0118] The game development module 22 is configured to replace the basic materials in the material library corresponding to the target game template with the target game materials, and create the target game according to the target game template and the corresponding material library;
[0119] The game testing module 23 is configured to obtain a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video;
[0120] The game publishing module 24 is configured to adjust the game parameters of the target game according to the parameter adjustment operation after the test run video is played, and publish the adjusted target game.
[0121] On the basis of the above-mentioned embodiment, the template material acquisition module 21 includes: a template category determination unit, configured to determine a target game template category according to a category selection operation of a game template category triggered in a game development interface, and display multiple game template categories in the game development interface; a level template display unit, configured to obtain multiple corresponding game level templates according to the target game template category, and display game level templates of different game difficulties in different areas in the game development interface according to the game difficulties of the multiple game level templates; a game template generation unit, configured to determine multiple target game level templates according to a level selection operation of a game level template triggered in the game development interface, and sort and integrate the multiple target game level templates based on the difficulty order or the selection order to obtain the target game template.
[0122] On the basis of the above-mentioned embodiment, the template material acquisition module 21 includes: a material data classification unit, configured to obtain the corresponding uploaded material data according to the material uploading operation, and divide the material data into image material data and sound effect material data according to the data type of the material data; a material format adjustment unit, configured to adjust the data format of the image material data and the sound effect material data respectively according to the preset image material format and sound effect material format; an image material classification unit, configured to divide the image material data into element material data and background material data according to the size and / or data amount of the image material data; a target material determination unit, configured to determine the element material data, background material data and sound effect material data as target game element material, target game background material and target game sound effect material respectively.
[0123] On the basis of the above-mentioned embodiment, the game development module 22 includes: a sound effect material adjustment unit, which is configured to adjust the time length and sound intensity of the target game sound effect material according to the time length and sound intensity of the basic sound effect material in the material library corresponding to the target game template, and replace the basic sound effect material in the material library with the adjusted target game sound effect material; an element material adjustment unit, which is configured to adjust the resolution and size of the target game element material according to the resolution and size of the basic element material in the material library, and replace the basic element material in the material library with the adjusted target game element material; a background material adjustment unit, which is configured to adjust the resolution and size of the target game background material according to the resolution and size of the basic background material in the material library, and replace the basic background material in the material library with the adjusted target game background material.
[0124] On the basis of the above-mentioned embodiment, the game testing module 23 includes: a test operation acquisition unit, configured to randomly select a target game level template from a plurality of target game level templates corresponding to the target game template as a test game level template, and obtain a preset test operation corresponding to the test game level template; a test operation running unit, configured to load the game level corresponding to the test game level template through the target game, and run the preset test operation corresponding to the test game level template; a test video recording unit, configured to start the screen recording mode when the target game runs the test operation, record the game screen when the target game runs the test operation and generate a test running video of the target game.
[0125] On the basis of the above-mentioned embodiment, the game testing module 23 includes: a video frame acquisition unit, configured to acquire each video frame in the test running video after playing the test running video, when the video length of the test running video meets the preset length range; an anomaly detection unit, configured to perform anomaly detection on the picture of the video frame through a pre-trained anomaly detection model; wherein the anomaly detection model is used to detect the anomaly and the anomaly type of the video frame; a code adjustment unit, configured to adjust the game code of the target game according to the anomaly type of the video frame when an anomaly is detected in the picture of the video frame.
[0126] Based on the above embodiment, the game publishing module 24 includes: an adjustment control display unit, which is configured to display a first adjustment control for character parameters and a second adjustment control for non-character parameters in the game development interface after the test run video is played; a character parameter adjustment unit, which is configured to adjust the game parameters of the game character in the target game according to the character parameter adjustment operation triggered by the first adjustment control; and a non-character parameter adjustment unit, which is configured to adjust the game parameters of the non-game characters in the target game according to the non-character parameter adjustment operation triggered by the second adjustment control.
[0127] As mentioned above, the game development device provided by the embodiment of the present application determines the target game template according to the template selection operation, obtains the target game material according to the material upload operation; replaces the target game material with the basic material in the material library corresponding to the target game template, and creates the target game according to the target game template and the corresponding material library; obtains the preset test operation corresponding to the target game template, runs the test operation through the target game and generates the test run video of the target game, and plays the test run video; after the test run video is played, adjusts the game parameters of the target game according to the parameter adjustment operation, and publishes the adjusted target game. Through the above technical means, the target game material uploaded by the user can replace the basic material in the material library of the target game template selected by the user, so as to directly generate the game based on the pre-built target game template and the target game material uploaded by the user. The user only needs to select the appropriate game template and upload the game material to generate the game he wants to develop with one click, without writing complex game code, which reduces the threshold and cost of game development and shortens the game development cycle. After the game is generated, it can be automatically tested based on pre-created test operations. After the test is completed, the game test run video can be automatically played so that users can manually adjust game parameters based on the test run video and design a game that better suits the user's needs. Users do not need to manually test the game, further shortening the game development cycle.
[0128] The game development device provided in the embodiment of the present application can be used to execute the game development method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0129] Fig.12 is a schematic diagram of the structure of a game development device provided in an embodiment of the present application, with reference to Fig.12 , the game development device includes: a processor 31, a memory 32, a communication device 33, an input device 34 and an output device 35. The number of processors 31 in the game development device can be one or more, and the number of memories 32 in the game development device can be one or more. The processor 31, memory 32, communication device 33, input device 34 and output device 35 of the game development device can be connected through a bus or other methods.
[0130] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the game development method of any embodiment of the present application (for example, the template material acquisition module 21, the game development module 22, the game testing module 23 and the game publishing module 24 in the game development device). The memory 32 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created according to the use of the device, etc. In addition, the memory 32 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0131] The communication device 33 is used for data transmission.
[0132] The processor 31 executes the software programs, instructions and modules stored in the memory 32 to execute various functional applications and data processing of the device, that is, to implement the above-mentioned game development method.
[0133] The input device 34 may 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 35 may include a display device such as a display screen.
[0134] The game development device provided above can be used to execute the game development method provided in the above embodiment, and has corresponding functions and beneficial effects.
[0135] The embodiment of the present application also provides a storage medium containing computer executable instructions, which are used to execute a game development method when executed by a computer processor. The game development method includes: determining a target game template according to a template selection operation, and obtaining target game materials according to a material upload operation; replacing the basic materials in the material library corresponding to the target game template with the target game materials, and creating a target game according to the target game template and the corresponding material library; obtaining a preset test operation corresponding to the target game template, running the test operation through the target game and generating a test running video of the target game, and playing the test running video; after the test running video is played, adjusting the game parameters of the target game according to the parameter adjustment operation, and publishing the adjusted target game.
[0136] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0137] Of course, the storage medium containing computer executable instructions provided in the embodiments of the present application, whose computer executable instructions are not limited to the above game development method, can also execute related operations in the game development method provided in any embodiment of the present application.
[0138] The game development apparatus, storage medium, and game development equipment provided in the above embodiments can execute the game development method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the game development method provided in any embodiment of the present application.
[0139] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate 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 claims.
Claims
1. A game development method, characterized in that: include: Determine the target game template according to the template selection operation, and obtain the target game material according to the material upload operation; Replace the basic materials in the material library corresponding to the target game template with the target game materials, and create a target game according to the target game template and the corresponding material library; Acquire a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video; After the test run video is played, the game parameters of the target game are adjusted according to the parameter adjustment operation, and the adjusted target game is released.
2. The game development method according to claim 1, characterized in that: The step of determining the target game template according to the template selection operation includes: Determine a target game template category according to a category selection operation of a game template category triggered by a game development interface, wherein a plurality of game template categories are displayed in the game development interface; Acquire a plurality of corresponding game level templates according to the target game template category, and display the game level templates of different game difficulties in different regions in the game development interface according to the game difficulties of the plurality of game level templates; A plurality of target game level templates are determined according to a level selection operation of a game level template triggered in the game development interface, and the plurality of target game level templates are sorted and integrated based on a difficulty order or a selection order to obtain a target game template.
3. The game development method according to claim 1, characterized in that: The step of obtaining the target game material according to the material uploading operation includes: Acquire corresponding uploaded material data according to the material uploading operation, and divide the material data into image material data and sound effect material data according to the data type of the material data; According to a preset image material format and sound effect material format, respectively adjusting the data formats of the image material data and the sound effect material data; Dividing the image material data into element material data and background material data according to the size and / or data amount of the image material data; The element material data, the background material data and the sound effect material data are respectively determined as target game element material, target game background material and target game sound effect material.
4. The game development method according to claim 3, characterized in that: The step of replacing the basic material in the material library corresponding to the target game template with the target game material includes: According to the time length and sound intensity of the basic sound effect material in the material library corresponding to the target game template, the time length and sound intensity of the target game sound effect material are adjusted accordingly, and the basic sound effect material in the material library is replaced with the adjusted target game sound effect material; According to the resolution and size of the basic element material in the material library, the resolution and size of the target game element material are correspondingly adjusted, and the basic element material in the material library is replaced by the adjusted target game element material; According to the resolution and size of the basic background material in the material library, the resolution and size of the target game background material are adjusted accordingly, and the basic background material in the material library is replaced by the adjusted target game background material.
5. The game development method according to claim 2, characterized in that: The obtaining of a preset test operation corresponding to the target game template, running the test operation through the target game and generating a test running video of the target game includes: Randomly selecting a target game level template from a plurality of target game level templates corresponding to the target game template as a test game level template, and obtaining a preset test operation corresponding to the test game level template; Loading the game level corresponding to the test game level template through the target game, and running the preset test operation corresponding to the test game level template; When the target game runs the test operation, the screen recording mode is started to record the game screen when the target game runs the test operation and generate a test running video of the target game.
6. The game development method according to claim 1, characterized in that: After playing the test running video, the method further includes: When the video duration of the test running video meets a preset duration range, obtaining each video frame in the test running video; Performing anomaly detection on the picture of the video frame by using a pre-trained anomaly detection model; wherein the anomaly detection model is used to detect anomalies and anomaly types of the video frame; When an abnormality is detected in the video frame, the game code of the target game is adjusted according to the abnormality type of the video frame.
7. The game development method according to claim 1, characterized in that: The step of adjusting the game parameters of the target game according to the parameter adjustment operation includes: After the test run video is played, a first adjustment control for character parameters and a second adjustment control for non-character parameters are displayed on the game development interface; Adjusting the game parameters of the game character in the target game according to the character parameter adjustment operation triggered by the first adjustment control; According to the non-character parameter adjustment operation triggered by the second adjustment control, the game parameters of the non-game character in the target game are adjusted.
8. A game development device, characterized in that: include: A template material acquisition module is configured to determine a target game template according to a template selection operation, and to acquire a target game material according to a material upload operation; A game development module, configured to replace the basic materials in the material library corresponding to the target game template with the target game materials, and create a target game according to the target game template and the corresponding material library; A game testing module is configured to obtain a preset test operation corresponding to the target game template, run the test operation through the target game and generate a test running video of the target game, and play the test running video; The game publishing module is configured to adjust the game parameters of the target game according to the parameter adjustment operation after the test run video is played, and publish the adjusted target game.
9. A game development device, characterized in that: include: one or more processors; A memory stores one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the game development method as described in any one of claims 1-7.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to execute the game development method as described in any one of claims 1-7 when executed by a computer processor.