摘要: 示例1,跟随鼠标的键头:需要掌握一个重要的公式,这个方法返回从 x 轴到点 (x,y) 之间的角度Math.atan2(dy,dx);关键代码: 1 function Arrow() { 2 this.x = 0; 3 this.y = 0; 4 this.rotate = 0; 5 ... 阅读全文
posted @ 2016-01-09 22:38 逐影 阅读(382) 评论(0) 推荐(0) 编辑