Development
Super Mario Bros. was designed by Shigeru Miyamoto and Takashi Tezuka of the Nintendo Creative Department, and largely programmed by Toshihiko Nakago of SRD, which became a longtime Nintendo partner and later a wholly owned subsidiary. The original Mario Bros., released in 1983, is an arcade platformer that takes place on a single screen with a black background. Miyamoto used the term "athletic games" to refer to what would later be known as platform games. For Super Mario Bros., Miyamoto wanted to create a more colorful "athletic game" with a scrolling screen and larger characters.
Development was a culmination of the team's technical knowledge after working on the 1984 games Devil World, Excitebike, and Kung Fu, along with their desire to further advance the platforming "athletic game" genre they had created with their earlier games. The side-scrolling gameplay of the racing game Excitebike and the beat 'em up game Kung-Fu Master, the latter ported by Miyamoto's team to the NES as Kung Fu, were key steps towards Miyamoto's vision of an expansive side-scrolling platformer; in turn, Kung-Fu Master was an adaptation of the Jackie Chan film Wheels on Meals (1984). While working on Excitebike and Kung Fu, he came up with the concept of a platformer that would have the player "strategize while scrolling sideways" over long distances, have aboveground and underground levels, and have colorful backgrounds rather than black backgrounds. Super Mario Bros. used the fast scrolling game engine Miyamoto's team had originally developed for Excitebike, which allowed Mario to smoothly accelerate from a walk to a run, rather than move at a constant speed like in earlier platformers. Pac-Man creator Toru Iwatani has stated that Miyamoto had told him personally that an earlier scrolling platformer using Iwatani's character, Pac-Land, was an influence on Super Mario Bros.
Miyamoto also wanted to create a game that would be the "final exclamation point" for the ROM cartridge format before the forthcoming Famicom Disk System was released. Development for Super Mario Bros. began in the fall of 1984 at the same time as The Legend of Zelda, another Famicom game directed and designed by Miyamoto and released in Japan five months later, and the games shared some similar elements; for instance, the fire bars that appear in the Mario castle levels began as objects in Zelda.
To have a new game available for the end-of-year shopping season, Nintendo aimed for simplicity. In December 1984, the team created a prototype in which the player moved a 16x32-pixel rectangle around a single screen. Tezuka suggested using Mario after seeing the sales figures of Mario Bros. In February 1985, the team chose the name Super Mario Bros. after implementing the Super Mushroom power-up. The game initially used a concept in which Mario or Luigi could fly a rocket ship while firing at enemies, but this went unused; the final game's sky-based bonus stages are a remnant of this concept. The team found it illogical that Mario was hurt by stomping on turtles in Mario Bros. so decided that future Mario games would "definitely have it so that you could jump on turtles all you want". Miyamoto initially imagined Bowser as an ox, inspired by the Ox King from the Toei Animation film Alakazam the Great (1960). However, Tezuka decided he looked more like a turtle, and they collaborated to create his final design.
The development of Super Mario Bros. is an early example of specialization in the video game industry, made possible and necessary by the Famicom's arcade-capable hardware. Miyamoto designed the game world and led a team of seven programmers and artists who turned his ideas into code, sprites, music, and sound effects. Developers of previous hit games joined the team in February 1985, importing many special programming techniques, features, and design refinements such as these: "Donkey Kong's slopes, lifts, conveyor belts, and ladders; Donkey Kong Jr.'s ropes, logs and springs; and Mario Bros.'s enemy attacks, enemy movement, frozen platforms and POW Blocks".
The development team initially designed the levels around a small Mario, intending to scale up his sprite in the final release, however, they ultimately decided it would be more engaging to allow players to alter the character's size dynamically via a power-up. The early level design was focused on teaching players that mushrooms were distinct from Goombas and would be beneficial to them, so in World 1-1, the first mushroom is difficult to avoid if it is released. The use of mushrooms to change size was influenced by Japanese folktales in which people wander into forests and eat magical mushrooms; this also resulted in the game world being named the "Mushroom Kingdom". The team had Mario begin levels as small Mario to make obtaining a mushroom more gratifying. Miyamoto explained: "When we made the prototype of the big Mario, we did not feel he was big enough. So, we came up with the idea of showing the smaller Mario first, who could be made bigger later in the game; then players could see and feel that he was bigger." Miyamoto denied rumors that developers implemented a small Mario after a bug caused only his upper half to appear. Miyamoto said the shell-kicking 1-up trick was carefully tested, but "people turned out to be a lot better at pulling the trick off for ages on end than we thought". Other features, such as blocks containing multiple coins, were inspired by programming glitches.
Super Mario Bros. was developed for a cartridge with 256 kilobits (32KiB) of program code and data and 64 kilobits (8KiB) of sprite and background graphics. Due to this storage limitation, the designers happily considered their aggressive search for space-saving opportunities to be akin to their own fun television game show competition. For instance, clouds and bushes in the game's backgrounds use that same sprite recolored, and background tiles are generated via an automatic algorithm. Around July 1985, development time was extended to 3–4 weeks to adjust and fix memory bugs. Sound effects were also recycled; the sound when Mario is damaged is the same as when he enters a pipe, and Mario jumping on an enemy is the same sound as each stroke when swimming. After completing the game, the development team decided that they should introduce players with a simple, easy-to-defeat enemy rather than beginning the game with Koopa Troopas. By this point, the project had nearly run out of memory, so the designers created the Goombas by making a single static image and flipping it back and forth to save space while creating a convincing character animation. After the addition of the game's music, around 20 bytes of open cartridge space remained. Miyamoto used this remaining space to add a sprite of a crown into the game, which would appear in the player's life counter as a reward for obtaining at least 10 lives. After filling up left-over space, the game was released to manufacturing in August 1985.