赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 751 |
最后登录 | 2012-1-15 |
在线时间 | 26 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2011-1-22
- 帖子
- 10
|
回复 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手势识别
里的第二脚本框的最后一段极为相似! |
|