Commit e0a31101 by BellCodeEditor

auto save

parent 15de3723
Showing with 10 additions and 20 deletions
class Herp: import pygame
def __init__(self,name,hp,attack): from sys import exit
self.level = 1 from pygame.locals import *
self.name = name pygame.into()
self.hp = hp pygame.display.set_caption(("打飞机!"))
self.attack = attack screen=pygame.display.set_made((700,500))
yase = Herp("亚瑟",300,20) background=pygame.image
def upgradr(): while Ture:
yase.level=yase.level+1
yase.hp=yase.hp+30 \ No newline at end of file
yase.attack = yase.attack+50
upgradr()
print(yase.name)
print(yase.hp)
print(yase.attack)
upgradr()
print(yase.name)
print(yase.hp)
print(yase.attack)
\ 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