Small chest: Difference between revisions
From CC Wiki
Jump to navigationJump to search
(Added pictures and info about the unused sprite. Not marking as minor because I don't think there's that much you can say about chests so this is comparatively large) |
|||
| Line 1: | Line 1: | ||
Small chests are objects | [[File:SmallChest.png|thumb|A small unopened chest in 500m of Celeste Classic]] | ||
Small chests are objects, originally from [[Celeste Classic]], that spawn a [[Strawberry|berry]] when a [[key]] is collected. during the spawning animation, the chest shakes randomly, which causes the berry to spawn at a random x position. | |||
== original code == | == original code == | ||
| Line 25: | Line 26: | ||
} | } | ||
</pre> | </pre> | ||
== Unused sprite == | |||
[[File:Unused Chest.png|thumb|The unused sprite]] | |||
In Celeste Classic, when a chest spawns a berry, the chest simply disappears. However, in the game's spritesheet there is a sprite that was likely supposed to depict an open chest. This is one of the few [[unused sprites]] in the game. | |||
[[Category:Mechanics]] | [[Category:Mechanics]] | ||
Latest revision as of 20:44, 13 February 2026

Small chests are objects, originally from Celeste Classic, that spawn a berry when a key is collected. during the spawning animation, the chest shakes randomly, which causes the berry to spawn at a random x position.
original code
chest={
tile=20,
if_not_fruit=true,
init=function(this)
this.x-=4
this.start=this.x
this.timer=20
end,
update=function(this)
if has_key then
this.timer-=1
this.x=this.start-1+rnd(3)
if this.timer<=0 then
sfx_timer=20
sfx(16)
init_object(fruit,this.x,this.y-4)
destroy_object(this)
end
end
end
}
Unused sprite

In Celeste Classic, when a chest spawns a berry, the chest simply disappears. However, in the game's spritesheet there is a sprite that was likely supposed to depict an open chest. This is one of the few unused sprites in the game.