code: def get_matrix(self):
          
          if self.parent:
              return self.get_local_matrix() * (self._prev_parent_matrix or self.parent.get_matrix())
          else:
              return self.get_local_matrix()
docs: return sprite's current transformation matrix