更新 '外星人设置/alien.py'
This commit is contained in:
parent
5a0e6d0321
commit
3a89102607
|
@ -11,4 +11,11 @@ class Alien(Sprite):
|
|||
self.rect = self.image.get_rect()
|
||||
self.rect.x = self.rect.width
|
||||
self.rect.y = self.rect.height
|
||||
self.x = float(self.rect.x)
|
||||
self.x = float(self.rect.x)
|
||||
|
||||
def blitme(self):
|
||||
self.screen.blit(self.image,self.rect)
|
||||
|
||||
# 如果外星人位于屏幕边缘,就返回True
|
||||
def check_edges(self):
|
||||
screen_rect = self.screen.get_rect()
|
Loading…
Reference in New Issue