Patent ID: 11887255
Assignee: SHANGHAI LILITH NETWORK TECHNOLOGY COMPANY LIMITED
Field: Furniture, games (Other fields)
Classification: CPC G  A | IPC A  G

Claim 0:
1. A method for rendering a boundary of a map area within a game map, comprising:
obtaining the boundary of the map area within the game map, and expanding the boundary toward the inside of the boundary along a normal direction of the boundary to form a fuzzy boundary;
obtaining each boundary vertex of the fuzzy boundary, and linearly extending a preset distance from the boundary vertex along the normal direction of the fuzzy boundary to form a boundary grid, wherein the obtaining comprises:
obtaining a vertex of each map pixel that forms the fuzzy boundary as the boundary vertex;
forming an expansion line segment by taking each boundary vertex as a starting point and extending in the normal direction of the fuzzy boundary, wherein a length of the expansion line segment is the preset distance; and
marking an intersection point of at least two expansion line segments as the boundary grid;

rendering a boundary color within a first range between the fuzzy boundary and the boundary grid, and rendering a boundary transparency within a second range that expands a preset distance from the fuzzy boundary to the inside of the boundary; and
rendering the boundary color from the first range with convolutional incremental expansion until the second range is covered.