Commit cbb242df by BellCodeEditor

auto save

parent e0f4d187
Showing with 7 additions and 60 deletions
class Hero(object): import pygame
def__init__(self,name) pygame.init()
self.name = name scr=pygame.display.set_mode(800,600)
self.level = 1 while True:
self.hp = 250 for a in pygame.event.get():
self.attac if a.type==pygame.QUIT:
self.
print(self)
print('-'*30)
print(" 战斗开始")
while Ture:
print('-'*30)
a=input("1,攻击,2治疗:")
if a=='q':
exit() exit()
\ No newline at end of file
if a=='1':
houyi.cure()
if a=="2":
houyi.cure()
b=random.randint(1,3)
if b==1:
yase.cure()
\ 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