Hi guys
I am new to objective C and iPhone game development. I am having some difficulty in understanding the code of to implement touches in cocos. Could anyone give me some explanation please?
-(BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)events
{
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView: [touch view]];
CGPoint convertedLocation = [[Director sharedDirector] convertCoordinate:location];
lady.position = convertedLocation;
return kEventHandled;
}
Please explain me these punch of code. I would like to know how it works one line by one line. Thanks in advance