猫史档案馆


马虎的星能猫Gqjt

马虎的星能猫Gqjt

Lv.1

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

【业余课程】详解联机匹配模块 中回复

emotion_编程猫_谢谢老板

2021-02-26T08:36:44 点赞:0

【代码岛3.0】挖方块代码 中回复

world.onPress(({button,raycast:{voxelIndex,hitEntity},entity})=>{
    // if(clicker.isPlayer){
        if(button=='action0'){
                console.clear();
                console.warn('position:');
                console.log(`${voxelIndex.x},${voxelIndex.y},${voxelIndex.z}`);
                console.warn('clicker:');
                console.log(entity.player.name);
                console.warn('hit player:');
                try{
                console.log(hitEntity.player.name);
                }catch(err){
                console.log('nothing-'+err);
                }
                voxels.setVoxel(voxelIndex.x,voxelIndex.y,voxelIndex.z,'air');
                return;
            // }
        }else if(button=='action1'){}
    // }
})

2022-01-30T16:16:56 点赞:0

谁有云聊天房间的代码?急需!!! 中回复

悬赏!告诉我qq,悬赏90rmb

 

 

2022-02-13T15:15:48 点赞:0