Commit 48f98a03 by BellCodeEditor

save project

parent 324fdf4c
Showing with 17 additions and 15 deletions
# 英雄角色类
playerharo = ''
Haros = {'垭瑟':'330 200 20','后裔':'300 130 27','李百':'250 140 26','太乙真仁':'340 160 26'}
VIPSHaros = {'垭瑟':'660 400 50','后裔':'600 260 27','李百':'500 280 52','太乙真仁':'680 260 52'}
VIP = 23413
class Haro:
def __init__(self,name,hp,attack,fy):
self.name = name
self.hp = hp
self.attack = attack
self.fy = fy
def zj(names):
self.names.hp += 50
self.names.attack += 2
self.names.fy += 10
def pk():
input('按1治疗,按2攻击')
jn = input('按1治疗,按2普攻,按3一技能,按4二技能''按5三技能')
print('-'*30)
def start(a):
print(a)
playerharo = input('输入玩家的英雄')
if playerharo in a:
playerharo
h = Haros[playerharo].split()
class Haro:
def __init__(self):
self.name = h[1]
self.hp = hp
self.attack = attack
self.fy = fy
playerharo = Haro(hp,attack,fy)
print('游戏开始!')
print('-'*30)
else:
print('')
while True:
mm = input('你是 A.VIP玩家 B.普通玩家')
print('-'*30)
if mm == 'A':
mm = input('请输入密码')
if mm == VIP:
......@@ -31,4 +32,5 @@ while True:
elif mm == 'B':
start(Haros)
else:
print('输入错误!')
\ No newline at end of file
print('输入错误!')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment