摘要:
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... 阅读全文
摘要:
1.构建小球精灵 Ball.as Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->package { import flash.display.Sprite; public class Ball extends Sprite ... 阅读全文