Files
isaac-port/notes/entities/beast.md
T
2026-10-24 21:14:15 -04:00

294 lines
23 KiB
Markdown

# The Beast: arena and fight flow (2026-10-24)
Read from isaac-ng.exe v1.9.7.17 plus the game's resources (bossoverlays.xml, cutscenes.xml, music.xml,
entities2.xml, rooms/35.home.stb, gfx/backdrop/hell/background.anm2). Attacks are summarised, not transcribed.
Conventions used below: "the lava line" is `Room BottomRight.y - 30` (= 457.69 in this room). NPC `+0xb74` is the
AI call phase that `Entity_NPC::Update` / `Interpolate` / `HandleCollision` set around the dispatcher: 0 normal
update, 1 the always-run pass (NPC `+0xf18 & 1`, runs during the death clip too), 2 interpolation half-step, 3
collision (`+0xb7c` = the other entity), 4 post-physics (`+0xf18 & 8`). Every Beast-fight AI sets `+0xf18 = 1`.
## Dogma to the Beast room (NpcAI::ENTITY_DOGMA_angel 0x4ae4d0, 950.2)
1. Dogma angel in state 0x12 (its Death clip), run in phase 1:
- event `Sound`: `BossOverlay::play(2)` (0x4214b0; bossoverlays.xml id 2 = BossOverlay_Dogma.anm2 "FadeIn",
persist) and music layer 1 on.
- event `Shoot`: every player's `_isControlsEnabled` (+0x410) = 0; `BossOverlay::play(3)` (BossOverlay_Dogma.anm2
"Shutdown"); music crossfade to track 0x30 (48 "Boss Dogma Death (jingle)") at 0.5; SFX volume modifier -10.
2. `BossOverlay::update` (0x4212c0, called every tick from Game::Update with ECX = Game+0x1d2ec): while overlay 3 is
up, its `End` event: Manager+0xf18 (Dogma kills) and +0xebc counters ++, a pending cutscene is queued
(Manager+0x21618 = 1, +0x2161c = 25 = cutscenes.xml "Dogma" = Krystal_Dogma_Ending.ogv, shown by Manager::Update),
music manager +0x29fb8 = 1, volume modifier back to 1, then
`Game::StartRoomTransition(-10 /*ROOM_SECRET_EXIT_IDX*/, -1 /*no door*/, 1 /*fade*/, 0, -1)` and an immediate
RoomTransition::Update. Slot -10 is the negative-room slot Game::generate_home_level (0x74de30) filled with
RoomConfig stage 35 type 16 variant 666 ("Beast Room", subtype 4).
3. Entering (Entity_Player::room_enter 0x7a6c50): in a stage-35 type-16 room each player not PLAYER_THESOUL_B (40)
gets `AddCollectible(633 /*Dogma*/)` unless a counter at player+0x16c8 -> +0x9e4 is already >= 1. Dogma's item
is what gives flight (and its soul hearts); there is no separate Beast-room flight code.
4. Where the player is placed on arrival: not read (unconfirmed; transition with no door).
## The arena (BeastArena at Room+0x776c; Room::IsBeastDungeon 0x8279a0)
"Beast room" everywhere in code = `room->descriptor->data` is stage 0x23 and type 0x10 (Room::IsBeastDungeon,
db-named Room::IsGravityDungeon before; ~30 functions inline the same test). That is every type-16 room of
35.home.stb: 666 Beast Room and the test rooms 667-671 (one 951.10/20/30/40/0 each). Backdrop: Room::LoadBackdropGraphics
gives room type 16 subtype 4 backdrop 57 (backdrops.xml: "reserved ID for Beast dungeon", no gfx).
Room file: 1x1 (13x7 interior), one left door marked, a single spawn 951.0 at (11,4). Everything else is code:
- **Bounds** (Room::update_bounds 0x7f2390): TopLeft (-49.23, 72.31), BottomRight (689.23, 487.69): 738.46 x 415.38
world units = exactly 480 x 270 screen px at the 0.65 world-to-screen scale, centred on the normal room centre
(320, 280). So the play area is the whole screen; normal 1x1 is (60,140)-(580,420).
- **No walls, no grid** : Room::make_walls (0x81ee20) is skipped; Room::GetGridCollision (0x7f0800) returns 0 for
every cell; Room::CheckLine, PathFinder::MoveRandomlyAxisAligned and Room::remove_grid_entity_for_spawn skip grid
tests; Room::update_door_transitions never exits through a door.
- **Camera**: fixed. Camera clamp bounds (0x9432f0, called from Camera::ClampedToRoom 0x943490) drop their extra
margins here and the room is exactly one screen, so min == max. Only exception: while the camera's focus ring
buffer is in use (+0x8c set, +0x58 > 0: the Beast's and Dogma angel's death clips push their position) x is not
clamped. No camera scrolling at any time.
- **Player limits** (Entity::PlayerCollideWithGrid 0x6ab440): the player is clamped to the bounds by his size with
a +20 y offset (clamp `pos - (0,20)`, add it back), so his centre ranges y in [TL.y + 20 + r, BR.y + 20 - r]. No
horizontal wrap: nothing wraps; things that leave are removed (see the entities).
- **Lava** (Room::Update 0x802980, Beast branch): every 4 ticks (since room entry), each player whose
`pos.y + size >= lava line` and who has entity collision: AddSlowing(4 ticks, 0.6) and TakeDamage(1, flag 2
DAMAGE_FIRE, no source, countdown 30). Each tick, 50 %: an ember 1000.66.10 at a random x, y random in
[TL.y + 40, lava line], velocity ((r - 0.5) * 0.4, -2.88 r), scale 0.8-2.0. NPCs do their own lava (Pestilence's
flies and fly ball: TakeDamage 10, flag 2, every 8 ticks + AddBurn below the lava line).
- **Pickups** (Entity_Pickup::Update 0x6e3940): gravity 0.4/tick (0.9 in other type-16 rooms) and a 0.95 damp;
falling below the lava line after their 2nd frame: removed with a lava splash 1000.16.66.
- **Tears and projectiles** (Entity_Tear::Update 0x6670f0, Entity_Projectile::Update 0x653070): they use the type-16
(crawl space) side-view rules, and here once older than 2 frames, falling (velocity.y > 0) and below the lava
line they are removed with a splash (projectiles 1000.16.66, 67 for the Beast's variant 14). Projectiles get grid
collision class 0 (0x65b500). Bombs: Entity_Bomb::Update (0x6a24d0) adds 0.9 a tick to velocity.y in every type-16
room (not variants 19/20), so placed bombs drop toward the lava; no lava-line removal for bombs was found
(what stops them: unconfirmed).
- **Pushing**: in entity-entity separation (0x6b25b0, 0x6b2940) a player is not displaced in position here, only
his velocity is scaled.
- **Other**: Glowing Hourglass (422) charge forced >= 3 (Entity_Player::update_effects 0x794e50); the minimap is
not drawn (Minimap::Render 0x98e4d0) and HUD::Render flags the room; StartRoomTransition (0x6fd7c0) teleports
within the room to a random spot above the lava line not touching a player. Room::SpawnClearAward ends the run
(below).
- **Rendering extras** (backdrop 57 tests): FXLayers::Render (0x9948f0) draws every 1000.166 Sprite Trail spawned
by 951 (Death's and the scythes' trails) in the FX pass; Room::GetLightingAlpha (0x81e250) returns the Game
darkness product (Game+0x2651c * +0x26518), the same factor that darkens the backdrop layers and the background
riders; Room::Render takes a special path when backdrop 57 and an option byte Manager+0x2a3ca are set.
### BeastArena (Room+0x776c, 0x12c bytes)
`+0` Room*, `+4` ANM2 (gfx/backdrop/hell/background.anm2, 30 fps "Idle", 16 frames, 17 layers), `+0x118` active,
`+0x11c` render scroll, `+0x120` **scroll speed** (Room+0x788c, written only by the Beast and read by the stalactite),
`+0x124` scroll position. Room+0x776c getter 0x592270, speed getter 0x592260 (Entity_Effect::Update reads it at
0x5e22d7 to drop an effect that scrolled past an edge; which variant: unconfirmed).
- init (0x839b80, called by Room::Init; no Ghidra function): active = (stage 35 and type 16); loads the anm2 once,
sets layer blend modes, zeroes scroll, speed, position.
- update (0x83a080, end of Room::Update, every 30 Hz tick): plays the anm2; `pos += speed`; render scroll = pos.
Then for every entity in the room except players (type 1) and familiars (3): `x += speed` (or `speed * 0.1` when
Entity+0x35c == 0, which is the sorting layer field per zhl); 951.1 stalactites also move their TargetPosition by
`speed`; players get Entity::PlayerCollideWithGrid. So the world, not the camera, slides; speed > 0 slides
everything right.
- interpolation half-step (Game::interpolate_update 0x6fd3f0, odd render frames): render scroll += speed * 0.5 and
the same entities move by speed * 0.5 / speed * 0.05.
- render (0x83a3d0 render_beast_arena_background(pass), from Room::Render at 4 depths, passes 0..3): layer lists
pass0 {0 lava_bg, 1 bg3_pillars, 2 bg3}, pass1 {3 lava_bg1, 4 bg2_pillars, 5 bg2, 6 bg1_pillars, 7 bg1, 8 bg_fog},
pass2 {9 lava2, 10 lava2_bottom}, pass3 {11 lava, 12 lava_bottom, 13 lava_add, 14 lava_multiply, 15 fg} (tables
0xb6d7c0, 10 ints per pass, -1 ends). Each layer is one full-screen-wide quad whose texture u starts at
`-scroll * parallax[layer] - camX` (so it tiles horizontally): parallax 0xb6d860 = {0, .25, .25, 0, .333, .333,
.5, .5, 0, .714, .714, 1, 1, 0, 0, 1.25}; darkened by `1 - Game+0x2651c * Game+0x26518 * dark[layer]` (0xb6d8a0:
{0, 1, 1, 0, .8, .8, .6, .6, .4, .1, .1, 0, 0, 0, 0, .98}). Lava layers are vertical slices: 9/11 drawn at their
frame height, 10/12 stretched to the screen bottom, 13 from v = 292, 0/3 from v = 69. Pass 0 first clears the
screen. Layer 16 (light, ../../overlays/hell_overlay.png) is drawn by 0x83a1b0 from Room::render_lighting.
Whether the u offset is in texture px or world units (the 0.65 factor) is unconfirmed.
## Fight order (NpcAI::ENTITY_BEAST 0x592460, 951.0)
1. **Init** (state 0): in variant-666 room: "BGIdle", flags |= 0x80000000, invisible (+0x171 = 0), collision 0,
state 0x10, StateFrame 30, and NpcAI::ENTITY_BEAST_spawn_background (0x592280) spawns the background cast:
951.100 Background Beast at (room centre x, BR.y - 58) and 951.101-104 Famine/Pestilence/War/Death at offsets
(-150,-140), (-50,-200), (50,-200), (150,-140) from it, kept in a 5-slot EntityPtr deque at npc+0xbf4 (slot 0
the beast, 1-4 the horsemen). In the test room 671: "Idle", state 3 at once, music layer 3.
2. **State 0x10, the horsemen** (counter I1 = npc+0xbc0, StateFrame = npc+0x410):
- StateFrame counts down only while the Beast has no child (npc+0x3c0) and `Room::GetAliveEnemiesCount() == 1`.
- At <= 0: if I1 > 0 (a harbinger just died) `PlayerManager::trigger_room_clear` (0x9bb840) twice (two active
charges). I1 < 4: background horseman I1 + 1 becomes the child, state 4, "LeaveStart"; I1 == 4: the background
beast, state 4, "Leave". StateFrame = 1000.
- At 1000 with no child (the background one removed itself): spawn 951.(10, 20, 30, 40)[I1] at
`GridPosition(width * 4 + 11) + (400, 0)` = (880, 280), off-screen right; it gets state 99 and becomes the child;
I1++, StateFrame 30. Room+0x12d0 = 0.
- I1 == 4 (all four dead and the background beast gone): the Beast takes over: visible, collidable, music layer
3 (The_End_BEAST), position (480, 280), state 7 "Surface", sound 0x2c0, V1.y = -2.
- Background NPCs (NpcAI::ENTITY_BEAST_background 0x440630, 951.100-104; their _dead is cleared every tick, so
they cannot die): state 0 "Idle" (non-colliding,
no-target flags 0xc4050001, +0x3b0 = 1). State 4: horsemen play "Leave" and on its event accelerate along x:
101 Famine / 103 War -0.8 a tick to -8, 102 Pestilence -0.4 to -5, 104 Death +0.3 to +5; removed past
TL.x - 200 / BR.x + 200. The beast (100) plays its Leave with ScreamStart/ScreamStop sounds (0x2c4, 0x2bb),
screen shake and shockwave rings 1000.151.10/11 on events, and removes itself when the clip ends. State 8:
wait StateFrame then "Cheer" (who sets it: unconfirmed). All are tinted by the same darkness as the backdrop
(factor 0.96).
- Each Ultra harbinger: state 99 entry = a dash in from the right (Famine "DashLoop", velocity x -40), sets its
music layer (Famine base track only, Pestilence mask bit 0, War bit 1, Death EnableLayer(2); music track 45
"Boss (Beast)"), "Transition" into a second form at 33 % HP (state 0x10), and while dying (state 0x12, phase 1)
sinks (velocity.y += 0.4, friction 0.8) into the lava.
3. **The Beast** (state numbers): 3 idle ("Idle"/"Blink", 60 ticks), then by I1: 0 = "MoveStart" -> 4 run; 1 = one of
"SuckStart" -> 8, "DoubleShot" -> 10, "SoulCall" -> 13; 2 = "MoveStart" -> 11 charge across (I2 == 0) or "Dive"
-> 6.
- 4 run: scroll speed += 0.2 a tick toward +-7 (7.5 when I2 == 2; sign by facing npc+0x148), MoveLoop /
MoveLoopDamage1-3; every 150-260 units scrolled it spawns 951.1 stalactites at the leading edge (TL.x - 100 or
BR.x + 100): a Top/Bottom pair (1/3), or a Bottom, a TopCracked (I2 == 1) or a Top; ends after 240 ticks
("MoveEnd") unless I2 == 2. Outside states 4 and 0x10 the speed falls by 0.05 a tick, clamped at 0.
- 6 Dive -> 7: hidden in the lava, a Lava Spawner 1000.181.2 (timeout 60) and then a sequence of 31 more at random x
on the lava line (interval 30 - 2n, min 12, picked to avoid RaiseGridPathAtPos(900) marks), then "Surface"
on the far side; 7 / 12 with V1.y < 0: "Surface" roar (0x2c8) or 0x2c2 + an 8-projectile fan, back to 3 after
90 ticks.
- 8 suck (360 ticks): ambient 0x2c1, pulls players, tears, projectiles, bombs, pickups, effects and 951.2 rocks
toward its mouth (strength by type: 400 NPCs/bombs, 300 tears/projectiles, 160 players in co-op), kills what
reaches it (approximate reading); spawns 9.2 projectiles in a converging 580-radius fan every 30 ticks and
attract rings/trails 1000.151.0/1 (every 3rd / 2nd tick) streaming into the mouth; then
"SuckEnd" -> 9 "BlastLoop": Entity_Laser::ShootAngle(variant 13, angle 0/180, timeout 70, offset (0,-20)) for
90 ticks -> "BlastEnd".
- 10 "DoubleShot": projectile bursts on Shoot events. 11 "MoveLoopFast"/"MoveEndTurn": crosses to 100 past the
other edge and turns. 13 "SoulCall": every 8 ticks a 951.3 soul at a random x on the lava line, shockwave rings.
- The Beast is moved kinematically (phases 2 and 4): toward TargetPosition at 6 % of the gap a tick, capped at 8
(12 when I2 > 0, 15 in state 11), half in the interpolation step; velocity zeroed.
- Collision (phase 3) with a stalactite not yet a tip: the stalactite cracks (state 5, V2 = (-speed, -8)), screen
shake, scroll speed * 0.9.
- HP phases: `p = int(2.999 - 2.999 hp/max)`; in the last third `p = int(5.999 - 3.999 clamp(hp / (max/3)))`
(2..5). Reaching 2: sounds, gibs, "TransitionDive" (state 5): every 951.1 and 951.3 killed, every projectile
and laser it spawned gets _dead (+0x173) = 1; then "TransitionSurface" on the other side, state 4 with I2 = 2: the endless
run (no MoveEnd) until it dies. p 3/4/5: "Damage1/2/3", shake, scroll speed * 0.8.
4. **The end**: death clip (state 0x12, phase 1): the camera focuses on it, scroll speed * 0.95 a tick, sounds
0x2b9/0x2db/0x2dc on Sound1/2/3, shake on Sound3, on Shoot `BossOverlay::play(4)` (BossOverlay_Whiteout2 "Fade",
persist). When the room clears, Room::SpawnClearAward (0x7fb250), Beast room and not Greed: event counters 1 and
0x1ec, completion mark 0xe, `Game::End(14)`: Manager+0xf1c (Beast kills) and +0xebc ++, cutscene 26 "The Beast"
(Final.anm2 "Scene" with music 113, then the credits).
## Beast (NpcAI::ENTITY_BEAST 0x592460, 951.0)
HP 10000, radius 166 (Y x1.3), mass 1000, no grid collision. ~2.8 KB of states above plus HP phases; uses stalactites,
rocks, souls, Lava Spawner effects, shockwave rings, one laser (variant 13), 9.x projectiles and ProjectileParams
variant 14. Anims: BGIdle, Idle, Blink, MoveStart, MoveLoop(Damage1-3), MoveLoopFast, MoveEnd, MoveEndTurn, Dive,
TransitionDive, TransitionSurface, Surface, SuckStart/Loop/End, BlastLoop/End, DoubleShot, SoulCall, Damage1-3,
DeathRay (overlay once _dead is set, which also kills its stalactites, souls, projectiles and lasers).
BlastLoop also sets _dead on every projectile in the room. Effort: high (kinematic movement, scroll control, sucking forces).
## stalactite (NpcAI::ENTITY_BEAST_stalactite 0x596120, 951.1)
HP 100, radius 220 (X x0.1: a tall thin capsule), mass 1000. Subtype picks the anim (0xb62284): 0 Top, 1 Bottom
(rises out of the lava), 2 TopCracked, 3 TopCrackedBase, 4 TopCrackedTip; posOffset.y -10 (tip -110). Pinned to its
TargetPosition (velocity = target - pos in phase 1, the arena scrolls the target). Subtype 2 cracks by itself once
200 past the left edge (speed > 0) / right edge: becomes 3 and drops a 4 tip 100 below; the Beast's bump does the
same (state 5). A tip falls (+1.5 a tick). On death: rock 951.2 projectiles and dust 1000.59 along its null
capsules (count by capsule area), sounds 0x89/0x1e7. Removed 200 beyond the far edge. Effort: low-medium (needs null
capsules).
## rock projectile (NpcAI::ENTITY_BEAST_rock_projectile 0x596c60, 951.2)
HP 2.5, radius 5. "Rotate%d" by its scale (+0xc38, 1..6). Gravity: velocity.y += TargetPosition.x (0.25) a tick,
height -22 (posOffset.y); removed outside the bounds (margins -600/-200) or in the lava (splash 1000.16.66); hit by a
player or familiar it breaks: rock poof 1000.145 and 1-16 tooth/rock particles 1000.35.1. Effort: low.
## soul (NpcAI::ENTITY_BEAST_soul 0x5971e0, 951.3)
HP 100, radius 8. Rises at 10 within +-10 degrees of up, slows and sways (sine), below 0.9 speed factor it locks a
player target (sound 0x2bd) and homes; state 5 bursts: enemy ghost 1000.144.2, Game::DamageRadius(50), sound 0x1dd.
Keeps a position deque for its trail. Effort: low.
## Ultra Famine (NpcAI::ENTITY_BEAST_ultra_famine 0x444cc0, 951.10)
HP 2000, radius 70. States: 99 dash-in, 3 hover (drifts on a random vector), 7/8 "DashStart"/"DashLoop"/"DashEnd"
horizontal dashes across the screen with dust 1000.59 trails, 9 "DashLoop" + projectile bursts + "Summon"/"Reverse",
10 summons 951.11 flies (3 subtypes), 0x10 headless form ("Transition" at 33 %, "HeadLoop", blood explosions and
projectile rings). The transition kills every NPC spawned by 951 (and projectiles). Effort: medium.
## Famine fly (NpcAI::ENTITY_BEAST_ultra_famine_fly 0x447180, 951.11)
HP 10, radius 10. Anim Idle/Idle2/Idle3 by subtype. 70 ticks of jittery seeking (target + 30 deg noise), kept below
TL.y + 80, then a 10-tick wind-up and a 6 x 0.4 dash at the target; removed 100 outside the room; max HP drains 10
every 15 ticks. Effort: low.
## Ultra Pestilence (NpcAI::ENTITY_BEAST_ultra_pestilence 0x4477b0, 951.20)
HP 1800, radius 70. "HorseSpit" / "HeadlessSpit" projectile volleys, "MaggotAttack" (spawns 951.22 maggots and small
maggots), state 0xd launches a 951.23 fly ball, flies 951.21 on its transition; headless form "HeadlessIdle" after 33 %;
keeps 180 from the bounds. Effort: medium.
## Pestilence fly (NpcAI::ENTITY_BEAST_pestilence_fly 0x44a040, 951.21)
HP 10, radius 10. Wanders (random vector + 0.001 pull to target), pushed up near the lava line (within 80); phase 1:
removed outside the room, in the lava it slows (x0.9) and takes 10 fire damage every 8 ticks + burn; max HP drains.
Effort: low.
## Pestilence maggot (NpcAI::ENTITY_BEAST_ultra_pestilence_maggot 0x44b6f0, 951.22)
HP 0 (dies with its parent), radius 18. "Maggot"/"MaggotBack" between Pestilence and the target (ShootPos null),
blood explosions. Effort: low.
## Pestilence fly ball (NpcAI::ENTITY_BEAST_ultra_pestilence_fly_ball 0x44aad0, 951.23)
HP 200, radius 28. Flies, spawns 951.21 flies (from its deque of children), lava damage like the fly, bursts into
flies. Effort: low.
## Ultra War (NpcAI::ENTITY_BEAST_ultra_war 0x44c070, 951.30)
HP 2000, radius 70. Phase 1: "ThrowBomb" (state 8, 951.31.0), "DashStart"/"DashLoop"/"DashEnd" dash dropping
951.31.1 bombs. 33 %: "Transition" -> headless "Float": "ChaseStart"/"ChaseLoop" chase, "LungeShort" / "LungeBomb"
(951.31.2), "Knockback", "QuickBurst" (two moving fire places 33.10 + projectiles), "Shockwave". Effort: medium-high.
## War bomb (NpcAI::ENTITY_BEAST_ultra_war_bomb 0x44f2b0, 951.31)
HP 200, radius 34. "Pulse"; falls; reaching the lava line it spawns Lava Spawners 1000.181 and explodes
(Game::BombDamage radius 30 damage 45, BombExplosionEffects, RemoveWithPoof, projectiles); one branch spawns a
5.40.7 pickup (unconfirmed what). Effort: low-medium.
## Ultra Death (NpcAI::ENTITY_BEAST_ultra_death 0x440f00, 951.40)
HP 2000, radius 70. Init: a 1000.166 trail linked to it, music layer 2. "SummonStart"/"SummonLoop"/"SummonEnd"
(states 8/9): 951.41 scythes placed along a laser end point and 951.42 heads; "SwingPrepare(Loop)"/"Swing" (states
10/0x10) throwing the 1000.199 scythe effect (velocity (+-8, -13)); "DieStart" on its heads at the transition.
Effort: medium.
## Death scythe (NpcAI::ENTITY_BEAST_ultra_death_scythe 0x443e50, 951.41)
HP 100, radius 26. Spinning "Rotate3".."Rotate6" (speed tiers), with a 1000.166 trail and dust; normalised angle
movement. Effort: low.
## Death head (NpcAI::ENTITY_BEAST_ultra_death_head 0x444900, 951.42)
HP 100, radius 40. "Idle" then "DieLoop" (state set by Death), ground poof, stops sounds, starts the poop-cloud screen
effect. Effort: low.
## Rotgut's crawl space (NpcAI::ENTITY_ROTGUT_face 0x57bec0, 911.0)
Rotgut's face phase, swallowing Isaac: after 20 ticks Level enter door = -1, enter position = its position,
Level::init_rotgut_dungeon_room (0x74beb0, via 0x57be90) and `StartRoomTransition(-14 /*ROOM_ROTGUT_DUNGEON1*/, -1,
2 /*pixelation*/)`. The dungeon rooms are ordinary type-16 crawl spaces from 00.special rooms.stb (16.1010 "Rotgut
Maggot" subtype 2 with 911.1, 16.1020 "Rotgut Heart" subtype 3 with 911.2), so they use the crawl space walls
(Room::make_wall 0x7ee7e0 special-cases subtypes 2/3: no exit ladder), gravity and ladders. Shared with the Beast
room: only the room type 16 and its side-view tear/projectile/pickup branches; the Beast room switches off walls,
grid collision, door exits and fixes its bounds through IsBeastDungeon, and has the BeastArena backdrop instead.
## engine requirements
For a 30 Hz engine with 1:1 units and 40-unit cells:
1. A room flag "beast arena" (stage 35 type 16 subtype 4) that replaces the room rect with (-49.23, 72.31)-(689.23,
487.69) (one screen at the 0.65 render scale, centre (320, 280)), spawns no walls, makes every grid query empty,
disables door exits and pathfinding grid checks, and fixes the camera at the centre (no scroll; optional x-only
focus during death clips). Hide the minimap.
2. Player clamp to that rect with the +20 y shift; no wrap. Flight comes from giving every player collectible 633
on entry.
3. A lava line at BR.y - 30: players every 4 ticks take 1 fire damage (countdown 30) and 4-tick 0.6 slowing;
pickups fall at 0.4/tick and die below it; tears and projectiles falling below it die with a splash; ember
particles spawned at 50 % a tick.
4. A world scroll value `speed` owned by the boss: each tick add `speed` to every non-player, non-familiar entity's
x (x0.1 for the background sorting layer) and to the stalactites' target; 16-layer parallax backdrop drawn in 4
depth passes with fixed parallax and darkness tables, tiled horizontally, from one animated anm2.
5. Off-screen removal margins instead of walls (200 for stalactites and background riders, 100 for flies).
6. A boss-overlay sequence (Dogma FadeIn/Shutdown, Whiteout2), a room transition to a special room index from an
overlay event, a pending-cutscene request (video 25 between, 26 at the end) and Game::End(14) on room clear.
7. NPC hooks the AIs depend on: an always-run pass during death clips, a collision callback, a post-physics pass,
EntityPtr deques for children, parent/child links, music layer masks for one 5-layer track (45).
8. Entities to port: 951.0-3, 10/11, 20-23, 30/31, 40-42, 100-104, plus effects 1000.181 (Lava Spawner), 1000.151.0/1
(attract ring/trail) and .10/11 (shockwave ring/trail), 1000.59, 1000.66, 1000.16.66/67 (lava splash), 1000.144,
1000.145, 1000.166 (trail), 1000.199, a laser variant 13, fire place 33.10.