I think the games came first. But I believe there was a promotional Manga that was originally released with the RB games. I don't know if that's exactly accurate, but I remember hearing about the games before hearing about the show, so I guess it was similar in Japan.