So, I have a class that is called Gameboard. In it I have an array of CCSprite pointers.
class Gameboard : public CCNode
Inside the Gameboard’s init function (called in the constructor), I set the first of the Sprites (to test out).
CCSprite * newSprite = new CCSprite();
m_vSprites = newSprite;
m_vSprites->spriteWithFile("Triangle01.png", CCRectMake(0, 0, 480, 320));
Then in my GameScene (where the game starts up and occurs), I have the Gameboard pointer as a member function.
And inside the GameScene’s init (like in the tutorial), I make the Gameboard and add the child of the Gameboard into it.
if(!CCLayerColor::initWithColor(ccc4(0, 0, 255, 255)))
bool bRet = false;
m_Gameboard = new Gameboard();
bRet = true;
But it doesn’t show up. Can anyone help me out? I’m really at a loss of why this isn’t showing up.