Don't load Checkers sound files till a game is displayed on a board; this speeds up launch.
1.1 --- a/Source/CheckersGame.m Wed Jul 16 10:49:04 2008 -0700
1.2 +++ b/Source/CheckersGame.m Thu Jul 17 13:29:04 2008 -0700
1.3 @@ -54,11 +54,6 @@
1.4 self = [super init];
1.5 if (self != nil) {
1.6 [self setNumberOfPlayers: 2];
1.7 -
1.8 - PreloadSound(@"Tink");
1.9 - PreloadSound(@"Funk");
1.10 - PreloadSound(@"Blow");
1.11 - PreloadSound(@"Pop");
1.12 }
1.13 return self;
1.14 }
1.15 @@ -87,6 +82,11 @@
1.16
1.17 - (void) setUpBoard
1.18 {
1.19 + PreloadSound(@"Tink");
1.20 + PreloadSound(@"Funk");
1.21 + PreloadSound(@"Blow");
1.22 + PreloadSound(@"Pop");
1.23 +
1.24 RectGrid *board = [[RectGrid alloc] initWithRows: 8 columns: 8 frame: _table.bounds];
1.25 _board = board;
1.26 [_table addSublayer: _board];