Edit
The Last Starfighter is a 1984 American science fiction space opera film directed by Nick Castle.
The film tells the story of Alex Rogan (played by Lance Guest), an idealisitic young man and gifted video gamer recruited by an alien defense force to fight in an interstellar war due to his superior gaming skills.
The movie also features Robert Preston (as Centauri, his final role in a theatrical film), Dan O'Herlihy, Catherine Mary Stewart (as Maggie Gordon), Norman Snow, and Kay E. Kuter.
The Last Starfighter, along with Disney's TRON, has the distinction of being one of cinema's earliest films to use extensive "real-life" computer-generated imagery (CGI) to depict its many starships, environments and battle scenes.