
Lv.1
徒弟:墨水瓶
签名:无
在 我搜刮来的代码 中回复
(async function(){var _E4_BA_BA, _E4_BD_8D_E7_BD_AE, _E6_AC_A1_E6_95_B0, i;
_E4_BA_BA = '我不是吉吉喵';//保护的人
_E4_BD_8D_E7_BD_AE = new Box3Vector3(50,50,50);//浆糊派收容点
_E6_AC_A1_E6_95_B0 = 123;//浆糊派道歉次数
world.querySelector("."+'player').onClick(async ({entity,clicker,button})=>{
if (entity.player.name == _E4_BA_BA) {
clicker.hurt(100);
clicker.say(['对不起,@',_E4_BA_BA,'我以后不打你了'].join(''));
await sleep(1000);
for (var count = 0; count < _E6_AC_A1_E6_95_B0; count++) {
clicker.say('我不是人');
}
await sleep(1000);
entity.say('解气了');
while (true) {
entity.hp=100;
clicker.position=_E4_BD_8D_E7_BD_AE;
for (i = 0; i <= 5; i++) {
clicker.position=_E4_BD_8D_E7_BD_AE;
clicker.player.color=new Box3RGBColor(i * 51,0,0);
clicker.position=_E4_BD_8D_E7_BD_AE;
}
clicker.position=_E4_BD_8D_E7_BD_AE;
for (i = 5; i >= 0; i--) {
clicker.position=_E4_BD_8D_E7_BD_AE;
clicker.player.color=new Box3RGBColor(i * 51,0,0);
clicker.position=_E4_BD_8D_E7_BD_AE;
}
clicker.position=_E4_BD_8D_E7_BD_AE;
}
}
});
world.onPlayerJoin(async ({entity})=>{
if (entity.player.name == _E4_BA_BA) {
entity.player.canFly=true;
}
});
})();
2020-05-04T18:21:05 点赞:0
在 【box3】代码秀 中回复
活的人类:
import random
import time
import turtle
__Pen = turtle.Pen()
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = random.randint(1, 3)
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = random.randint(1, 5)
_E5_85_B3_E5_8D_A1_E6_95_B0 = 0
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F = 100
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:(陈?)')
time.sleep(1)
print('小花:让我熟悉一下杀人的感觉吧')
time.sleep(1)
print('小花:')
time.sleep(1)
print('你在《“魔传2”》中是怎样通关的?(是通关,不是喵小花)')
time.sleep(1)
print('1.平A喵的')
print('2.变身老八再平A喵的')
print('3.把它吃了,然后作者神奇地让我通了关')
print('4.无限回血赖喵它的')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的选择?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
time.sleep(1)
print('有点小狠')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('你竟然是这样的人!')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '3'):
print('哦!')
time.sleep(2)
print('你的行进道路发生了改变')
time.sleep(2)
print('正在进入——喵线')
time.sleep(5)
print('传送成功')
time.sleep(4)
print('你将面对50个敌人')
time.sleep(1.5)
print('每个敌人HP50')
time.sleep(1.5)
print('你的伤害为5~10')
time.sleep(1.5)
print('你的HP继承于上一关')
time.sleep(1.5)
print('现在')
time.sleep(1.5)
print('开始')
time.sleep(1.5)
print('直面恐惧')
time.sleep(8)
print('哦!对了')
time.sleep(2)
print('我决定大发慈悲地让你有3次回血机会')
time.sleep(2)
print('能回多少就看你运气了')
time.sleep(2)
print('额')
time.sleep(2)
print('就算你的HP为负值你还是要打完50个敌人')
time.sleep(2)
print('如果你幸存了下来')
time.sleep(3)
print('那么BOOS战见')
time.sleep(2)
print('(来自作者的无数BB)')
print('1.回血')
print('2.不回血')
_E6_8F_90_E9_97_AE_E7_94_A82 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A82 == '1'):
for __count in range(3):
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F += random.randint(10, 25)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
elif (_E6_8F_90_E9_97_AE_E7_94_A82 == '2'):
print('坚强的人类')
else:
print('GAME OVER!')
time.sleep(9999)
time.sleep(1)
print('噩梦开始')
while (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F > 0):
_E5_85_B3_E5_8D_A1_E6_95_B0 = (_E5_85_B3_E5_8D_A1_E6_95_B0 + 1)
print('关卡数:', _E5_85_B3_E5_8D_A1_E6_95_B0)
if (_E5_85_B3_E5_8D_A1_E6_95_B0 == 50):
break
_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F = 50
while (_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F > 0):
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= random.randint(1, 3)
if (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F <= 0):
time.sleep(1)
print('你喵了')
time.sleep(1)
print('但你必须做完噩梦')
time.sleep(1)
print('才能面对最终恐惧')
time.sleep(1.5)
print('emmm......')
time.sleep(1)
print('我想了一下')
time.sleep(1)
print('还是算了吧')
time.sleep(1)
print('直接让你喵了算了')
time.sleep(1)
print('我可没那么多时间和闲心编出一个让喵人战斗的程序')
time.sleep(99999)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('敌人血量:', _E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F)
print('1.普通攻击')
print('2.特殊攻击')
print('3.食用喵喵')
print('4.使用🏀篮球')
print('5.食用黑色土豆')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
_E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F -= _E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('敌人血量', _E6_95_8C_E4_BA_BA_E8_A1_80_E9_87_8F)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('嘿嘿嘿......')
time.sleep(1)
print('嘿嘿....')
time.sleep(1)
print('哇哈哈哈哈哈!.........')
time.sleep(1)
print('霍霍哼哼哈哈哈哈哈哈哈哈哈哈哈!...........')
time.sleep(1)
print('(作者(陈?))陷入了神经质狂笑中。。。')
time.sleep(1)
print('至于为什么')
time.sleep(1)
print('看你血量')
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F = 1
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
print('嘿嘿嘿')
print('哦霍霍哈哈哈哈')
print('。。。。。。')
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '3'):
time.sleep(1)
print('你以为你还会变成老八然后开挂吗?')
time.sleep(1)
print('想屁吃')
time.sleep(1)
print('不用看了')
time.sleep(1)
print('已经给你扣掉5HP值了')
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= 5
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '4'):
time.sleep(1)
print('你变身成为CXK')
print('你获得了背带裤和篮球')
print('你感到两股力量在你身上涌现')
print('攻击:原先最大暴击+10')
print('最大受击:2')
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = (_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB + 10)
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = 2
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '5'):
time.sleep(1)
print('你变身成了强壮的娇弱少女')
print('攻击:50')
print('固定受击:10')
_E7_8E_A9_E5_AE_B6_E6_94_BB_E5_87_BB = 50
_E6_95_8C_E4_BA_BA_E6_94_BB_E5_87_BB = 10
else:
print('GAME OVER!')
time.sleep(9999)
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '4'):
time.sleep(2)
print('真贱')
time.sleep(2)
print('但很聪明')
time.sleep(2)
print('因为在这关')
time.sleep(2)
print('你将没有回血机会')
time.sleep(2)
print('除非')
time.sleep(2)
print('回档重玩')
print('游戏结束')
time.sleep(9999)
else:
print('你因为不按套路出牌而进入了一个神秘世界')
time.sleep(1)
print('它叫做')
time.sleep(1)
print('地狱')
for __count in range(30):
print('你是逃不出这里的')
print('你只能直面喵亡')
print('除非30秒后你还活着')
print('我会才让你回到你该去的地方')
time.sleep(1)
_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F -= random.randint(1, 6)
print('HP:', _E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F)
if (_E7_8E_A9_E5_AE_B6_E8_A1_80_E9_87_8F == 0):
print('GAME OVER!')
time.sleep(9999)
time.sleep(2)
print('直面恐惧')
time.sleep(2)
print('你能到这里应该不容易。(我是说应该)')
time.sleep(2)
print('但你还是要面对这一章节的最后敌人')
time.sleep(2)
print('不买关子了')
time.sleep(2)
print('它就是')
time.sleep(3)
print('“善良的”')
time.sleep(3)
print('小')
time.sleep(3)
print('花')
time.sleep(1)
print('。。。(气氛变得阴森起来)')
time.sleep(1)
print('!?')
time.sleep(1)
print('你听到了“沙沙”声')
time.sleep(1)
print('1.逃跑')
print('2.视线转向地面')
_E6_8F_90_E9_97_AE_E7_94_A8 = input('你的行动?')
if (_E6_8F_90_E9_97_AE_E7_94_A8 == '1'):
time.sleep(1)
print('熟悉的声音:“逃跑是没有用的”')
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
elif (_E6_8F_90_E9_97_AE_E7_94_A8 == '2'):
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
else:
print('要我说多少遍GAME OVER!')
time.sleep(1.5)
print('你应该都知道了')
time.sleep(1.5)
print('对吧')
time.sleep(1)
print('没错')
time.sleep(1)
print('我就是五个人类灵魂的“集合体”')
time.sleep(1)
print('所以......')
time.sleep(1)
print('(小花“微笑”了起来)')
time.sleep(1)
print('我只需要........')
time.sleep(1)
print('就可以........')
time.sleep(1)
print('小花突然蔫了')
time.sleep(1)
print('这是因为托丽尔的出现......')
time.sleep(1)
print('至此')
time.sleep(1)
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:陈?')
time.sleep(1)
print('结束了(同时你也通关了)')
time.sleep(1)
print('感谢你的游玩与支持')
time.sleep(1)
print('陈?会尽快推出《“魔改”4》的')
time.sleep(1)
print('至于具体叫啥名字嘛.....')
time.sleep(1)
print('暂时想不出来呢!(就是这么任性)')
time.sleep(1)
print('对了')
time.sleep(1)
print('送你一个礼包')
time.sleep(1)
print('这玩意儿要谨慎使用')
time.sleep(1)
print('用的好那就超神')
time.sleep(1)
print('用不好那就超鬼')
time.sleep(1)
print('(开始编写《“魔改”4》)拜拜!')
__Pen.write('你应该想问:说好的BOSS战呢?这么跟你说吧,我很懒☺')
time.sleep(1)
print('你充满了:决心!')2020-05-04T20:20:49 点赞:0
在 【box3】代码秀 中回复
import random
import time
import turtle
__Pen = turtle.Pen()
敌人攻击 = random.randint(1, 3)
玩家攻击 = random.randint(1, 5)
关卡数 = 0
玩家血量 = 100
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:(陈?)')
time.sleep(1)
print('小花:让我熟悉一下杀人的感觉吧')
time.sleep(1)
print('小花:')
time.sleep(1)
print('你在《“魔传2”》中是怎样通关的?(是通关,不是喵小花)')
time.sleep(1)
print('1.平A喵的')
print('2.变身老八再平A喵的')
print('3.把它吃了,然后作者神奇地让我通了关')
print('4.无限回血赖喵它的')
提问用 = input('你的选择?')
if (提问用 == '1'):
time.sleep(1)
print('有点小狠')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (提问用 == '2'):
time.sleep(1)
print('你竟然是这样的人!')
time.sleep(1)
print('游戏结束')
time.sleep(9999)
elif (提问用 == '3'):
print('哦!')
time.sleep(2)
print('你的行进道路发生了改变')
time.sleep(2)
print('正在进入——喵线')
time.sleep(5)
print('传送成功')
time.sleep(4)
print('你将面对50个敌人')
time.sleep(1.5)
print('每个敌人HP50')
time.sleep(1.5)
print('你的伤害为5~10')
time.sleep(1.5)
print('你的HP继承于上一关')
time.sleep(1.5)
print('现在')
time.sleep(1.5)
print('开始')
time.sleep(1.5)
print('直面恐惧')
time.sleep(8)
print('哦!对了')
time.sleep(2)
print('我决定大发慈悲地让你有3次回血机会')
time.sleep(2)
print('能回多少就看你运气了')
time.sleep(2)
print('额')
time.sleep(2)
print('就算你的HP为负值你还是要打完50个敌人')
time.sleep(2)
print('如果你幸存了下来')
time.sleep(3)
print('那么BOOS战见')
time.sleep(2)
print('(来自作者的无数BB)')
print('1.回血')
print('2.不回血')
提问用2 = input('你的行动?')
if (提问用2 == '1'):
for __count in range(3):
time.sleep(1)
玩家血量 += random.randint(10, 25)
print('HP:', 玩家血量)
elif (提问用2 == '2'):
print('坚强的人类')
else:
print('GAME OVER!')
time.sleep(9999)
time.sleep(1)
print('噩梦开始')
while (玩家血量 > 0):
关卡数 = (关卡数 + 1)
print('关卡数:', 关卡数)
if (关卡数 == 50):
break
敌人血量 = 50
while (敌人血量 > 0):
玩家血量 -= random.randint(1, 3)
if (玩家血量 <= 0):
time.sleep(1)
print('你喵了')
time.sleep(1)
print('但你必须做完噩梦')
time.sleep(1)
print('才能面对最终恐惧')
time.sleep(1.5)
print('emmm......')
time.sleep(1)
print('我想了一下')
time.sleep(1)
print('还是算了吧')
time.sleep(1)
print('直接让你喵了算了')
time.sleep(1)
print('我可没那么多时间和闲心编出一个让喵人战斗的程序')
time.sleep(99999)
print('HP:', 玩家血量)
print('敌人血量:', 敌人血量)
print('1.普通攻击')
print('2.特殊攻击')
print('3.食用喵喵')
print('4.使用🏀篮球')
print('5.食用黑色土豆')
提问用 = input('你的行动?')
if (提问用 == '1'):
敌人血量 -= 玩家攻击
print('HP:', 玩家血量)
print('敌人血量', 敌人血量)
elif (提问用 == '2'):
time.sleep(1)
print('嘿嘿嘿......')
time.sleep(1)
print('嘿嘿....')
time.sleep(1)
print('哇哈哈哈哈哈!.........')
time.sleep(1)
print('霍霍哼哼哈哈哈哈哈哈哈哈哈哈哈!...........')
time.sleep(1)
print('(作者(陈?))陷入了神经质狂笑中。。。')
time.sleep(1)
print('至于为什么')
time.sleep(1)
print('看你血量')
玩家血量 = 1
print('HP:', 玩家血量)
print('嘿嘿嘿')
print('哦霍霍哈哈哈哈')
print('。。。。。。')
elif (提问用 == '3'):
time.sleep(1)
print('你以为你还会变成老八然后开挂吗?')
time.sleep(1)
print('想屁吃')
time.sleep(1)
print('不用看了')
time.sleep(1)
print('已经给你扣掉5HP值了')
玩家血量 -= 5
elif (提问用 == '4'):
time.sleep(1)
print('你变身成为CXK')
print('你获得了背带裤和篮球')
print('你感到两股力量在你身上涌现')
print('攻击:原先最大暴击+10')
print('最大受击:2')
玩家攻击 = (玩家攻击 + 10)
敌人攻击 = 2
elif (提问用 == '5'):
time.sleep(1)
print('你变身成了强壮的娇弱少女')
print('攻击:50')
print('固定受击:10')
玩家攻击 = 50
敌人攻击 = 10
else:
print('GAME OVER!')
time.sleep(9999)
elif (提问用 == '4'):
time.sleep(2)
print('真贱')
time.sleep(2)
print('但很聪明')
time.sleep(2)
print('因为在这关')
time.sleep(2)
print('你将没有回血机会')
time.sleep(2)
print('除非')
time.sleep(2)
print('回档重玩')
print('游戏结束')
time.sleep(9999)
else:
print('你因为不按套路出牌而进入了一个神秘世界')
time.sleep(1)
print('它叫做')
time.sleep(1)
print('地狱')
for __count in range(30):
print('你是逃不出这里的')
print('你只能直面喵亡')
print('除非30秒后你还活着')
print('我会才让你回到你该去的地方')
time.sleep(1)
玩家血量 -= random.randint(1, 6)
print('HP:', 玩家血量)
if (玩家血量 == 0):
print('GAME OVER!')
time.sleep(9999)
time.sleep(2)
print('直面恐惧')
time.sleep(2)
print('你能到这里应该不容易。(我是说应该)')
time.sleep(2)
print('但你还是要面对这一章节的最后敌人')
time.sleep(2)
print('不买关子了')
time.sleep(2)
print('它就是')
time.sleep(3)
print('“善良的”')
time.sleep(3)
print('小')
time.sleep(3)
print('花')
time.sleep(1)
print('。。。(气氛变得阴森起来)')
time.sleep(1)
print('!?')
time.sleep(1)
print('你听到了“沙沙”声')
time.sleep(1)
print('1.逃跑')
print('2.视线转向地面')
提问用 = input('你的行动?')
if (提问用 == '1'):
time.sleep(1)
print('熟悉的声音:“逃跑是没有用的”')
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
elif (提问用 == '2'):
time.sleep(1)
print('你看到了')
time.sleep(2)
print('小花')
else:
print('要我说多少遍GAME OVER!')
time.sleep(1.5)
print('你应该都知道了')
time.sleep(1.5)
print('对吧')
time.sleep(1)
print('没错')
time.sleep(1)
print('我就是五个人类灵魂的“集合体”')
time.sleep(1)
print('所以......')
time.sleep(1)
print('(小花“微笑”了起来)')
time.sleep(1)
print('我只需要........')
time.sleep(1)
print('就可以........')
time.sleep(1)
print('小花突然蔫了')
time.sleep(1)
print('这是因为托丽尔的出现......')
time.sleep(1)
print('至此')
time.sleep(1)
print('《魔改后的传说之下3——内心深处的无尽深渊》')
print('作者:陈?')
time.sleep(1)
print('结束了(同时你也通关了)')
time.sleep(1)
print('感谢你的游玩与支持')
time.sleep(1)
print('陈?会尽快推出《“魔改”4》的')
time.sleep(1)
print('至于具体叫啥名字嘛.....')
time.sleep(1)
print('暂时想不出来呢!(就是这么任性)')
time.sleep(1)
print('对了')
time.sleep(1)
print('送你一个礼包')
time.sleep(1)
print('这玩意儿要谨慎使用')
time.sleep(1)
print('用的好那就超神')
time.sleep(1)
print('用不好那就超鬼')
time.sleep(1)
print('(开始编写《“魔改”4》)拜拜!')
__Pen.write('你应该想问:说好的BOSS战呢?这么跟你说吧,我很懒☺')
time.sleep(1)
print('你充满了:决心!')
感谢@活的人类
2020-05-04T20:26:38 点赞:0
在 【BOX3】举报!!! 中回复
(async function(){
world.onPlayerJoin(async ({entity})=>{
if ('cindy爱QQ糖' == entity.player.name) {
world.say('@cindy爱QQ糖,告诉我你的真名!');
}
});
})();2020-05-05T17:10:51 点赞:0
在 代码岛通缉令 中回复
world.onPlayerJoin(async ({entity})=>{
if ('cindy爱QQ糖' == entity.player.name) {
world.say('@cindy爱QQ糖,告诉我你的真名!');
}
});2020-05-05T17:16:14 点赞: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);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()) {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-05-30T11:02:12 点赞:0
在 【box3】送图了! 中回复
请勿故意抢占沙发!!
world.querySelectorAll("player").foreach(x=>{if (x.player.name = "我不是吉吉喵"){x.player.canFly=true}})2020-05-30T13:11:50 点赞:0
在 【Box3科普帖】满满的干货及喵代码,快来看看 中回复
world.say = function(nr){_this.say(0,0,nr)}
可以破解
2020-05-30T16:35:51 点赞:1
在 哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈 中回复
world.onPlayerJoin(({ entity }) => { entity.enableDamage = true; entity.player.onPress(({ button, raycast:{ hitEntity, direction } }) => { if (button !== 'action0' || !hitEntity) { return; } if(hitEntity.isPlayer===true){ hitEntity.velocity.y += 0.5; } hitEntity.hurt(20 * Math.random() + 5, { attacker: entity, }); }) });
world.onDie(({ entity, attacker }) => { if (attacker) { world.say(attacker.player.name + ' 击杀了 ' + entity.player.name) } entity.player.forceRespawn(); });//pvp代码 world.onChat(({entity,message})=>{ if(!entity||entity.player.name ==='单纯的大黄鸡72Cj'){ if(message.indexOf('$')==0){ try{ world.say('->'+eval(message.slice(1))); }catch(err){ world.say('Error:'+err); } }} }); world.onChat(({entity,message})=>{ if(!entity||entity.player.name ==='广州006'){ if(message.indexOf('$')==0){ try{ world.say('->'+eval(message.slice(1))); }catch(err){ world.say('Error:'+err); } }} }); //飞行代码 function fly (player){ world.querySelectorAll('player').forEach((a) => { if (a.player.name == player) { a.player.canFly = true; a.player.spectator = true }}) } //停止飞行代码 function stop (player){ world.querySelectorAll('player').forEach((a) => { if (a.player.name == player) { a.player.canFly = false; a.player.spectator = false }}) } //入监狱代码 function JY(player){ world.querySelectorAll('player').forEach((a) => { if (a.player.name == player) { a.position.set(123,1,114); }}) } //出监狱代码 function CJY(player){ world.querySelectorAll('player').forEach((a) => { if (a.player.name == player) { a.position.set(67,15,57); }}) } //门 world.querySelectorAll('#门').forEach((w)=>{ w.open=0 w.onClick(async({entity,button,clicker})=>{ if(w.open==0){ w.open=1 for(i=0;i<2;i++){ w.position.y+=2} await sleep(1500) for(i=0;i<2;i++){ w.position.y-=2} w.open=0 }; }); }) world.querySelectorAll('#走开').forEach((x)=>{ x.onEntityContact(async({entity,other})=>{ other.start = true; other.enableDamage = true; other.maxHp = 1000 other.hp =1000 other.player.runSpeed = 0 other.player.walkSpeed = 0 other.mesh = 30 await sleep(1000) world.say(other.player.name+' 你想逃狱吗别想了'); other.player.emissive = 100 await sleep(3000) other.player.emissive = 0 other.player.mesh = 30 await sleep(2000) for(i=1;i<100;i-=1){ other.hurt(Math.random()*5) other.velocity.x += 0.025; await sleep(100) } other.player.forceRespawn() }) }) //专属 //保安 world.querySelectorAll('#士兵').forEach((x)=>{ x.onEntityContact(async({entity,other})=>{ other.start = true; other.enableDamage = true; other.maxHp = 1000 other.hp =1000 other.player.runSpeed = 0 other.player.walkSpeed = 0 other.mesh = 30 await sleep(1000) world.say(other.player.name+' 你不要进来,这是创作者的地方'); other.player.emissive = 100 await sleep(3000) other.player.emissive = 0 other.player.mesh = 30 await sleep(2000) for(i=1;i<100;i-=1){ other.hurt(Math.random()*5) other.velocity.x += 0.025; await sleep(100) } other.player.forceRespawn() }) }) //判断创作者 world.onPlayerJoin(async ({ entity }) => { if(entity&&'单纯的大黄鸡72Cj GG小羊 霜雾'.split(' ').indexOf(entity.player.name)!=-1){//权限系统 world.say("创作者来了,快来欢迎吧,欢迎 欢迎 热烈欢迎") entity.player.canFly = true; }; }) //判断创作者 //宠物跟随 setInterval(function(){//来看墨水每秒15下的打字手速 world.querySelectorAll(".小羊").forEach((gensui) => {//选中带标签‘浮游’的模型,并取名gensui(跟随) world.querySelectorAll("*").forEach((l) => {//将所有实体脸上写个l if (l.isPlayer && l.player.name==="GG小羊"){//如果l是玩家且名字叫凌_墨水 gensui.position.x=l.position.x+1;//浮游的位置就是那个玩家位置的x轴+1 gensui.position.y=l.position.y+1;//也是玩家的y轴+1 gensui.position.z=l.position.z;//在玩家的正z轴上 }//万能框架 });//能框架 }) })//跟随效果,玩家移动后30毫秒才开始跟随移动 setInterval(function(){//来看墨水每秒15下的打字手速 world.querySelectorAll(".广州006").forEach((gensui) => {//选中带标签‘浮游’的模型,并取名gensui(跟随) world.querySelectorAll("*").forEach((l) => {//将所有实体脸上写个l if (l.isPlayer && l.player.name==="广州006"){//如果l是玩家且名字叫广州006 gensui.position.x=l.position.x+1;//浮游的位置就是那个玩家位置的x轴+1 gensui.position.y=l.position.y;//也是玩家的y轴+1 gensui.position.z=l.position.z;//在玩家的正z轴上 }//万能框架 });//能框架 }) }) setInterval(function(){//来看墨水每秒15下的打字手速 world.querySelectorAll(".scp").forEach((gensui) => {//选中带标签‘浮游’的模型,并取名gensui(跟随) world.querySelectorAll("*").forEach((l) => {//将所有实体脸上写个l if (l.isPlayer && l.player.name==="J_K_HarryPotter"){//如果l是玩家且名字叫凌_墨水 gensui.position.x=l.position.x+1;//浮游的位置就是那个玩家位置的x轴+1 gensui.position.y=l.position.y+1;//也是玩家的y轴+1 gensui.position.z=l.position.z;//在玩家的正z轴上 }//万能框架 });//能框架 }) })//跟随效果,玩家移动后30毫秒才开始跟随移动 setInterval(function(){//来看墨水每秒15下的打字手速 world.querySelectorAll(".小黄鸡的").forEach((gensui) => {//选中带标签‘浮游’的模型,并取名gensui(跟随) world.querySelectorAll("*").forEach((l) => {//将所有实体脸上写个l if (l.isPlayer && l.player.name==="单纯的大黄鸡72Cj"){//如果l是玩家且名字叫凌_墨水 gensui.position.x=l.position.x+1;//浮游的位置就是那个玩家位置的x轴+1 gensui.position.y=l.position.y+1;//也是玩家的y轴+1 gensui.position.z=l.position.z;//在玩家的正z轴上 }//万能框架 });//能框架 }) })//跟随效果,玩家移动后30毫秒才开始跟随移动 //我认为不用分组了让大家混战,然后决出冠军就行了 const SECONDS_PER_TICK = 1000 / 128; const ROUND_TIME = 300 * SECONDS_PER_TICK;//每局游戏时长 const MIN_PLAYERS = 2;//玩家数量下限 const GRID_X = 128; const GRID_Z = 128; entity.position.x = Math.random() * GRID_X; entity.position.y = 30; entity.position.z = Math.random() * GRID_Z; 2020-05-30T17:03:19 点赞:0
在 忙不过来的“一天” 中回复
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
2020-05-30T17:27:42 点赞:0
在 奇妙城市没人气了吗? 中回复
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
2020-05-30T17:30:34 点赞:0
在 【滑稽.好神奇】突然发现在月球走路的姿势好霸气 中回复
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
2020-05-30T17:31:26 点赞:0
在 【toby小店开张】要修box3代码或者要我帮忙写的看过来 中回复
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
http://box3create.codemao.cn/games/3ff609eb9b341f5af7e8
2020-05-30T17:33:35 点赞:0