Lv.1
在 【帮助贴】帮帮大家做神岛邀请活动() 中回复
一起来玩 https://box3.codemao.cn/p/tntrain?recommend_by=29982
2023-01-04T17:25:33 点赞:0
在 吐槽一些沙diao代码(雾 中回复
哪个大佬解释一下这个怎么用
function npc(selector, fn, interactHint, interactRadius, interactColor) {
const Npc = world.querySelector(selector);
Npc.enableInteract = 1;
Npc.interactHint = interactHint ?? Npc.id.split('-')[0]
Npc.interactRadius = interactRadius ?? 3;
Npc.interactRadius = interactRadius ?? new Box3RGBColor(0, 0, 0);
Npc.onInteract(async ({ entity }) => {
await fn(entity)
})
}2023-01-10T18:56:25 点赞:0
在 【yeeee剑代码教程】 中回复
第一个链接 : https://shequ.codemao.cn/wiki/forum/516075
第二个链接 : https://shequ.codemao.cn/community/468571
2023-01-10T19:13:46 点赞:0
在 【yeeee剑代码教程】 中回复
function addlaser(start,end){
const Quat = new Box3Quaternion(0,0,0,1);
function addlaser(start,end){
const distance = start.distance(end);
const laser = world.createEntity({
mesh: 'mesh/激光.vb',
meshScale: [0.0625*distance,0.0625,0.0625],
gravity: false,
collides: false,
fixed: true,
position: start.lerp(end,0.5),
})
const d = start.sub(end);
laser.meshOrientation = Quat.rotateX(Math.atan2(d.y,Math.sqrt(d.x**2+d.z**2))).rotateY(Math.atan2(d.z,d.x));
const points = [];
for(let i=0;i<distance;i+=0.1){
points.push({
lo: start.lerp(end,0.1*distance*i),
hi: start.lerp(end,0.1*distance*i),
})
}
world.onTick(()=>{
points.forEach((e)=>{
world.searchBox(e).forEach((e)=>{
if(e.isPlayer){
e.hurt(100);
}
})
})
})
}
}2023-01-10T19:20:25 点赞:0
在 社区最古老的帖子竟然id不是54?99%的人都不知道的惊天秘密被我发现了 中回复
科普:
1970年1月1日——UNIX time启始。大多数计算机语言的时间都是以这个时间加上秒或毫秒表示的。32位无符号整数(unsigned int)可以存放直至236年后(2206年)的时间信息。(百度百科)
2023-01-11T09:17:11 点赞:0
在 手机小程序,第一喵测开始! 中回复
科普:
1970年1月1日——UNIX time启始。大多数计算机语言的时间都是以这个时间加上秒或毫秒表示的。32位无符号整数(unsigned int)可以存放直至236年后(2206年)的时间信息。(百度百科)
2023-01-11T09:18:59 点赞:0