Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.
Matt Greer edited this page May 7, 2021 · 2 revisions

Bubble

entity source

Bubble has been fully extracted now. See the source linked just above. Everything below is out of date.

A large (2x2 tiles) bubble that can contain things. But so far how it works is eluding me.

If you just add one bubble to a level with 0 0xdb x y, you get one empty bubble at that location. If you add a second bubble, so both are independent sprites of 0 0xdb x y (done in the editor by just adding a second bubble), then only the first bubble will appear, and it will contain a 1up mushroom.

If you add a third or more bubbles, it will crash the game.

It's possible Nintendo only made it so one bubble per room is possible, and so the 3+ crash is expected. Just a guess. Unsure how other payloads get inside the bubble.

Lots more exploration needed here.

it gets weirder

if another entity comes right after the bubble, then that also triggers the first bubble having a 1up inside for example did it, as did

I think this might actually be a five byte sprite, despite being in bank 0

Also possible, this bank zero bubble is just undefined behavior and the real bubble is still to be found

possibly a five byte, bank 0 sprite

If I change it to output 0 0xdb x y 0, I get a bubble with a 1up, 0 0xdb x y 1 has a mushroom, 0 0xdb x y 2 has fireflower, etc

that seems promising, but any sprites that come after it in the level file do not show up. Maybe bubbles must be the last sprite in the room?