Hi,
I have a smaller piece of code and I don't fully understand what its doing step by step.
-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint location = [touch locationInView:[touch view]];
loc = [[CCDirector sharedDirector] convertToGL:loc];
}
I understand that its taking the area where the touch is detected, storing the point in location, and then converting it, but I would like to know more detail about what each part is doing.
Thanks.