The two episodes of Commander Keen in Goodbye, Galaxy are side-scrolling platform video games: the majority of the game features the player-controlled Commander Keen viewed from the side while moving on a two-dimensional plane. The player can move left and right and can jump, and can use a pogo stick to bounce continuously and jump higher than they can normally with the correct timing. The levels are composed of platforms on which Keen can stand, viewed from slightly above so as to give a pseudo-3D effect, and some platforms allow Keen to jump up through them from below, while others feature fireman's poles that Keen can climb up or down. Keen can also grab onto the edge of platforms and pull himself up. Once entered, the only way to exit a level is to reach the end, though unlike in the first trilogy of episodes, Commander Keen in Invasion of the Vorticons, the player can save their game at any point. In between levels the player travels on a two-dimensional map, viewed from above; from the map the player can enter levels by approaching the entrance or save their progress in the game. Some levels are optional to enter and may be bypassed.
Both of the episodes contain a different set of enemies in their levels, which the player must stun or avoid. The first episode contains a variety of alien creatures, including large slugs, giant bouncing mushrooms, and flying bats, while the second contains different types of robots and alien energy beings. Levels can also include hazards, such as dart traps or fire; touching a hazard or most enemies causes Keen to lose a life, and the game is ended if all of Keen's lives are lost. The episodes feature three difficulty settings, which change the number and types of enemies present. While Vorticons contained a raygun and the in-between episode Commander Keen in Keen Dreams had pellets that temporarily stunned enemies, Goodbye, Galaxy features a stun gun that knocks out most enemies permanently using ammo found throughout the game. Different enemies take differing numbers of shots to kill, or in some cases are immune. The player can also find food items throughout the levels which grant points, with an extra life awarded with enough points. The first episode also contains water droplets which award an extra life for every 100 drops, and the second green drinks which do the same. There are also colored keycards which grant access to locked parts of levels, and items which instantly grant an extra life.
Plot
The game is broken up into two episodes: "Secret of the Oracle" and "The Armageddon Machine". In the first episode, having defeated the Grand Intellect in Invasion of the Vorticons and saved the Earth, eight-year-old child genius Billy Blaze is building a faster-than-light communications radio. Upon completing it, he hears a transmission announcing that a race of aliens known as the Shikadi are planning to destroy the galaxy. Donning his helmet as Commander Keen, he takes off in his spaceship—first stunning his parents with his neural stunner gun as they call him in to dinner—for the planet of Gnosticus IV, home of the Oracle and the Gnosticenes that tend it, to find out who the Shikadi are and how they plan to destroy the galaxy. Upon arriving, he is met by a Council Page, who tells him that the council of immortal Gnosticenes have been kidnapped by the Shikadi and taken "to the Shadowlands far to the west", leaving monsters and traps to guard them. Keen journeys through the outposts and temples of the Shadowlands, rescuing all of the Gnosticenes, and afterwards they turn on the Oracle machine. The Oracle tells Keen that the Shikadi are "shadow beings from the far side of the galaxy" who are building an Armageddon Machine at Korath III to blow up the galaxy and rebuild it as they wish afterwards. As the episode ends, Keen sets off to stop them.
In "The Armageddon Machine", Keen journeys through the giant Armageddon Machine space station, destroying the subsystems of the machine located in each level. Along the way, he learns that the Shikadi are being led by the "Gannalech". After Keen reaches the final level and destroys the Quantum Explosion Dynamo, the Shikadi flee the station, and Keen looks in the control room to find out why the Shikadi wanted to destroy the galaxy. There, he finds a note, written in the series' Standard Galactic Alphabet cypher, from the final boss of the Vorticons trilogy: his school rival Mortimer McMire, whose IQ is "a single point higher" than Keen's. The note tells Keen that the McMire killed in the previous game was an android replica, that the "Gannalech" is a mispronunciation of "Grand Intellect", his title from the first trilogy, and that the Armageddon Machine was itself a distraction, as McMire plans on destroying the universe instead. As Keen leaves the command center, the game screen focuses on an abandoned football helmet in the room like Keen's, with two Ms on it.
Development
In October—December 1990, a team of employees from programming studio Softdisk, calling themselves Ideas from the Deep, developed the three-part video game Commander Keen in Invasion of the Vorticons. The group, who worked at Softdisk in Shreveport, Louisiana developing games for the Gamer's Edge video game subscription service and disk magazine, was composed of programmers John Romero and John Carmack, designer Tom Hall, artist Adrian Carmack, and manager Jay Wilbur. After the release of the game in December, and the arrival of the first US$10,500 royalty check from shareware publisher Apogee Software, the team quit Softdisk and started their own company, id Software. As part of the settlement with Softdisk—made because the team had created the game on their work computers, both in the office after hours and by taking the computers to John Carmack's house on the weekends—they agreed to make a series of games for Softdisk's Gamer's Edge subscription service. As the team began to explore creating another set of Commander Keen games, they made a prototype game for Softdisk, Commander Keen in Keen Dreams, to fulfill their obligations while also helping improve the next full set of Keen games.
For Invasion of the Vorticons, John Carmack and Romero focused exclusively on the programming, while Adrian Carmack joined late in development and had a personal art style that did not match with the game. As a result, the game was largely shaped by designer Tom Hall's personal experiences and interests. Keen's red sneakers and Green Bay Packers football helmet were items Hall wore as a child, dead enemies left behind corpses due to his belief that child players should be taught that death had permanent consequences, and enemies were based loosely on his reading of Sigmund Freud's psychological theories, such as that of the id. The team reprised their roles for both Keen Dreams and Goodbye, Galaxy, with the addition of programmer Jason Blochowiak for Goodbye, Galaxy, and changed the game engine and design for the next Keen games: an increase in graphical quality with parallax scrolling to make the background move at a different speed than the foreground, a pseudo-3D view rather than a side-on view, ramps rather than solely flat surfaces, support for sound cards, and changes to the design based on player feedback. The level maps were designed using a custom-made program called Tile Editor (TEd), which was first created for Dangerous Dave and was used for the entire Keen series as well as several other games. The working title for the game was Commander Keen II - Goodbye Galaxy.