Spelunky is © 2008, 2009 Derek Yu and Mossmouth, LLC, and is used under the [Spelunky User License v1.1b](https://spelunky.ai/LICENSE.txt). spelunky.ai is an unofficial fan project, not affiliated with or endorsed by Mossmouth. The game and its assets may not be sold.

Music by George Buzinkai and Jonathan Perry; sound effects made in SFXR. From Spelunky Classic 1.1, © 2008, 2009 Derek Yu and Mossmouth, LLC.

# Sun Room

From the spelunky.ai wiki: <https://spelunky.ai/wiki/sun-room>.

This page describes a secret.

The Sun Room is a bonus room of Spelunky Classic, opened by $200,000 in a game, where the player keeps himself and a Damsel alive among traps as long as he can.

![The Damsel's head, blonde, with red lips](https://spelunky.ai/wiki/media/sprites/sDamselIcon/frames/0%404x.png)

| Sun Room |                                                                   |
| -------- | ----------------------------------------------------------------- |
| Part of  | [High scores room](https://spelunky.ai/wiki/high-scores-room)[^1] |

It's the first of the three secret challenges behind the trophies of the [high scores
room](https://spelunky.ai/wiki/high-scores-room), the DAMSEL CHALLENGE. One room, built in the room editor, over a pool of [Lava](https://spelunky.ai/wiki/lava), with
[Arrow Traps](https://spelunky.ai/wiki/arrow-trap), [Spear Traps](https://spelunky.ai/wiki/spear-trap), [Smash Traps](https://spelunky.ai/wiki/smash-trap) and
[Spring Traps](https://spelunky.ai/wiki/spring-trap) that work on their own, and a [Damsel](https://spelunky.ai/wiki/damsel) who wanders among them. The
score is the seconds the player and the Damsel last, and as it climbs the room drops in lit
[bombs](https://spelunky.ai/wiki/bomb), then [Vampires](https://spelunky.ai/wiki/vampire), then the [Ghost](https://spelunky.ai/wiki/ghost).

## Generation

### Getting there

**Clip: Climbing to the Sun Room.** The high scores room, with gold trophies for money, time and kills, each with a door beside it. The player climbs the column of ledges beside them by hanging and pulling up; at each one the board reads that room's goal, and from the top ledge he goes into the Sun Room's door. ([video](https://spelunky.ai/wiki/media/clips/high-scores-room/climb/clip.mp4))

A best money score of $200,000 or more puts a gold trophy at the top of the high scores room's column of
trophies, and a door to the Sun Room under it[^1]. Climbing
up to it, the board beside the trophies reads SUN ROOM and the goal, KEEP YOURSELF AND THE DAMSEL ALIVE FOR
AS LONG AS POSSIBLE!, or LOCKED. without the score[^2]. In the
clip, with gold trophies for money, time and kills, the player climbs the column ledge by ledge, the board
naming each room, and goes through the top door[^3].

### The room

The room editor laid out the whole room, a screen wide, with the player's entrance, the Damsel, the traps
and the [vines](https://spelunky.ai/wiki/vine)[^4]. A carved sun hangs on the back wall. The bricks around its edge can't
be broken, "to prevent the Tunnel Man from tearing up the whole level", as the code's comment says[^5]. The player starts with
8 hearts, whoever he plays as[^6]; his bombs
and ropes can't be used outside a level[^7][^8][^9]. The music
is the boss music, the same in all three bonus rooms[^10].

### The challenge

**Clip: The damsel challenge.** In the Sun Room, a countdown reads DAMSEL CHALLENGE BEGINS IN 3... while the Damsel walks about among the traps. A point is counted each second as the arrow traps shoot her and the spear traps stab; a lit bomb drops from the ceiling onto the player, who stands still, and kills him at 10 points. FINISHED! and YOU SET A NEW RECORD! follow. ([video](https://spelunky.ai/wiki/media/clips/sun-room/challenge/clip.mp4))

DAMSEL CHALLENGE BEGINS IN 3... counts down at the bottom of the screen as the room starts[^11][^12]. From 100 steps
in, a point is counted every 30 steps, a second, shown at the top beside the Damsel's head[^13][^14]. The count
stops at 99, the most the high scores keep for a bonus room, two digits of one number[^15].

After 200 to 300 steps, and then every 100 to 200, something comes in, once the top of the room above the
player is open: while a block is there, the room tries again each step[^16][^17][^18]:

| Points     | What comes in                                                                                              |       |
| ---------- | ---------------------------------------------------------------------------------------------------------- | ----- |
| Under 50   | A lit [Bomb](https://spelunky.ai/wiki/bomb), at the top of the room above the player                       | [^19] |
| 50 to 79   | A [Vampire](https://spelunky.ai/wiki/vampire), flying, at the top of the middle                            | [^20] |
| 80 or more | The [Ghost](https://spelunky.ai/wiki/ghost), from the side away from the player, unless it's there already | [^21] |

The room's bombs are armed, as the player's and a [Monkey](https://spelunky.ai/wiki/monkey)'s are and no other bomb the game
lights is ([Unarmed lit bombs](https://spelunky.ai/wiki/unarmed-bombs))[^22][^23].

The challenge ends when the player dies, or when the Damsel dies or is gone: the room then takes all his
hearts[^24]. FINISHED! comes up, then YOU SET A NEW RECORD! if the
points beat the room's best, or BETTER LUCK NEXT TIME...[^25]. The
points are kept as the room's best in the high scores, which count no play, death or win for it[^26][^27].
Attack (or start) goes back to the high scores room, in front of the Sun Room's door[^28][^29].

In the clip, the player stands still through the countdown while the Damsel walks into the traps: Arrow
Traps shoot her and a Spear Trap stabs at her, and a lit bomb drops above the player and kills him at 10
points. YOU SET A NEW RECORD! follows, the room's first score[^30][^31].

## Inhabitants

| Monster                                     | Where                                                                 |       |
| ------------------------------------------- | --------------------------------------------------------------------- | ----- |
| [Damsel](https://spelunky.ai/wiki/damsel)   | One, placed in the room, walking about as she does in a level         | [^4]  |
| [Vampire](https://spelunky.ai/wiki/vampire) | Dropping in from the top of the middle, once the player has 50 points | [^20] |
| [Ghost](https://spelunky.ai/wiki/ghost)     | Coming in from a side, once the player has 80 points                  | [^21] |

The Damsel can be picked up and carried as anywhere, and her death ends the challenge. Nothing else lives
there[^4].

## Hazards

| Hazard                                               |                                                                                                                |           |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | --------- |
| [Arrow Traps](https://spelunky.ai/wiki/arrow-trap)   | Four, in the side walls, firing every 100 to 200 steps whatever is in front of them, while the player is alive | [^4][^32] |
| [Spear Traps](https://spelunky.ai/wiki/spear-trap)   | Two, side by side in the middle of the floor                                                                   | [^4]      |
| [Smash Traps](https://spelunky.ai/wiki/smash-trap)   | Four, on the ledges either side                                                                                | [^4]      |
| [Spring Traps](https://spelunky.ai/wiki/spring-trap) | Four                                                                                                           | [^4]      |
| [Lava](https://spelunky.ai/wiki/lava)                | The pool under the floor                                                                                       | [^4]      |
| Bombs, the Vampires and the Ghost                    | Dropped in as the points climb (The challenge, above)                                                          | [^33]     |

The Arrow Traps here are the only ones that fire again and again; no level has them[^34].

## Trivia

- The countdown isn't even: its 3 and its 2 show for about a second each, its 1 for a third of that, as in
  the other two bonus rooms[^11][^35][^36].

## FAQ

### How do you unlock the Sun Room in Spelunky Classic?

Finish a game with $200,000 or more. The [high scores room](https://spelunky.ai/wiki/high-scores-room) then has a gold trophy for money, and a door beside it into the Sun Room.

### What do you do in the Sun Room in Spelunky Classic?

Stay alive with the [Damsel](https://spelunky.ai/wiki/damsel): a point is counted each second, and the challenge ends when the player dies or the Damsel does. Its traps fire on their own, and bombs, then Vampires, then the Ghost drop in.

### What is the best score in the Sun Room in Spelunky Classic?

99 points, about 100 seconds: the count stops there, and the high scores keep two digits for each bonus room.

### Does the Sun Room count as a game in Spelunky Classic?

No. It keeps its own best score, but adds nothing to the plays, deaths or wins.

## See also

- **Related:** [Moon Room](https://spelunky.ai/wiki/moon-room), [Stars Room](https://spelunky.ai/wiki/stars-room), [Scoring](https://spelunky.ai/wiki/scoring), [Damsel](https://spelunky.ai/wiki/damsel)
- **Found here:** [Arrow Trap](https://spelunky.ai/wiki/arrow-trap), [Block](https://spelunky.ai/wiki/block), [Bomb](https://spelunky.ai/wiki/bomb) (Dropped in lit)[^37], [Damsel](https://spelunky.ai/wiki/damsel), [Door](https://spelunky.ai/wiki/door), [Ghost](https://spelunky.ai/wiki/ghost) (From 80 points)[^21], [Lava](https://spelunky.ai/wiki/lava), [Smash Trap](https://spelunky.ai/wiki/smash-trap), [Spear Trap](https://spelunky.ai/wiki/spear-trap), [Spelunker](https://spelunky.ai/wiki/spelunker), [Spring Trap](https://spelunky.ai/wiki/spring-trap), [Vampire](https://spelunky.ai/wiki/vampire) (Dropping in, from 50 points)[^20], [Vine](https://spelunky.ai/wiki/vine)

## References

[^1]: [`objects/oHighscores/create.gml:32-39`](https://spelunky.ai/wiki/source/objects/oHighscores/create#L32-L39)

[^2]: [`objects/oHighscores/draw.gml:14-40`](https://spelunky.ai/wiki/source/objects/oHighscores/draw#L14-L40)

[^3]: Clip [high-scores-room/climb](https://spelunky.ai/wiki/sun-room#clip-high-scores-room-climb)

[^4]: Room [`rSun`](https://spelunky.ai/wiki/source/rooms/rSun), as the room editor placed it

[^5]: [`objects/oSunRoom/create.gml:10-17`](https://spelunky.ai/wiki/source/objects/oSunRoom/create#L10-L17)

[^6]: [`objects/oSunRoom/create.gml:1`](https://spelunky.ai/wiki/source/objects/oSunRoom/create#L1)

[^7]: [`objects/oPlayer1/step.gml:944-948`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L944-L948)

[^8]: [`objects/oPlayer1/step.gml:1045`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L1045)

[^9]: [`objects/oPlayer1/step.gml:1132-1137`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L1132-L1137)

[^10]: [`scripts/startMusic.gml:75-80`](https://spelunky.ai/wiki/source/scripts/startMusic#L75-L80)

[^11]: [`objects/oSunRoom/alarm_1.gml:1-2`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_1#L1-L2)

[^12]: [`objects/oSunRoom/draw.gml:9-17`](https://spelunky.ai/wiki/source/objects/oSunRoom/draw#L9-L17)

[^13]: [`objects/oSunRoom/alarm_11.gml:1-5`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_11#L1-L5)

[^14]: [`objects/oSunRoom/draw.gml:7-8`](https://spelunky.ai/wiki/source/objects/oSunRoom/draw#L7-L8)

[^15]: [`scripts/scrUpdateHighscores.gml:117`](https://spelunky.ai/wiki/source/scripts/scrUpdateHighscores#L117)

[^16]: [`objects/oSunRoom/create.gml:5`](https://spelunky.ai/wiki/source/objects/oSunRoom/create#L5)

[^17]: [`objects/oSunRoom/alarm_0.gml:1-8`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L1-L8)

[^18]: [`objects/oSunRoom/alarm_0.gml:48-51`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L48-L51)

[^19]: [`objects/oSunRoom/alarm_0.gml:29-51`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L29-L51)

[^20]: [`objects/oSunRoom/alarm_0.gml:15-28`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L15-L28)

[^21]: [`objects/oSunRoom/alarm_0.gml:9-14`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L9-L14)

[^22]: [`objects/oSunRoom/alarm_0.gml:31-33`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L31-L33)

[^23]: [“A bomb lit by anything but the player, a Monkey or the Sun Room isn't armed.”](https://spelunky.ai/wiki/unarmed-bombs), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/441458fcee127d2a4bff9d1cb9b930574f50004a/docs/quirks.md?plain=1#L142)

[^24]: [`objects/oSunRoom/step.gml:1-14`](https://spelunky.ai/wiki/source/objects/oSunRoom/step#L1-L14)

[^25]: [`objects/oGame/draw.gml:56-75`](https://spelunky.ai/wiki/source/objects/oGame/draw#L56-L75)

[^26]: [`objects/oPlayer1/step.gml:1901-1914`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L1901-L1914)

[^27]: [`scripts/scrUpdateHighscores.gml:78-117`](https://spelunky.ai/wiki/source/scripts/scrUpdateHighscores#L78-L117)

[^28]: [`objects/oPlayer1/step.gml:907-941`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L907-L941)

[^29]: [`objects/oHighscores/create.gml:104-108`](https://spelunky.ai/wiki/source/objects/oHighscores/create#L104-L108)

[^30]: Clip [sun-room/challenge](https://spelunky.ai/wiki/sun-room#clip-sun-room-challenge)

[^31]: Replay [`fidelity/replays/bonus-sun-damsel.txt`](https://github.com/851-labs/spelunky/blob/441458fcee127d2a4bff9d1cb9b930574f50004a/fidelity/replays/bonus-sun-damsel.txt), which the clips [The damsel challenge](https://spelunky.ai/wiki/sun-room#clip-sun-room-challenge) and [Climbing to the Sun Room](https://spelunky.ai/wiki/sun-room#clip-high-scores-room-climb) play

[^32]: [`objects/oArrowRepeaterL/step.gml:1-9`](https://spelunky.ai/wiki/source/objects/oArrowRepeaterL/step#L1-L9)

[^33]: [`objects/oSunRoom/alarm_0.gml:1-52`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L1-L52)

[^34]: [“oThwompTrap is unreachable”](https://github.com/851-labs/spelunky/blob/441458fcee127d2a4bff9d1cb9b930574f50004a/docs/quirks.md?plain=1#L59), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/441458fcee127d2a4bff9d1cb9b930574f50004a/docs/quirks.md#1-bugs-and-leftovers-in-the-11-source)

[^35]: [`objects/oSunRoom/alarm_2.gml:1-2`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_2#L1-L2)

[^36]: [`objects/oSunRoom/alarm_3.gml:1`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_3#L1)

[^37]: [`objects/oSunRoom/alarm_0.gml:29-47`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0#L29-L47)

### Source code

- [`objects/oSunRoom/create.gml`](https://spelunky.ai/wiki/source/objects/oSunRoom/create)
- [`objects/oSunRoom/alarm_0.gml`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_0)
- [`objects/oSunRoom/alarm_11.gml`](https://spelunky.ai/wiki/source/objects/oSunRoom/alarm_11)
- [`objects/oSunRoom/step.gml`](https://spelunky.ai/wiki/source/objects/oSunRoom/step)
- [`objects/oSunRoom/draw.gml`](https://spelunky.ai/wiki/source/objects/oSunRoom/draw)
- [`objects/oHighscores/create.gml`](https://spelunky.ai/wiki/source/objects/oHighscores/create)
- [`objects/oHighscores/draw.gml`](https://spelunky.ai/wiki/source/objects/oHighscores/draw)
- [`scripts/scrUpdateHighscores.gml`](https://spelunky.ai/wiki/source/scripts/scrUpdateHighscores)
