猫史档案馆


bianch

bianch

Lv.1

神奇代码岛的岛民,欢迎来神奇代码岛找我玩哦。

获赞:102收藏:7浏览:437作品收藏:17
回复帖子评论
上一页4 页 / 共 4下一页

BORAO创作团队招人 中回复

我来

2022-01-17T15:23:47 点赞:0

招人了!!!我们要还原《传说之下》 中回复

顶 

2022-01-17T15:25:12 点赞:0

招人了!!!我们要还原《传说之下》 中回复

 

 

2022-01-18T16:37:59 点赞:0

创作节招人咯 中回复

我 

2022-01-20T19:51:25 点赞:0

【box3】新春创作节正式招人! 中回复

我是全能 我参加

2022-01-20T21:15:10 点赞:0

[创作节招人]创作节招人 中回复

我来

2022-01-20T21:38:34 点赞:0

制作节招人啦 中回复

顶 

2022-01-21T19:30:45 点赞:0

up计划第一期创作倒计时两个小时,加油! 中回复

招人啦https://box3.codemao.cn/e/c1d8032099424b54ab91?p=I6j48kW%2BIcMv0SYu%2BZnJNr3riU3jJhcnHy4btopq9TA%2BDlwwzoLwVndWVzdA%3D%3D

2022-01-21T19:35:38 点赞:0

元宵节猜谜答案公布! 中回复

1、粽叶精灵

2、姜饼

3、寒冰小蛋

4、全能怪兽

5、梦幻蝶

6、龙舟

7、盗匪头目

8、江湖猴

2022-02-15T18:14:04 点赞:1

玩具猴的午夜后宫招募管喵 中回复

我要!!!

2022-03-01T20:02:21 点赞:0

求助飞机代码 中回复

/*友情声明:本代码为Lolita原创!在这里我只是转载!如果要使用代码,请标明原作者Lolita!*/ 
function drive1(entity) {
    let angle1 = entity.direction;
    if (angle1 < 0) {
        angle1 = PI2 + angle1;
    }
    if (entity.angle < 0) {
        entity.angle = PI2 + entity.angle;
    }
    entity.angle %= PI2;
    const angle2 = entity.angle;
    if (Math.min(Math.abs(angle1 - angle2), Math.abs(PI2 - angle1 + angle2)) < 0.1) {
        entity.angle = entity.direction;
        return undefined;
    } else {
        if (angle1 > angle2) {
            if (angle1 - angle2 < Math.PI) {
                entity.angle += 0.1;
                return 0;
            } else {
                entity.angle -= 0.1;
                return 1;
            }
        } else {
            if (angle1 + (PI2 - angle2) < Math.PI) {
                entity.angle += 0.1;
                return 0;
            } else {
                entity.angle -= 0.1;
                return 1;
            }
        }
    }
}
const PI2 = Math.PI * 2

console.clear()
const planes = []
world.onPlayerJoin(({ entity }) => {
    const plane = world.createEntity({
        mesh: 'mesh/飞机.vb',
        collides: true,//碰撞
        gravity: false,//重力
        position: new Box3Vector3(喵, 喵, 喵),
        meshScale: new Box3Vector3(0.02, 0.02, 0.02),
    });
    plane.angle = 0;//玩家视角角度
    plane.direction = 0;
    plane.rotateX = 0;
    entity.plane = plane;
    planes.push(plane)
    entity.up = 0;
    plane.speed = 1;//自己调整速度
    plane.rotateZ = 0;
    plane.angle = Math.atan2(entity.player.facingDirection.z,entity.player.facingDirection.x);
    entity.player.cameraEntity = plane
    entity.player.invisible = true;
    entity.player.spectator = true;
});
world.onTick(({ tick }) => {
    world.querySelectorAll('player').forEach((x) => {
        drive(x, x.plane)
    })
})
const plane_Quat = new Box3Quaternion(0, 0, 0, 1);
async function drive(entity, plane) {//太难解释了
    if (entity.player.jumpButton == true) {
        if (entity.up > -0.8) {
            entity.up -= 0.1
        }
    }
    if (entity.player.crouchButton == true) {
        if (entity.up < 0.8) {
            entity.up += 0.1
        }
    }
    plane.direction = Math.atan2(entity.player.facingDirection.z, entity.player.facingDirection.x)
    const num = drive1(plane);
    if (num === 1) {//右
        if (plane.rotateZ < 1) {//在这段代码中,-1和1为飞机转弯系数,系数越大能力越好
            plane.rotateZ += 0.1
        } else {
            plane.rotateZ = 1;
        }
    } else if (num === 0) {//左
        if (plane.rotateZ > -1) {
            plane.rotateZ -= 0.1
        } else {
            plane.rotateZ = -1;
        }
    } else if (num == undefined) {
        plane.rotateZ *= 0.95;
    }
    plane.velocity.set(Math.cos(plane.angle) * Math.cos(entity.up) * plane.speed, -Math.sin(entity.up) * plane.speed, Math.sin(plane.angle) * Math.cos(entity.up) * plane.speed);
    plane.meshOrientation = plane_Quat.rotateY(Math.PI * 0.5).rotateZ(plane.rotateZ).rotateX(-entity.up).rotateY(plane.angle);
}

2022-05-08T11:56:08 点赞:0

招人了,圣诞创作节! 中回复

顶 

2022-12-14T17:36:24 点赞:0

招人了,圣诞创作节! 中回复

2022-12-15T10:36:33 点赞:0

【box举报】【吉吉看】《创造大陆》源代码被盗!!! 中回复


我顶
必须顶
不得不顶
用尽全力顶
再加上千斤顶
总之把它顶到顶
接着使出葵花宝顶
就算顶到史前也要顶
老子看了会用道德经顶
孔子亲自拜你为师天天顶
秦始皇站在阿房宫上使劲顶
汉高祖挥师杀向东罗马为你顶
吕布抛弃了貂禅而选择了帮你顶
张三丰见了后用太极拳九式全力顶
左冷禅召开武林盟主大会商讨如何顶
西门吹雪从此学会了最强一招剑神一顶
龙剑飞的如来神掌最后一式改为万佛朝顶
陆小凤从此再也不管闲事了而专门来为你顶
四大名捕四面出击看天下还有没有人敢不在顶
顶到阎罗王说我制造噪音我刁根烟看看他继续顶
顶到火山喷发太平洋海啸我还要继续往喵里顶
顶到益阳地震山崩地裂地下水泛滥我还要顶
顶到地下水喷发造成洪灾损失惨重我也顶
要是你觉得敢兴趣你也可以过来一起顶
要是你看我不爽我没办法还要继续顶
要是上帝敢过来阻止我就更加要顶
要是别人见了骂我傻我还是要顶
要是踩到我脚喵我也继续顶
要是地面凹了我不管继续顶
要是天真塌下来了继续顶
就算天塌下来我都要顶
就算腾讯倒闭也要顶
就算鞋子烂也要顶
我用尽全力去顶
我非常用力顶
我很用力顶
我用力顶
我再顶
我顶

2022-12-23T11:21:22 点赞:1

这是咋么回事??? 中回复

我用电脑打开的

2023-11-21T19:01:52 点赞:0

神岛怎么回事,崩了??? 中回复

imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"

2024-08-15T10:59:23 点赞:0