Nikaple
Nikaple
关注数: 56
粉丝数: 542
发帖数: 7,050
关注贴吧数: 28
我的GMK合集 1L
【游戏源码发布】我做过的游戏合集,供想制作游戏的大家参考 1L防吞
【大会】I wanna be the Pigeon 发布啦
make i wanna great again i wanna 凉了?
website http://tieba.baidu.com/mo/q/checkurl?url=https%3A%2F%2Fnikaple.com%2F&urlrefer=521eb2a5021ebaae88445ad9cd9b1e72 游戏集还没迁移过去
3d coordinates switch (t) { case 0: for (i = 0; i < this.n; i++) { this.points1[i] = -50 + Math.round(Math.random() * 100); this.points2[i] = 0; this.points3[i] = 0; } break; case 1: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(t * 360 / this.n) * 10); this.points2[i] = (Math.cos(xd) * 10) * (Math.sin(t * 360 / this.n) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 2: for (i = 0; i < this.n; i++) { xd = -90 + (Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(t * 360 / this.n) * 10); this.points2[i] = (Math.cos(xd) * 10) * (Math.sin(t * 360 / this.n) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 3: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.cos(xd) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 4: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.cos(xd) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 5: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 6: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 7: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(i * 360 / this.n) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 8: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(i * 360 / this.n) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 9: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 10: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.cos(xd) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 11: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.sin(xd) * 10) * (Math.sin(i * 360 / this.n) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 12: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.sin(xd) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 13: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.sin(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 14: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.sin(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.sin(xd) * 10) * (Math.sin(i * 360 / this.n) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 15: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.sin(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; case 16: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(i * 360 / this.n) * 10); this.points2[i] = (Math.sin(i * 360 / this.n) * 10) * (Math.sin(xd) * 10); this.points3[i] = Math.sin(xd) * 100; } break; case 17: for (i = 0; i < this.n; i++) { xd = -90 + Math.round(Math.random() * 180); this.points1[i] = (Math.cos(xd) * 10) * (Math.cos(xd) * 10); this.points2[i] = (Math.cos(i * 360 / this.n) * 10) * (Math.sin(i * 360 / this.n) * 10); this.points3[i] = Math.sin(i * 360 / this.n) * 100; } break; }
1
下一页