猫史档案馆


不起眼的账号

不起眼的账号

Lv.1

QAQ

获赞:272收藏:30浏览:5451作品收藏:44

签名:

回复帖子评论
上一页2 页 / 共 67下一页

奇怪的设定 中回复

微

2020-04-07T10:39:30 点赞:0

奇怪的设定 中回复

2020-04-07T10:40:55 点赞:0

奇怪的设定 中回复

全部代码编程名词展示

c++
Python
JavaScript
C

2020-04-07T10:44:05 点赞:0

大 家 好 我来了…… 中回复

不想这样投票显露那就在这……反正没有其他地方了此帖说的人:Wuhanrefueling&???(我可不能告诉你……)

2020-04-07T20:51:54 点赞:0

自己做的网页…… 中回复

这可不行,file:///C:/Users/Administrator/Pictures/%E9%87%8D%E8%A6%81%E6%96%87%E4%BB%B6%E5%A4%B9/%E6%88%91%E7%9A%84%E7%BD%91%E9%A1%B5.ht ml

2020-04-09T15:25:12 点赞:0

自己做的网页…… 中回复

<html>
<head>
<title>我的网站
</title>
</head>


<body>
哈哈哈<br>
喵<br>
呵呵<br>
妈的<br>
和<br>
Python<br>
好的<br>
Scratch<br>
好玩吗?<br>

</body>
</html>

源代码,

Wuhanrefueling 回复 蕉饼电脑有限公司:电脑记事本写上去,然后另存为,然后后面写着:.ht ml(空格去掉)然后选择类型,所有类型然后选择默认浏览器打开,然后就可以了

2020-04-09T15:52:41 点赞:0

自己做的网页…… 中回复

shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,

shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,shift+,

2020-04-09T15:58:42 点赞:0

🧬【源代码全公开!】圈地之王开发接力挑战 中回复

const SECONDS_PER_TICK = 1000 / 128; 
const ROUND_TIME = 200 * SECONDS_PER_TICK;//每局游戏时长
const MIN_PLAYERS = 2;//玩家数量下限
const GRID_X = 128;
const GRID_Z = 128;

const TEAMS = [
    { r: 1, g: 0, b: 0, v: voxels.id('red_light'),      n: '红队',       score: 0, },
    { r: 0, g: 1, b: 0, v: voxels.id('green_light'),    n: '绿队',     score: 0, },
    { r: 0, g: 0, b: 1, v: voxels.id('blue_light'),     n: '蓝队',      score: 0, },
    { r: 1, g: 0, b: 1, v: voxels.id('purple'),         n: '紫队',   score: 0, },
    { r: 0, g: 1, b: 1, v: voxels.id('indigo_light'),   n: '靛蓝队',      score: 0, },
    { r: 1, g: 1, b: 0, v: voxels.id('yellow_light'),   n: '黄队',    score: 0, },
];

// 辅助函数,用于随机打乱一个数组
function shuffle (array) {
    for (let i = 1; i < array.length; ++i) {
        const temp = array[i];
        const x = (Math.random() * (i + 1)) | 0;
        array[i] = array[x];
        array[x] = temp;
    }
    return array;
}

async function startGame () {
    // 将地面初始化,全部变成不锈钢
    for (let j = 0; j < GRID_Z; ++j) {
        for (let i = 0; i < GRID_X; ++i) {
            voxels.setVoxel(i, 8, j, 'stainless_steel');
        }
    }
    
    // 等待玩家进入
    while (world.querySelectorAll('player').length < MIN_PLAYERS) {
        world.say('等待其他玩家加入...');
        await sleep(1000);
        world.say('2个玩家立即开始');
        await world.nextPlayerJoin();
    }

    // 足够玩家加入后,就开始倒计时
    for (let i = 3; i > 0; --i) {
        world.say(i + '...');
        await sleep(1000);
    }
    world.say('去圈地吧!看谁是圈地之王?');
    
    // 每局都随机打乱队伍
    const players = shuffle(world.querySelectorAll('player'));
    shuffle(TEAMS);
    
    // 设置玩家的颜色和初始位置
    function setTeam (p, t) {
        p.player.color.r = t.r;
        p.player.color.g = t.g;
        p.player.color.b = t.b;
        p.position.x = Math.random() * GRID_X;
        p.position.y = 30;
        p.position.z = Math.random() * GRID_Z;
    }

    // 获得初始团队
    const teams = players.map((p, i) => {
        const t = TEAMS[i % TEAMS.length]
        setTeam(p, t);
        return t;
    })
    
    //当玩家接触到地面任意方块时,更新该方块的颜色
    const contactHandler = world.onVoxelContact(({ entity, x, y, z }) => {
        const idx = players.indexOf(entity);
        if (idx < 0) {
            return;
        }
        const t = teams[idx];
        voxels.setVoxelId(x, y, z, t.v);
    });
    
    // 新玩家加入,会被随机分配到一个队伍
    const joinHandler = world.onPlayerJoin(({entity}) => {
        const t = TEAMS[(Math.random() * teams.length) | 0];
        setTeam(entity, t);
        teams.push(t);
        players.push(entity)
    });
    
    // 每局游戏会在计时到达时结束。
    const endTick = world.currentTick + ROUND_TIME;
    
    // 检测游戏是否进行中
    function gameInProgress () {
        let numActivePlayers = 0;
        for (let i = 0; i < players.length; ++i) {
            if (!players[i].destroyed) {
                numActivePlayers += 1;
            }
        }
        return world.currentTick < endTick && numActivePlayers >= MIN_PLAYERS;
    }
    
    // 通过深度优先搜索,将圈起来的地自动填色
    const visited = new Uint8Array(GRID_X * GRID_Z)
    const toVisit = []
    function mark (i, j, team) {
        const idx = i + j * GRID_X;
        if (i < 0 || i >= GRID_X ||
            j < 0 || j >= GRID_Z ||
            visited[idx] ||
            voxels.getVoxel(i, 8, j) === team) {
            return;
        }
        visited[idx] = true;
        toVisit.push(i, j);
    }
    function fillHoles (team) {
        visited.fill(0);
        for (let i = 0; i < Math.max(GRID_X, GRID_Z); ++i) {
            mark(i, 0, team);//更正了,将8改成了0
            mark(0, i, team);
            mark(GRID_X - 1, i, team);
            mark(i, GRID_Z - 1, team);
        }
        
        while (toVisit.length > 0) {
            const z = toVisit.pop() | 0;
            const x = toVisit.pop() | 0;
            mark(x - 1, z, team);
            mark(x + 1, z, team);
            mark(x, z - 1, team);
            mark(x, z + 1, team);
        }
        
        let score = 0;
        for (let j = 0; j < GRID_Z; ++j) {
            for (let i = 0; i < GRID_X; ++i) {
                const idx = i + j * GRID_X;
                if (!visited[idx]) {
                    voxels.setVoxelId(i, 8, j, team);
                    score += 1;
                }
            }
        }
        return score;
    }
    
    // 当游戏运行时
    while (gameInProgress()) {
        // 等待 1 Tick
        await world.nextTick();
        
        // 计算各队伍的分数
        for (let i = 0; i < TEAMS.length; ++i) {
            const c = TEAMS[i].score = fillHoles(TEAMS[i].v);
            
            // 如果有团队圈完全场,那么直接胜出
            if (c >= GRID_X * GRID_Z) {
                break;
            }
        }
    }
    
    // 清除事件处理器
    contactHandler.cancel();
    joinHandler.cancel();

    // 重置玩家颜色
    for (let i = 0; i < players.length; ++i) {
        const c = players[i].player.color;
        c.r = c.g = c.b = 1;
    }
    world.say('本局游戏结束!');
    await sleep(5000);
    
    // 宣布获胜队伍
    TEAMS.sort((a, b) => b.score - a.score);
    world.say(`恭喜 ${TEAMS[0].n} 成为圈地之王!!`);
    await sleep(10000);
}

// 无限循环游戏
async function gameLoop () {
    while (true) {
        await startGame();    
    }
}
gameLoop();

呵呵

2020-04-10T18:27:08 点赞:0

社区星评选规则更新 中回复

emotion_编程猫_伤心

2020-04-11T12:34:57 点赞:0

社区星评选规则更新 中回复

额……

145555555555555555
ugsda4417524adas手机卡好的hskjda5414

2020-04-11T13:11:29 点赞:0

呀!我终于要开创工作室的条件了! 中回复

center_image

2020-04-11T22:35:02 点赞:0

呀!我终于要开创工作室的条件了! 中回复

2020-04-12T08:47:02 点赞:0

呀!我终于要开创工作室的条件了! 中回复

center_image

2020-04-12T08:50:23 点赞:0

谁能破解这段代码? 中回复

我都开了server客户端海龟函数连接了

2020-04-12T17:26:57 点赞:0

谁能破解这段代码? 中回复

我用代码转换过来的,我换成积木因为是怕一些人看不懂

2020-04-12T17:27:54 点赞:0

新版作品,多连做 中回复

你觉得,想要继续做下去这个主题活动吗?

1.

继续下去

2.

不了,我觉得宣传也没用

下面回复

2020-04-12T22:43:20 点赞:0

新版作品,多连做 中回复

2020-04-12T22:55:35 点赞:0

新版作品,多连做 中回复

<iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe><iframe src ="https://player.codemao.cn/we/45111032"></iframe>

2020-04-12T23:16:51 点赞:0

谁能破解这段代码? 中回复

center_image

2020-04-13T10:12:54 点赞:0

谁能破解这段代码? 中回复

测试屏蔽词:喵 鄙 视

2020-04-13T17:15:54 点赞:0

抠图专家…… 中回复

效果这样

center_image

2020-04-13T19:08:24 点赞:0

抠图专家…… 中回复

生無可戀的摩羯

center_image

你的抠图已完成

2020-04-13T19:21:57 点赞:0

抠图专家…… 中回复

我发现了缺点

center_image

这张图片才是好的

2020-04-13T19:33:02 点赞:0

抠图专家…… 中回复

我开一下PS

2020-04-13T19:37:49 点赞:0

抠图专家…… 中回复

额……

center_image只有人的

2020-04-13T20:10:39 点赞:0

抠图专家…… 中回复

你们自己选吧

2020-04-13T20:11:25 点赞:0

抠图专家…… 中回复

སམེནངཆུགེནིའནདེཽཤིེ༇

ནིདེཏུཕིའནཟི་ིཤུའན

2020-04-13T20:46:32 点赞:0

【测试】/۫ۨۖ۬۟ۙ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚ 中回复

ིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིོོོོོོོོོོོོོོོ/

2020-04-13T20:53:58 点赞:0

【测试】/۫ۨۖ۬۟ۙ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚ 中回复

ེེེིུཡིུཡིཡིཡིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིིཁཁཁ/

2020-04-13T20:55:39 点赞:0

【测试】/۫ۨۖ۬۟ۙ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚ 中回复

/۫ۨۖ۬۟ۙ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚۡ۬ۖۙۧۨۖۤۡۘۙۙۡۖۖۘۧ۫ۖۢۡۙۙۘۡۗۖۗۧ۬ۖۡۡۚۙۗۡۘۖۖۧۖۖ۠ۡۛۙۖۡۙۖ۬ۧۗۖ۟ۡۜۙ۬ۡۚۖ۫ۧۘۖۜۡ۟ۙ۫ۡۛۖۨۧۙۖۛۡ۠ۙۨۡۜۖۧۧۚۖۚۡۡۙۧۡ۟ۖۤۧۛۖۙۡۢۙۤۡ۠ۖۢۧۜۖۘۡۤۙۢۡۡۖۡۧ۟ۖۗۡۧۙۡۡۢۖ۠ۧ۠ۖۖۡۨۙ۠ۡۤۖ۟ۧۡۖ۬ۡ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚۡ۬ۖۙۧۨۖۤۡۘۙۙۡۖۖۘۧ۫ۖۢۡۙۙۘۡۗۖۗۧ۬ۖۡۡۚۙۗۡۘۖۖۧۖۖ۠ۡۛۙۖۡۙۖ۬ۧۗۖ۟ۡۜۙ۬ۡۚۖ۫ۧۘۖۜۡ۟ۙ۫ۡۛۖۨۧۙۖۛۡ۠ۙۨۡۜۖۧۧۚۖۚۡۡۙۧۡ۟ۖۤۧۛۖۙۡۢۙۤۡ۠ۖۢۧۜۖۘۡۤۙۢۡۡۖۡۧ۟ۖۗۡۧۙۡۡۢۖ۠ۧ۠ۖۖۡۨۙ۠ۡۤۖ۟ۧۡۖ۬ۡ۫ۙ۟ۡۧۖۜۧۢۖ۫ۡ۬ۙۜۡۨۖۛۧۤۖۨۡۖۙۛۡ۫ۖۚۧۧۖۧۡۗۙۚۡ۬ۖۙۧۨۖۤۡۘۙۙۡۖۖۘۧ۫ۖۢۡۙۙۘۡۗۖۗۧ۬ۖۡۡۚۙۗۡۘۖۖۧۖۖ۠ۡۛۙۖۡۙۖ۬ۧۗۖ۟ۡۜۙ۬ۡۚۖ۫ۧۘۖۜۡ۟ۙ۫ۡۛۖۨۧۙۖۛۡ۠ۙۨۡۜۖۧۧۚۖۚۡۡۙۧۡ۟ۖۤۧۛۖۙۡۢۙۤۡ۠ۖۢۧ

2020-04-13T20:57:36 点赞:0