ArticleslgStudy

computer science

Spelunky

Spelunky is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Spelunky rather than just read about it. In short: Spelunky is a 2008 platform video game created by independent developer Derek Yu and released as source-available freeware for Microsoft Windows. It was remade for the Xbox 360 in 2012, with ports of the new version following for various platforms, including back to Microsoft Windows.

Spelunky — main illustration
Spelunky — illustration

Key takeaways

  • Spelunky belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Spelunky to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Spelunky from memory before moving on to harder problems.

Reference excerpt

Spelunky is a 2008 platform video game created by independent developer Derek Yu and released as source-available freeware for Microsoft Windows. It was remade for the Xbox 360 in 2012, with ports of the new version following for various platforms, including back to Microsoft Windows. The player controls a spelunker who explores a series of caves while collecting treasure, saving damsels, fighting enemies, and dodging traps. The caves are procedurally generated, making each run-through of the game unique. The first public release was on December 21, 2008. The source code of the Windows version was released on December 25, 2009. An enhanced version for Xbox Live Arcade was released on July 4, 2012. The enhanced version was later released for Windows and PlayStation 3 in August 2013, and for PlayStation 4 in October 2014. The remake was also made available on Xbox One via backward compatibility in December 2015. A fanmade, ChromeOS version of the original game was made as well, titled Spelunky HTML5. A port for Nintendo Switch was released on August 26, 2021. A sequel, Spelunky 2, was released in September 2020. Spelunky was one of the first games to borrow concepts from roguelikes and combine them with real-time side-scrolling platformer elements. Due to its popularity, it was the influence for many later "roguelite" games. Spelunky received critical acclaim for its gameplay, atmosphere and design, though some controls and multiplayer elements polarized critics. Many critics and publications regarded it as one of the greatest video games of all time.

Gameplay

In the tutorial, the player starts off playing as Yang, who leaves a journal which is found by the next Spelunker, who is later confirmed in the second game to be known as Guy Spelunky. The aim of the game is to explore tunnels, gathering as much treasure as possible while avoiding traps and enemies. The spelunker can whip or jump on enemies to defeat them, pick up items that can be thrown to either attack enemies or set off traps, and use a limited supply of bombs and ropes to navigate the caves. Levels are randomly generated and grouped into four increasingly difficult "areas", each with a distinctive set of items, enemies, terrain types and special features. Later areas contain more valuable treasures, secret locations, and items. If the player loses all their hearts or runs into an instant-kill trap, they will have to start from the beginning. Enemies include animals like bats, snakes and spiders of varying sizes, other characters, and monsters like yeti, man-eating plants and ghosts. The player can collect many items, mainly gold and jewels which add to the player's score, but also useful objects including bombs, guns, climbing gear and archaeological artifacts. Some of the latter have supernatural abilities, including kapalas, hedjets, crystal skulls and golden ankhs, though many of these special items can only be gained through secret methods, like combining other items. Some items may be purchased or stolen from shops scattered about the caves, though the shopkeepers become powerful enemies if the player steals from them. The player can also encounter damsels in distress trapped in the caves, who can be picked up and carried to an exit. Successfully doing so returns health to the player. It's possible to unlock the damsel as a playable character; gameplay is identical, except that the player encounters spelunkers to rescue. Another unlockable character is the "Tunnel Man", who possesses a mattock instead of a whip. The Xbox Live Arcade, as well as the PlayStation Network versions of the game feature local multiplayer (co-op and deathmatch) for up to four players. There are 9 different characters to play as. The original Spelunky also includes a level editor, in which players can create their own non-random levels to share with others.

Development

Spelunky was created by Derek Yu and released as freeware for Microsoft Windows on December 21, 2008. The source code of the Windows version was published under a software license permitting noncommercial distribution and modification on December 25, 2009. Based on this source code the game community created a community patch which added support for Mac OS X. Since the game source code became available community members have created many modified versions, or mods, of the original game. Most of these were available via the forums on the website for Derek Yu's video game company, Mossmouth, where a list was maintained of finished mods. The website "Spelunky.fyi" was created by the community to maintain a list of community-made content after the Mossmouth forums were shut down. The first version of Spelunky classic was released as freeware on a private space called TIGSource forums where some players were exposed to the game and provided Derek Yu with immediate feedback for the game creating a loop of development where new additions were added to the game in response to player feedback. Shortly after, Derek released a public version of the game which gained greater exposure. Jonathan Blow, developer of Braid, reached out to Derek concerning releasing the game officially on console platforms which was a huge benefit for indie developers at the time considering the success of other indie games at the time such as Castle Crashers and World of Goo. While looking for programmers to help him on the project he reconnected with longtime friend Andy Hull who offered his services. An enhanced remake version for Xbox Live Arcade was released on July 4, 2012. The enhanced edition was also released for PC and PlayStation 3 in August 2013.

… excerpt ends here. Continue reading the full article.

Illustrations

Spelunky: Derek Yu at GDC 2007
Derek Yu at GDC 2007
Spelunky: Spelunky screenshot comparison of the original version from 2008 (left) and the HD remake from 2012 (right)
Spelunky screenshot comparison of the original version from 2008 (left) and the HD remake from 2012 (right)

Worked examples

Example 1 — a first encounter with Spelunky

Start with the simplest possible case. Write down what Spelunky claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Spelunky before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Spelunky ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Spelunky

In research
Spelunky appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Spelunky in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Spelunky is common in secondary-school and first-year university syllabi. It links to neighbouring topics 2008 video games, Freeware games, GameMaker games, so understanding it makes those chapters shorter.
In everyday life
Look for Spelunky outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Spelunky” →

How to study Spelunky in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Spelunky means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Spelunky out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Spelunky in simple terms?

Spelunky is a 2008 platform video game created by independent developer Derek Yu and released as source-available freeware for Microsoft Windows. It was remade for the Xbox 360 in 2012, with ports of the new version following for various platforms, including back to Microsoft Windows.

Why does Spelunky matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Spelunky?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Spelunky.

Tags

  • 2008 video games
  • Freeware games
  • GameMaker games
  • Independent Games Festival winners
  • Indie games
  • Multiplayer and single-player video games
  • Nintendo Switch games
  • Platformers
  • PlayStation 3 games
  • PlayStation 4 games
  • PlayStation Network games
  • PlayStation Vita games

Keep exploring