
Lv.1
如果需要墨水帮忙,请带一瓶橄榄汁……谢谢配合
签名:摸鱼
在 求助!!! 中回复
// 使用第一人称视角
world.onPlayerJoin(({ entity }) => {
entity.player.cameraMode = 'fps';
console.log('setting camera mode:', entity.player.cameraMode);
});
console.log('fps mode enabled');2020-03-29T17:20:06 点赞:0
在 必看,我不会攻击代码 中回复
world.onPlayerJoin(({ entity }) => {
entity.enableDamage = true;
entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => {
if (button !== 'action0' || !hitEntity) {
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 + ' killed ' + entity.player.name)
}
entity.player.forceRespawn();
});2020-03-30T08:34:35 点赞:0
在 CCTV(QMTV)招工帖!去过代码岛3.0奇妙城市的进(这只是个游戏帖) 中回复
我想笑,但是忍不住,这种过家家都玩到网上去了哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈
2020-04-02T08:29:39 点赞:0