Dark Sonic isn't from a video game either. He appears in the Sonic X cartoon series.
If you're actually thinking of Darkspine Sonic, that's a different character who comes from the game Sonic and the Secret Rings.