subdirectory_arrow_right Metroid Prime (Game)
▲
1
▼
According to programmer Zoid Kirsch, when he first started programming and learning BASIC, one of the first programs he wrote at the age of 13 was a maze generation algorithm that could generate a maze of any size with a single solution (a C code port of Kirsch's original BASIC implementation, posted by him on Usenet in 1989, can be found here). During the development of Metroid Prime, when designing Central Dynamo, the room in the Phazon Mines with the Power Bomb upgrade, he used the same algorithm to add a randomly generated maze for the Morph Ball that players would have to solve.
One of the game's tech leads Jack Mathews expressed concern that this algorithm would eventually generate an impassible maze, so to ensure that the maze was of sufficient length, he wrote a tool that would generate and then solve the maze, picking 300 random seeds that the solver indicated at least 75% of the maze was required to be traversed. This results in 300 different mazes that can be generated in Central Dynamo. The maze also features two obstacles along the route in the form of water puddles that must be bombed to short out the nearby nodes and open the path.
When this story was originally posted to Twitter in 2022, programmer Robin Lavallée commented that he wrote a similar algorithm for the Wii game Prince of Persia: The Forgotten Sands, where all seeds were equally likely, and the solution would be stored as he built the maze.
One of the game's tech leads Jack Mathews expressed concern that this algorithm would eventually generate an impassible maze, so to ensure that the maze was of sufficient length, he wrote a tool that would generate and then solve the maze, picking 300 random seeds that the solver indicated at least 75% of the maze was required to be traversed. This results in 300 different mazes that can be generated in Central Dynamo. The maze also features two obstacles along the route in the form of water puddles that must be bombed to short out the nearby nodes and open the path.
When this story was originally posted to Twitter in 2022, programmer Robin Lavallée commented that he wrote a similar algorithm for the Wii game Prince of Persia: The Forgotten Sands, where all seeds were equally likely, and the solution would be stored as he built the maze.
https://twitter.com/ZoidCTF/status/1591122506806882304
https://groups.google.com/g/comp.lang.c/c/Uw2mgfSPtbI/m/SXmTt6_pCB8J
https://twitter.com/jack_mathews/status/1591155796695732224
https://twitter.com/robinlavallee/status/1591141684012003331
More detailed explanation of how the maze works:
https://wiki.metroidprime.run/wiki/Central_Dynamo
https://groups.google.com/g/comp.lang.c/c/Uw2mgfSPtbI/m/SXmTt6_pCB8J
https://twitter.com/jack_mathews/status/1591155796695732224
https://twitter.com/robinlavallee/status/1591141684012003331
More detailed explanation of how the maze works:
https://wiki.metroidprime.run/wiki/Central_Dynamo
Related Games
Prince of Persia: The Sands of Time
Prince of Persia
Prince of Persia: The Two Thrones
Prince of Persia: Warrior Within
Prince of Persia: The Forgotten Sands
Prince of Persia 2: The Shadow and the Flame
Prince of Persia: Redemption
Prince of Persia
Immortals Fenyx Rising
Assassin's Creed: Codename Red
Assassin's Creed III
Assassin's Creed Revelations
Assassin's Creed Unity
Assassin's Creed IV Black Flag
Assassin's Creed Odyssey
Assassin's Creed Valhalla
Tom Clancy's Rainbow Six: Vegas
Assassin's Creed Origins
Assassin's Creed Rogue
Assassin's Creed Syndicate
Assassin's Creed Brotherhood
Ratatouille
Clock Tower
SpongeBob SquarePants: Creature From the Krusty Krab
Enclave
Lead the Meerkats
Punch-Out!!
Anubis II
Front Mission Series: Gun Hazard
Just Dance 4
Mappy
Captain Rainbow
Hell's Kitchen: The Game
Tactics Ogre: Let Us Cling Together
Metal Gear 2: Solid Snake
Samurai Shodown Anthology
Cruis'n USA
Tatsunoko vs. Capcom: Ultimate All Stars
Victorious: Taking the Lead
Super Smash Bros. Brawl
Final Fantasy: Mystic Quest
One Piece: Unlimited Cruise 1 - The Treasure Beneath the Waves
Adventures of Lolo 2
We Love Golf!
Ecco: The Tides of Time
Epic Mickey
Atlantis no Nazo
Wii Sports
Just Dance 2020
Resident Evil: The Umbrella Chronicles