(written from a Production point of view)
Star Trek: The Motion Picture was one of the first games created for the Vectrex Arcade System, a self-contained vector graphics home gaming system. The system included its own game screen (which required plastic overlays to simulate color graphics) and a controller with 360-degree joystick and four control buttons.
The object of this game--a basic "shoot-'em-up" style game for 1 or 2 players--was to travel through space and destroy Klingon and Romulan ships. Gameplay had you flying the USS Enterprise through nine space sectors trying to reach the "Klingon Mothership" in Sector 9. Players could control shields and phasers and dock with Space stations once per sector to replenish their shields and weapons.
The game was released in the U. S. in 1982. It was released in 1983 in overseas markets just entitled Star Ship and as Harmagedon in Japan only. These versions of the game added the additional control of a pause button and the Klingon ships had a more filled out look, along with the Star Trek Debugged hack being sold at Classic Game Creations years later, which that version of the game is just believed to be a hack of Star Ship.
The game also was seen in the movie Android, where the character Max 404 was seen playing it.