Scene map drawing method and computer storage medium
A computer storage and map drawing technology, applied in the computer field, to achieve the effect of simple and flexible drawing and reducing the space occupied
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0016] refer to figure 1 , shows a flow chart of steps of a method for drawing a scene map according to Embodiment 1 of the present invention.
[0017] The scene map drawing method of the present embodiment includes the following steps:
[0018] Step S102: Determine the position information of the unit to be drawn in the map grid of the scene map, and determine the drawing information of the unit to be drawn according to the position information.
[0019] Wherein, the drawing information includes map element configuration information of the unit to be drawn and map element attribute information of the unit to be drawn.
[0020] In this embodiment, the scene map includes, but is not limited to, a scene map of a game level, such as a scene map of a game level in an online classroom. The map grid of the scene map uses the grid as a unit to represent the quality of the scene map object or the spatial distribution of data features. The scene map can be divided into multiple units...
Embodiment 2
[0037] refer to figure 2 , shows a flow chart of steps of a method for drawing a scene map according to Embodiment 2 of the present invention.
[0038] The scene map drawing method of the present embodiment includes the following steps:
[0039] Step S202: Determine the background image and map grid of the scene map.
[0040] In this embodiment, the map grid and the background picture can be preset. For example, it can be determined that the drawn map grid is a 4*4 map grid, and the size of each unit in the map grid is 50*50 pixels , then the size of the background image can be 200*200 pixels. According to the 4*4 map grid, the background image can be divided into 16 50*50 images, which are drawn first, and then the subsequent map element drawing process is performed. But not limited thereto, in practical applications, if the size of the background picture does not match the map grid, the background picture may be scaled or cropped.
[0041] Of course, in this embodiment, ...
Embodiment 3
[0149] According to an embodiment of the present invention, a computer storage medium is provided, the computer storage medium is stored with: used to determine the position information of the unit to be drawn in the map grid of the scene map, and determine the position of the unit to be drawn according to the position information Instructions for drawing information, the drawing information includes map element configuration information of the unit to be drawn and map element attribute information of the unit to be drawn; used to determine the map element that needs to be performed in the unit to be drawn according to the map element configuration information An instruction for drawing operations; an instruction for acquiring a map element picture according to the map element configuration information, and drawing the map element picture in the unit to be drawn corresponding to the location information according to the map element attribute information.
[0150] Optionally, th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


