CN113332722A - Map generation method, device, terminal and storage medium - Google Patents

Map generation method, device, terminal and storage medium Download PDF

Info

Publication number
CN113332722A
CN113332722A CN202110625337.1A CN202110625337A CN113332722A CN 113332722 A CN113332722 A CN 113332722A CN 202110625337 A CN202110625337 A CN 202110625337A CN 113332722 A CN113332722 A CN 113332722A
Authority
CN
China
Prior art keywords
template
map
target
local map
local
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110625337.1A
Other languages
Chinese (zh)
Inventor
孟祥麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202110625337.1A priority Critical patent/CN113332722A/en
Publication of CN113332722A publication Critical patent/CN113332722A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • A63F13/5378Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen for displaying an additional top view, e.g. radar screens or maps
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Abstract

The application discloses a map generation method, which comprises the following steps: determining the template position of each local map template in the global map template and the template set identifier of the local map template at the position, wherein the template set identifier indicates the template set to which the corresponding local map template belongs; selecting a target local map template with a target mark from a corresponding template set with the target mark based on the template set mark, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which an element needing to be filled at the position belongs, and the target mark indicates regional characteristics of the global map; based on the identification, selecting a target element with a target mark from the corresponding element set with the target mark, and filling the target element to the element position corresponding to the identification to obtain a local map corresponding to the target local map template; and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template.

Description

Map generation method, device, terminal and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a map generation method, apparatus, terminal, and storage medium.
Background
In some games, the map of the game is generally huge in size, rich in content, high in policy design requirement, long in design and debugging period, and high in technical requirements on data storage, map loading and test maintenance.
At present, in some games mainly based on random experience, a random map generation mode is generally adopted, and the random map generation result is very high. Because a random combination mode is adopted, more designs in a single block are considered during map drawing, the distance and the relation between the blocks are easy to be ignored, the strategic design of the whole map is difficult to be considered, and the continuity of the map is difficult to be ensured.
Accordingly, there is a need in the art for improvements.
Disclosure of Invention
The embodiment of the application provides a map generation method, a map generation device, a terminal and a storage medium, which can ensure that all areas of a generated map have relevance on the basis of ensuring the randomness of the map, and are favorable for ensuring the continuity of the map.
The embodiment of the application provides a map generation method, which comprises the following steps:
determining template positions of all local map templates in the global map template and template set marks of the local map templates at all the template positions, wherein the template set marks are used for indicating the template set to which the corresponding local map template belongs;
selecting a target local map template with a target mark at each template position from corresponding template sets with the target marks based on the template set marks, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating regional characteristics corresponding to the global map template;
based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template;
and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
In an optional embodiment, the selecting, based on the element set identifier in the target local map template, a target map element with the target mark from a corresponding element set with the target mark includes:
determining a first mark of a map element in an element set corresponding to an element set identifier based on the element set identifier in the target local map template;
determining map elements with the same first mark and the target mark in each element set as candidate map elements;
selecting the target map element from the candidate map elements of each of the element sets.
In an optional embodiment, before the determining the template position of each local map template in the global map template and the template set identification of the local map template at each template position, the method further includes:
acquiring at least one template attribute of the local map template;
and dividing the local map template into at least one template set based on the template attributes, and setting a template set identifier for each template set, wherein at least one template attribute of the local map templates in the same template set is the same.
In an optional embodiment, before the selecting, from the corresponding template set with the target mark based on the template set identification, the target local map template with the target mark at each template position, further includes:
acquiring first template generation information of a local map template to be generated, wherein the first template generation information comprises element set identifications of element sets to which map elements need to be contained in the local map template to be generated and element filling positions of each map element need to be contained;
and generating information based on the first template, and obtaining the local map template according to the corresponding relation between the element filling position and the element set identifier in the local map template to be generated.
In an optional embodiment, the obtaining first template generation information of the local map template to be generated includes:
acquiring element filling positions of map elements required to be contained in the local map template to be generated on the local map template to be generated;
acquiring a second mark of the element set;
determining the element set of the second mark which is the same as the target mark as a candidate element set;
selecting a target element set corresponding to each element filling position from the candidate element sets of each local map template, and acquiring an element set identifier of the target element set corresponding to each element filling position;
and obtaining the first template generation information of the local map template to be generated based on the element filling position and the element set identifier.
In an optional embodiment, selecting a target local map template with a target mark at each template position from a corresponding template set with a target mark based on the template set identification comprises:
determining a third mark corresponding to a local map template in a template set corresponding to the template set identifier based on the template set identifier;
determining a local map template with the third mark being the same as the target mark as a candidate local map template;
and selecting a target local map template at each template position from the candidate local map templates.
In an optional embodiment, before the selecting, based on the element set identifier in the target local map template, a target map element with the target mark from a corresponding element set with the target mark, the method further includes:
acquiring at least one element attribute of a preset map element;
and dividing the map elements into at least one element set based on the element attributes, and setting element set identifiers for the element sets, wherein at least one element attribute of the map elements in the same element set is the same.
In an optional embodiment, before the determining the template position of each local map template in the global map template and the template set identification of the local map template at each template position, the method further includes:
acquiring second template generation information of the global map template to be generated, wherein the second template generation information comprises template set identifications of template sets to which local map templates need to be included in the global map template to be generated and template positions of each local map template need to be included;
and generating information based on the second template, and obtaining the global map template according to the corresponding relation between the template position and the template set identifier in the global map template to be generated.
In an optional embodiment, the obtaining second template generation information of the global map template to be generated includes:
acquiring the template position of a local map template to be included in the global map template to be generated on the global map template to be generated;
acquiring a fourth mark of each template set;
determining the template set with the same fourth mark and the target mark as a candidate template set;
selecting a target template set corresponding to each template position from each candidate template set, and acquiring a template set identifier of the target template set corresponding to each template position;
and obtaining the second template generation information of the global map template to be generated based on the template position and the template set identifier.
An embodiment of the present application further provides a map generating apparatus, where the map generating apparatus includes:
the map processing device comprises a determining unit, a searching unit and a judging unit, wherein the determining unit is used for determining template positions of all local map templates in a global map template and template set identifications of the local map templates at all the template positions, and the template set identifications are used for indicating template sets to which the corresponding local map templates belong;
a selecting unit, configured to select, based on the template set identifier, a target local map template with a target identifier at each template position from a corresponding template set with the target identifier, where the local map template indicates at least one element filling position and an element set identifier of an element set to which a map element that needs to be filled at the element filling position belongs, and the target identifier is used to indicate a regional characteristic corresponding to the global map template;
the filling unit is used for selecting a target map element with the target mark from a corresponding element set with the target mark based on an element set identifier in the target local map template, and filling the target map element to an element position corresponding to the element set identifier to obtain a local map corresponding to the target local map template;
and the generating unit is used for generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
The embodiment of the present application further provides a terminal, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the steps of the map generation method described above are implemented when the processor executes the computer program.
The embodiment of the application also provides a storage medium, on which a computer program is stored, wherein the computer program realizes the steps of the map generation method when being executed by a processor.
The embodiment of the application provides a map generation method, a map generation device and computer equipment, through the method of the embodiment, the template positions of all local map templates in a global map template and the template set identifications of the local map templates at all the template positions can be determined, and the template set identifications are used for indicating the template sets to which the corresponding local map templates belong; selecting a target local map template with a target mark at each template position from a corresponding template set with the target mark based on the template set mark, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at each element filling position belongs, and the target mark is used for indicating the regional characteristics corresponding to the global map template; selecting a target map element with a target mark from a corresponding element set with the target mark based on an element set identifier in a target local map template, and filling the target map element to an element position corresponding to the element set identifier to obtain a local map corresponding to the target local map template; and generating the global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
Therefore, the local map template is drawn firstly, the target local map template which accords with the regional characteristics is selected from each local map template set which accords with the regional characteristics, the target map elements which accord with the regional characteristics at each element position are selected from each element set which accords with the regional characteristics of the target local map template, the global map is obtained through the target local map template at each template position, on the basis of ensuring the map randomness, the generated map has relevance among all regions, and the map continuity is favorably ensured.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a map generation method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a global map template provided in an embodiment of the present application;
FIG. 3 is a schematic diagram of a local map template provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of an idea for generating a global map provided in an embodiment of the present application
Fig. 5 is a schematic structural diagram of a map generating apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a map generation method, a map generation device, a terminal and a storage medium. In particular, the present embodiments provide methods applicable to a map generation apparatus that may be integrated in a computer device. The computer device may be a terminal or other device, such as a mobile phone, a tablet computer, a notebook computer, a desktop computer, or other device.
The computer device may also be a device such as a server, and the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, middleware service, a domain name service, a security service, a CDN, and a big data and artificial intelligence platform, but is not limited thereto.
In the embodiment of the application, the provided map generation method can be applied to games, and before a game player starts the game, a game map required by the whole game is generated in a game terminal; wherein a large number of map elements constitute a complete map. The map generation method comprises the following steps: determining template positions of all local map templates in the global map template and template set marks of the local map templates at all the template positions, wherein the template set marks are used for indicating the template set to which the corresponding local map template belongs; for each template position, selecting a target local map template with a target mark on each template position from a corresponding template set with the target mark based on the template set mark, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled on each element filling position belongs, and the target mark is used for indicating a region characteristic corresponding to the global map template; based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template; and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
The method comprises the steps of firstly drawing a local map template, and then constructing a map master plate, namely a global map, in a mode of arranging a map through the template; in the process of drawing the local map template, drawing the template by using element sets as units instead of fixed elements, wherein one element set comprises at least one map element, and filling target map elements selected from each element set to each element position of the local map template to obtain the local map template; in the process of drawing the global map, a local map template set is used as a unit, a target local map template is selected from each local map template set, and the global map is obtained through the target local map templates on each template position in the global map. Therefore, the modular map design in the scheme can reduce the manufacturing difficulty of the map and accelerate the manufacturing speed of the map. The method comprises the steps of setting marks on a template set, a local map template, an element set and map elements, selecting a target local map template with a target mark from the template set with the target mark, selecting the map elements with the target mark from the element set with the target mark, and filling the map elements to the element positions of the target local map template, wherein the relevance is provided among all regions of the obtained global map on the basis of ensuring the map randomness, so that the method is favorable for ensuring the map continuity and realizing the mass production of large-size maps.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
Embodiments of the present application will be described from the perspective of a map generation apparatus, which may be specifically integrated in a computer device.
An embodiment of the present application provides a map generation method, and as shown in fig. 1, a flow of the method of the present embodiment may be as follows:
101. and determining the template position of each local map template in the global map template and the template set identifier of the local map template at each template position, wherein the template set identifier is used for indicating the template set to which the corresponding local map template belongs.
In the embodiment of the application, the global map template to be generated is composed of local map templates, each local map template is equivalent to a jigsaw puzzle forming the global map, and the functions of the local map templates are consistent with those of the global map. The method and the device adopt the idea of drawing the map by the template, map drawing is carried out in a template mode in advance, and then the local template is placed in the map. Firstly, the position of each local map template in the global map to be generated is determined, the position is set as a template position, and a local map template set to which the local map template placed at each template position belongs is determined, namely, a template set identifier of the local map template at each template position is determined, and the template set identifier is used for indicating the local map template set to which the corresponding local map template belongs.
In the embodiment of the application, the local map template is drawn in an element set mode, the positions of map elements in the local map template are determined, the map elements selected from the corresponding element set are filled in the corresponding element positions, and the selected map elements are set as target map elements, so that a large number of drawn local map templates are obtained. According to the method and the device, the global map is drawn in a mode of selecting the target local map template from the local map template set, all the obtained local map templates need to be divided, and at least one template set is obtained and used for drawing the global map at the later stage.
The method comprises the steps of obtaining at least one template attribute of each local map template, and dividing each local map template into at least one local map template set based on the template attributes of the local map templates. And in the same divided local map template set, the local map templates contained in the local map template set have at least one same template attribute. The template attributes may include the function, design purpose, level or difficulty, size, etc. of the local map template. For example, the present application may configure a set of local map templates with the same function, design purpose, level or difficulty, and size among all the local map templates. When the global map is drawn, one local map template may be randomly selected from the local map template set, that is, the local map templates in the local map template set may be considered to be replaceable with each other, and the mutual replacement does not affect the drawing of the final global map. The sizes of the local map templates in one local map template set are preferably set to be the same, so that the target local map template can be replaced conveniently without generating design problems.
If the local map template set corresponding to the template position only contains one local map template, the local map template set is considered to be in the form of the local map template set; therefore, the consistency of the data structure can be kept, and later adjustment is facilitated, namely if other sets dividing modes are adopted in the later period, the other local map templates can replace or replace the local map template, and only the content in the template set needs to be modified.
In the embodiment of the application, after each local map template in a global map is divided into at least one local map template set based on the template attribute information of the local map template, the template set identification of the local map template set and the template identification of the local map template are obtained; and generating the indication information of the local map template set according to the template set identification and the template identification of the corresponding local map template in the local map template set. The obtaining of the template set identifier and the template identifier may be numbering the local map template set and the local map template. For example, one local map template set comprises 4 local map templates, and the difficulty of the 4 local map templates is the same; the template set identification of the local map template is 20001, the template library name is a level 1 resource template library, and the template identifications of the 4 local map templates are 1001, 1002, 1003 and 1004 respectively. The data is used as the indication information of the local map template, and the representatives 1001 to 1004 are 4 local map templates with the same difficulty in the game, and can be used in a mutual replacement way; if the set of local map templates 20001 is specified at a template location of the global map, then a representation of any of the four local map templates may appear at that template location. If the template sizes of the four partial map templates are the same, template size information may also be entered into the indication information of the template set. The method comprises the following steps of setting a partition rule, wherein the number of local map templates in a template set is not limited, and the local map templates are obtained based on the set partition rule; the present application is not limited to the setting of the template set identifier and the template identifier, and the above-mentioned number is only an example, and may be other setting manners, such as a letter mark or other distinguishable identifiers.
In the embodiment of the application, when the global map template is drawn, the template position of each local map template is determined, that is, the position coordinates of each local map template in the global map template are obtained, and the coordinate point of each local map template in the plane rectangular coordinate system can be obtained by using the coordinates in the plane rectangular coordinate system established by using the lower left corner of the global map as the origin. For example, at the coordinates 2030, the 4450 position corresponds to a local map template set with the template set being identified as 20001, and any one of the local map templates in the template set can be selected in the actual map generation process. In this way, the configuration of the global map template is completed, please refer to fig. 2, and fig. 2 is a schematic structural diagram of the global map template according to an embodiment of the present application. As shown in fig. 2, each block 201 in the diagram represents a local map template set, which together form a global map template 202; the game map with the whole space as the background is formed by considering that the game map with the big size is a template set of cities and scientific research institutions, the game map with the medium size is a template set of activity areas of players, and the game map with the small size is a template set of resources and small momentum, and is used by one server.
In the embodiment of the application, before determining the template position of each local map template in the global map template and the template set identifier of the local map template at each template position, generation information of the global map template to be generated is acquired and set as second template generation information. The second template generation information comprises template set identifications of template sets to which local map templates to be contained in the global map template to be generated belong and template positions of each local map template to be contained; and generating information based on the second template, and obtaining the global map template according to the corresponding relation between the template position and the template set identifier in the global map template to be generated.
Where a target local map template is randomly selected from a set of templates and a target map element is randomly selected from a set of elements, although a large number of generated maps can be randomized, these maps may have differences in randomization but lack relevance. Therefore, in order to make the generated global map template have relevance, a random intervention mechanism can be used to set labels for the template set, the local map template, the element set and the map elements, and the labels being the same indicate that the templates have the same certain characteristic or characteristics (or regional characteristics), so that the templates have relevance. Wherein, if a random intervention mechanism is adopted, a target mark can be determined, the target mark is used for indicating the regional characteristics corresponding to the global map template, and the step of acquiring the second template generation information of the global map template to be generated comprises the following steps: acquiring the template position of a local map template to be included in the global map template to be generated on the global map template to be generated; acquiring a mark of each template set, and setting the mark as a fourth mark; determining a template set with the fourth mark being the same as the target mark as a candidate template set; selecting a target template set corresponding to each template position from each candidate template set, and acquiring a template set identifier of the target template set corresponding to each template position; and obtaining second template generation information of the global map template to be generated based on the template position and the template set identification. Therefore, after the regional features are divided and the marks are set respectively, the target template set can be selected from the candidate template sets with the same marks, so that the target template set has the regional features corresponding to the marks.
For example, in order to make the finally generated global map have regional features, various regional features may be predefined, for example, if a part of the region features a, which is labeled as a1, the label a1 is recorded in the indication information of all local map template sets of the region. When all the local map template sets are indexed in the first step of the map, and the corresponding local map template set at each template position is determined, the local map template set with the mark A1 is preferentially selected, and the corresponding template set mark corresponds to each template position. The characteristics of each region of the map can be defined manually or by a machine, which is not limited in the present application.
102. And selecting a target local map template with a target mark at each template position from the corresponding template set with the target mark based on the template set mark, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating the regional characteristics corresponding to the global map template.
In the embodiment of the application, after the template positions in the global map and the template set identifications corresponding to the template positions are determined, the target local map template is selected from the corresponding local map template set based on the template set identifications. An element filling position of at least one map element is indicated in the local map template, and an element set identifier of the map element at the element filling position is used for indicating an element set to which the corresponding map element belongs.
In the embodiment of the present application, before selecting a target local map template at each template position from a corresponding template set based on a template set identifier, generation information of the local map template needs to be acquired first and is set as first template generation information. The first template generation information comprises element set identifications to which elements required to be contained in the local map template to be generated belong and element filling positions of each map element required to be contained; and generating information based on the first template, and obtaining the local map template according to the corresponding relation between the element filling position and the element set identifier in the local map template to be generated.
When determining a map element to be filled at an element filling position in a local map template, firstly, determining the function, the design purpose, and the like of the local map template, so that after the map element to be filled is filled at the element filling position, the generated local map template can realize the function or achieve the design purpose.
In order to make the finally generated global map template have relevance, a random intervention mechanism is also needed to make the local map template have relevance when the local map template is generated. The step of "obtaining first template generation information of the local map template to be generated" includes: acquiring element filling positions of map elements to be contained in a local map template to be generated on the local map template to be generated; acquiring a mark of the element set, and setting the mark as a second mark; determining the element set with the same second mark and the target mark as a candidate element set; selecting a target element set corresponding to each element filling position from the candidate element sets of each local map template, and acquiring an element set identifier of the target element set corresponding to each element filling position; and obtaining first template generation information of the local map template to be generated based on the element filling position and the element set identification. Therefore, after the regional features are divided and the marks are set respectively, the target element set can be selected from the candidate element sets with the same marks, so that the target element set has the regional features corresponding to the marks.
For example, various region characteristics may be predefined, such as a part of the region having a characteristic a, denoted as a1, in which the mark a1 is recorded in the indication information of all the local map templates in the region, and a part of the region having a characteristic B, denoted as B1, in which the mark B1 is recorded in the indication information of all the local map templates in the region. If the characteristic of the generated global map is set to be A, in the process of selecting target local map templates from each local map template set, the local map template with the mark A1 in the indication information is preferentially selected, and one local map template with the mark A1 is selected as the target local map template; wherein if there is no local map template with label a1 in the corresponding set of local map templates at the template position, the target local map template is still randomly selected. In selecting a target element set from each element set for the element filling position of each target local map template, the element set with the label A1 is preferentially selected, and one element set with the label A1 is selected as the target element set; wherein, if there is no element set with label a1 in the element set corresponding to the element filling position, the target element set is still randomly selected.
In order to make the finally generated global map template have relevance, a target local map template with a target mark needs to be selected from the template set, and the specific steps are as follows: determining a mark of the local map template, and setting the mark as a third mark; determining a local map template with the same third mark and the target mark as a candidate local map template; and selecting a target local map template at each template position from the candidate local map templates. Therefore, after the regional characteristics are divided, only the local map template with the same target mark corresponding to the regional characteristics is selected from the local map templates corresponding to the template set identifications corresponding to the template positions to serve as the target local map template, so that the selected target local map template has the regional characteristics corresponding to the target mark.
103. And based on the element set identification in the target local map template, selecting the target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain the local map corresponding to the target local map template.
In the embodiment of the application, after the target local map template is selected, based on the element set identifier in the target local map template, the target map elements are selected from the element set corresponding to the identifier, and the selected target map elements are filled in the element positions of the target local map, so that the local map corresponding to the target local map template is finally obtained.
In the embodiment of the application, at least one element attribute of all preset map elements is obtained; the map element identification method comprises the steps of dividing preset map elements into at least one element set based on element attributes, and setting element set identifications for the element sets, wherein at least one element attribute of the map elements in the same element set is the same. For example, 24 resource points are preset in a certain game map, one resource point is regarded as a map element, the resource storage and the acquisition difficulty of the map element are regarded as two element attributes, and the resource points with the same resource storage and acquisition difficulty are regarded as a level; it can be considered that 24 resource points in the game are divided into 6 levels, each level has 4 kinds, and the output resource types and appearance expressions of the 4 resource points are different, but the resource reserves and the acquisition difficulty are consistent, the sizes are the same, and the resource points can be mutually replaced in design without causing problems. Therefore, the resource points can be divided into 6 resource groups of 1-6 levels, each resource group includes 4 resource points of this level, the resource groups can be named as a level 1 resource point library, a level 2 resource point library … …, a level 6 resource point library, and the like, and each resource group is an element set, and an element set identifier is set for each resource group for subsequent template drawing.
In which all possible map elements on the map, such as resources, buildings, cities, special facilities, etc., are sorted and summarized. The grouping division is not limited to a fixed category, and may be an inherent attribute, or a design idea, such as that in an element set named "level 1 important place", the element set may include a level 1 city, a level 1 special facility, a level 3 resource point, and the like, and all have the attribute of "important place". The same element can also exist in a plurality of element sets in a crossed mode, the element sets are placed at the designated positions of the map, and any map element contained in the element sets meets the purpose of map design when the element filling position appears. The map elements divided into the same element set are preferably kept the same size, which facilitates later replacement.
For example, 4 map elements are contained in one element set, and the functions of the 4 map elements are the same; let the element set id of the element set be 11, the element set name be 1-level resource point, and the element ids of the 4 map elements be 10101, 10102, 10103, 10104, respectively. The data is used as the indication information of the element set, which represents that 10101 to 10104 are 4 map elements with the same function in the game, and the map elements can be used in a mutual replacement way; if the set of elements 11 is specified at an element fill location of the local map template, then a representation of any of the four map elements may appear at the element fill location. In the embodiment of the application, when the local map template is drawn, the element filling position of each element set is determined, namely the position coordinates of each element set in the local map template are obtained; a local map template generally includes tens to hundreds of elements, and the position coordinates of each element may be coordinates in a planar rectangular coordinate system established with the lower left corner of the local map template as an origin, and coordinate points of each element set in the planar rectangular coordinate system are obtained. For example, in the coordinates 211 and 333, the position corresponds to the element set whose element set is identified as 11, and in the process of generating the actual local map template, any one of the map elements may be selected, so as to complete the configuration of the local map, in this embodiment of the present application, please refer to fig. 3, where fig. 3 is a schematic diagram of a local map template provided in this embodiment of the present application. As shown in fig. 3, in the local map template 301, each circle 302 represents a set of elements, not a fixed element, but a set of elements including resources, buildings, and cities. Optionally, the box 303 in the local map template 301 is an affiliated range of a city, and may also be considered as a map element containing an area; the block 303 in fig. 3 is merely an example, and is not necessarily a square, and may have another shape. Wherein, the display form of the element set in the local map template includes but is not limited to a circle shape; in the actual map generation process, the size, display color, and the like of each element set may be set, for example, the display colors of the element sets corresponding to a certain category are the same or the sizes are the same.
If the location is actually a fixed map element, the location is generally performed in the form of an element set, but the element set has only one fixed map element. By doing so, on one hand, the consistency of the data structure can be maintained, and on the other hand, a room for later adjustment is reserved; that is, if it is considered that other elements can be replaced or the element can be replaced later, only the content of the element set needs to be modified, and the element in all the templates does not need to be modified, so that the purpose of batch modification can be achieved at will.
In the embodiment of the application, in order to make the generated map have relevance, a mark also needs to be set in the map element, and the map element with the same mark as a preset mark is selected as a target map element to form a local map template. The method comprises the following specific steps: determining a first mark of a map element in an element set corresponding to an element set identifier based on the element set identifier in the target local map template; determining map elements with the same first marks and target marks in each element set as candidate map elements; a target map element is selected from the candidate map elements of each element set. For example, if the regional characteristic of the generated map is determined to be a and the mark is a1, the mark corresponding to the target local map template selected according to the mark is also a 1; and selecting the map element marked with A1 from the corresponding element sets in the target local map template as candidate map elements, and selecting the target map element corresponding to each element filling position.
104. And generating the global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
In the embodiment of the application, after determining each target local map template in all map templates and the template position of each target local map template in the global map template, the global map is generated.
In the embodiment of the present application, please refer to fig. 4, and fig. 4 is a schematic diagram of a generating concept of a global map provided in the embodiment of the present application. When the map is actually drawn, the map is divided into 3 levels to be built step by step, namely, map elements- > a local map template- > a global map template. Therefore, it is necessary to prepare the contents of each level in a hierarchical manner, and finally perform the randomization process and output under a certain random rule. For convenience of generalization of the map and the template, the map and the template are designed to be square, that is, the length, the width and the like. As shown in fig. 4, the global map is composed of local maps, and at each template position of the global map, one target local map template is selected from the corresponding template set, i.e., the random set M of templates in fig. 4, and each target local map template is placed at each template position. One local map template (M1 to M4) in the map is composed of target map elements selected from a set of elements corresponding to each element position, and a random set C of elements (i.e., an element set) in fig. 4 contains a plurality of map elements, such as elements C1 to C4 in the map.
The local map template on each template position is determined through randomization, the determination of the whole global map template is completed, and at the moment, specific data of all positions and the local map templates contained in a complete map are obtained; and determining map elements on the filling positions of each element through randomization, and determining specific identifications of all map elements in all local map templates, so as to determine all map elements in the whole global map, namely finishing the output of map data. Thus, since a particular element is designated as a set of elements, rather than a particular element, only a re-randomization selection is required to form an arbitrary number of maps of completely different designs that maintain the same functionality. As long as the drawing quality of the element set, the template set and the global map template is ensured, all generated maps can ensure the quality, and the test cost is very low.
In the embodiment of the present application, the first mark to the fourth mark are actually the region division characteristics of the setting of the identifier, and only the mark is set in different objects, and the setting form of the mark is not limited in the present application. By setting the marks of the map elements, the element set, the local map template and the template set, the map with more characteristics can be generated in batches, and the problems that the map is generated randomly and the area characteristics are not generated are solved. When a single map is generated, a region may be manually defined, for example, a part of the region may be characterized by a, and the identifier may be set to a1, so that all the template libraries in the region will carry the parameters of a 1. When all the template libraries are indexed for selection in the first step of map generation, the template library with the A1 parameters will preferentially select the template with the A1 parameters, if not still randomly selected. Similarly, when the templates randomly determine the map elements therein, the map element with a1 is preferably selected, and the map completed in this way will have more templates and elements with a1 mark appearing on the area set as a. Therefore, before outputting a map data, the area setting is performed on the map master in advance, and finally a map with more area division characteristics can be obtained. At present, the method can be adopted, each map specifies the control momentum of different areas, such as company A or country B, so that the elements of the area can adopt more elements of the company A or the country B, and a map meeting the server momentum setting is formed. The setting of the area is not required to be very accurate, the workload is low, secondary inspection is not required, and the requirement that the maps with different potential distribution can be generated in batches by only using one map master mask can be met.
In order to better implement the method, correspondingly, the embodiment of the present application further provides a map generation apparatus, which may be specifically integrated in a terminal, for example, in the form of a client.
Referring to fig. 5, the map generating apparatus includes a determining unit 501, a selecting unit 502, a filling unit 503, and a generating unit 504, as follows:
a determining unit 501, configured to determine a template position of each local map template in the global map template and a template set identifier of the local map template at each template position, where the template set identifier is used to indicate a template set to which the corresponding local map template belongs;
a selecting unit 502, configured to select, based on the template set identifier, a target local map template with the target identifier at each template position from a corresponding template set with the target identifier, where the local map template indicates at least one element filling position and an element set identifier of an element set to which a map element that needs to be filled at the element filling position belongs, and the target identifier is used to indicate a regional characteristic corresponding to the global map template;
a filling unit 503, configured to select, based on an element set identifier in the target local map template, a target map element with the target marker from a corresponding element set with the target marker, and fill the target map element to an element position corresponding to the element set identifier, so as to obtain a local map corresponding to the target local map template;
a generating unit 504, configured to generate a global map based on a local map corresponding to each target local map template and a template position of the target local map template in the global map template.
In an optional embodiment, the selecting unit 502 further includes:
determining a first mark of a map element in an element set corresponding to an element set identifier based on the element set identifier in the target local map template;
determining map elements with the same first mark and the target mark in each element set as candidate map elements;
selecting the target map element from the candidate map elements of each of the element sets.
In an optional embodiment, the determining unit 501 further includes:
acquiring at least one template attribute of the local map template;
and dividing the local map template into at least one template set based on the template attributes, and setting a template set identifier for each template set, wherein at least one template attribute of the local map templates in the same template set is the same.
In an optional embodiment, the selecting unit 502 further includes:
acquiring first template generation information of a local map template to be generated, wherein the first template generation information comprises element set identifications of element sets to which map elements need to be contained in the local map template to be generated and element filling positions of each map element need to be contained;
and generating information based on the first template, and obtaining the local map template according to the corresponding relation between the element filling position and the element set identifier in the local map template to be generated.
In an optional embodiment, the selecting unit 502 further includes:
acquiring element filling positions of map elements required to be contained in the local map template to be generated on the local map template to be generated;
acquiring a second mark of the element set;
determining the element set of the second mark which is the same as the target mark as a candidate element set;
selecting a target element set corresponding to each element filling position from the candidate element sets of each local map template, and acquiring an element set identifier of the target element set corresponding to each element filling position;
and obtaining the first template generation information of the local map template to be generated based on the element filling position and the element set identifier.
In an optional embodiment, the selecting unit 502 further includes:
determining a third mark corresponding to a local map template in a template set corresponding to the template set identifier based on the template set identifier;
determining a local map template with the third mark being the same as the target mark as a candidate local map template;
and selecting a target local map template at each template position from the candidate local map templates.
In an optional embodiment, the filling unit 503 further includes:
acquiring at least one element attribute of a preset map element;
and dividing the map elements into at least one element set based on the element attributes, and setting element set identifiers for the element sets, wherein at least one element attribute of the map elements in the same element set is the same.
In an optional embodiment, the determining unit 501 further includes:
acquiring second template generation information of the global map template to be generated, wherein the second template generation information comprises template set identifications of template sets to which local map templates need to be included in the global map template to be generated and template positions of each local map template need to be included;
and generating information based on the second template, and obtaining the global map template according to the corresponding relation between the template position and the template set identifier in the global map template to be generated.
In an optional embodiment, the determining unit 501 further includes:
acquiring the template position of a local map template to be included in the global map template to be generated on the global map template to be generated;
acquiring a fourth mark of each template set;
determining the template set with the same fourth mark and the target mark as a candidate template set;
selecting a target template set corresponding to each template position from each candidate template set, and acquiring a template set identifier of the target template set corresponding to each template position;
and obtaining the second template generation information of the global map template to be generated based on the template position and the template set identifier.
Correspondingly, the embodiment of the present application further provides a terminal, where the terminal may be a terminal device such as a smart phone, a tablet Computer, a notebook Computer, a touch screen, a game machine, a Personal Computer (PC), a Personal Digital Assistant (PDA), and the like. As shown in fig. 6, fig. 6 is a schematic structural diagram of a terminal provided in the embodiment of the present application. The terminal 600 includes a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, and a computer program stored on the memory 602 and executable on the processor. The processor 601 is electrically connected to the memory 602. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The processor 601 is a control center of the terminal 600, connects various parts of the entire terminal 600 using various interfaces and lines, performs various functions of the terminal 600 and processes data by running or loading software programs and/or modules stored in the memory 602, and calling data stored in the memory 602, thereby performing overall monitoring of the terminal 600.
In this embodiment of the application, the processor 601 in the terminal 600 loads instructions corresponding to processes of one or more application programs into the memory 602 according to the following steps, and the processor 601 runs the application programs stored in the memory 602, thereby implementing various functions:
determining template positions of all local map templates in the global map template and template set marks of the local map templates at all the template positions, wherein the template set marks are used for indicating the template set to which the corresponding local map template belongs; selecting a target local map template with a target mark at each template position from corresponding template sets with the target marks based on the template set marks, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating regional characteristics corresponding to the global map template; based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template; and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 6, the terminal 600 further includes: a touch display screen 603, a radio frequency circuit 604, an audio circuit 605, an input unit 606, and a power supply 607. The processor 601 is electrically connected to the touch display screen 603, the radio frequency circuit 604, the audio circuit 605, the input unit 606, and the power supply 607. Those skilled in the art will appreciate that the terminal structure shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 603 can be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 603 may include a display panel and a touch panel. Among other things, the display panel may be used to display information input by or provided to the user and various graphical user interfaces of the terminal, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 601, and can receive and execute commands sent by the processor 601. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 601 to determine the type of the touch event, and then the processor 601 provides a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 603 to implement input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 603 can also be used as a part of the input unit 606 to implement an input function.
The rf circuit 604 may be configured to transmit and receive rf signals to establish wireless communication with a network device or other terminals through wireless communication, and transmit and receive signals with the network device or other terminals.
The audio circuit 605 may be used to provide an audio interface between the user and the terminal through a speaker, microphone. The audio circuit 605 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 605 and converted into audio data, and the audio data is processed by the audio data output processor 601, and then transmitted to another terminal via the radio frequency circuit 604, or the audio data is output to the memory 602 for further processing. The audio circuit 605 may also include an earpiece jack to provide communication of a peripheral headset with the terminal.
The input unit 606 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
A power supply 607 is used to power the various components of the terminal 600. Optionally, the power supply 607 may be logically connected to the processor 601 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 607 may also include any component including one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 6, the terminal 600 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the terminal provided in the embodiment of the present application may determine the template position of each local map template in the global map template and the template set identifier of the local map template at each template position, where the template set identifier is used to indicate the template set to which the corresponding local map template belongs; selecting a target local map template with a target mark at each template position from corresponding template sets with the target marks based on the template set marks, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating regional characteristics corresponding to the global map template; based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template; and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer programs can be loaded by a processor to execute the steps of any one of the map generation methods provided by the embodiments of the present application. For example, the computer program may perform the steps of:
determining template positions of all local map templates in the global map template and template set marks of the local map templates at all the template positions, wherein the template set marks are used for indicating the template set to which the corresponding local map template belongs; selecting a target local map template with a target mark at each template position from corresponding template sets with the target marks based on the template set marks, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating regional characteristics corresponding to the global map template; based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template; and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps of any map generation method provided in the embodiment of the present application, beneficial effects that can be achieved by any map generation method provided in the embodiment of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the apparatus, the terminal and the storage medium for generating a map provided by the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A map generation method, comprising:
determining template positions of all local map templates in the global map template and template set marks of the local map templates at all the template positions, wherein the template set marks are used for indicating the template set to which the corresponding local map template belongs;
selecting a target local map template with a target mark at each template position from corresponding template sets with the target marks based on the template set marks, wherein the local map template indicates at least one element filling position and an element set mark of an element set to which a map element needing to be filled at the element filling position belongs, and the target mark is used for indicating regional characteristics corresponding to the global map template;
based on the element set identification in the target local map template, selecting a target map element with the target mark from the corresponding element set with the target mark, and filling the target map element to the element position corresponding to the element set identification to obtain a local map corresponding to the target local map template;
and generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
2. The map generation method of claim 1, wherein selecting the target map element with the target mark from the corresponding set of elements with the target mark based on the set identification of elements in the target local map template comprises:
determining a first mark of a map element in an element set corresponding to an element set identifier based on the element set identifier in the target local map template;
determining map elements with the same first mark and the target mark in each element set as candidate map elements;
selecting the target map element from the candidate map elements of each of the element sets.
3. The map generation method of claim 1, further comprising, prior to the determining the template location of each of the global map templates and the template set identification of the local map template at each of the template locations:
acquiring at least one template attribute of the local map template;
and dividing the local map template into at least one template set based on the template attributes, and setting a template set identifier for each template set, wherein at least one template attribute of the local map templates in the same template set is the same.
4. The map generation method of claim 1, further comprising, before the selecting a target local map template with the target mark at each template position from a corresponding set of templates with target marks based on the template set identification,:
acquiring first template generation information of a local map template to be generated, wherein the first template generation information comprises element set identifications of element sets to which map elements need to be contained in the local map template to be generated and element filling positions of each map element need to be contained;
and generating information based on the first template, and obtaining the local map template according to the corresponding relation between the element filling position and the element set identifier in the local map template to be generated.
5. The map generation method according to claim 4, wherein the obtaining of the first template generation information of the local map template to be generated includes:
acquiring element filling positions of map elements required to be contained in the local map template to be generated on the local map template to be generated;
acquiring a second mark of the element set;
determining the element set of the second mark which is the same as the target mark as a candidate element set;
selecting a target element set corresponding to each element filling position from the candidate element sets of each local map template, and acquiring an element set identifier of the target element set corresponding to each element filling position;
and obtaining the first template generation information of the local map template to be generated based on the element filling position and the element set identifier.
6. The map generation method of claim 1, wherein selecting a target local map template with a target mark at each template position from a corresponding set of templates with a target mark based on the template set identification comprises:
determining a third mark corresponding to a local map template in a template set corresponding to the template set identifier based on the template set identifier;
determining a local map template with the third mark being the same as the target mark as a candidate local map template;
and selecting a target local map template at each template position from the candidate local map templates.
7. The map generation method of claim 1, further comprising, before the selecting a target map element with the target marker from a corresponding set of elements with the target marker based on a set identification of elements in the target local map template:
acquiring at least one element attribute of a preset map element;
and dividing the map elements into at least one element set based on the element attributes, and setting element set identifiers for the element sets, wherein at least one element attribute of the map elements in the same element set is the same.
8. The map generation method of claim 1, further comprising, prior to the determining the template location of each of the global map templates and the template set identification of the local map template at each of the template locations:
acquiring second template generation information of the global map template to be generated, wherein the second template generation information comprises template set identifications of template sets to which local map templates need to be included in the global map template to be generated and template positions of each local map template need to be included;
and generating information based on the second template, and obtaining the global map template according to the corresponding relation between the template position and the template set identifier in the global map template to be generated.
9. The map generation method according to claim 8, wherein the obtaining second template generation information of the global map template to be generated includes:
acquiring the template position of a local map template to be included in the global map template to be generated on the global map template to be generated;
acquiring a fourth mark of each template set;
determining the template set with the same fourth mark and the target mark as a candidate template set;
selecting a target template set corresponding to each template position from each candidate template set, and acquiring a template set identifier of the target template set corresponding to each template position;
and obtaining the second template generation information of the global map template to be generated based on the template position and the template set identifier.
10. A map generation apparatus, comprising:
the map processing device comprises a determining unit, a searching unit and a judging unit, wherein the determining unit is used for determining template positions of all local map templates in a global map template and template set identifications of the local map templates at all the template positions, and the template set identifications are used for indicating template sets to which the corresponding local map templates belong;
a selecting unit, configured to select, based on the template set identifier, a target local map template with a target identifier at each template position from a corresponding template set with the target identifier, where the local map template indicates at least one element filling position and an element set identifier of an element set to which a map element that needs to be filled at the element filling position belongs, and the target identifier is used to indicate a regional characteristic corresponding to the global map template;
the filling unit is used for selecting a target map element with the target mark from a corresponding element set with the target mark based on an element set identifier in the target local map template, and filling the target map element to an element position corresponding to the element set identifier to obtain a local map corresponding to the target local map template;
and the generating unit is used for generating a global map based on the local map corresponding to each target local map template and the template position of the target local map template in the global map template.
11. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the map generation method according to any of claims 1-9 are implemented when the computer program is executed by the processor.
12. A storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements the steps of the map generation method as claimed in any one of claims 1-9.
CN202110625337.1A 2021-06-04 2021-06-04 Map generation method, device, terminal and storage medium Pending CN113332722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110625337.1A CN113332722A (en) 2021-06-04 2021-06-04 Map generation method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110625337.1A CN113332722A (en) 2021-06-04 2021-06-04 Map generation method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN113332722A true CN113332722A (en) 2021-09-03

Family

ID=77474420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110625337.1A Pending CN113332722A (en) 2021-06-04 2021-06-04 Map generation method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113332722A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107630A (en) * 2005-01-25 2008-01-16 科乐美数码娱乐株式会社 Image generation device, automatic generation method, recording medium, and program
CN106110655A (en) * 2016-06-22 2016-11-16 广州多益网络股份有限公司 One drawing generating method randomly and client, service end and system
CN107466469A (en) * 2017-02-17 2017-12-12 深圳前海达闼云端智能科技有限公司 Method for drawing map, its high in the clouds platform and server
CN108573513A (en) * 2017-03-14 2018-09-25 腾讯科技(深圳)有限公司 Random element generation method and random element generating means
US20190206124A1 (en) * 2017-12-29 2019-07-04 Baidu Online Network Technology (Beijing) Co., Ltd Method and apparatus for creating map and positioning moving entity
CN111340704A (en) * 2020-02-25 2020-06-26 网易(杭州)网络有限公司 Map generation method, map generation device, storage medium and electronic device
CN111603769A (en) * 2020-06-28 2020-09-01 上海完美时空软件有限公司 Game content generation method and device, storage medium and computer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101107630A (en) * 2005-01-25 2008-01-16 科乐美数码娱乐株式会社 Image generation device, automatic generation method, recording medium, and program
CN106110655A (en) * 2016-06-22 2016-11-16 广州多益网络股份有限公司 One drawing generating method randomly and client, service end and system
CN107466469A (en) * 2017-02-17 2017-12-12 深圳前海达闼云端智能科技有限公司 Method for drawing map, its high in the clouds platform and server
CN108573513A (en) * 2017-03-14 2018-09-25 腾讯科技(深圳)有限公司 Random element generation method and random element generating means
US20190206124A1 (en) * 2017-12-29 2019-07-04 Baidu Online Network Technology (Beijing) Co., Ltd Method and apparatus for creating map and positioning moving entity
CN111340704A (en) * 2020-02-25 2020-06-26 网易(杭州)网络有限公司 Map generation method, map generation device, storage medium and electronic device
CN111603769A (en) * 2020-06-28 2020-09-01 上海完美时空软件有限公司 Game content generation method and device, storage medium and computer equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113797546A (en) * 2021-09-18 2021-12-17 珠海金山网络游戏科技有限公司 Resource processing method and device
CN113797546B (en) * 2021-09-18 2024-02-23 珠海金山数字网络科技有限公司 Resource processing method, device, computing equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111124412B (en) Game page drawing method, device, equipment and storage medium
CN110478898B (en) Configuration method and device of virtual scene in game, storage medium and electronic equipment
CN112184469B (en) Group interaction method, device, equipment and storage medium
WO2023213037A1 (en) Hair virtual model rendering method and apparatus, computer device, and storage medium
CN113952720A (en) Game scene rendering method and device, electronic equipment and storage medium
CN112329184A (en) Network architecture configuration information generation method and device, storage medium and electronic equipment
CN111694910A (en) Electronic map display method, related device and storage medium
CN113332722A (en) Map generation method, device, terminal and storage medium
CN113332719A (en) Virtual article marking method, device, terminal and storage medium
CN110827400B (en) Method and device for generating model of object in three-dimensional scene and terminal
CN111611509B (en) Answer result display method, device and storage medium
CN113703895A (en) Carousel method, system, device, equipment and storage medium for billboard
CN112333029A (en) Network architecture configuration information generation method and device, storage medium and electronic equipment
CN110221891A (en) A kind of draw data acquisition methods, device, storage medium and terminal
CN113625968B (en) File authority management method and device, computer equipment and storage medium
CN116681846A (en) Map generation method and device, electronic equipment and storage medium
CN116954606A (en) Control drawing method, device, computer equipment and computer readable storage medium
CN114579193A (en) Multi-system loading method, device, equipment and storage medium
CN114159798A (en) Scene model generation method and device, electronic equipment and storage medium
CN115794247A (en) Interface setting method and device, electronic equipment and readable storage medium
CN112819938A (en) Information processing method and device and computer readable storage medium
US20230016256A1 (en) Group user migration method, apparatus and device, and storage medium
CN108665526A (en) A kind of image processing method and system
CN114429510A (en) Funnel graph generation method and device, electronic equipment and computer-readable storage medium
CN117149334A (en) Prompt message processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination