Crate
Verified against the spelunky.ai port v0.1.10 on .
For the chest of gems, see Chest.
The Crate is a carryable item in Spelunky Classic that opens, with up and the attack key, into one free item, most often bombs or ropes.
Each Crate holds one item, picked when it's opened, mostly a Bomb Bag or a Rope Pile, but sometimes equipment or a weapon that shops sell for thousands. It's heavy, so it's carried high and thrown short, and the player can open it wherever he stands on it.
Usage
#Pressing up and the attack key while the player stands on a Crate opens it: the Crate vanishes in a puff of smoke and its item appears in its place, free [1]. On the game's own levels, it adds to the lifetime count of crates opened [2]. In the clip, the player opens a Crate he's holding, which leaves his hands empty, and it holds a Pitcher's Mitt, which he picks up and puts on [3]. The item comes from one roll down this list, each roll made only if the ones before it fail [4]:
| Item | Chance | |
|---|---|---|
| Jetpack | 1 in 500 | [5] |
| Cape | 1 in 200 | [6] |
| Shotgun | 1 in 100 | [7] |
| Mattock | 1 in 100 | [8] |
| Teleporter | 1 in 100 | [9] |
| Climbing Gloves | 1 in 90 | [10] |
| Spectacles | 1 in 90 | [11] |
| Web Cannon | 1 in 80 | [12] |
| Pistol | 1 in 80 | [13] |
| Pitcher's Mitt | 1 in 80 | [14] |
| Paste | 1 in 60 | [15] |
| Spring Shoes | 1 in 60 | [16] |
| Spike Shoes | 1 in 60 | [17] |
| Machete | 1 in 60 | [18] |
| Bomb Box | 1 in 40 | [19] |
| Bow | 1 in 40 | [20] |
| Compass | 1 in 20 | [21] |
| Parachute | 1 in 10 | [22] |
| Rope Pile | 1 in 2 | [23] |
| Bomb Bag | Otherwise | [24] |
The Crate in the Tutorial always holds a Bomb Bag [25]. The player stands on the item when it appears, so a Bomb Bag or a Rope Pile, which are collected by touch, are collected at once: in the second clip, a Crate's Rope Pile gives him 3 more ropes on the step he opens it [26] [27] [28].
A Crate is heavy: the player carries it higher than other items, and throws it at 4 pixels a step plus his own speed, rising at 2, or at 4 upward [29] [30]. Thrown faster than 2 pixels a step, it hurts a monster as any thrown item does [31].
Locations
#- Level generation, in every area: in a nook one block high with a wall beside it, a 1 in 10 chance, once the rolls for a web and, on the level that has one, the Udjat Eye's locked chest fail [32].
- The Temple: some of its rooms have a tile that's a Crate or a Chest, one chance in two each [33].
- Olmec's Lair: a 1 in 10 chance on some of its tiles, once rolls for a Chest, gold and big gems fail [34].
- The Megamouth: four Crates burst out of one when it dies [35].
- The Tutorial, which has one [36].
- The level editor's
Ctile [37].
Interactions
#- Holding it. The player can open a Crate he's holding, as he stands where it is; his hands are empty after [38] [3].
- Shops. A Crate's item is free wherever it's opened: the code sets its price to nothing [39].
- Bombs. An explosion throws a Crate away from it without breaking it [40].
- Exits. The player sets down a heavy item, a Crate among them, when he takes an exit, so a Crate can't be carried to the next level [41].
Tips
#- A Crate is best opened where its item can't fall away: the item appears where the Crate is, and has no speed of its own.
- Most Crates hold a Bomb Bag or a Rope Pile: the rolls before them all fail about 69 times in 100 (the product of each roll's chance of failing, 499 in 500 by 199 in 200 and so on).
Trivia
#- The code that opens a Crate stores it in a variable named
chest, the same one the code for opening a Chest uses [42] [43].
FAQ
#- What's in a Crate in Spelunky Classic?
One item. A Crate rolls down a list, from a Jetpack (1 in 500) to a Parachute (1 in 10), each roll made only if the ones before it fail; if all fail, it's a Rope Pile or a Bomb Bag, one chance in two each.
- How do you open a Crate in Spelunky Classic?
Stand on it and press up and the attack key. It vanishes and leaves its item, free, even inside a shop and even if the player is holding the Crate.
- Can you buy a Crate's item from a shop in Spelunky Classic?
There's nothing to buy: a Crate's item is always free, and shops don't sell Crates.
- Where do you find Crates in Spelunky Classic?
In every area, in nooks one block high, and in some of the Temple's rooms and Olmec's Lair. A Megamouth lets out four when it dies, and the Tutorial has one.
Gallery
#See also
#References
#objects/oPlayer1/step.gml:612-647objects/oPlayer1/step.gml:614- Clip crate/open
objects/oPlayer1/step.gml:616-636objects/oPlayer1/step.gml:617objects/oPlayer1/step.gml:618objects/oPlayer1/step.gml:619objects/oPlayer1/step.gml:620objects/oPlayer1/step.gml:621objects/oPlayer1/step.gml:622objects/oPlayer1/step.gml:623objects/oPlayer1/step.gml:624objects/oPlayer1/step.gml:625objects/oPlayer1/step.gml:626objects/oPlayer1/step.gml:627objects/oPlayer1/step.gml:628objects/oPlayer1/step.gml:629objects/oPlayer1/step.gml:630objects/oPlayer1/step.gml:631objects/oPlayer1/step.gml:632objects/oPlayer1/step.gml:633objects/oPlayer1/step.gml:634objects/oPlayer1/step.gml:635objects/oPlayer1/step.gml:636objects/oPlayer1/step.gml:616objects/oPlayer1/step.gml:2020-2023objects/oPlayer1/step.gml:2052-2055- Clip crate/rope
objects/oItem/step.gml:44-56scripts/scrUseItem.gml:609-635objects/oItem/step.gml:256-350scripts/scrTreasureGen.gml:47-68scripts/scrRoomGen4.gml:359-363scripts/scrRoomGen5.gml:177-184objects/oJaws/step.gml:23-28- Room
rTutorial, as the room editor placed it scripts/scrCreateTileObj.gml:289-292objects/oPlayer1/step.gml:639-643objects/oPlayer1/step.gml:637objects/oExplosion/collision_oItem.gml:30-36objects/oPlayer1/step.gml:815-820objects/oPlayer1/step.gml:564objects/oPlayer1/step.gml:615
Source code
objects/oCrate/create.gmlobjects/oPlayer1/step.gmlobjects/oItem/step.gmlscripts/scrUseItem.gmlscripts/scrTreasureGen.gml