万年素人からHackerへの道

万年素人がHackerになれるまで殴り書きするぜ。

draggable sprite

(BOOL)ccTouchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
    UITouch * touch = [touches anyObject];
    CGPoint location = [[Director sharedDirector] convertCoordinate: [touch     locationInView:touch.view]];    
    [diskSprite setPosition:ccp(location.x , location.y )];
    return kEventHandled;
}