To unlock Shadow in Super Smash Flash 2, play as Sonic and defeat the target test (Tals) 30 times.
Once you've completed that challenge, Shadow will become available as a playable character. It takes some persistence, but the reward is a fast and formidable addition to your roster.