全部文本 #2056867 原始 编辑

Miscellany

公开 text v1 · 不可变
#2056867 ·已发布 2011-05-11 15:41 UTC
渲染后的文本正文
var a = Math.atan2(FlxG.mouse.x -myfound.player.x, myfound.player.y - FlxG.mouse.y);
var aInt:int = Math.floor(a * 180 / Math.PI) - 90;

	if (myfound.player.angle < aInt){
				myfound.player.angularVelocity = 220;
			}
			if (myfound.player.angle > aInt){
				myfound.player.angularVelocity = -240;
			}