04. sprite_kit foreground texture, 04. sprite_kit foreground
04. Sprite_Kit prospective texture
Professional vocabulary Literacy:
textures
Texture: The texture in computer graphics includes both the texture of the object surface in the general sense, even if the object surface shows uneven groove, but also on the smooth surface of the objectColor PatternWe usually call it pattern more.
To put it bluntly, the texture is a shared image used to render the genie (sprites
). For example, it is to wear a dress for the genie.Clothes". So when will texture be used? For example, if we want to apply an image to multiple genie, we need texture.Clothes". Usually we load the data stored in the Applicationbundle
Create a texture for the image file in. However,Sprite Kit
You can still useCore Graphices images
Or use the node tree to create a texture.
Sprite Kit
The texture management method is simplified and can be loaded and applied to graphics hardware only by simple code. In addition, texture management generally consistsSprite Kit
The framework automatically takes over. Of course, there are exceptions. For example, if you are developing a game with a large number of images, You Should manually control the texture management to improve application performance. Mainly through explicit notificationsSprite Kit
The framework loads textures for implementation.
In games, we usually integrate a group of associated textures calledtexture atals
. For example, a skill action of a character can be subdivided into multiple images. If one page is played in sequence, the animation is generally played. Passtexture atals
, Greatly improving the rendering execution efficiency