Commit e0f4d187 by BellCodeEditor

save project

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