def getGameState(self):
        state = {
            "player_x": self.player.rect.center[0],
            "player_vel": self.player.vel,
            "fruit_x": self.fruit.rect.center[0],
            "fruit_y": self.fruit.rect.center[1]
        }

        return state
Gets a non-visual state representation of the game.
dataset/ETHPy150Open ntasfi/PyGame-Learning-Environment/ple/games/catcher.py/Catcher.getGameState