Commit e0f4d187 by BellCodeEditor

save project

parent d098b41e
Showing with 61 additions and 8 deletions
import pygame
pygame.init()
scr=pygame.displayset_mode(800,600)
while True:
for a in pygame.event.get():
if a.type==pygame.QUIT:
exit()
\ No newline at end of file
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
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