Commit 7634c482 by BellCodeEditor

save project

parent d59451a2
Showing with 6 additions and 8 deletions
import pygame class Hero:
def __init__(self):
# 初始化pygame,为使用pygame做准备 self.level = 1
pygame.init() self.hp = 300
self.attack = 20
# 创建一个窗口 \ No newline at end of file
??
\ 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