I'm working with the cocos2d 3.x and Xcode 6.0.1.Here i have the cpp code and i need to implement in Objective C here is a cpp code,How to write this to Objective C help me.

-(FileGame *)objXY:(int) pX secXY:(int)pY
{
  return (FileGame*)((CCArray*)array2->objectAtIndex(pY))->objectAtIndex(pX);
}
FileGame is CCNode

Related posts

Recent Viewed