A mask display method and device for a 2D game
A display method and display device technology, which are applied in the field of games, can solve the problems that the display effect cannot distinguish character images, the sense of layering is unreal, and the sense of multi-layering cannot be reflected.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] see figure 2 , is a schematic flow chart of an embodiment of a mask display method for a 2D game provided by the present invention, and the method includes the following steps:
[0050] Step 101: Based on the position of the character layer on the scene layer, determine the corresponding mask layer of the character layer on the occlusion layer; wherein, the occlusion layer is configured with corresponding The blocking area, the walkable area, and the mask area set according to the outer contour of each occluder, and the walkable area and the blocking area are divided into N mask levels arranged alternately from front to back, so that the character layer is in the first When the walkable area of the i-th mask level is covered, it will be masked by the mask area corresponding to the blocking area before the i-th masking level, but not by the masking area corresponding to the blocking area after the i-th masking level Mask area mask; the character layer is composed of ...
Embodiment 2
[0068] see Figure 5 , Figure 5 It is a schematic flowchart of another embodiment of the mask display method for 2D games provided by the present invention, and the method includes the following steps:
[0069] Step 201: Based on the position of the character layer on the scene layer, determine the corresponding mask layer of the character layer on the occlusion layer; wherein, the occlusion layer includes a occlusion layer and a mask layer; the mask The mask area set by the layer according to the outer contour of each occluder; the blocking layer is configured with corresponding blocking areas and walkable areas according to several occluders on the scene layer, and divides the walkable area and the blocking area It is N mask levels arranged alternately from front to back, so that when the character layer is in the walkable area of the i-th mask level, it will be covered by the mask area corresponding to the blocked area before the i-th mask level mask, and will not be m...
Embodiment 3
[0076] see Figure 6 , the present invention provides a schematic structural diagram of an embodiment of a mask display device for a 2D game. Such as Figure 6 As mentioned above, the mask display device includes: a layer determination unit 301 , a cropping unit 302 and a display unit 303 .
[0077] The layer determination unit 301 is configured to determine the corresponding mask layer of the character layer on the occlusion layer based on the position of the character layer on the scene layer. Among them, the occlusion layer is configured with corresponding blocking areas, walkable areas and masking areas set according to the outer contours of each occluder according to several occluders on the scene layer, and the walkable area and blocking area are divided into N mask levels are arranged alternately from front to back, so that when the character layer is in the walkable area of the i-th mask level, it will be masked by the mask area corresponding to the blocked area be...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


