public override void initWithQuantityOfNodes(int nNodes) { batchNode = CCSpriteBatchNode.batchNodeWithFile("Images/spritesheet1"); addChild(batchNode); NodeChildrenMainScene nodeChildrenMainScene = new NodeChildrenMainScene(); nodeChildrenMainScene.initWithQuantityOfNodes(nNodes); //#if CC_ENABLE_PROFILERS // _profilingTimer = CCProfiler::timerWithName(profilerName().c_str(), this); //#endif CCNode ccnode = new CCNode(); ccnode.scheduleUpdate(); }
public override void onEnter() { base.onEnter(); CCSize s = CCDirector.sharedDirector().getWinSize(); // add title CCLabelTTF label = CCLabelTTF.labelWithString(title(), "Arial", 32); addChild(label, 1); label.position = new CCPoint(s.width / 2, s.height - 50); CCNode ccnode = new CCNode(); ccnode.scheduleUpdate(); m_plabel = CCLabelBMFont.labelWithString("00.0", "fonts/arial16.fnt"); m_plabel.position = new CCPoint(s.width / 2, s.height / 2); addChild(m_plabel); elapsedTime = 0; numberOfTouchesB = numberOfTouchesM = numberOfTouchesE = numberOfTouchesC = 0; }