用户:know哦咯查看:3 回复:1 评论:3 创建时间:2021-09-25T10:45:40
【作品展示】

【作品介绍】
自己做的一个火影小游戏,希望大家喜欢(我不可能给岸本交版权的)。
【作品源代码】
import random
import time
Nl = 10000
Sl = 10000
ncd = 0
scd = 0
ns = random.randint(600, 700)
ss = random.randint(500, 750)
nay = random.randint(1800, 2000)
say = random.randint(1600, 2050)
nzd = 0
szd = 0
nzds = random.randint(500, 800)
szds = random.randint(600, 750)
nj = ' '
sj = ' '
print('终末之谷\n鸣人和佐助')
time.sleep(1)
print('鸣人,你别碍事!')
time.sleep(1)
print('佐助,你不能去!')
time.sleep(1)
print('我要去追寻力量!咒印·状态2!')
time.sleep(1)
print('必须跟我回去!啊啊啊(九尾·第一尾)!')
time.sleep(1)
print('螺旋丸!')
print('千鸟!')
while (Nl > 0 or Sl > 0):
nj = input('鸣人回合,普攻(j)还是技能(i)?')
if (nj == 'j'):
Sl = (Sl - ns)
ns = random.randint(600, 700)
nzd = random.randint(1, 5)
if (nzd == 5):
print('妖狐之手')
Sl = (Sl - nzds)
nzds = random.randint(500, 800)
elif (nj == 'i'):
if (ncd <= 0):
print('尾兽·螺旋丸 ')
Sl = (Sl - nay)
nay = random.randint(1800, 2000)
ncd = 4
else:
print('cd未到,无法释放')
else:
print('无效输入')
sj = input('佐助回合,普攻(j)还是技能(i)?')
if (sj == 'j'):
Nl = (Nl - ss)
ss = random.randint(500, 750)
szd = random.randint(1, 4)
if (szd == 1):
print('火遁·凤仙火术')
Nl = (Nl - szds)
szds = random.randint(500, 800)
elif (sj == 'i'):
if (scd <= 0):
print('咒印·千鸟 ')
Nl = (Nl - say)
say = random.randint(1600, 2050)
scd = 4
else:
print('cd未到,无法释放')
else:
print('无效输入')
print('回合结束。\n鸣人血量:')
print(Nl)
print('佐助血量:')
print(Sl)
ncd = (ncd - 1)
scd = (scd - 1)
if (Nl <= 0 or Sl <= 0):
break
print('ナ!ル!ト!!!!')
print('サ!ス!ゲ!!!!')
print('螺旋丸! 千鸟!')
if (Nl <= 0 and Sl > 0):
print('鸣人,这就是我和你力量之间的差距!')
print('佐助胜')
elif (Sl <= 0 and Nl > 0):
print('佐助,就算是把你的腿打断我也要把你带回去!')
print('鸣人胜')
else:
print('鸣人和佐助都倒下了...')
print('不分胜负')
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn