0
저는 객관적인 C 및 iPhone 게임 개발에 익숙하지 않습니다. 나는 코코스에서 감동을 구현하는 코드를 이해하는 데 약간의 어려움을 겪고있다. 누구든지 제게 약간의 설명을 주실 수 있습니까?코코스 설명에 대한 설명
-(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;
}
이 코드를 설명해주세요. 한 줄씩 어떻게 작동하는지 알고 싶습니다. UITouch
를 사용하여 사전