Lv.1
初三学生,全栈开发者,CoCo编辑器官方交流群管理员
签名:GitHub: @liulyxandy-codemao 语雀: https://www.yuque.com/liulyxandy QQ: 3449556207
在 【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复
浏览器:MicrosoftEdge90.0.818.62 (官方内部版本) (喵位) 系统:Windows 10OSVersion2009(Build19042.985) JS版本:V8 9.0.257.29 遇到的问题:在使用<()=()>时,如果左侧的()内为一个变量,那么右侧的()里填数据时每3次都有2次数据变为零。 例:<(变量a)=(32)>,保存后为<(变量a)=(0)>。 链接:https://shequ.codemao.cn/work/99424374,https://kitten4.codemao.cn/#99424374
2021-05-22T13:47:03 点赞:2
在 惊人发现!!! 中回复
//在判断那里加一个isPlayer就行了
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity||!hitEntity.isPlayer) {
return;
}
hitEntity.velocity.x += direction.x;
hitEntity.velocity.y += 0.5;
hitEntity.velocity.z += direction.z;
hitEntity.hurt(20 * Math.random() + 5, {
attacker: entity,
});
});
});
world.onDie(({ entity, attacker }) => {
if (attacker) {
world.say(attacker.player.name + '打败了' + entity.player.name)
}
entity.player.forceRespawn();
});
2021-07-15T11:02:16 点赞:0
在 【kitten4.0反馈】遇到问题不要怕,技术喵来帮你忙! 中回复
能不能在导出midi音乐时支持导出两种格式?第一:*.cmmid(原来的)第二:*.mid(MIDI音频)![]()
2021-07-15T14:51:59 点赞:0
在 【勿喷】Waddle彩蛋说明 中回复
dev链接:gitee.com/coco-central/wa喵le/raw/dev/docs/appendix/other/Wa喵le%E5%BD%A9%E8%9B%8B%E8%AF%B4%E6%98%8E.md 最新链接:wa喵le-beta.coco-central.cn/static/Wa喵le/easter_egg_info.html
2022-08-02T10:36:33 点赞:0