def __center_view_on_character(self, entity):
        """
        Center view on given entity
        """
        location = entity.location
        width = 32
        height = 32

        self.view.setSceneRect((location[0] * 32) - width // 2,
                              (location[1] * 32) - height // 2,
                              width,
                              height)
dataset/ETHPy150Open tuturto/pyherc/src/herculeum/ui/gui/map.py/PlayMapWidget.__center_view_on_character/original