HTML51 EASELJS - 충돌처리 EASELJS 충돌처리HITTESThitTest 함수을 호출하는 오브젝트와 지정된 포인트가 충돌이 일어날 경우 true를 리턴한다. (ie. if it will draw to that pixel). 특정 오브젝트가 마우스와 충돌이 있어나는 지 확인할 수 있다.myDisplayObject.hitTest(localX, localY);다음 데모에서는 circle.hitTest (stage.mouseX, stage.mouseY)를 호출하여 마우스가 빨간색 원 위에 있는지 확인합니다.var stage, circle; function init() { stage = new createjs.Stage("demoCanvas"); circle = stage.addChild(new createjs.Shape()); circ.. 2017. 1. 16. 이전 1 다음