206530217 #8

Merged
xd merged 15 commits from 206530217 into master 2021-06-24 02:14:48 +00:00
1 changed files with 9 additions and 0 deletions
Showing only changes of commit 51b31a539b - Show all commits

View File

@ -41,3 +41,12 @@ class Alien(Sprite):
# 加载外星人图像并设置其rect属性
self.image = pygame.image.load('images/boosalien.png')
self.rect = self.image.get_rect()
self.screen_rec=screen.get_rect()
self.rect.x=550
self.rect.y=100
# 储存外星人的精准位置
self.x=float(self.rect.x)
# #设置生命值
# health=100
def blitme(self):
"""在指定位置绘制外星人"""