Commit 3788c4de by BellCodeEditor

save project

parent 7abb9ac6
Showing with 9 additions and 13 deletions
class Hero: if event.type==locals.MOUSEBUTTONDOWN:
def __init__(self,name,hp,attack): click+=1
self.level=1 if click % 2==0:
self.name=name pygame.mixer.music.unpause()
self.hp=hp play_button=stop_img
self.attack=attack else:
yase=Hero('yase',300,20) pygame.mixer.music.pause()
hy=Hero('hy',250,23) play_button=play_img
k=Hero('K',5600,199) \ No newline at end of file
print(yase.attack)
print(hy.attack)
print(k.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