
Lv.1
在 地图招人(非空白,做了十分之八) 中回复
顶
我顶
必须顶
不得不顶
用尽全力顶
再加上千斤顶
总之把它顶到顶
接着使出葵花宝顶
就算顶到史前也要顶
老子看了会用道德经顶
孔子亲自拜你为师天天顶
秦始皇站在阿房宫上使劲顶
汉高祖挥师杀向东罗马为你顶
吕布抛弃了貂禅而选择了帮你顶
张三丰见了后用太极拳九式全力顶
左冷禅召开武林盟主大会商讨如何顶
西门吹雪从此学会了最强一招剑神一顶
龙剑飞的如来神掌最后一式改为万佛朝顶
陆小凤从此再也不管闲事了而专门来为你顶
四大名捕四面出击看天下还有没有人敢不在顶
顶到阎罗王说我制造噪音我刁根烟看看他继续顶
顶到火山喷发太平洋海啸我还要继续往死里顶
顶到益阳地震山崩地裂地下水泛滥我还要顶
顶到地下水喷发造成洪灾损失惨重我也顶
要是你觉得敢兴趣你也可以过来一起顶
要是你看我不爽我没办法还要继续顶
要是**敢过来阻止我就更加要顶
要是别人见了骂我傻我还是要顶
要是踩到我脚骨折我也继续顶
要是地面凹了我不管继续顶
要是天真塌下来了继续顶
就算天塌下来我都要顶
就算腾讯倒闭也要顶
就算鞋子烂也要顶
我用尽全力去顶
我非常用力顶
我很用力顶
我用力顶
我再顶
我顶
顶
2021-06-20T15:33:40 点赞:0
在 玩家变成了模型,怎么恢复? 中回复
一百多行的
慢慢找
world.second = 0
const Quat = new Box3Quaternion(0, 0, 0, 1)
for (const e of world.querySelectorAll('*')) {
if(e.isPlayer)return
e.collides = true
e.fixed = true
if (e.id === '车') {
e.enableInteract = true
e.interactHint = '租借'
e.interactRadius = 5
e.onInteract(({ entity }) => {
if (!entity.isPlayer) return
if (!(entity.condition === '喵')) {
entity.mesh = e.mesh
entity.meshScale = e.meshScale
entity.meshOrientation = Quat.rotateY(Math.PI)
entity.player.invisible = true
entity.player.runSpeed = 2.2
entity.player.runAcceleration = 0.08
entity.player.jumpPower = 1.5
entity.player.scale = e.meshScale.scale(e.bounds.y / entity.bounds.y)
entity.condition = '喵'
entity.喵_start_time = world.second
}else{
textDialog(entity,'租借','你已经租借!')
}
})
} else if (e.id === '租车注意事项') {
e.enableInteract = true
e.interactHint = e.id
e.interactRadius = 5
e.onInteract(async ({ entity }) => {
const a = await selectDialog(entity, '租车注意事项', `
1.若损坏车辆,应赔偿相应钱\n
2.在这里可归还汽车\n
3.游戏中租车费用为3元/min\n
4.触碰汽车即可租借
`, ['归还'])
if (a) {
if (entity.condition === '喵') {
entity.喵_money = 0.05 * (world.second - entity.喵_start_time)
if (entity.cny >= entity.喵_money) {
entity.cny -= Math.round(entity.喵_money)
textDialog(entity, '缴费', `驾驶${world.second - entity.喵_start_time}秒,应缴费${Math.round(entity.喵_money)}元,剩余${entity.cny}元`)
} else {
entity.debt += Math.round(entity.喵_money) - entity.cny
entity.cny = 0
textDialog(entity, '缴费', `驾驶${world.second - entity.喵_start_time}秒,应缴费${Math.round(entity.喵_money)}元,欠费${entity.debt}元`)
}
entity.condition = ''
} else {
textDialog(entity, '缴费', '你还没有租车!')
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
if (entity.isPlayer) {
entity.condition = ''
entity.喵_start_time = 0
entity.喵_money = 0
}
})
world.onTick(({ tick }) => {
if (tick % 16 === 0) {
world.second += 1
}
})
function textDialog(entity, title, content) {
return entity.player.dialog({
type: Box3DialogType.TEXT,
title,
content,
})
}
function selectDialog(entity, title, content, options) {
return entity.player.dialog({
type: Box3DialogType.SELECT,
title,
content,
options
})
}
function inputDialog(entity, title, content, confirmText, placeholder) {
return entity.player.dialog({
type: Box3DialogType.INPUT,
title,
content,
confirmText,
placeholder
})
}
2021-06-30T09:06:28 点赞:0
在 【Box3科普帖】满满的干货及喵代码,快来看看 中回复
加
(async function main(){for(;;await sleep(时间)){}})
更好玩
2021-07-04T18:28:40 点赞:0
在 更多!!! 中回复
(asyncfunctionmain(){ for(consteofworld.querySelectorAll("player")){ if(e.player.name==='氢'){ e.player.enableJump=false; e.player.walkSpeed=0; e.player.runSpeed=0; e.player.canFly=false; } } })()
2021-07-04T20:25:57 点赞:0