We have a third layer that we need to build, the heads-up display (HUD) layer. This is a mostly trivial layer to implement, but it must be its own layer, for the same reasons we discussed with the controls. If this were on the main layer, the HUD would scroll off-screen whenever we moved away from the first view.
Filename: TDHUDLayer.m
-(void) addDisplay { // Add the fixed text of the HUD CCLabelTTF *kills = [CCLabelTTF labelWithString:@"Kills:" fontName:@"Verdana" fontSize:16]; [kills setAnchorPoint:ccp(0,0.5)]; [kills setPosition:ccp(10,305)]; [kills setColor:ccRED]; [self addChild:kills]; CCLabelTTF *health = [CCLabelTTF labelWithString:@"Health:" fontName:@"Verdana" fontSize:16]; [health setAnchorPoint:ccp(0,0.5)]; [health setPosition:ccp(140,305)]; [health setColor:ccGREEN]; [self addChild:health]; CCLabelTTF *goals = [CCLabelTTF...