equal
deleted
inserted
replaced
228 [GameInterfaceBridge startLocalGame:gameDictionary]; |
228 [GameInterfaceBridge startLocalGame:gameDictionary]; |
229 [gameDictionary release]; |
229 [gameDictionary release]; |
230 } |
230 } |
231 |
231 |
232 -(void) loadNiceHogs { |
232 -(void) loadNiceHogs { |
233 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; |
233 @autoreleasepool { |
|
234 |
234 srand(time(NULL)); |
235 srand(time(NULL)); |
235 NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Hedgehog/Idle.png",GRAPHICS_DIRECTORY()]; |
236 NSString *filePath = [[NSString alloc] initWithFormat:@"%@/Hedgehog/Idle.png",GRAPHICS_DIRECTORY()]; |
236 UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:filePath]; |
237 UIImage *hogSprite = [[UIImage alloc] initWithContentsOfFile:filePath]; |
237 [filePath release]; |
238 [filePath release]; |
238 |
239 |
282 self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)) |
283 self.interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown)) |
283 self.imgContainer.alpha = 0; |
284 self.imgContainer.alpha = 0; |
284 |
285 |
285 [self.view addSubview:self.imgContainer]; |
286 [self.view addSubview:self.imgContainer]; |
286 [hogSprite release]; |
287 [hogSprite release]; |
287 [pool drain]; |
288 |
|
289 } |
288 } |
290 } |
289 |
291 |
290 -(void) viewDidLoad { |
292 -(void) viewDidLoad { |
291 self.view.backgroundColor = [UIColor blackColor]; |
293 self.view.backgroundColor = [UIColor blackColor]; |
292 |
294 |