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.

# Lamp

From the spelunky.ai wiki: <https://spelunky.ai/wiki/lamp>.

The Lamp is a carryable item in Spelunky Classic, a hanging lamp brought down by breaking its block, that lights the dark 96 pixels around it.

![A black iron lantern, its four small panes glowing orange](https://spelunky.ai/wiki/media/sprites/sLampItem/anim%404x.png)

| Lamp     |                                                                                                                                                                                                                                                                                                                                                           |
| -------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Kind     | Carryable                                                                                                                                                                                                                                                                                                                                                 |
| Effect   | Lights the dark; heavy[^1]                                                                                                                                                                                                                                                                                                                                |
| Damage   | 1 hit point[^2][^3][^4][^5][^6][^7]                                                                                                                                                                                                                                                                                                                       |
| Objects  | `oLampItem`, `oLampRedItem`, `oLamp`, `oLampRed`                                                                                                                                                                                                                                                                                                          |
| Found in | [The Mines](https://spelunky.ai/wiki/mines), [The Jungle](https://spelunky.ai/wiki/jungle), [The Ice Caves](https://spelunky.ai/wiki/ice-caves), [The Temple](https://spelunky.ai/wiki/temple), [Black Market](https://spelunky.ai/wiki/black-market), [Yeti lair](https://spelunky.ai/wiki/yeti-lair), [Dark level](https://spelunky.ai/wiki/dark-level) |

Every shop has a lamp hanging from its ceiling, and a [dark level](https://spelunky.ai/wiki/dark-level) in the [Mines](https://spelunky.ai/wiki/mines) hangs
more of them under its blocks. Hanging, a lamp is part of the scenery; when the block it hangs from is
destroyed, it falls as a Lamp, a heavy item the player can carry and throw. On a dark level, carried or not,
a plain Lamp lights the cave around it, as a [Flare](https://spelunky.ai/wiki/flare) does. The [Kissing Parlor](https://spelunky.ai/wiki/kissing-parlor)'s lamp is
red, and falls as a red Lamp, which, unlike the plain one, lights nothing once it's down.

## Usage

**Clip: A shop's lamp brought down.** In a Weapon shop whose shopkeeper is dead, the player throws a lit bomb up toward the lamp. It goes off under the ceiling and breaks the block the lamp hangs from, and the lamp falls to the floor, a Lamp he can carry. ([video](https://spelunky.ai/wiki/media/clips/lamp/fall/clip.mp4))

### Bringing it down

A hanging lamp isn't an item: it can't be picked up, and it flickers where it hangs[^8]. When the block above it is destroyed, the block's last act is to
replace it with a Lamp, red if the hanging lamp was, which then falls[^9]. Not when that block is a stone [block](https://spelunky.ai/wiki/block), or another
block whose destroy event is its own (ice, a trap's): that doesn't run this code, so the lamp stays hanging in the
air[^10][^11]. A shop's lamp hangs from the shop's ceiling, out of reach of a
[Bomb](https://spelunky.ai/wiki/bomb) on the floor[^12], and a lit bomb in a shop within 96 pixels of the [Shopkeeper](https://spelunky.ai/wiki/shopkeeper)
angers him[^13][^14].
In the clip, in a Weapon shop whose shopkeeper is dead, the player throws a lit bomb up toward the lamp; it
goes off under the ceiling, the block the lamp hangs from breaks, and the lamp drops to the floor[^15].

### Carrying it

A Lamp is picked up and thrown as any item is ([Throwing](https://spelunky.ai/wiki/throwing)), but it's heavy, like a
[Golden Idol](https://spelunky.ai/wiki/golden-idol): the player carries it in front of him at his own height, and throws it at 4 pixels a
step plus his own speed, rising at 2, or at 4 upward[^16][^17][^18]. He sets it down when
he takes an exit, so it stays on its level[^19]. Thrown faster than
2 pixels a step into a monster, it takes 1 hit point from the monster nearest it, as any thrown
item does[^20].

### Light

On a lit level a Lamp gives no light: there's no darkness for it to cut. On a [dark level](https://spelunky.ai/wiki/dark-level):

| Lamp                           | Its own light          | The player's light                       |            |
| ------------------------------ | ---------------------- | ---------------------------------------- | ---------- |
| Hanging, plain or red          | Within 96 pixels of it | Widens as he nears it, within 200 pixels | [^21][^22] |
| A plain Lamp, carried or lying | Within 96 pixels of it | Widens as he nears it, within 200 pixels | [^1][^23]  |
| A red Lamp, carried or lying   | None                   | Unchanged                                | [^24][^25] |

While the player is within 96 pixels of a red lamp, hanging or down, every light on the screen is tinted
red[^26]. The hanging red lamp is a kind of the plain one in the
game's objects, so the code that lights the hanging lamps lights it too; the red Lamp isn't a kind of the plain
Lamp, and the code that lights a Lamp's circle and widens the player's light names only the plain one[^1][^23]. So a red
Lamp carried through a dark level lights nothing but its tint ([The red Lamp gives no light](https://spelunky.ai/wiki/red-lamp-no-light))[^27].

## Locations

| Lamp           | Where                                                                                                                                                                                                                                                                                                                                                                             |                                     |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------- |
| Plain, hanging | In every shop, from the ceiling, in [the Mines](https://spelunky.ai/wiki/mines), [the Jungle](https://spelunky.ai/wiki/jungle), [the Ice Caves](https://spelunky.ai/wiki/ice-caves) (and the [Yeti lair](https://spelunky.ai/wiki/yeti-lair)) and [the Temple](https://spelunky.ai/wiki/temple), and in each of the [Black Market](https://spelunky.ai/wiki/black-market)'s shops | [^28][^29][^30][^31][^32][^33]      |
| Red, hanging   | In the [Kissing Parlor](https://spelunky.ai/wiki/kissing-parlor), in place of the plain one: the Temple's has its own red lamp tile, and the other areas' room scripts hang the red lamp on a level whose shop is the Kissing Parlor                                                                                                                                              | [^34][^35][^36][^37][^38][^39][^40] |
| Plain, hanging | On a [dark level](https://spelunky.ai/wiki/dark-level) in the Mines: 1 in 60 under a block with two open tiles below, once the [Giant Spider](https://spelunky.ai/wiki/giant-spider)'s roll fails                                                                                                                                                                                 | [^41][^42]                          |

The Lamp itself, the item, only ever comes from a hanging lamp's block: [level generation](https://spelunky.ai/wiki/level-generation)
makes none, and the [level editor](https://spelunky.ai/wiki/level-editor) has no tile for either. In the second clip, the player
throws a lit bomb up under the Kissing Parlor's ceiling, and its red lamp falls into the crater below, a red
Lamp[^43][^44].

**Clip: The red lamp brought down.** In a Kissing Parlor, its shopkeeper dead, the player jumps and throws a lit bomb up under the ceiling. The blast breaks the block the shop's red lamp hangs from, and the lamp falls into the crater below, a red Lamp he can carry. ([video](https://spelunky.ai/wiki/media/clips/lamp/red/clip.mp4))

## Interactions

- **[Bombs](https://spelunky.ai/wiki/bomb).** An explosion breaks the block a lamp hangs from, which brings it down, and throws a Lamp
  away from it without breaking it[^45][^46].
- **[Lava](https://spelunky.ai/wiki/lava).** A Lamp that touches lava stops and sinks, and is destroyed once it's under the surface[^47].
- **Water** does nothing to a Lamp: the check that puts a Flare out is in the Flare's own code, and the Lamp
  has none[^48].

## Tips

- A plain Lamp is a light that water can't put out and that never runs out, but it can't leave its level:
  on a dark level, it's for lighting the way to the exit.
- A red Lamp is no use as a light: down, it lights nothing.

## Trivia

- The Lamp's create event is the [Golden Idol](https://spelunky.ai/wiki/golden-idol)'s, its name and value changed: it's heavy, carried
  at the player's height as the idol is, and keeps a value, $1,000, and the idol's trigger, which only the idol's
  code reads, so picking a Lamp up sets off no trap, and an exit takes it from his hands rather than paying for
  it[^16][^49][^50][^51].
- The red Lamp's create event is the same as the plain one's, name and all: both are "Lamp"[^52].

## FAQ

### How do you get a Lamp in Spelunky Classic?

By breaking the block a lamp hangs from. Every shop has a lamp hanging from its ceiling, and a [dark level](https://spelunky.ai/wiki/dark-level) in the Mines hangs more under its blocks; the block's destruction brings the lamp down as a Lamp the player can carry.

### What does a Lamp do in Spelunky Classic?

It lights the dark. On a dark level, a plain Lamp lights 96 pixels around it, carried or lying on the ground, and widens the player's own light as he nears it. On a lit level it does nothing but be carried and thrown.

### Does the red Lamp light the dark in Spelunky Classic?

No. Hanging in the [Kissing Parlor](https://spelunky.ai/wiki/kissing-parlor), the red lamp lights its circle as any lamp does, but once it's down, the code lights circles for the plain Lamp only: the red one only tints the light near it red.

### Can you take a Lamp to the next level in Spelunky Classic?

No. A Lamp is heavy, and the player sets a heavy item down when he takes an exit, so it stays on its level.

## See also

- **Related:** [Dark level](https://spelunky.ai/wiki/dark-level), [Flare](https://spelunky.ai/wiki/flare), [Kissing Parlor](https://spelunky.ai/wiki/kissing-parlor), [General Store](https://spelunky.ai/wiki/general-store), [Throwing](https://spelunky.ai/wiki/throwing), [The red Lamp gives no light](https://spelunky.ai/wiki/red-lamp-no-light), [Tiki Torch](https://spelunky.ai/wiki/tiki-torch)
- **Damages:** [Damsel](https://spelunky.ai/wiki/damsel)

## References

[^1]: [`objects/oScreen/step_begin.gml:191-194`](https://spelunky.ai/wiki/source/objects/oScreen/step_begin#L191-L194)

[^2]: [`objects/oItem/step.gml:282`](https://spelunky.ai/wiki/source/objects/oItem/step#L282)

[^3]: [`objects/oItem/step.gml:294`](https://spelunky.ai/wiki/source/objects/oItem/step#L294)

[^4]: [`objects/oItem/step.gml:305`](https://spelunky.ai/wiki/source/objects/oItem/step#L305)

[^5]: [`objects/oItem/step.gml:315`](https://spelunky.ai/wiki/source/objects/oItem/step#L315)

[^6]: [`objects/oItem/step.gml:325`](https://spelunky.ai/wiki/source/objects/oItem/step#L325)

[^7]: [`objects/oItem/step.gml:344`](https://spelunky.ai/wiki/source/objects/oItem/step#L344)

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

[^9]: [`objects/oSolid/destroy.gml:24-33`](https://spelunky.ai/wiki/source/objects/oSolid/destroy#L24-L33)

[^10]: [“Most blocks but an area's plain rock skip what breaking a block does.”](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md?plain=1#L86), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md#1-bugs-and-leftovers-in-the-11-source)

[^11]: Replay [`fidelity/replays/terrain-stone-block-lamp.txt`](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/fidelity/replays/terrain-stone-block-lamp.txt)

[^12]: [“A lamp item comes only from the block a hanging lamp hangs from.”](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md?plain=1#L81), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md#1-bugs-and-leftovers-in-the-11-source)

[^13]: [`objects/oBomb/step.gml:6-17`](https://spelunky.ai/wiki/source/objects/oBomb/step#L6-L17)

[^14]: [“A lit bomb in a shop angers every active Shopkeeper”](https://spelunky.ai/wiki/bomb-angers-every-shopkeeper), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md?plain=1#L202)

[^15]: Clip [lamp/fall](https://spelunky.ai/wiki/lamp#clip-lamp-fall)

[^16]: [`objects/oLampItem/create.gml:3-8`](https://spelunky.ai/wiki/source/objects/oLampItem/create#L3-L8)

[^17]: [`objects/oItem/step.gml:44-50`](https://spelunky.ai/wiki/source/objects/oItem/step#L44-L50)

[^18]: [`scripts/scrUseItem.gml:609-635`](https://spelunky.ai/wiki/source/scripts/scrUseItem#L609-L635)

[^19]: [`objects/oPlayer1/step.gml:815-820`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L815-L820)

[^20]: [`objects/oItem/step.gml:256-350`](https://spelunky.ai/wiki/source/objects/oItem/step#L256-L350)

[^21]: [`objects/oScreen/step_begin.gml:187-190`](https://spelunky.ai/wiki/source/objects/oScreen/step_begin#L187-L190)

[^22]: [`objects/oPlayer1/step.gml:89-94`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L89-L94)

[^23]: [`objects/oPlayer1/step.gml:95-100`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L95-L100)

[^24]: [`objects/oScreen/step_begin.gml:167-194`](https://spelunky.ai/wiki/source/objects/oScreen/step_begin#L167-L194)

[^25]: [`objects/oPlayer1/step.gml:73-136`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L73-L136)

[^26]: [`objects/oScreen/step_begin.gml:156-177`](https://spelunky.ai/wiki/source/objects/oScreen/step_begin#L156-L177)

[^27]: [“A fallen red lamp lights nothing on a dark level.”](https://spelunky.ai/wiki/red-lamp-no-light), [docs/quirks.md §1](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/docs/quirks.md?plain=1#L82)

[^28]: [`scripts/scrRoomGen.gml:427-431`](https://spelunky.ai/wiki/source/scripts/scrRoomGen#L427-L431)

[^29]: [`scripts/scrRoomGen2.gml:442-446`](https://spelunky.ai/wiki/source/scripts/scrRoomGen2#L442-L446)

[^30]: [`scripts/scrRoomGen3.gml:369-373`](https://spelunky.ai/wiki/source/scripts/scrRoomGen3#L369-L373)

[^31]: [`scripts/scrRoomGenYeti.gml:388-392`](https://spelunky.ai/wiki/source/scripts/scrRoomGenYeti#L388-L392)

[^32]: [`scripts/scrRoomGen4.gml:468-471`](https://spelunky.ai/wiki/source/scripts/scrRoomGen4#L468-L471)

[^33]: [`scripts/scrRoomGenMarket.gml:338-341`](https://spelunky.ai/wiki/source/scripts/scrRoomGenMarket#L338-L341)

[^34]: [`scripts/scrRoomGen.gml:186`](https://spelunky.ai/wiki/source/scripts/scrRoomGen#L186)

[^35]: [`scripts/scrRoomGen.gml:429`](https://spelunky.ai/wiki/source/scripts/scrRoomGen#L429)

[^36]: [`scripts/scrRoomGen2.gml:444`](https://spelunky.ai/wiki/source/scripts/scrRoomGen2#L444)

[^37]: [`scripts/scrRoomGen3.gml:371`](https://spelunky.ai/wiki/source/scripts/scrRoomGen3#L371)

[^38]: [`scripts/scrRoomGenYeti.gml:390`](https://spelunky.ai/wiki/source/scripts/scrRoomGenYeti#L390)

[^39]: [`scripts/scrRoomGen4.gml:169`](https://spelunky.ai/wiki/source/scripts/scrRoomGen4#L169)

[^40]: [`scripts/scrRoomGen4.gml:472-475`](https://spelunky.ai/wiki/source/scripts/scrRoomGen4#L472-L475)

[^41]: [`scripts/scrEntityGen.gml:52-61`](https://spelunky.ai/wiki/source/scripts/scrEntityGen#L52-L61)

[^42]: Replay [`fidelity/replays/item-seed-2-lamp-dark.txt`](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/fidelity/replays/item-seed-2-lamp-dark.txt)

[^43]: Clip [lamp/red](https://spelunky.ai/wiki/lamp#clip-lamp-red)

[^44]: Replay [`fidelity/replays/item-seed-22-red-lamp.txt`](https://github.com/851-labs/spelunky/blob/208933dd4d491fb2cf366575137b625a61e6e378/fidelity/replays/item-seed-22-red-lamp.txt), which the clip [The red lamp brought down](https://spelunky.ai/wiki/lamp#clip-lamp-red) plays

[^45]: [`objects/oExplosion/collision_oSolid.gml:1-14`](https://spelunky.ai/wiki/source/objects/oExplosion/collision_oSolid#L1-L14)

[^46]: [`objects/oExplosion/collision_oItem.gml:30-36`](https://spelunky.ai/wiki/source/objects/oExplosion/collision_oItem#L30-L36)

[^47]: [`objects/oItem/step.gml:160-185`](https://spelunky.ai/wiki/source/objects/oItem/step#L160-L185)

[^48]: [`objects/oFlare/step.gml:6-20`](https://spelunky.ai/wiki/source/objects/oFlare/step#L6-L20)

[^49]: [`objects/oGoldIdol/create.gml:3-8`](https://spelunky.ai/wiki/source/objects/oGoldIdol/create#L3-L8)

[^50]: [`objects/oPlayer1/step.gml:771-781`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L771-L781)

[^51]: [`objects/oPlayer1/step.gml:1222`](https://spelunky.ai/wiki/source/objects/oPlayer1/step#L1222)

[^52]: [`objects/oLampRedItem/create.gml:3-8`](https://spelunky.ai/wiki/source/objects/oLampRedItem/create#L3-L8)

### Source code

- [`objects/oLamp/create.gml`](https://spelunky.ai/wiki/source/objects/oLamp/create)
- [`objects/oLampItem/create.gml`](https://spelunky.ai/wiki/source/objects/oLampItem/create)
- [`objects/oLampRedItem/create.gml`](https://spelunky.ai/wiki/source/objects/oLampRedItem/create)
- [`objects/oSolid/destroy.gml`](https://spelunky.ai/wiki/source/objects/oSolid/destroy)
- [`objects/oScreen/step_begin.gml`](https://spelunky.ai/wiki/source/objects/oScreen/step_begin)
- [`objects/oPlayer1/step.gml`](https://spelunky.ai/wiki/source/objects/oPlayer1/step)
- [`objects/oItem/step.gml`](https://spelunky.ai/wiki/source/objects/oItem/step)
- [`scripts/scrRoomGen.gml`](https://spelunky.ai/wiki/source/scripts/scrRoomGen)
- [`scripts/scrEntityGen.gml`](https://spelunky.ai/wiki/source/scripts/scrEntityGen)
