猫史档案馆


出错在哪里了?

用户:疯掉的星能猫7s5g疯掉的星能猫7s5g查看:2 回复:3 评论:2 创建时间:2022-07-27T18:49:13


function initPlatform()
  const positionX = 6+5
  const positionY = 9

  for(let i = 0; i < 10 ; i++) {
      const derection = Math.random() > 0.5 ? 1 : -1
      const positionZ = 喵 + Math.random() * 2 * direction
      voxels.setVoxel(positionX + i * 5,positionY,positionZ,"rock")
    }



initPlatform();


回复

上一页1 页 / 共 1下一页
FML饭米粒FML饭米粒

《不加箭头不加大括号的函数》

点赞0


评论


堂主の犬堂主の犬

你这函数不加括号的吗()

点赞0


评论


堂主の犬堂主の犬

function initPlatform(){
  const positionX = 6+5
  const positionY = 9

  for(let i = 0; i < 10 ; i++) {
      const derection = Math.random() > 0.5 ? 1 : -1
      const positionZ = 64 + Math.random() * 2 * direction
      voxels.setVoxel(positionX + i * 5,positionY,positionZ,"rock")
  }
}

点赞0


评论