This game is being thoroughly updated right now...
Eggman went back in time, to create a Universe without Sonic and his friends.
Sonic and Tails followed him, the latter unaware of their presence. 1/4 of the planet was roboticized, the inhabitants, robots. He'd created a powerful time weapon, sustaining the stability of that timeline.
It's up to Sonic to destroy it once and for all!