def draw(self, milliseconds, surface, cell):
        """Draw out the specified cell"""
        # print self.cells[cell]
        self.source = self.cells[cell].copy()
        # Find the current scale of the image in relation to its original scale.
        current_scale = Vector2()
        current_scale.X = self.rect.width / float(self.untransformed_image.get_width())
        current_scale.Y = self.rect.height / float(self.untransformed_image.get_height())
        # self.source.x *= self.scale.X
        # self.source.y *= self.scale.Y
        self.source.width *= current_scale.X
        self.source.height *= current_scale.Y
        super(SpriteSheet, self).draw(milliseconds, surface)
def draw ( self , milliseconds , surface , cell ) : self . source = self . cells [ cell ] . copy ( ) current_scale = Vector2 ( ) current_scale . X = self . rect . width / float ( self . untransformed_image . get_width ( ) ) current_scale . Y = self . rect . height / float ( self . untransformed_image . get_height ( ) ) self . source . width *= current_scale . X self . source . height *= current_scale . Y super ( SpriteSheet , self ) . draw ( milliseconds , surface )
Draw out the specified cell