cocos2d-x 멀티 터치 처리하기

|


void HelloWorld::ccTouchesEnded( CCSet * touches, CCEvent * event )

{

//멀티터치 처리

CCSetIterator it = touches->begin();

CCTouch* touch;

for( int iTouchCount = 0; iTouchCount < touches->count(); iTouchCount++ )

{

touch = (CCTouch*)(*it);

CCPoint location = touch->getLocationInView();

location = CCDirector::sharedDirector()->convertToGL(location);

it++;

}

}

Trackback 0 And Comment 0

Box2d 사용시(처음에 시작시 체크하지 않았을시)

|

처음 프로젝트를 생성할때 Box2d 를 선택하지 않고 프로젝트를 만들면 

각종 오류들이뜸


속성-링커-입력-추가종속성- libBox2d.lib추가

속성-c/c++-추가포함디렉터리 - $(SolutionDir)external 추가


하면 대강 오류는 없어짐

Trackback 0 And Comment 0

“Game Programming Gems 1권 – 3.3 A* 길찾기 알고리즘의 기초”

|

“Game Programming Gems 1권 – 3.3 A* 길찾기 알고리즘의 기초”

Trackback 0 And Comment 0