def update(self):
        """Called each display loop to update the slide positions."""
        super(MoveIn, self).update()

        if not self.active_transition:
            return

        # figure out which direction is non-zero and move it towards zero
        if self.slide_b_current_x:
            self.slide_b_current_x = int(
                self.slide_b_start_x * (1 - self.percent))

        if self.slide_b_current_y:
            self.slide_b_current_y = int(
                self.slide_b_start_y * (1 - self.percent))

        try:  # try in case super() completed the transition
            # blit slide_a as the background
            self.surface.blit(self.slide_a.surface, (0, 0))

            # blit slide_b on top of it
            self.surface.blit(self.slide_b.surface,
                              (self.slide_b_current_x, self.slide_b_current_y))
        except (TypeError, __HOLE__):
            pass


# The MIT License (MIT)

# Copyright (c) 2013-2015 Brian Madden and Gabe Knuth

# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.

# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
dataset/ETHPy150Open missionpinball/mpf/mpf/media_controller/transitions/move_in.py/MoveIn.update