Revision: 44570
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 14, 2011 05:08 by espinallab
Initial Code
NSString *thePath = [[NSBundle mainBundle] pathForResource:@"matchgame" ofType:@"plist"]; matchData = [[NSDictionary alloc] initWithContentsOfFile:thePath]; 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]; }
Initial URL
Initial Description
Initial Title
Reading plist file into an NSDictionary
Initial Tags
Initial Language
Objective C