'Mario collisions with all enemies on the y-axis'

def adjust_mario_for_y_enemy_collisions(self, enemy):

    if (self.mario.y_vel > 0):
        setup.SFX['stomp'].play()
        self.game_info[c.SCORE] += 100
        self.moving_score_list.append(score.Score((enemy.rect.centerx - self.viewport.x), enemy.rect.y, 100))
        enemy.state = c.JUMPED_ON
        enemy.kill()
        if (enemy.name == c.GOOMBA):
            enemy.death_timer = self.current_time
            self.sprites_about_to_die_group.add(enemy)
        elif (enemy.name == c.KOOPA):
            self.shell_group.add(enemy)
        self.mario.rect.bottom = enemy.rect.top
        self.mario.state = c.JUMP
        self.mario.y_vel = (-7)
