/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (mylevel == 0) { NSDictionary *mybasics = [[[NSDictionary alloc] initWithDictionary:[matchData objectForKey:@"easy"]] autorelease]; numberOfImages = [[mybasics valueForKey:@"numberOfImages"] integerValue]; matchOpacity = [[mybasics valueForKey:@"matchOpacity"] floatValue]; cardimage = [mybasics valueForKey:@"imageName"]; matchlevel = [[mybasics valueForKey:@"numberOfCards"] integerValue]; //kEasyMatch; numrows = [[mybasics valueForKey:@"numRows"] integerValue];//2; numcolumns = [[mybasics valueForKey:@"numColumns"] integerValue];//5; cardwidth = [[mybasics valueForKey:@"cardWidth"] floatValue];//78.0; cardheight = [[mybasics valueForKey:@"cardHeight"] floatValue];//78.0; xgridoffset = [[mybasics valueForKey:@"xGridOffset"] floatValue];//15; ygridoffset = [[mybasics valueForKey:@"yGridOffset"] floatValue];//100; xoffset = [[mybasics valueForKey:@"xOffset"] floatValue];//15; yoffset = [[mybasics valueForKey:@"yOffset"] floatValue];//15; isRotated = [[mybasics valueForKey:@"isRotated"] boolValue]; useCollectedCards = [[mybasics valueForKey:@"useCollectedCards"] boolValue]; }