Commit cbb242df by BellCodeEditor

auto save

parent e0f4d187
Showing with 8 additions and 61 deletions
class Hero(object):
def__init__(self,name)
self.name = name
self.level = 1
self.hp = 250
self.attac
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
import pygame
pygame.init()
scr=pygame.display.set_mode(800,600)
while True:
for a in pygame.event.get():
if a.type==pygame.QUIT:
exit()
\ 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