猫史档案馆


做地图时,千万不要自作主张的改代码!

用户:北极熊xry北极熊xry查看:0 回复:4 评论:0 创建时间:2022-01-27T17:37:15


做地图时,

千万不要自作主张的改代码!

我,就是应为改了一点数据:

原来代码

const pad = world.querySelector('#弹射跳板-1')
pad.onEntityContact(({ other, axis }) => {
    if (axis.y === -1) { 
        other.velocity.y = 2
    }
})

情况:

center_image

用了2秒又38

我改了一下数据

const pad = world.querySelector('#弹射跳板-1')
pad.onEntityContact(({ other, axis }) => {
    if (axis.y === -1) { 
        other.velocity.y = 100
    }
})

结果!

center_image

我,来到了外太空,下不来了!用了1分9秒又55!

!!!!!

总结:

      像这样的代码,值太高了你会后悔的!

 

 


回复

上一页1 页 / 共 1下一页
Architect_皮卡awaArchitect_皮卡awa

()吓喵我了——()emotion_doge

点赞0


评论


柚子Gent柚子Gent

我还以为改了个代码把岛三弄崩了)))

点赞0


评论


某人的意思sbsbsbsbsbsbsb某人的意思sbsbsbsbsbsbsb

e我还以为是什么那...

点赞0


评论


小树同学小树同学

hh

点赞0


评论