I have a game where I would like to draw little rectangles with round corners. These rectangles will be the main objects, I mean the draggable ones.
Each rectangle will have to have other shapes inside, like circles, stars, etc. These elements are just the rectangle's decoration. These inside elements will have different colors, sizes and numbers, according to the object they are located.
If I were to create this not using Cocos2D, I would create a class for each decoration and a class for the main object. But as I am willing to do this with Cocos2D and I am a newbie in Cocos, I ask you guys. What should be the way to do that? Is it possible to create sprites as sub-sprites of a main one and this main is the only one clickable? How do I create a sprite that is a shape created using just colors, gradients, etc., without using an image (I know Cocos2D loves to load images on sprites, but I would like to know if it is possible to create a sprite from scratch, to keep it light).
Please, just point me in the right direction. I count on your great knowledge. You guys are great. Thanks.