To play as Darth Vader, start one of the Tatooine maps as the Empire in an era other than the Clone Wars. Survive long enough and he will enter the battle. Once he arrives, let yourself die, and when you respawn you can choose to be your normal trooper or, instead, take control of Vader himself. Keep in mind that Jedi and Sith characters are not available in this game; those are a feature of the sequel.