Project1
标题:
新人第一次的脚本。(超豪华脚本)
[打印本页]
作者:
qq531720232
时间:
2011-2-13 20:07
提示:
作者被禁止或删除 内容自动屏蔽
作者:
DeathKing
时间:
2011-2-13 20:12
1、说明你的脚本是做什么的;
2、有截图请放上截图来说明效果;
3、有参考的工程是最好的。
作者:
捣蛋
时间:
2011-2-13 20:14
脚本盲表示本身就不懂.然后楼主又说的不清不错..更加不懂的路过..
作者:
DeathKing
时间:
2011-2-13 20:27
你确定这东西能用?我看到很多古怪的Java代码……
作者:
qq531720232
时间:
2011-2-13 20:29
提示:
作者被禁止或删除 内容自动屏蔽
作者:
qq531720232
时间:
2011-2-13 20:31
提示:
作者被禁止或删除 内容自动屏蔽
作者:
一瞬间的幻觉
时间:
2011-2-13 20:57
自动存档的脚本很早就有了
作者:
双子男星
时间:
2011-2-13 21:04
提示:
作者被禁止或删除 内容自动屏蔽
作者:
一箭烂YiJL
时间:
2011-2-13 21:30
回复
DeathKing
的帖子
于是按照DK你说的Java代码,寻找到与这个像极的代码:
http://www.cnblogs.com/jsfans/archive/2011/02/12/1952659.html
可是上面那个Java以后就是Ruby。
作者:
剑兰的马甲
时间:
2011-2-13 21:46
回复
DeathKing
的帖子
另外让我惊奇的是头一句(script),
还有def main为啥还没end就class Game_Temp?
还有LZ的脚本最后一段:
=begin
for (int p = 1; p < SmoothPath.Count; ++p)
{
double x = (double)(SmoothPath[p].X - SmoothPath[p - 1].X);
double y = (double)(SmoothPath[p].Y - SmoothPath[p - 1].Y);
double len = Math.Sqrt((double)(x * x + y * y));
Vectors.Add(x / len);
Vectors.Add(y / len);
}
=end
def createVectors
for p in 1...NetworkFunctions.smoothPath.size
x=(NetworkFunctions.smoothPath[p][0] - NetworkFunctions.smoothPath[p - 1][0]).to_f
y=(NetworkFunctions.smoothPath[p][1] - NetworkFunctions.smoothPath[p - 1][1]).to_f
len=Math.sqrt(x*x+y*y).to_f
NetworkFunctions.vectors.push(x/len)
NetworkFunctions.vectors.push(y/len)
end
end
end
复制代码
与此贴
传说中的BP手势识别
里的第二脚本框的最后一段极为相似!
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1