摘要: 1. 构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-30 22:44 HelloCG 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-30 21:59 HelloCG 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 构建Ball精灵: Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-30 20:30 HelloCG 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1.计算基本的三角函数 正弦=对边/斜边 Math.sin(弧度值):Number 余弦=邻边/斜边 Math.cos(弧度值):Number 正切=对边/邻边 Math.tan(弧度值):Number 余切=邻边/对边 1/Math.tan(弧度值):Number 2.转换弧度为度和转换度为弧度 radians = degrees * Math.PI / 180; degrees = radia... 阅读全文
posted @ 2008-12-30 14:18 HelloCG 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 1.构建小球 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文
posted @ 2008-12-30 11:50 HelloCG 阅读(234) 评论(0) 推荐(0) 编辑