A game scene generation method, device and computer equipment

By determining the ground properties and type of the target area in the game, and randomly selecting and projecting scene data, the problem of scene fixation in the existing technology is solved, randomly generated game scenes are realized, and the game experience is improved.

CN112642148BActive Publication Date: 2024-10-22BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011615605.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-10-22
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

Existing game scene generation technology cannot meet the random changing needs of scenes in open world games, resulting in fixed game scenes and the inability to provide a changeable random scene experience, which limits the player's gaming experience.

Method used

By determining the pre-configured ground attributes of the target area, selecting the target area type, and randomly selecting or projecting the game scene from the corresponding scene data, random generation of the scene is achieved.

Benefits of technology

It realizes the multi-dimensional randomness of the game scene, enriches the game scene background, enhances the playability of the game, and brings a better gaming experience to players.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112642148B_ABST
    Figure CN112642148B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device and computer equipment for generating a game scene, wherein the method includes: determining a target area of ​​a scene to be generated, wherein the target area has pre-configured ground attributes, and the target area is any scene area in a game map; selecting a target area type for the target area from all optional area types corresponding to the ground attributes of the target area; randomly selecting corresponding target scene data from all scene data corresponding to the target area type; projecting the target scene data to the target area to generate a corresponding game scene. The game scene generation method of the present invention first selects a corresponding area type according to the area attributes of the target area, and then randomly selects scene data corresponding to the area type, thereby realizing random generation of game scenes, improving the randomness of game scene generation in multiple dimensions, enriching the setting of the game scene, and enhancing the playability of the game.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of game development, and in particular to a game scene generation method, device and computer equipment. Background Art

[0002] The game scene is the place where the player's virtual character moves. There are many scene objects in the scene that can interact with the player, such as NPC (Non-Player Character), treasure chests, resources, etc. These objects are usually set by the game planner during game development. Their positions are relatively fixed and cannot be changed when the game is running. This kind of scene can be called a static scene.

[0003] In open world games, this static scene cannot meet the ever-changing needs of open world scenes. In order to give players a better gaming experience, the distribution of scene objects during game runtime needs to be adjusted to a random distribution.

[0004] Random generation of scene objects is a very important technology in game development. The current existing game scene design adopts a partially open approach. The entire scene is completely produced during the game scene design. When the player enters the scene, the scene area is partially opened to the player according to the entry conditions, thereby realizing the experience of random scenes.

[0005] It can be seen that the existing scene object generation technology has great limitations. The materials used to create random scenes must be prepared in advance, and only limited random scenes can be provided. The scene layout cannot be changed arbitrarily. The game scene is fixed and cannot bring players a better gaming experience. Summary of the invention

[0006] In view of the defects in the prior art, the present invention proposes a game scene generation method and device, which randomly selects scene data according to ground attributes and generates corresponding game scenes by projection, thereby providing varied random scenes and bringing users a better gaming experience.

[0007] In a first aspect, an embodiment of the present disclosure provides a method for generating a game scene, the method comprising:

[0008] Determine a target area of ​​a scene to be generated, wherein the target area has pre-configured ground attributes and is any scene area in a game map;

[0009] Selecting a target area type for the target area from all optional area types corresponding to the ground attributes of the target area;

[0010] Selecting corresponding target scene data from all scene data corresponding to the target area type;

[0011] The target scene data is projected onto the target area to generate a corresponding game scene.

[0012] According to a specific implementation of the present disclosure, the step of selecting corresponding target scene data from all scene data corresponding to the target area type includes:

[0013] Determining a change attribute of the target area type;

[0014] If the change attribute is variable, randomly selecting at least one scene data from all scene data corresponding to the target area type as the target scene data;

[0015] If the change attribute is immutable, the scene data uniquely corresponding to the target area type is used as the target scene data.

[0016] According to a specific implementation of the present disclosure, the allocation algorithm used to randomly select the corresponding target scene data includes at least one of a random allocation method, a group allocation method, and a relationship allocation method.

[0017] According to a specific implementation of the present disclosure, before the step of determining the target area of ​​the scene to be generated, the method further includes:

[0018] Dividing a game map corresponding to the game scene into a plurality of geographical areas, wherein the areas in the game scene correspond to the geographical areas in the game map;

[0019] According to the ground attributes of each geographical area, configuring the ground attributes of the corresponding scene area, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features;

[0020] According to the ground attributes of each geographical area, configure all corresponding optional area types;

[0021] Among them, at least two groups of scene data are set corresponding to each area type.

[0022] According to a specific implementation of the present disclosure, after the step of dividing the game map corresponding to the game scene into a plurality of geographical areas, the method further includes:

[0023] Divide each geographical area into a plurality of grids according to the ground type, wherein each grid corresponds to a preset number of storage units;

[0024] Collecting different types of feature data of each grid in the geographic area, and storing them in a plurality of storage units corresponding to each grid, respectively, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use mark and utilization rate;

[0025] The step of selecting corresponding target scene data from all scene data corresponding to the target area type comprises:

[0026] Selecting a target grid from all grids corresponding to the target area type;

[0027] The scene data in all storage units of the target grid are called as the target scene data.

[0028] According to a specific implementation of the present disclosure, the scene coordinates in the feature data stored in the storage unit correspond to a unique identifier;

[0029] The step of projecting the target scene data onto the target area to generate a corresponding game scene comprises:

[0030] Projecting the scene data in all the storage units of the target grid to the target area, and marking the area corresponding to each scene coordinate in the target area with a unique identifier of the covered scene;

[0031] After the step of generating the corresponding game scene, the method further includes:

[0032] If it is detected that the game scene is in a stopped-use state, the generated game scene is recycled using the unique identifier.

[0033] In a second aspect, an embodiment of the present disclosure provides a game scene generation device, including:

[0034] A determination module, used to determine a target area of ​​a scene to be generated, wherein the target area has a pre-configured ground attribute and the target area is any scene area in a game map;

[0035] A first selection module, configured to select a target area type for the target area from all optional area types corresponding to the ground attributes of the target area;

[0036] A second selection module, used to select corresponding target scene data from all scene data corresponding to the target area type;

[0037] A generation module is used to project the target scene data onto the target area to generate a corresponding game scene.

[0038] According to a specific embodiment of the present disclosure, it also includes:

[0039] A judgment module, used for judging the change attribute of the target area type;

[0040] A first division module, used to divide the game map corresponding to the game scene into multiple geographical areas, where the scene areas in the game scene correspond to the geographical areas in the game map;

[0041] A first configuration module, configured to configure the ground attributes of the corresponding scene area according to the ground attributes of each of the geographical areas, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features;

[0042] A second configuration module is used to configure all the corresponding optional area types according to the ground attributes of each geographical area, wherein at least two groups of scene data are set for each area type;

[0043] A second division module is used to divide each geographical area into a plurality of grids, wherein each grid corresponds to a preset number of storage units;

[0044] A storage module collects different types of feature data of each grid in the geographic area and stores them in multiple storage units corresponding to each grid, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use mark and utilization rate.

[0045] In a third aspect, an embodiment of the present disclosure provides a computer device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the above-mentioned game scene generation method.

[0046] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium storing a computer program, which executes the above-mentioned game scene generation method when running on a processor.

[0047] The present invention provides a technical solution for generating a game scene, which realizes the random generation of a game scene. First, determine the target area of ​​the scene to be generated, the target area is any scene area in the game map, and the target area has pre-configured ground attributes; select a target area type for the target area from all optional area types according to the ground attributes of the target area, and after determining the target area type, select the corresponding target scene data from all scene data corresponding to the target area type; project the acquired target scene data to the target area, thereby generating the corresponding game scene. After selecting from all optional area types, the present invention randomly selects the scene data corresponding to the type, thereby realizing the random matching data generation of the game scene, improving the randomness of the game scene generation in multiple dimensions, enriching the setting of the game scene, enhancing the playability of the game, and bringing a better game experience to the players. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solution of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present invention and should not be regarded as limiting the scope of protection of the present invention. In each of the drawings, similar components are numbered similarly.

[0049] Figure 1 A schematic diagram showing a flow chart of a method for generating a game scene provided by an embodiment of the present invention;

[0050] Figure 2 A schematic diagram of a component allocation algorithm of a game scene generation method provided by an embodiment of the present invention is shown;

[0051] Figure 3 A schematic diagram of geographical area division of a method for generating a game scene provided by an embodiment of the present invention is shown;

[0052] Figure 4 A module block diagram of a game scene generation device provided by an embodiment of the present invention is shown;

[0053] Figure 5 A partial module block diagram of a game scene generation device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments.

[0055] The components of the embodiments of the present invention generally described and shown in the drawings herein may be arranged and designed in a variety of different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0056] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present invention, are intended only to indicate specific features, numbers, steps, operations, elements, components or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components or combinations of the foregoing items.

[0057] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.

[0058] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present invention belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present invention.

[0059] Example 1

[0060] The present disclosure provides a method for generating a game scene. Figure 1 As shown, the method includes:

[0061] S101, determining a target area of ​​a scene to be generated, wherein the target area has pre-configured ground attributes and is any scene area in a game map;

[0062] The game scene generation method provided in this embodiment is applied to the generation of scenes in games such as online games and stand-alone games. For example, in online games, after each startup, the server generates scene data for each area in the game scene. At this time, the latest game scene currently generated can be displayed on each terminal accessing the server. Of course, in some other scenes such as stand-alone games, the corresponding game scene generation scheme can also be executed separately for each terminal accessing the server, that is, when the terminal accesses the server, the server generates a complete set of game scenes for the current terminal. Alternatively, a new game scene can also be generated at any time for the game scene that the terminal game is about to enter or has entered, and the game scene of the area is not generated in the area that the user does not need to enter or has not yet entered, so that it can be more targeted, that is, different random scene schemes are generated for different users, and unnecessary scene generation actions are saved. Scene generation is used in the server side, or the stand-alone game client, or the editor. According to the parameters set by the developer, such as the game object features such as the scene size and the plants in each area, a scene is finally generated.

[0063] In this embodiment, the target area is an area in the game map where a random scene is to be generated, and the target area is a small local area in the entire game map scene; the ground attribute is the attribute characteristics pre-configured for the current target area, including at least one of altitude, longitude and latitude, and surface characteristics.

[0064] During the game, the entire game scene is composed of many scene objects, and the scene objects in the game scene are also destructible. After the game objects in the game scene are destroyed, this place is re-determined as the target area. For example, weather events change the growth, death, and rebirth of trees; aura events will change the gathering of game NPCs, form NPC gathering areas, and generate scene buildings, etc. The above reasons will lead to the re-determination of the current area.

[0065] S102, selecting a target area type for the target area from all optional area types corresponding to the ground attributes of the target area;

[0066] All optional region types include all region types with different ground characteristics, such as natural types such as grassland, Gobi, lake, alpine meadow, desert, snowfield, etc., and of course, cultural region types such as city, village, etc. The target region type is a region type obtained by random selection and adapted to the region.

[0067] After the above S101 is executed, the adapted type is selected from all areas according to the ground attributes of the target area, and the area type is randomly and quickly located according to the attributes.

[0068] S103, selecting corresponding target scene data from all scene data corresponding to the target area type;

[0069] There may be multiple area types corresponding to different scene areas, and there may also be multiple scene data that can be selected for each area type. For example, for the area type of grassland, a green and dense grassland scene, a yellow and withered grassland scene, a winter snow-covered grassland scene, etc. may be configured. One or more scene data for each area type is pre-configured. In the specific scene generation process, a scene data is selected from all the scene data storing the feature data of all the optional area types as the scene data configured for the target area, and is defined as the target scene data.

[0070] S104, projecting the target scene data onto the target area to generate a corresponding game scene.

[0071] The selected target scene data is projected and enlarged and mapped to the target area by rendering, specifically generating the game scene of the target area according to the selected scene data. After the target area where the user is located is updated or other factors such as climate are updated, the above method can be used to regenerate the corresponding game scene.

[0072] The game scene generation method provided by the above embodiment of the present invention selects from all optional area types, then randomly selects the scene data corresponding to the type, and plans and defines the scene objects that will appear in each area according to the pre-configured ground attributes of the target area. When the game is started, each small area scene will be generated according to the pre-configured data, and finally the generation of the entire scene is completed. The game scene is generated by randomly matching data, the randomness of the game scene generation is improved in multiple dimensions, the setting of the game scene is enriched, the playability of the game is enhanced, and the players are given a better gaming experience.

[0073] On the basis of the above embodiment, according to a specific implementation of the present disclosure, the step of selecting corresponding target scene data from all scene data corresponding to the target area type in the above S103 may further specifically include:

[0074] Determining a change attribute of the target area type;

[0075] If the change attribute is variable, randomly selecting at least one scene data from all scene data corresponding to the target area type as the target scene data;

[0076] If the change attribute is immutable, the scene data uniquely corresponding to the target area type is used as the target scene data.

[0077] Considering that in a specific game, in order to facilitate tag search or highlighting, some scenes are fixed scenes that do not need to be or cannot be randomly changed. To this end, the scene areas of different area types can be pre-configured with change attributes for indicating the change state. The change attributes can include variable and immutable. The variable attributes can be the part of the game scene area to be generated in the scene area, and the immutable attributes can be scene objects such as buildings that are fixed in the game scene. The scene data in the scene area with immutable attributes is usually only one fixed type, while the scene area with variable attributes can be configured with multiple types, which are randomly selected during configuration.

[0078] Before configuring scene data for the target area, first determine the variable attribute corresponding to the area type of the target area, and then obtain the corresponding scene data according to the scene data acquisition method corresponding to the variable attribute. For example, in the A town scene, the player will complete a specific task in Inn B and obtain clues at Gate C. Inn B and Gate C are immutable fixed scene objects in the game scene.

[0079] The above-mentioned scheme of configuring scene data through the variable attributes of area types can select different scene data configuration schemes for different types of area types, which can not only simplify the scene data configuration process, but also accurately and quickly generate scenes in the areas to be covered, avoiding fixed buildings from being covered.

[0080] Further, such as Figure 2 As shown, the allocation algorithm used for the above-mentioned random selection of corresponding target scene data includes at least one of a random allocation method, a group allocation method, and a relationship allocation method.

[0081] Specifically, the above allocation algorithm is implemented as an algorithm component through the interface (Allocator Interface) class:

[0082] Random Allocator: Usually used to randomly generate scene objects in the scene. Objects appear randomly without too much internal connection. For example, you can randomly generate 100 pine trees in the scene, or 50 alpine willows in the scene.

[0083] Group Allocator: Some objects in the scene objects have group relationships. Scene objects that appear in groups of the same kind, such as pine forests and poplar forests, can be generated through group allocators.

[0084] Relation Allocator: There is a dependency relationship between one type of individual and another type of individual in the scene object. When generating, it is necessary to first find the dependent object and then generate land occupation information around the land of the dependent object. For example: mushrooms grow at the roots of trees.

[0085] Each allocation method can be called a generation algorithm component. When implemented, different forms of allocation components can be expanded according to the needs of game logic. This method improves the scalability of the program.

[0086] According to another specific implementation of the present disclosure, the process of pre-configuration of the early scene data is further limited. Specifically, before the step of determining the target area of ​​the scene to be generated in S101, the method may further include:

[0087] Divide the game map corresponding to the game scene into multiple geographical areas, the areas in the game scene correspond to the geographical areas in the game map, and configure the ground attributes of the corresponding scene areas according to the ground attributes of each geographical area, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features;

[0088] According to the ground attributes of each geographical area, all corresponding optional area types are configured; wherein at least two groups of scene data are set corresponding to each area type.

[0089] The above geographical areas can be divided according to the type of area, including grassland, Gobi, lake, alpine meadow, desert, snowfield, etc.; they can also be divided according to the type of humanities area, such as city, village, etc.; the number of actual area divisions can be determined according to actual conditions; the surface features in the above ground attributes are mainly building signs;

[0090] like Figure 3 As shown, (a) is an area in the game map. According to certain division rules, this area is divided into five areas: A, B, C, D, and E, as shown in (b). Area A is grassland, area B is mountains, area C is a village, area D is a stone pestle, and area E is a river.

[0091] Specifically, in the context of the entire game map, the area is divided according to certain rules, the large scene map is divided into smaller areas for classification processing, and the attributes of each divided area are configured to determine the ground attributes of the area.

[0092] According to the ground properties of the target area, the game scene is selected and configured. Each target area corresponds to at least two sets of scene data. Usually, there are at least two sets of scene data corresponding to it. In special cases, there may be only one set of scene data. For example, the scene data for grassland can include the scene data of tender green grassland in early spring, the scene data of withered yellow grassland in early autumn, and the scene data of grassland covered with snow in winter, while the scene data for snowy mountains can only be configured with one set of vast white snow scene data.

[0093] After the above step of dividing the game map corresponding to the game scene into a plurality of geographical areas, the method further includes:

[0094] Divide each geographical area into a plurality of grids according to the ground type, wherein each grid corresponds to a preset number of storage units;

[0095] Collecting different types of feature data of each grid in the geographic area, and storing them in a plurality of storage units corresponding to each grid, respectively, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use mark and utilization rate;

[0096] The step of selecting corresponding target scene data from all scene data corresponding to the target area type comprises:

[0097] Selecting a target grid from all grids corresponding to the target area type;

[0098] The scene data in all storage units of the target grid are called as the target scene data.

[0099] Specifically, each grid is divided into N*N storage units, where N is a positive integer and the value of N is determined according to the actual game logic requirements; each storage unit stores its corresponding feature data. For example, a 16*16 grid represents a 16*16 unit area area, where each storage unit stores the unit area area attribute information. Moreover, each storage unit stores feature data in the following format:

[0100]

[0101]

[0102] Specifically, the above steps divide the game scene into several grids, and simplify the scene data in a "grid" manner, thereby improving the calculation speed and reducing the amount of data that needs to be processed on the basis of reducing the accuracy of some ground attribute information.

[0103] And each scene coordinate in the feature data stored in the storage unit corresponds to a unique identifier;

[0104] The step of projecting the target scene data onto the target area to generate a corresponding game scene comprises:

[0105] Projecting the scene data in all the storage units of the target grid to the target area, and marking the area corresponding to each scene coordinate in the target area with a unique identifier of the covered scene;

[0106] After the step of generating the corresponding game scene, the method further includes:

[0107] If it is detected that the game scene is in a stopped-use state, the generated game scene is recycled using the unique identifier.

[0108] For example, the scene coordinates in the storage unit with scene coordinates (x, y) are projected into the game scene for generating the game scene. The unique identifier "1" corresponds to the coordinates. Then, the area projected by the storage unit with scene coordinates (x, y) is marked as covered "1" using the unique identifier.

[0109] Specifically, with the help of the unique identifier, the scene generation process can be better managed. The projection status of the target area is marked as covered to avoid the generated scene land area from being repeatedly covered. In addition, when the server is shut down or the user exits the current game, the server can use the unique identifier to recycle the generated game scene so as to generate a different game scene next time.

[0110] Example 2

[0111] Corresponding to the above method embodiment, the present invention provides a game scene generation device. Figure 4 As shown, the game scene generating device 400 includes:

[0112] A determination module 401 is used to determine a target area of ​​a scene to be generated, wherein the target area has a pre-configured ground attribute and the target area is any scene area in a game map;

[0113] A first selection module 402, configured to select a target region type for the target region from all optional region types corresponding to the ground attributes of the target region;

[0114] A second selection module 403 is used to select corresponding target scene data from all scene data corresponding to the target area type;

[0115] The generation module 404 is used to project the target scene data to the target area to generate a corresponding game scene.

[0116] Specifically, see Figure 5 As shown, the above-mentioned game scene generation device 400 may also include:

[0117] A determination module 405 is used to determine the change attribute of the target area type;

[0118] A first division module 406, configured to divide the game map corresponding to the game scene into a plurality of geographical areas, wherein the scene areas in the game scene correspond to the geographical areas in the game map;

[0119] A first configuration module 407, configured to configure the ground attributes of the corresponding scene area according to the ground attributes of each of the geographical areas, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features;

[0120] A second configuration module 408 is used to configure all the corresponding optional area types according to the ground attributes of each geographical area, wherein each area type is set with at least two groups of scene data;

[0121] A second division module 409, configured to divide each geographical area into a plurality of grids, wherein each grid corresponds to a preset number of storage units;

[0122] The storage module 410 collects different types of feature data of each grid in the geographic area and stores them in multiple storage units corresponding to each grid, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use mark and utilization rate.

[0123] Furthermore, the present invention provides a computer device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the above-mentioned game scene generation method.

[0124] The present invention also provides a computer-readable storage medium storing a computer program, which executes the above-mentioned game scene generation method when running on a processor.

[0125] The device, computer equipment and computer-readable storage medium for generating game scenes provided in the above-mentioned embodiments of the present application can realize the random generation of game scenes. The corresponding area type can be selected according to the area attribute of the target area, and then the scene data corresponding to the area type can be randomly selected to realize the random generation of game scenes, thereby improving the randomness of game scene generation in multiple dimensions, enriching the scenery of game scenes, and enhancing the playability of the game. The specific implementation process of the provided game scene generation device, computer equipment and computer-readable storage medium can refer to the specific implementation process of the above-mentioned game scene generation method, which will not be repeated here one by one.

[0126] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes 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 box in the structure diagram and / or the flow chart, and the combination of boxes in the structure diagram and / or the flow chart, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0127] In addition, the functional modules or units in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0128] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0129] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for generating a game scene, characterized in that: The method comprises: Determine a target area of ​​a scene to be generated, wherein the target area has pre-configured ground attributes and is any scene area in a game map; Selecting a target area type for the target area from all optional area types corresponding to the ground attributes of the target area; Selecting corresponding target scene data from all scene data corresponding to the target area type; Projecting the target scene data onto the target area to generate a corresponding game scene; Before the step of determining the target area of ​​the scene to be generated, the method further includes: dividing the game map corresponding to the game scene into multiple geographical areas, the areas in the game scene correspond to the geographical areas in the game map; configuring the ground attributes of the corresponding scene area according to the ground attributes of each geographical area, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features; configuring all corresponding optional area types according to the ground attributes of each geographical area; wherein at least two sets of scene data are set corresponding to each area type; After the step of dividing the game map corresponding to the game scene into multiple geographical areas, the method further includes: dividing each geographical area into multiple grids according to the ground type, wherein each grid corresponds to a preset number of storage units; collecting different types of feature data of each grid in the geographical area, and storing them in the multiple storage units corresponding to each grid, respectively, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use marks and utilization rates; the step of selecting corresponding target scene data from all scene data corresponding to the target area type includes: selecting a target grid from all grids corresponding to the target area type; calling the scene data in all storage units of the target grid as the target scene data.

2. The game scene generation method according to claim 1, characterized in that: The step of selecting corresponding target scene data from all scene data corresponding to the target area type comprises: Determining a change attribute of the target area type; If the change attribute is variable, randomly selecting at least one scene data from all scene data corresponding to the target area type as the target scene data; If the change attribute is immutable, the scene data uniquely corresponding to the target area type is used as the target scene data.

3. The game scene generation method according to claim 2, characterized in that: The allocation algorithm used to randomly select the corresponding target scene data includes at least one of a random allocation method, a group allocation method, and a relationship allocation method.

4. The game scene generation method according to claim 1, characterized in that: The scene coordinates in the feature data stored in the storage unit correspond to a unique identifier; The step of projecting the target scene data onto the target area to generate a corresponding game scene comprises: Projecting the scene data in all the storage units of the target grid to the target area, and marking the area corresponding to each scene coordinate in the target area with a unique identifier of the covered scene; After the step of generating the corresponding game scene, the method further includes: If it is detected that the game scene is in a stopped-use state, the generated game scene is recycled using the unique identifier.

5. A game scene generating device, characterized in that: include: A determination module, used for determining a target area of ​​a scene to be generated, wherein the target area has a pre-configured ground attribute and the target area is any scene area in a game map; A first selection module, configured to select a target area type for the target area from all optional area types corresponding to the ground attributes of the target area; A second selection module, used to select corresponding target scene data from all scene data corresponding to the target area type; A generation module, used for projecting the target scene data onto the target area to generate a corresponding game scene; A first division module, used to divide the game map corresponding to the game scene into multiple geographical areas, where the scene areas in the game scene correspond to the geographical areas in the game map; A first configuration module, configured to configure the ground attributes of the corresponding scene area according to the ground attributes of each of the geographical areas, wherein the ground attributes include at least one of altitude, longitude and latitude, and surface features; A second configuration module is used to configure all the corresponding optional area types according to the ground attributes of each geographical area, wherein at least two groups of scene data are set for each area type; A second division module is used to divide each geographical area into a plurality of grids, wherein each grid corresponds to a preset number of storage units; A storage module, used for collecting different types of feature data of each grid in the geographic area, and storing them in a plurality of storage units corresponding to each grid, wherein the different types of feature data stored in the storage units include terrain type, slope information, scene coordinates, land use mark and utilization rate; The second selection module is further used to select a target grid from all grids corresponding to the target area type; and call the scene data in all storage units of the target grid as the target scene data.

6. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the computer device to execute the game scene generation method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer program stores a computer program, which executes the game scene generation method according to any one of claims 1 to 4 when running on a processor.