猫史档案馆


KaNSF

KaNSF

Lv.1

获赞:2收藏:0浏览:6作品收藏:0
回复帖子评论
上一页1 页 / 共 6下一页

岛3谈合作 中回复

https://box3.codemao.cn/e/b73f91b7476d18319416?p=J4Xvf%2BycZPR5cEjfFuTBtQI2hlCMTlpLtYtJFBDoIHA5uK4UiZLwnlkIjkvZzkuro%3D

目的在注释上

2021-05-22T20:01:34 点赞:0

【紧急招募!】代码岛3.0编辑器偷跑测试~~~ 中回复

我行吗?emotion_编程猫_谢谢老板

2021-05-28T16:47:19 点赞:0

看一看~找工作室 中回复

编程猫官方!!!!!!!emotion_编程猫_厉害了

2021-06-06T09:02:20 点赞:0

地图招人(非空白,做了十分之八) 中回复


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

2021-06-20T15:33:40 点赞:0

代码岛大作研发招人 中回复

要建什么呢?

emotion_编程猫_溜了溜了

2021-06-30T08:14:27 点赞: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

谁帮帮我这新手 中回复

bodyPart:Box3BodyPart.HEAD,

 

别忘了逗号emotion_编程猫_翻白眼

2021-06-30T09:39:23 点赞:1

再帮帮我这菜鸟 中回复

逗号!

 

2021-06-30T09:49:30 点赞:0

再帮帮我这菜鸟 中回复

  mesh:'mesh/三级盔.vb', ........

2021-06-30T09:51:10 点赞:0

代码岛大作研发招人 中回复

@@

2021-06-30T09:52:18 点赞:0

怎么在积木块编辑器中保存玩家的数据? 中回复

问岛民干嘛?

 

我以前用scratch时用的云列表

你可以试试

2021-06-30T12:42:35 点赞:0

代码岛大作研发招人 中回复

需要链接

2021-06-30T13:51:30 点赞:0

【Box3创作节动物园奇妙夜】小小瓢虫的地图招人啦 中回复

 

 

 

 

2021-07-02T15:35:12 点赞:0

【关于暑期创作节……】 中回复

2021-07-02T21:19:10 点赞:0

【关于暑期创作节……】 中回复

az

2021-07-02T21:19:19 点赞:0

吉吉喵!! 中回复

左上角:https://box3.fun/e/(有的人要点链接,所以我删了一些)

2021-07-02T21:51:54 点赞:0

【求助】世界黑屏! 中回复

重启浏览器,用box3.fun进入

2021-07-03T18:32:04 点赞:0

创作节招人!!!萌新勿看 中回复

进不去

它显示服务器中断

2021-07-03T18:42:44 点赞:0

吉吉喵!!!!!!!!!!!!!!!!! 中回复

重启浏览器再用新网址

2021-07-03T18:54:30 点赞:1

整朋友找不到方法?这几招轻松赶走朋友! 中回复

解决方法:运行一遍游戏

Good Luck!

2021-07-04T12:03:05 点赞:0

显示鼠标光标 中回复

左上角Esc

2021-07-04T15:52:44 点赞:0

????? 中回复

因为地图中无法搜索到有关"#TB"的实体

2021-07-04T18:24:54 点赞: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

The hope in the city 招人了 中回复

center_image

 

center_image

 

center_image

2021-07-06T15:32:34 点赞:1

企鹅大陆招人 中回复

你咋没来过呢?

约定个时间一起来

2021-07-06T17:06:49 点赞:0

The hope in the city 招人了 中回复

时当日色QWQ进一下the city in 喵e

2021-07-06T20:54:22 点赞:0

The hope in city招人了 中回复

拉拉沙发

2021-07-06T21:13:52 点赞:0

The hope in city招人了 中回复

center_image

 

2021-07-06T21:35:33 点赞:0

代码岛3.0,再见! 中回复

怀旧

2021-07-09T12:10:56 点赞:1