用户:
wangjunjiec查看:117 回复:26 评论:117 创建时间:2020-04-22T22:39:20
我会在每天不定时出现,我不在,评论区回复吧。链接:https://box3create.codemao.cn/games/d23ff54320d881066d34?p=NqO9Z%2FpEuNseypd3T0yKrtanv9hROIOqi6MwiLc%2BQwA%2F7U4TuaLgVndWVzdA%3D%3D







踏星逐梦我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我我
点赞0
评论
wangjunjiec——特大公告——【置顶】
内测即将结束
即将更新帖
子啦!



职位将在那个帖子真正固定!!!!!
温馨提示:本人要对地图进行更改和实体化,期间暂时停止职业【权限】的发放,等帖子发放后会第一时间提醒你们,申请过的,%50会发放给你们,%50有大奖,记住,要在帖子中的作品中申请后在来地图申请,这次,不仅仅是直接发放那么简单了。要经过一些简单又容易的考试,期间请不要到地图打扰,可以聊天。期间的不便尽请谅解
点赞0
评论
wangjunjiec



(>人<;)对不起
由于每天的事情实在太多,导致推迟,尽请谅解!
另外要说几个喵密做补偿(>^ω^<)喵
1.我有两个地图哦!!
游客:mni!?
你做那个地图都行哦!
1.【链接公开】大家可以进去先参观一下哦!
https://box3create.codemao.cn/games/282f9b19e0153839c890?
2.彩虹城市【相信你们去过的】
代码公开啦!多谢Lonely_wanderer的代码和35王梓豪的建筑
function bubble_sort(list) {
var i, j, temp;
for (i = 0; i < list.length - 1; i++) {
for (j = 0; j < list.length - 1 - i; j++) {
if (list[j] > list[j + 1]) {
temp = list[j];
list[j] = list[j + 1];
list[j + 1] = temp;
}
}
}
return list;
};
world.onEntityContact(({entity,other})=>{
if(entity.isPlayer===false){
if(other.isPlayer===true){
if(entity.hasTag('car')){
if(other.mesh===''){
other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);//调整方向
other.mesh=entity.mesh;
other.meshScale=entity.meshScale;
other.player.canFly=false;
other.player.invisible=true;
other.player.walkSpeed=2;
other.player.runSpeed=3;
}
}
}
}
});
world.querySelectorAll('.ofcar').forEach((e)=>{
e.onEntityContact(({other})=>{
other.player.mesh='';
other.player.invisible=false;
other.player.walkSpeed=0.22;//正常行走速度
other.player.runSpeed=0.4;//正常奔跑速度
other.player.canFly=false;
})
})//此代码不仅用于下车,也用于下任何交通工具,甚至不是交通工具
//请先在地图中,给一个小狗模型,加上‘狗‘的标签
//这段代码可以让狗说话
world.querySelectorAll('.狗').forEach((dog) => {
dog.say('汪汪~')
dog.onEntityContact(({other}) =>{
dog.say('汪,你好! '+other.player.name)
}
)
}
)
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 + '杀喵了' + entity.player.name);
}
entity.player.forceRespawn();
});
//里面的文字,可以随意修改
world.say('快来一起创作吧!欢迎你,快点申请编辑吧!我等着你哦!加油!')
2.等我发布完并分配地图权限后,我要把创作
申请权限放在我即将发布的作品智能电脑中啦,到时你们可以边玩游戏边申请,我会努力做好那个作品给你们申请权限和玩转智能电脑。
3.给你们分享一下我的生活日常
10:00写作业
11.00__φ(..;)还是写作业
3:00做作品
4:00做作品
5:00还是做作品
6:00做地图
7:00还是做地图
3.我要出小说啦!记得看哦!
4.关注我可以获得金币哦
点赞0
评论
wangjunjiec// When a player joins the game ...
world.onPlayerJoin(({ entity }) => {
// ... and whenever that player touches a voxel ...
entity.onVoxelContact(({ x, y, z }) => {
// ... turn that voxel into air
voxels.setVoxel(x, y, z, 0);
});
});
console.log('event handlers installed');
function bubble_sort(list) {
var i, j, temp;
for (i = 0; i < list.length - 1; i++) {
for (j = 0; j < list.length - 1 - i; j++) {
if (list[j] > list[j + 1]) {
temp = list[j];
list[j] = list[j + 1];
list[j + 1] = temp;
}
}
}
return list;
};
world.onEntityContact(({entity,other})=>{
if(entity.isPlayer===false){
if(other.isPlayer===true){
if(entity.hasTag('car')){
if(other.mesh===''){
other.meshOrientation = new Box3Quaternion(0, 1, 0, 0);//调整方向
other.mesh=entity.mesh;
other.meshScale=entity.meshScale;
other.player.canFly=false;
other.player.invisible=true;
other.player.walkSpeed=2;
other.player.runSpeed=3;
}
}
}
}
});
world.querySelectorAll('.ofcar').forEach((e)=>{
e.onEntityContact(({other})=>{
other.player.mesh='';
other.player.invisible=false;
other.player.walkSpeed=0.22;//正常行走速度
other.player.runSpeed=0.4;//正常奔跑速度
other.player.canFly=false;
})
})//此代码不仅用于下车,也用于下任何交通工具,甚至不是交通工具
//请先在地图中,给一个小狗模型,加上‘狗‘的标签
//这段代码可以让狗说话
world.querySelectorAll('.狗').forEach((dog) => {
dog.say('汪汪~')
dog.onEntityContact(({other}) =>{
dog.say('汪,你好! '+other.player.name)
}
)
}
)
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 + '杀死了' + entity.player.name);
}
entity.player.forceRespawn();
});
//里面的文字,可以随意修改
world.say('快来一起创作吧!欢迎你,快点申请编辑吧!我等着你哦!加油!')
点赞0
评论