摘要: 1.简单的缓动 A: sprite.vx=(targetX-sprite.x)*easing; sprite.vy=(targetY-sprite.y)*easing; sprite.x+=sprite.vx; sprite.y+=sprite.vy; B: var dx:Number=targetX-sprite.x; var dy:Number=targetY-sprite.y; sprite... 阅读全文
posted @ 2009-01-03 21:57 HelloCG 阅读(304) 评论(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 @ 2009-01-03 21:33 HelloCG 阅读(196) 评论(0) 推荐(0) 编辑