摘要: 第一章 高级碰撞检测1.1 不规则形状对象的碰撞测试:1.1.1 位图用于碰撞检测:函数原型如下:myBitmapData.hitTest(firstPoint : Point, firstAlphaThreshold : uint, secondObject : Object, secondPoint : Point, secondAlphaThreshold : uint)测试两个位图:if(bmpd1.hitTest(new Point(bmp1.x, bmp1.y), 255, bmpd2, new Point(bmp2.x, bmp2.y), 255)){//bitmap is to 阅读全文
posted @ 2012-10-24 21:40 kiven.li 阅读(566) 评论(0) 推荐(0) 编辑