For the behavior of the moles, we will be combining actions and animation at the same time to give more of a feeling of life to the game. In all, we define six behaviors for a normal mole, and one specific behavior for a special mole.
-(void) raiseMole:(MXMoleHill*)aHill { // Grab the mole sprite CCSprite *aMole = [[aHill hillMole] moleSprite]; float moleHeight = aMole.contentSize.height; // Define the hole wobble/jiggle CCMoveBy *wobbleHillLeft = [CCMoveBy actionWithDuration:.1 position:ccp(-3,0)]; CCMoveBy *wobbleHillRight =[CCMoveBy actionWithDuration:.1 position:ccp(3,0)]; // Run the actions for the hill [[aHill moleHillBottom] runAction: [CCSequence actions:wobbleHillLeft, wobbleHillRight, wobbleHillLeft, wobbleHillRight, nil]]; // Define some mole actions. // We will only use some of them on each mole CCMoveBy *moveUp = [CCMoveBy...