To create the cardboard puppet doll, we need to perform the following steps:
Game.mfile if it's not already open.
bodycontainer with the following lines:
SPSprite *body = [[SPSprite alloc] init]; body.x = 85; body.y = 120; [self addChild:body];
torsoas shown in the following code:
SPQuad *torso = [SPQuad quadWithWidth:150 height:150]; torso.color = 0xff0000; [body addChild:torso];
headas shown in the following code:
SPQuad *head = [SPQuad quadWithWidth:80 height:80 color:SP_YELLOW]; head.x = 35; head.y = -70; [body addChild: head];
armslocal variable as shown in the following code:
SPSprite *arms = [[SPSprite alloc] init]; [body addChild:arms]; ...