def create_bunker_7(ai_settings, screen, bunkers, alien_number1, row_number): """Create an alien, and place it in the row.""" bunker = Bunker(ai_settings, screen) bunker_width = bunker.rect.width bunker.x = 175 + 15 * bunker_width * alien_number1 bunker.rect.x = bunker.x bunker.rect.y = 550 + 1 * bunker.rect.height * row_number bunker.add(bunkers)
def create_bunker(ai_settings, screen, bunkers, x): bunker = Bunker(ai_settings, screen) bunker.rect.centerx = x bunker.add(bunkers)