Hi,
Yes. This is a sad typo made at the stage when the book was laid out for PDF. Final drafts that I sent had the correct version.
Please check the Support tab on the book’s official page for errata related fixes.
Regarding this exact typo:
The following 6th bullet point:
In the GameScene.m file, add the createBatchNode method as follows:
-(void)addBird
{
CGSize viewSize = [CCDirector sharedDirector].viewSize;
_bird = [[Bird alloc]
initWithBirdType:BirdTypeSmall];
_bird.position = ccp(viewSize.width * 0.5f,
viewSize.height * 0.9f);
[_batchNode addChild:_bird];
}
Should be:
In the GameScene.m file, add the createBatchNode method as follows:
-(void)createBatchNode
{
//1
[[CCSpriteFrameCache sharedSpriteFrameCache]
addSpriteFramesWithFile:@"Cocohunt.plist"];
//2
_batchNode = [CCSpriteBatchNode
batchNodeWithFile:@"Cocohunt.png"];
//3
[self addChild:_batchNode z:1];
}