Hey, I am working on a game and have to store lot of details about game in a constants file. I am new to cocos2d and iPhone development in general.
So I was wondering what is the best way to do this. I have information in form of string which i can split later. I am trying this code :
const NSString WONDER1_LEVELS[3][2] = {
{@"15|19:1-2,8:0-0",@"15|19:1-2,8:0-0"},
{@"15|19:1-2,8:0-0",@"15|19:1-2,8:0-0"},
{@"15|19:1-2,8:0-0"}
};
but it is giving me warnings as :
warning: missing braces around initializer
warning: (near initialization for 'WONDER1_LEVELS[0][0]')
in the constants.h file i have used :
extern const NSString WONDER1_LEVELS[3][2];
Can someone please tell me what I am doing wrong here, or a better solution to implement this?