摘要:
在线演示显示代码1package{2importflash.display.Sprite;3importflash.events.Event;4importflash.geom.Point;56publicclassMouseAvoiderextendsSprite{78privateconstSPRING:Number=0.1;//弹性系数9privateconstFRICTION:Number=0.9;//摩擦系数10privateconstFEAR_DISTANCE:Number=150;//安全距离(小于该距离则发生躲避行为)11privateconstMAX_AVOID_FORC.. 阅读全文