相关疑难解决方法(0)

优化2D Flash游戏的过渡/移动平滑度

更新6:

Fenomenas建议我尽可能简单地重新创造一切.我怀疑这会产生任何不同,因为算法保持不变,并且性能似乎不是问题.无论如何,这是我在这里得到的唯一建议:

  1. 30 FPS:http://www.feedpostal.com/test/simple/30/SimpleMovement.html
  2. 40 FPS:http://www.feedpostal.com/test/simple/40/SimpleMovement.html
  3. 60 FPS:http://www.feedpostal.com/test/simple/60/SimpleMovement.html
  4. 100 FPS:http://www.feedpostal.com/test/simple/100/SimpleMovement.html

代码:

package {
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.KeyboardEvent;
    import flash.utils.getTimer;

    [SWF(width="800", height="600", frameRate="40", backgroundColor="#000000")]

    public class SimpleMovement extends Sprite
    {
        private static const TURNING_SPEED:uint = 180;
        private static const MOVEMENT_SPEED:uint = 400;
        private static const RADIAN_DIVIDE:Number = Math.PI/180;
        private var playerObject:Sprite;
        private var shipContainer:Sprite;
        private var moving:Boolean = false;
        private var turningMode:uint = 0;
        private var …
Run Code Online (Sandbox Code Playgroud)

flash transition actionscript-3 smoothing

2
推荐指数
1
解决办法
6790
查看次数

标签 统计

actionscript-3 ×1

flash ×1

smoothing ×1

transition ×1