上传文件至 ''

This commit is contained in:
206530113 2021-06-17 15:11:38 +08:00
parent ffd8643a97
commit 96f8595c16
1 changed files with 9 additions and 0 deletions

9
子弹类.txt Normal file
View File

@ -0,0 +1,9 @@
# 子弹类
# 属性 坐标 速度 图片
class Bullet(pygame.sprite.Sprite):
def __init__(self, screen, x, y):
pygame.sprite.Sprite.__init__(self)
# 图片
self.image = pygame.image.load('./feiji/bullet.png')
self.rect = self.image.get_rect() # rect属性矩形