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.
Every shop has a lamp hanging from its ceiling, and a dark level in the 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 does. The Kissing Parlor's lamp is red, and falls as a red Lamp, which, unlike the plain one, lights nothing once it's down.
Usage
#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]. A shop's lamp hangs from the shop's ceiling, out of reach of a Bomb on the floor, and a lit bomb in a shop within 96 pixels of the Shopkeeper angers him [10] [11]. 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 [12].
Carrying it
#A Lamp is picked up and thrown as any item is (Throwing), but it's heavy, like a 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 [13] [14] [15]. He sets it down when he takes an exit, so it stays on its level [16]. 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 [17].
Light
#On a lit level a Lamp gives no light: there's no darkness for it to cut. On a 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 | [18] [19] |
| A plain Lamp, carried or lying | Within 96 pixels of it | Widens as he nears it, within 200 pixels | [1] [20] |
| A red Lamp, carried or lying | None | Unchanged | [21] [22] |
While the player is within 96 pixels of a red lamp, hanging or down, every light on the screen is tinted red [23]. 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] [20]. So a red Lamp carried through a dark level lights nothing but its tint.
Locations
#| Lamp | Where | |
|---|---|---|
| Plain, hanging | In every shop, from the ceiling, in the Mines, the Jungle, the Ice Caves (and the Yeti Lair) and the Temple, and in each of the Black Market's shops | [24] [25] [26] [27] [28] [29] |
| Red, hanging | In the 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 | [30] [31] [32] [33] [34] [35] [36] |
| Plain, hanging | On a dark level in the Mines: 1 in 60 under a block with two open tiles below, once the Giant Spider's roll fails | [37] |
The Lamp itself, the item, only ever comes from a hanging lamp's block: level generation makes none, and the 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 [38] [39].
Interactions
#- Bombs. An explosion breaks the block a lamp hangs from, which brings it down, and throws a Lamp away from it without breaking it [40] [41].
- Lava. A Lamp that touches lava stops and sinks, and is destroyed once it's under the surface [42].
- 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 [43].
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'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 [13] [44] [45] [46].
- The red Lamp's create event is the same as the plain one's, name and all: both are "Lamp" [47].
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 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, 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
#- Damages
References
#objects/oScreen/step_begin.gml:191-194objects/oItem/step.gml:282objects/oItem/step.gml:294objects/oItem/step.gml:305objects/oItem/step.gml:315objects/oItem/step.gml:325objects/oItem/step.gml:344objects/oLamp/create.gml:1objects/oSolid/destroy.gml:24-33objects/oBomb/step.gml:6-17The rare items' only sources
, docs/quirks.md §1- Clip lamp/fall
objects/oLampItem/create.gml:3-8objects/oItem/step.gml:44-50scripts/scrUseItem.gml:609-635objects/oPlayer1/step.gml:815-820objects/oItem/step.gml:256-350objects/oScreen/step_begin.gml:187-190objects/oPlayer1/step.gml:89-94objects/oPlayer1/step.gml:95-100objects/oScreen/step_begin.gml:167-194objects/oPlayer1/step.gml:73-136objects/oScreen/step_begin.gml:156-177scripts/scrRoomGen.gml:427-431scripts/scrRoomGen2.gml:442-446scripts/scrRoomGen3.gml:369-373scripts/scrRoomGenYeti.gml:388-392scripts/scrRoomGen4.gml:468-471scripts/scrRoomGenMarket.gml:338-341scripts/scrRoomGen.gml:186scripts/scrRoomGen.gml:429scripts/scrRoomGen2.gml:444scripts/scrRoomGen3.gml:371scripts/scrRoomGenYeti.gml:390scripts/scrRoomGen4.gml:169scripts/scrRoomGen4.gml:472-475scripts/scrEntityGen.gml:52-61- Clip lamp/red
- Replay
fidelity/replays/item-seed-22-red-lamp.txt, which the clip The red lamp brought down plays objects/oExplosion/collision_oSolid.gml:1-14objects/oExplosion/collision_oItem.gml:30-36objects/oItem/step.gml:160-185objects/oFlare/step.gml:6-20objects/oGoldIdol/create.gml:3-8objects/oPlayer1/step.gml:771-781objects/oPlayer1/step.gml:1222objects/oLampRedItem/create.gml:3-8