notes: side view (room type 16) and Rotgut's crawl space chain

This commit is contained in:
shweet committed 2026-10-25 20:53:57 -04:00
1 parent 6279dabf83
commit 00dacd9193
3 files changed
+105

No files matched your search

+27
View File
@@ -32,3 +32,30 @@ spaces: spawn entries 0.10 / 0.20 / 0.30 along their ladders (not read).
isaac-classic: rotgut_maggot as a scripted boss between the face and the heart in the boss room (the face's death
spawns it, its death the heart); the side view (gravity, ladders) is not ported.
## The crawl space chain (rif/side-view, 2026-10-25)
- Face death (NpcAI::ENTITY_ROTGUT_face 0x57bec0, its end): health <= 0 -> flags |= 0x11, state 0x10, _dead cleared,
health 0.001, collision 0, invincible, projectileDelay -1, stateFrame -1, renderZOffset -500, sounds 0x70 and 0x1c,
"Transition", a green blood explosion, BloodExplode. State 0x10: "TransitionLoop" once Transition ends; its Shoot
(Transition frame 40) plays 0x133 (growl) and sets projectileDelay 0; then each tick: 1000.151 subtype 0 every 2nd,
subtype 1 every 4th; strength 1, or (pd - 90) / 30 + 1 up to 8 past 90 ticks; every player, active enemy, tear and
projectile: f = 2 / (d^2 1e-4 + 1) (players min(f 1.4, .8) / min(mass, 1); tears f .7), velocity += f * strength *
speedMult * dir / friction. Within 20 (d^2 < 400): tears and projectiles removed, NPCs killed, a player plays
"FallIn", controls off, pitfall state 4, stateFrame 0. stateFrame > 19: enterDoor -1, Level+0x18320 = its position,
0x57be90 saves the current room at Level+0x18328, StartRoomTransition(-14, -1, 2).
- Level::init_rotgut_dungeon_room (0x74beb0): descriptors -14 / -15 get RoomConfig::GetRandomRoom(stage 0, type 16,
subtype 2 / 3).
- Maggot room exit: rotgut_death_spawn_effects (0x581200) on the maggot's kill spawns three 1000.119 timers with
callback 0x580360 after 1, 6 and 11 ticks at the right wall's grid indices (w + 2) * 7, 6w + 14, 5w + 14 (rows 7, 6,
5): each removes the wall there for a GridEntity_Gravity, re-PostInits the cells above and below and spawns rock
particles; the right edge then leads to -15 (Room::update_door_transitions). Its child (+0x3c0, the detail) dies.
- Head or butt (state 3): `above` = player not flying and y < maggot.y - 80; 1 in 30 a tick: (!above and rand % 3 < 2)
or a coin flip -> head (rand % 3 + 3), else butt.
- HeadAttack3's volleys (every even projectileCooldown < 30): 3 shots velocity (-10 - 11r, 0) turned 10-25 degrees,
FallingAccel .72, scale ((5..7) - 3) / 3, from ShootPos; then 1 in 6 spawn_small_maggot velocity (-6 - 4r, -4 - 4r),
else 1 in 6 an attack fly (18) at (-10 - 10r, 0) turned 0-30 degrees.
- The heart room (subtype 3) returns on clear after roomClearDelay 20 to Level+0x18328 (Room::Update).
isaac-classic now: the face's death leaves rotgut_mouth (aura square/ramp/swallow), the maggot and heart are fought in
their crawl spaces (crawlspace1010 / crawlspace1020, side view); see systems/side_view.md.