Cocos2D iPad Create Vector Sprites / Spritesheet

Is there a way to load vector graphics onto an iPad using coconut (or some other method) as sprites or sprite sheets, but leaving the images as vectors, not textures? The reason is that we have an animation that is just too large to load as a texture, so we want to scale it with a vector image.

If this is the wrong way to do this, maybe another suggestion?

Greetings

+3
source share
1 answer

Cocos2d is designed around sprites, so I don’t think there is anything built in. The best solution I can think of is to create a custom "CCNode" and override the "draw" method. You can then use custom OpenGL calls to draw your vectors. Maybe someone already created a class that you can use, but I have not seen it.

+1
source

Source: https://habr.com/ru/post/1751634/


All Articles