在编程实现打飞机时,完成生产一堆外星人后,运行未出现问题,
编写行动外星人时,出现TypeError: invalid destination position for blit
错误,求指教!!!
def update_screen(ai_setting, screen, ship, aliens, bullets):
screen.fill(ai_setting.bg_color)
for bullet in bullets.sprites():
if bullet.rect.bottom <= 0:
bullets.remove(bullet)
bullet.draw_bullet()
ship.blitme()
aliens.draw(screen)
pygame.display.flip()
参考下这个喃https://stackoverflow.com/questions/12365494/pygameinvalid-destination-position-for-blit