ship
This commit is contained in:
parent
e455f416c7
commit
38519ba7f4
6
ship.py
6
ship.py
|
@ -43,4 +43,8 @@ class Ship(Sprite):
|
||||||
self.rect.centery = self.centery
|
self.rect.centery = self.centery
|
||||||
|
|
||||||
def blitme(self):
|
def blitme(self):
|
||||||
self.screen.blit(self.image, self.rect)
|
self.screen.blit(self.image, self.rect)
|
||||||
|
|
||||||
|
def center_ship(self):
|
||||||
|
"""让飞船在屏幕上居中"""
|
||||||
|
self.center = self.screen_rect.centerx
|
||||||
|
|
Loading…
Reference in New Issue