Level scene creation method, device, storage medium and electronic device

By obtaining level configuration, creating level plots and connecting relationships, dividing target areas and selecting target presets from presets, and combining object objects to generate target level scenes, the problem of high level generation performance and high scene repetition rate in the existing technology is solved, and efficient and unique level generation effects are achieved, improving the playability of the game.

CN114470780BActive Publication Date: 2025-03-21BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210032635.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-12
Publication Date
2025-03-21
Estimated Expiration
2042-01-12

AI Technical Summary

Technical Problem

When the prior art generates game levels for players randomly, the performance consumes a lot, the implementation is complex, and the chance of scene repeating is high, making it difficult to improve the playability of the game.

Method used

By obtaining level configuration, creating level plots and connecting relationships between them, dividing the target area and selecting target presets from the preset set, and combining create object objects to generate target level scenes.

Benefits of technology

It realizes a complete scene where multiple object objects are combined on each level plot, reducing performance consumption, improving resource reuse and uniqueness of the scene, and enhancing the playability of the game.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114470780B_ABST
    Figure CN114470780B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method, device, storage medium and electronic device for creating a level scene, wherein the method comprises: obtaining a level configuration; creating each level plot and connecting every two level plots with a connection relationship according to the connection relationship between each level plot in the level configuration; for each level plot, dividing a plurality of target areas from the level plot according to a preset division method, selecting a preset for each target area from a first preset set as a target preset of the target area; creating a corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area, thereby obtaining a target level scene. The present disclosure can combine a complete scene of several object objects on the level plot by dividing a plurality of target areas on each level plot, and by presetting a plurality of presets corresponding to each target area in the first preset set, thereby obtaining a plurality of possible target level scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of game technology, and in particular, to a level scene creation method, device, storage medium and electronic device. Background Art

[0002] In level-breaking games, the game needs to generate multiple levels for players to complete. In order to save performance consumption caused by calculation, a fixed level mode is generally adopted. That is, each time the player creates a new game, the level of this game is exactly the same as the level of the previous game. This method will undoubtedly reduce the playability of the game, so a solution is proposed to randomly generate game levels for players.

[0003] There are two main ways to randomly generate levels for players in the game: (1) Using artificial intelligence (AI) technology to generate pure AI levels from scratch. The disadvantage is that it consumes a lot of performance, has high requirements for the electronic equipment running the game, and is relatively complex to implement; (2) Prepare some alternative level scenes in advance. Each time the player creates a new game, a scene is randomly selected from the alternative level scenes to generate the level. The disadvantage is that the alternative level scenes are limited, the probability of scene duplication is high, and the improvement in game playability is difficult to meet expectations. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a level scene creation method, comprising:

[0006] Obtaining a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created;

[0007] According to the connection relationship between the level plots, create each level plot and connect every two level plots with a connection relationship;

[0008] For each level block, a plurality of target areas are divided from the level block according to a preset division method, and a preset is selected from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset includes an object for being placed on the corresponding target area and a placement position of the object on the corresponding target area;

[0009] According to the target preset of each target area, a corresponding object is created on the corresponding target area of ​​the level plot, and a target level scene is obtained based on the object objects created on each level plot.

[0010] In a second aspect, the present disclosure provides a level scene creation device, comprising:

[0011] A level configuration module, used to obtain a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created;

[0012] A plot creation module, used for creating each level plot and connecting every two level plots having a connection relationship according to the connection relationship between the level plots;

[0013] a preset selection module, configured to divide a plurality of target areas from each level block according to a preset division method, and select a preset from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset including an object to be placed on a corresponding target area and a placement position of the object on the corresponding target area;

[0014] An object creation module, used for creating corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area;

[0015] The scene acquisition module is used to obtain the target level scene based on the object objects created on each level plot.

[0016] In a third aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processing device, implements the method described in the first aspect.

[0017] In a fourth aspect, the present disclosure provides an electronic device, including:

[0018] a storage device having a computer program stored thereon;

[0019] A processing device is used to execute the computer program in the storage device to implement the method described in the first aspect.

[0020] The above technical solution provided by the present disclosure has the following technical effects:

[0021] By dividing a plurality of target areas on each level plot, and by presetting a plurality of presets corresponding to each target area in the first preset set, assuming that N target areas are divided and each target area is respectively set with M presets, when generating a target level scene, for each target area of ​​each level plot, one preset is selected from the corresponding M presets as the target preset of the target area, and then a complete scene including all objects on the level plot can be obtained according to the target presets of each target area. Since each target area has M presets to select, N presets can be combined on each level plot in theory. M Moreover, by simply increasing the number M of presets for each target area in the first preset set, the number of complete scenes of object objects that can be combined will increase exponentially. Therefore, only a small number of presets need to be set in advance to combine complete scenes of several object objects on the level plot, thereby obtaining a variety of possible target level scenes, which is very simple in technical implementation, with extremely low performance consumption, good resource reusability, and low probability of scene duplication.

[0022] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:

[0024] Figure 1 is a flowchart of a method for creating a level scene in an embodiment of the present disclosure;

[0025] Figure 2 is a schematic diagram of a map in an embodiment of the present disclosure;

[0026] Figure 3 is a schematic diagram of a plot area in an embodiment of the present disclosure;

[0027] Figure 4 It is a schematic diagram of creating each level plot in a map and connecting every two level plots having a connection relationship in an embodiment of the present disclosure;

[0028] Figure 5 It is a schematic diagram of dividing the target area on the level plot in the embodiment of the present disclosure;

[0029] Figure 6 is another schematic diagram of dividing the target area on the level plot in the embodiment of the present disclosure;

[0030] Figure 7 is a schematic diagram of a first preset set in an embodiment of the present disclosure;

[0031] Figure 8 is a detailed flow chart of step 130 in the embodiment of the present disclosure;

[0032] Fig. 9 is another flow chart of the level scene creation method in the embodiment of the present disclosure;

[0033] Fig.10 is another flow chart of the level scene creation method in the embodiment of the present disclosure;

[0034] Fig.11 is a block diagram of a level scene creation device in an embodiment of the present disclosure;

[0035] Fig.12 is a block diagram of an electronic device in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0037] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0038] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0039] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0040] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0041] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0042] In view of the disadvantages of high performance consumption, complex implementation, and high probability of scene duplication in the method of randomly generating game levels in the related art, the embodiment of the present disclosure provides a level scene creation method, thereby randomly generating game level scenes for players in the game. Figure 1 A flowchart of a level scene creation method provided by an embodiment of the present disclosure is shown. Figure 1 , the method comprising:

[0043] Step 110: Obtain level configuration, which includes the connection relationship between each level block in the target level scene to be created.

[0044] The level configuration can be written into the game file in advance, and when the device runs the game, the pre-written level configuration can be obtained from the local game file. Alternatively, in response to a user's creation instruction to create a new game, a configuration acquisition request is sent to the server, and the server searches for the level configuration corresponding to the game according to the configuration acquisition request and sends it to the device, so that the device obtains the level configuration. This method can be used for online games with multiple players.

[0045] In the disclosed embodiment, the game has a total of multiple levels, and each level corresponds to a level plot, and various objects such as stones, various obstacles, etc. can be placed on each level plot. In an optional embodiment, each level plot may also include a level interaction object that interacts with the player and an indestructible level prop object, etc., and the player can attack the level interaction object on the level plot under the action of the level prop object. The target level scene is composed of the level plot corresponding to each level in the game and each object created on each level plot. In addition, the level plots of different levels can be connected by connecting objects (such as bridges or other walking roads for walking), for example, level plot 1 corresponds to the first level in the game, and level plot 1 is connected to another level plot by a bridge. When the player passes the first level on level plot 1, he can enter the level plot of the next level through the bridge connected to level plot 1 and start the second level.

[0046] Step 120: Create each level plot according to the connection relationship between each level plot and connect every two level plots that have a connection relationship.

[0047] In this process, each level plot is created in a preset map and every two level plots having a connection relationship are connected.

[0048] In an exemplary embodiment, Figure 2 A schematic diagram of the map is shown. The map includes multiple plot areas, each of which is used to create a level plot. For example, the size of the map is 15m*15m, and the size of each plot area is 5m*5m. In theory, the map can include a maximum of 3*3 plot areas, and can create a maximum of 9 level plots, thereby generating 9 levels. Figure 3 A schematic diagram of the plot area is shown. A level plot of 3m*3m can be created on a plot area of ​​5m*5m. The 2m side range outside the level plot can be used to generate connection objects, such as bridges or other walkable roads, for connecting with other level plots.

[0049] According to the obtained level configuration, firstly, the corresponding level plot is created on the corresponding plot area, and then, according to the connection relationship between each level plot and other level plots, two level plots with connection relationship are connected through connection objects (such as bridges). Among them, each level plot has four directions: up, down, left, and right. Therefore, in theory, each level plot can be connected to four level plots at most. Usually, except for the first level plot and the last level plot, each level plot is connected to a level plot of the previous level and a level plot of the next level by default.

[0050] In an optional embodiment, the connection relationship between each level block in the level configuration can be represented in the form of a one-dimensional array, and the value a in the array i Indicates the direction in which level plot i is connected to the next level plot i+1, or can be represented in the form of a two-dimensional array, with the value a in the array ij Indicates whether level plot i is connected to other level plots in direction j. For example, Figure 4 A schematic diagram is shown for creating various level plots in a map and connecting every two level plots with a connection relationship. Assuming that the southeast corner of the map is the player's birth point, the initial level plot is first created in the southeast corner. According to the above array in the level configuration, the level plot of the next level is created in the direction in which the initial level plot is connected to the level plot of the next level, and the two level plots are connected. The above operation is repeated until the final level plot located in the northeast corner is created and connected to the level plot of the previous level.

[0051] Step 130 : for each level block, divide a plurality of target areas from the level block according to a preset division method, and select a preset from the first preset set for each target area as a target preset for the target area.

[0052] Prefabs are a type of resource that includes reusable object resources. The first preset set includes multiple presets, each of which includes an object for placement on a corresponding target area and a placement position of the object on the corresponding target area. The object objects include, for example, fences, bottles, cans, obstacles, and other objects that can be placed on a plot.

[0053] Among them, a division method of dividing the target area is pre-agreed, and for each level block, multiple target areas are divided from each level block according to the agreed division method. For each divided target area, a preset corresponding to the target area is randomly selected from the multiple presets in the first preset set as the target preset for the target area.

[0054] Step 140 , creating corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area, and obtaining the target level scene based on the object created on each level plot.

[0055] After determining the target preset of each target area, a corresponding object is created on the corresponding target area of ​​the level plot according to the target preset of each target area. The above steps 130 to 140 are performed for each level plot, so that a corresponding object is created on each level plot, and finally a target level scene is obtained.

[0056] In the above scheme, by dividing a plurality of target areas on each level plot, and by presetting a plurality of presets corresponding to each target area in the first preset set, assuming that N target areas are divided and each target area is respectively set with M presets, when generating a target level scene, for each target area of ​​each level plot, one preset is selected from the corresponding M presets as the target preset of the target area, and then a complete scene containing all objects on the level plot can be obtained according to the target presets of each target area. Since each target area has M presets to select, N presets can be combined on each level plot in theory. MMoreover, by simply increasing the number M of presets for each target area in the first preset set, the number of complete scenes of object objects that can be combined will increase exponentially. Therefore, only a small number of presets need to be set in advance to combine complete scenes of several object objects on the level plot, which is very simple in technical implementation, with extremely low performance consumption, good resource reusability, and a small probability of scene duplication. In this way, every time a player creates a new game, he will feel that each level will be different from the same level of the previous game, which increases the playability of the game and makes the game richer and more diverse.

[0057] Furthermore, in the embodiment of the present disclosure, the multiple target areas are areas formed based on the outer edges of the level plots in different directions. Figure 5 FIG. 1 shows a schematic diagram of dividing a target area on a level plot in an embodiment of the present disclosure. Figure 5 As shown, when dividing multiple target areas, the level plot is equally divided into four target areas according to the diagonal line of the level plot.

[0058] Figure 6 FIG. 2 shows another schematic diagram of dividing the target area on the level plot in the embodiment of the present disclosure. Figure 6 As shown, when dividing multiple target areas, first determine a rectangular central area at the central position of the level plot, and the outer edge of the central area in each direction is parallel to the outer edge of the corresponding direction of the level plot. Then, according to the outer edge of the central area in each direction and the outer edge of the corresponding direction on the level plot, the area of ​​the corresponding direction is divided on the level plot, thereby obtaining four target areas of up, down, left and right (hereinafter referred to as the upper area, lower area, left area and right area), and the four target areas do not overlap with each other. Figure 6 Two possible implementations of dividing the four target areas in the above manner are shown. Of course, in actual situations, the divided target areas can be different from Figure 6 There are differences shown, which do not affect the technical effects of the embodiments of the present disclosure.

[0059] In actual situations, the target area may be divided in other ways, which are not listed in the embodiments of the present disclosure. However, the division should be carried out in an agreed manner, that is, the division method used when making presets for each target area in advance should be consistent with the division method used when creating the target level scene, so that the corresponding object can be successfully created in the corresponding target area according to the preset. Figure 6 The division method 1 shown is further explained.

[0060] In an optional embodiment, the level configuration also includes the plot type of each level plot, and the plot types include castles, forests, villages, etc. The first preset set includes multiple first preset groups, and each first preset group corresponds to a plot type. Each first preset group includes multiple sub-preset groups corresponding to different target areas and different connection states on the level plot, that is, each sub-preset group includes multiple presets of the corresponding target area in the corresponding connection state. Among them, the connection state represents whether the level plot is connected to other level plots in the direction of the target area. There are two connection states, namely "connected" and "unconnected".

[0061] For example, Figure 7 A schematic diagram of the first preset set is shown. There are three types of plots in the game, namely castle, forest and village. The plot type of each level plot is one of the three types of plots. The first preset set includes a first preset group A corresponding to the castle type, a first preset group B corresponding to the forest type, and a first preset group C corresponding to the village type. The first preset group A includes eight sub-preset groups A1 to A8, wherein the sub-preset group A1 includes multiple presets of the upper area in a connected state, the sub-preset group A2 includes multiple presets of the upper area in a disconnected state, the sub-preset group A3 includes multiple presets of the lower area in a connected state, the sub-preset group A4 includes multiple presets of the lower area in a disconnected state, the sub-preset group A5 includes multiple presets of the left area in a connected state, the sub-preset group A6 includes multiple presets of the left area in a disconnected state, the sub-preset group A7 includes multiple presets of the right area in a connected state, and the sub-preset group A8 includes multiple presets of the right area in a disconnected state. Similarly, the first preset group B also includes eight sub-preset groups B1-B8, and the first preset group C also includes eight sub-preset groups C1-C8, which are not described in detail here.

[0062] It is understandable that presets containing different objects can be designed for different plot types. For example, an object such as a fence will only appear in a village, so the first preset group C corresponding to the village contains the object of the fence, and the first preset group A and the first preset group B corresponding to the castle and the forest will not contain the object of the fence. In addition, different presets can also be designed for different connection states of each target area. For example, in the preset corresponding to the "unconnected" state of each target area, several stones can be placed at the position used to connect with the bridge in the target area to block the player's way to the corresponding direction, while in the preset corresponding to the "connected" state, the position used to connect with the bridge is left empty, so that the player can walk on the bridge from the empty position. In addition, the sub-preset group corresponding to each target area under different connection states includes multiple presets for selection, and there are differences between the multiple presets. Each time, a preset can be randomly selected from the multiple presets as the target preset of the target area, so that the scene of the created object object is unlikely to be repeated.

[0063] In addition, plot presets corresponding to different plot types are pre-set. For example, a village type plot preset may be a plot with a yellow surface and a green grass texture, and a castle type plot preset may be a plot with a white surface. In step 120, a corresponding plot preset is selected according to the plot type of each level plot, and a corresponding level plot is created according to the selected plot preset, so that the level plots of different plot types created are different from each other.

[0064] Figure 8 A detailed flow chart of step 130 in an exemplary embodiment is shown, as shown in FIG. Figure 8 As shown, in step 130, the step of selecting a target preset for each target area from the first preset set includes:

[0065] Step 131 : According to the plot type of each level plot, determine a target preset group corresponding to the plot type from a plurality of first preset groups in the first preset set.

[0066] For example, Figure 2 Taking the second level plot shown in the figure as an example, the plot type of the level plot is a castle, and a first preset group A corresponding to the castle type is determined from multiple first preset groups in the first preset set, and the first preset group A is used as the target preset group.

[0067] Step 132 , determining the connection status of each target area, and determining a target sub-preset group in the target preset group corresponding to the target area in the connection status according to the connection status of each target area.

[0068] Exemplarily, in the aforementioned steps, four target areas have been divided from the level plot, namely, the upper area, the lower area, the left area and the right area. Next, the connection status of the upper area, the lower area, the left area and the right area is determined respectively, wherein the connection status of the upper area and the lower area is "unconnected", and the connection status of the left area and the right area is "connected". Then, according to the connection status of the upper area, the sub-preset group A2 corresponding to the upper area in the unconnected state is determined from the first preset group A as the target preset group as the target sub-preset group of the upper area; the sub-preset group A4 corresponding to the lower area in the unconnected state is determined from the first preset group A as the target sub-preset group of the lower area; the sub-preset group A5 corresponding to the left area in the connected state is determined from the first preset group A as the target sub-preset group of the left area; and the sub-preset group A7 corresponding to the right area in the connected state is determined from the first preset group A as the target sub-preset group of the right area.

[0069] Step 133 : According to the target sub-preset group corresponding to each target area, for each target area, one preset is selected from the corresponding target sub-preset group as the target preset of the target area.

[0070] Exemplarily, for the upper area, according to the target sub-preset group corresponding to the upper area, i.e., sub-preset group A2, a preset is randomly selected from the multiple presets in sub-preset group A2 as the target preset for the upper area; for the lower area, according to the target sub-preset group corresponding to the lower area, i.e., sub-preset group A4, a preset is randomly selected from the multiple presets in sub-preset group A4 as the target preset for the lower area; for the left area, according to the target sub-preset group corresponding to the left area, i.e., sub-preset group A5, a preset is randomly selected from the multiple presets in sub-preset group A5 as the target preset for the left area; for the right area, according to the target sub-preset group corresponding to the right area, i.e., sub-preset group A7, a preset is randomly selected from the multiple presets in sub-preset group A7 as the target preset for the right area.

[0071] Thus, through the above steps 131 to 133, target presets corresponding to the four target areas of top, bottom, left and right are obtained, and then according to the target presets of the four target areas, corresponding object objects are created on the level plot, and finally the target level scene is obtained.

[0072] From the above scheme, it can be seen that for the first preset group of a certain land type, the first preset group includes eight sub-preset groups. Assuming that each sub-preset group includes three presets, each target area has a total of six preset selection possibilities. Using a total of 24 presets, theoretically 6 combinations can be made. 4 = 1296 object placement scenarios, thereby achieving the purpose of combining several possible object placement scenarios with a very small number of presets.

[0073] Fig. 9 Another flowchart of a level scene creation method in an exemplary embodiment is shown, please refer to Fig. 9 After creating each level plot in step 120, the method further includes:

[0074] Step 210 : for each interactive plot in each created level plot, a set of interactive configurations corresponding to the plot type is determined according to the plot type of the interactive plot.

[0075] Among them, each plot type corresponds to a group of interaction configurations, each group of interaction configurations includes a variety of interaction configurations to choose from, each interaction configuration includes a level interaction object for interacting with players on the interactive plot of the corresponding plot type, the number of interaction waves of the level interaction objects, the number of level interaction objects in each wave, and the birth position of each wave of level interaction objects.

[0076] Among them, all or part of the created level plots can be defined as interactive plots, so that in the game, level interactive objects can be created on all level plots, or on part of the level plots.

[0077] Step 220: Select an interaction configuration from the group of interaction configurations as a target interaction configuration.

[0078] Step 230: Create a corresponding level interaction object on the interaction plot according to the target interaction configuration.

[0079] In an optional embodiment, only the first wave of level interaction objects may be created on the interaction plot, and the remaining waves of level interaction objects may be created after the player enters the level plot.

[0080] Through the above steps 210 to 230, based on the plot type of each interactive plot, a group of interactive configurations corresponding to the plot type is determined, and then an interactive configuration is randomly selected from the group of interactive configurations to create a level interactive object adapted to the environment of the plot type. In this way, a level interactive object matching the castle environment can be created on a castle-type level plot, and a level interactive object matching the village environment can be created on a village-type level plot. In addition, each group of interactive configurations includes a plurality of interactive configurations, so that each time a player creates a new game, the level interactive objects created at the same level are different, thereby improving the playability of the game.

[0081] After the level interaction objects are created, the target level scene is obtained based on the object objects created on each level plot and the level interaction objects created on each interaction plot.

[0082] In an optional embodiment, if Figure 6The division method shown can divide each level plot into a central area and multiple target areas. Based on this embodiment, the level configuration also includes the level type corresponding to each level plot, and the level types include, for example, ordinary levels, timed battle levels, blood recovery levels, store levels, etc. For certain level types, a second preset group is pre-set, each second preset group corresponds to a level type, and each second preset group includes multiple presets, each preset includes an indestructible level prop object configured for the corresponding level type, and the level prop object includes, for example, a statue, a buff (gain effect) ball, etc.

[0083] Exemplarily, for the timed battle level, each preset level prop object in the corresponding second preset group is configured as a timed battle statue, and there are differences in the timed battle statues in each preset, such as different appearances, different orientations, different sizes, etc.; for the blood recovery level, each preset level prop object in the corresponding second preset group is configured as a blood recovery statue, and there are differences in the blood recovery statues in each preset, such as different appearances, different orientations, different sizes, etc.; for the store level, each preset level prop object in the corresponding second preset group is configured as at least one buff (gain effect) ball, and there are differences in the buff balls in each preset, such as different appearances, different quantities, different gain effects, etc.

[0084] Fig.10 Another flowchart of a level scene creation method in an exemplary embodiment is shown, please refer to Fig.10 After creating each level plot in step 120, the method further includes:

[0085] Step 310: for each level block, search for a second preset group corresponding to the level type according to the level type of the level block.

[0086] Exemplarily, a second preset group is set for each of the time battle level, the health recovery level, and the store level, and no second preset group is set for the ordinary level. According to the level type of each level plot, the second preset group corresponding to the level type is searched. If the second preset group corresponding to the level type is not found, the subsequent steps 320 to 330 are no longer executed. If the second preset group corresponding to the level type is found, the subsequent steps 320 to 330 are continued to be executed.

[0087] Step 320: If a second preset group corresponding to the level type is found, a preset is selected from the second preset group as a target preset for the central area.

[0088] Step 330: Create a corresponding level prop object in the central area of ​​the level plot according to the target preset of the central area.

[0089] Exemplarily, if the level type of the level plot is a normal level, since the second preset group corresponding to the normal level cannot be found, no level prop object is created in the central area of ​​the level plot; if the level type of the level plot is a timed battle level, according to the corresponding second preset group, a corresponding timed battle statue can be created in the central area of ​​the level plot; if the level type of the level plot is a blood recovery level, according to the corresponding second preset group, a corresponding blood recovery statue can be created in the central area of ​​the level plot; if the level type of the level plot is a store level, according to the corresponding second preset group, a corresponding buff ball can be created in the central area of ​​the level plot.

[0090] Through the above steps 310 to 330, based on the level type of each level plot, the second preset group corresponding to the level type is searched, and then a preset is randomly selected from the second preset group, so as to create a corresponding level prop object in the central area of ​​the level plot. Each second preset group includes multiple presets, so that when the player creates a new game each time, the level prop objects created in the same level are different, thereby further improving the playability of the game.

[0091] After the level prop object is created, the target level scene is obtained based on the object object and the level prop object created on each level plot. Optionally, the target level scene also includes the level interaction object created on each interaction plot in each level plot.

[0092] The present disclosure also provides a level scene creation device, please refer to Fig.11 , the level scene creation device 400 includes:

[0093] A level configuration module 410 is used to obtain a level configuration, wherein the level configuration includes a connection relationship between each level block in a target level scene to be created;

[0094] A plot creation module 420, configured to create each level plot according to the connection relationship between the level plots and connect every two level plots having a connection relationship;

[0095] A preset selection module 430 is used for dividing a plurality of target areas from each level block according to a preset division method, and selecting a preset for each target area from a first preset set as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset including an object to be placed on the corresponding target area and a placement position of the object on the corresponding target area;

[0096] An object creation module 440, configured to create a corresponding object on a corresponding target area of ​​the level plot according to a target preset of each target area;

[0097] The scene acquisition module 450 is used to obtain the target level scene based on the object created on each level plot.

[0098] Optionally, the level configuration includes a plot type of each level plot, the multiple target areas are areas formed based on outer edges of the level plot in different directions, the first preset set includes multiple first preset groups, and each first preset group corresponds to a plot type; the preset selection module 430 includes:

[0099] a preset group selection submodule, configured to determine, according to the plot type of the level plot, a target preset group corresponding to the plot type in the plurality of first preset groups; wherein the target preset group includes a plurality of sub-preset groups corresponding to different target areas and different connection states on the level plot, and each of the sub-preset groups includes a plurality of presets of the corresponding target area in the corresponding connection state, and the connection state indicates whether the level plot is connected to other level plots in the direction of the target area;

[0100] The sub-preset group selection sub-module is used to determine the connection status of each target area, and determine the target sub-preset group corresponding to the target area in the connection status in the target preset group according to the connection status of each target area;

[0101] The preset selection submodule is used to select a preset from the corresponding target sub-preset group for each target area as the target preset for the target area according to the target sub-preset group corresponding to each target area.

[0102] Optionally, the level configuration includes a plot type of each level plot, and the device 400 further includes:

[0103] An interaction configuration determination module, for determining, for each interactive plot in each level plot, a plurality of interaction configurations corresponding to the plot type according to the plot type of the interactive plot, each interaction configuration including a level interaction object for interacting with a player on the interactive plot, and the number of interaction waves of the level interaction object, the number of level interaction objects in each wave, and the birth position of each wave of level interaction objects;

[0104] The interactive object creation module is used to select an interactive configuration from the multiple interactive configurations as a target interactive configuration, and create a corresponding level interactive object on the interactive plot according to the target interactive configuration.

[0105] The scene acquisition module 450 is used to obtain the target level scene based on the object created on each level plot and the level interaction object created on each interaction plot.

[0106] Optionally, the preset selection module 430 includes a region division module, which is used to:

[0107] A rectangular central area is determined at the central position of the level block, and the outer edge of each direction of the central area is parallel to the outer edge of the corresponding direction of the level block;

[0108] According to the outer edge of each direction of the central area and the outer edge of the corresponding direction on the level plot, areas in corresponding directions are divided on the level plot to obtain four non-overlapping target areas.

[0109] Optionally, the level configuration includes a level type of each level plot, and the device 400 further includes:

[0110] A prop configuration determination module, configured to search, for each level plot, a second preset group corresponding to the level type according to the level type of the level plot, wherein the second preset group includes a plurality of presets, and each of the presets includes an indestructible level prop object configured for the level type;

[0111] A prop object creation module is used to select a preset from the second preset group as a target preset for the central area when a second preset group corresponding to the level type is found, and create a corresponding level prop object in the central area of ​​the level plot according to the target preset for the central area.

[0112] The scene acquisition module 450 is used to obtain the target level scene based on the object objects created on each level plot and the level prop objects created.

[0113] Optionally, the preset selection module 430 includes a region division module, configured to divide the level plot into four target regions according to the diagonal lines of the level plot.

[0114] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0115] Reference below Fig.12 , which shows a schematic diagram of the structure of an electronic device 500 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include but is not limited to terminals such as mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), digital TVs, desktop computers, etc. Fig.12The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0116] like Fig.12 As shown, the electronic device 500 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0117] Typically, the following devices may be connected to the I / O interface 505: an input device 506 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 508 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 509. The communication device 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 500 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0118] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0119] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0120] In some embodiments, the electronic device and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network), so that the electronic device can obtain level configurations from the server and realize multiplayer online games. Examples of communication networks include local area networks ("LAN"), wide area networks ("WAN"), internets (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.

[0121] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0122] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: obtains a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created; creates each level plot and connects every two level plots having a connection relationship according to the connection relationship between each level plot; for each level plot, divides the level plot into multiple target areas according to a preset division method, selects a preset for each target area from a first preset set as a target preset for the target area; the first preset set includes multiple presets corresponding to different target areas, each preset includes an object for being placed on a corresponding target area and a placement position of the object on the corresponding target area; creates a corresponding object on a corresponding target area of ​​the level plot according to the target preset of each target area, and obtains a target level scene based on the object objects created on each level plot.

[0123] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, a level configuration module may also be described as a "module for obtaining level configuration."

[0126] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0127] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] According to one or more embodiments of the present disclosure, Example 1 provides a level scene creation method, including:

[0129] Obtaining a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created;

[0130] According to the connection relationship between the level plots, create each level plot and connect every two level plots with a connection relationship;

[0131] For each level block, a plurality of target areas are divided from the level block according to a preset division method, and a preset is selected from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset includes an object for being placed on the corresponding target area and a placement position of the object on the corresponding target area;

[0132] According to the target preset of each target area, a corresponding object is created on the corresponding target area of ​​the level plot, and a target level scene is obtained based on the object objects created on each level plot.

[0133] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the level configuration further includes a plot type of each level plot, the multiple target areas are areas formed based on outer edges of the level plots in different directions, the first preset set includes multiple first preset groups, and each of the first preset groups corresponds to a plot type; and selecting a preset from the first preset set for each target area as a target preset for the target area includes:

[0134] According to the plot type of the level plot, determine a target preset group corresponding to the plot type in the multiple first preset groups; wherein the target preset group includes multiple sub-preset groups corresponding to different target areas and different connection states on the level plot, and each of the sub-preset groups includes multiple presets of the corresponding target area in the corresponding connection state, and the connection state indicates whether the level plot is connected to other level plots in the direction where the target area is located;

[0135] Determine a connection state of each target area, and determine a target sub-preset group in the target preset group corresponding to the target area in the connection state according to the connection state of each target area;

[0136] According to the target sub-preset group corresponding to each target area, one preset is selected from the corresponding target sub-preset group for each target area as the target preset of the target area.

[0137] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the level configuration further includes a plot type of each level plot, and after creating each level plot and connecting every two level plots having a connection relationship, the method further includes:

[0138] For each interactive plot in each level plot, multiple interactive configurations corresponding to the plot type are determined according to the plot type of the interactive plot, each interactive configuration including a level interactive object for interacting with a player on the interactive plot, and the number of interaction waves of the level interactive object, the number of level interactive objects in each wave, and the birth position of each wave of level interactive objects;

[0139] Selecting an interaction configuration from the multiple interaction configurations as a target interaction configuration, and creating a corresponding level interaction object on the interaction plot according to the target interaction configuration;

[0140] The step of obtaining the target level scene based on the object objects created on each level plot includes:

[0141] The target level scene is obtained based on the object objects created on each level plot and the level interaction objects created on each interaction plot.

[0142] According to one or more embodiments of the present disclosure, Example 4 provides a method according to any one of Examples 1-3, wherein dividing the level block into multiple target areas according to a preset division method includes:

[0143] A rectangular central area is determined at the central position of the level block, and the outer edge of each direction of the central area is parallel to the outer edge of the corresponding direction of the level block;

[0144] According to the outer edge of each direction of the central area and the outer edge of the corresponding direction on the level plot, areas in corresponding directions are divided on the level plot to obtain four non-overlapping target areas.

[0145] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein the level configuration further includes a level type corresponding to each level plot, and after creating each level plot and connecting every two level plots having a connection relationship, the method further includes:

[0146] For each level plot, searching, according to the level type of the level plot, a second preset group corresponding to the level type, wherein the second preset group includes a plurality of presets, and each preset includes an indestructible level prop object configured for the level type;

[0147] If a second preset group corresponding to the level type is found, a preset is selected from the second preset group as a target preset for the central area, and a corresponding level prop object is created on the central area of ​​the level plot according to the target preset for the central area;

[0148] The step of obtaining the target level scene based on the object objects created on each level plot includes:

[0149] Based on the object objects created on each level plot and the level prop objects created, the target level scene is obtained.

[0150] According to one or more embodiments of the present disclosure, Example 6 provides a method of any one of Examples 1-3, wherein multiple target areas are divided from the level plot according to a preset division method, including: dividing the level plot into four equal target areas according to the diagonal of the level plot.

[0151] According to one or more embodiments of the present disclosure, Example 7 provides a level scene creation device, including:

[0152] A level configuration module, used to obtain a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created;

[0153] A plot creation module, used for creating each level plot and connecting every two level plots having a connection relationship according to the connection relationship between the level plots;

[0154] a preset selection module, configured to divide a plurality of target areas from each level block according to a preset division method, and select a preset from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset including an object to be placed on a corresponding target area and a placement position of the object on the corresponding target area;

[0155] An object creation module, used for creating corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area;

[0156] The scene acquisition module is used to obtain the target level scene based on the object objects created on each level plot.

[0157] According to one or more embodiments of the present disclosure, Example 8 provides the apparatus of Example 7, wherein the level configuration further includes a plot type of each level plot, the multiple target areas are areas formed based on outer edges of the level plots in different directions, the first preset set includes multiple first preset groups, and each of the first preset groups corresponds to a plot type; and the preset selection module includes:

[0158] a preset group selection submodule, configured to determine, according to the plot type of the level plot, a target preset group corresponding to the plot type in the plurality of first preset groups; wherein the target preset group includes a plurality of sub-preset groups corresponding to different target areas and different connection states on the level plot, and each of the sub-preset groups includes a plurality of presets of the corresponding target area in the corresponding connection state, and the connection state indicates whether the level plot is connected to other level plots in the direction of the target area;

[0159] The sub-preset group selection sub-module is used to determine the connection status of each target area, and determine the target sub-preset group corresponding to the target area in the connection status in the target preset group according to the connection status of each target area;

[0160] The preset selection submodule is used to select a preset from the corresponding target sub-preset group for each target area as the target preset for the target area according to the target sub-preset group corresponding to each target area.

[0161] According to one or more embodiments of the present disclosure, Example 9 provides a computer-readable storage medium having a computer program stored thereon, which implements the method of any one of Examples 1-6 when executed by a processing device.

[0162] According to one or more embodiments of the present disclosure, Example 10 provides an electronic device, including:

[0163] a storage device having a computer program stored thereon;

[0164] A processing device is used to execute the computer program in the storage device to implement the method of any one of Examples 1-6.

[0165] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0166] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0167] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A level scene creation method, characterized in that: include: Obtaining a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created; According to the connection relationship between the level plots, create each level plot and connect every two level plots with a connection relationship; For each level block, a plurality of target areas are divided from the level block according to a preset division method, and a preset is selected from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset includes an object for being placed on the corresponding target area and a placement position of the object on the corresponding target area; Creating corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area, and obtaining the target level scene based on the object object created on each level plot; The level configuration further includes a plot type of each level plot, the multiple target areas are areas formed based on outer edges of the level plots in different directions, the first preset set includes multiple first preset groups, and each of the first preset groups corresponds to a plot type; The selecting a preset from the first preset set for each target area as a target preset for the target area includes: According to the plot type of the level plot, determine a target preset group corresponding to the plot type in the multiple first preset groups; wherein the target preset group includes multiple sub-preset groups corresponding to different target areas and different connection states on the level plot, and each of the sub-preset groups includes multiple presets of the corresponding target area in the corresponding connection state, and the connection state indicates whether the level plot is connected to other level plots in the direction where the target area is located; Determine a connection state of each target area, and determine a target sub-preset group in the target preset group corresponding to the target area in the connection state according to the connection state of each target area; According to the target sub-preset group corresponding to each target area, one preset is selected from the corresponding target sub-preset group for each target area as the target preset of the target area.

2. The method according to claim 1, characterized in that The level configuration further includes a plot type of each level plot. After creating each level plot and connecting every two level plots having a connection relationship, the method further includes: For each interactive plot in each level plot, multiple interactive configurations corresponding to the plot type are determined according to the plot type of the interactive plot, each interactive configuration including a level interactive object for interacting with a player on the interactive plot, and the number of interaction waves of the level interactive object, the number of level interactive objects in each wave, and the birth position of each wave of level interactive objects; Selecting an interaction configuration from the multiple interaction configurations as a target interaction configuration, and creating a corresponding level interaction object on the interaction plot according to the target interaction configuration; The step of obtaining the target level scene based on the object objects created on each level plot includes: The target level scene is obtained based on the object objects created on each level plot and the level interaction objects created on each interaction plot.

3. The method according to claim 1 or 2, characterized in that: The step of dividing the level block into a plurality of target areas according to a preset division method includes: A rectangular central area is determined at the central position of the level block, and the outer edge of each direction of the central area is parallel to the outer edge of the corresponding direction of the level block; According to the outer edge of each direction of the central area and the outer edge of the corresponding direction on the level plot, areas in corresponding directions are divided on the level plot to obtain four non-overlapping target areas.

4. The method according to claim 3, characterized in that The level configuration also includes a level type corresponding to each level plot. After creating each level plot and connecting every two level plots having a connection relationship, the method further includes: For each level plot, searching, according to the level type of the level plot, a second preset group corresponding to the level type, wherein the second preset group includes a plurality of presets, and each preset includes an indestructible level prop object configured for the level type; If a second preset group corresponding to the level type is found, a preset is selected from the second preset group as a target preset for the central area, and a corresponding level prop object is created on the central area of ​​the level plot according to the target preset for the central area; The step of obtaining the target level scene based on the object objects created on each level plot includes: Based on the object objects created on each level plot and the level prop objects created, the target level scene is obtained.

5. The method according to claim 1 or 2, characterized in that: The step of dividing the level block into a plurality of target areas according to a preset division method includes: The level plot is equally divided into four target areas according to the diagonal lines of the level plot.

6. A level scene creation device, characterized in that: include: A level configuration module, used to obtain a level configuration, wherein the level configuration includes a connection relationship between each level plot in a target level scene to be created; A plot creation module, used for creating each level plot according to the connection relationship between the level plots and connecting every two level plots having a connection relationship; a preset selection module, configured to divide a plurality of target areas from each level block according to a preset division method, and select a preset from a first preset set for each target area as a target preset for the target area; the first preset set includes a plurality of presets corresponding to different target areas, each preset including an object to be placed on a corresponding target area and a placement position of the object on the corresponding target area; An object creation module, used for creating corresponding object on the corresponding target area of ​​the level plot according to the target preset of each target area; A scene acquisition module is used to obtain a target level scene based on the object objects created on each level plot; The level configuration further includes a plot type of each level plot, the multiple target areas are areas formed based on outer edges of the level plots in different directions, the first preset set includes multiple first preset groups, and each of the first preset groups corresponds to a plot type; The preset selection module comprises: a preset group selection submodule, configured to determine, according to the plot type of the level plot, a target preset group corresponding to the plot type in the plurality of first preset groups; wherein the target preset group includes a plurality of sub-preset groups corresponding to different target areas and different connection states on the level plot, and each of the sub-preset groups includes a plurality of presets of the corresponding target area in the corresponding connection state, and the connection state indicates whether the level plot is connected to other level plots in the direction of the target area; The sub-preset group selection sub-module is used to determine the connection status of each target area, and determine the target sub-preset group corresponding to the target area in the connection status in the target preset group according to the connection status of each target area; The preset selection submodule is used to select a preset from the corresponding target sub-preset group for each target area as the target preset for the target area according to the target sub-preset group corresponding to each target area.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the method according to any one of claims 1 to 5 is implemented.

8. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Game level generation method and device, electronic equipment and computer readable medium

    CN111408139A

  • Game level generation method and device, storage medium and computer equipment

    CN112057870A