Files
isaac-port/notes/entities/boss_fidelity_1.md
T

8.3 KiB

Boss fidelity pass 1 (2026-10-25, isaac-classic branch rif/boss-fidelity)

Rebirth bosses whose reference comment cited no decompiled routine, in order of boss room count. Earlier passes had only skimmed most of them ("matches"). Physics reminder (Entity::Update 006ae820: vel *= friction; pos += vel, then friction is reset to the entities2 value, 1 for all of these): an AI's friction *= f is the record's retention, and the port moves by the braked velocity too, so retention = f and pushes need no conversion.

the_cage: NpcAI::ENTITY_CAGE 004878a0 (265.0; subtype 1 green, 2 pink). Changed

  • Every tick, last thing: friction *= .5 (unconditional). Port retention was .8 (Taunt .6/.8, roll 1).
  • Init: subtype 2 (pink) spawns its twin 24 px right (unless spawned by a 265), moves itself 24 left, size = config size * .67.
  • State 3 Idle: stateFrame++ (reset on every state change); past 30, rand%20 == 0 picks:
    • rand%3 == 0: enemies (Room+0x12c0 + 0x12c4, minus Room+0x12c8 + 0x12cc) < 3 and Random(2) and subtype != 1 -> 13 (Attack1, Vis); else 9 (Puking) with V1.x = random -180..180 degrees and V1.y = +-1 (spin way).
    • else (rand&1 == 0 or pink) and not confused/feared (flags 0x1000a00) -> 8 roll (sound 0x12f); else not flag 0x200 and not pink -> 6 jump: TargetPosition = CalcTargetPosition + player vel * 10, clamped.
    • So plain: puke 1/6, Vis 1/6, roll 1/3, jump 1/3 (= the port's one_in 120/120/60/60); green: no Vis; pink: puke 1/6, Vis 1/6, roll 2/3, never jumps (the port had pink never rolling).
  • 9 Puking (sound 922 on start, 0x137 on Shoot): from Shoot until StopShooting, on IsFrame(3): six spokes at V1.x + 60k, each only on rand&3 != 0, FireProjectiles mode 0 at 8 (HeightModifier -30, FallingSpeed +3, FallingAccel -.05, flags 0x20000, variant 3 puke, colorize (.8, 1, .85), Scale .5 + rand); then V1.x += 9 * V1.y.
  • 13 Attack1 (sound 0x398): on Shoot, unless friendly-flagged with a live Vis, a Vis 39.0 at pos + (0, 20) moving (0, 5); 2-4 splats; sound 0x13a. No Vis cap (pass 4 read "fewer than 3 Vis": it is the room's enemy count).
  • 8 roll: RollStart (sound 0x399) to its end, then vel += unit(Isaac) * 25; RollLoop: every tick vel = unit(vel) * 25 (sound 0x39c on grid collision), so it moves 12.5 a tick after the .5; out after stateFrame > 150 (151 ticks) or confused/feared; then Taunt (sound 0x39b) and idle.
  • 6 jump: Jumping (sound on Jump); from the Jump event, V1.x += .02 a tick (at most 1) and pos = lerp(pos, target, V1.x), collision classes 0; after the clip JumpLoop until within sqrt(2) of the target -> 7 Landing: collisions back at once (4 / 5, moved to a free tile if on a grid cell), on Landed: 5 creep 1000.22 at random angle and 0-75 out, scale 2, grey colour; sounds 0x12f, 0x30 x2, ShakeScreen 10, 4 or 5 shockwaves 1000.72 (360/n apart from 0).
  • Subtype 1: every 30 ticks (frame + index) green creep 1000.23 at its feet, scale 2.5, 0x11e = .75.
  • Port: retention .5 throughout (roll RollLoop keeps retention 1 with the RollStart lunge 25 braked to 12.5, which is the real per-tick move); RollLoop ticks 151 (was repeat 8 = 108 ticks); pink rolls (one_in 30 for pink) and still never jumps; Vis gate enemy_limit 3 instead of a cap of one Vis, spawn_velocity (0, 5); puke spokes skip 1 in 4, start at a random angle (spiral_random), still (mode 0), offset height -30, fall_velocity 0, fall_acceleration -.05, scale .5-1.5, puke look; Landing no longer untouchable (it hurts as it comes down, as the wiki notes).
  • Not expressed: when the Vis gate fails the 1/3 goes to puke (the port's rolls are independent), the lerp-in-the-air glide (pounce lands on the spot, as Mega Fatty's).

dingle / dangle: NpcAI::ENTITY_DINGLE 004855b0 (261.0 / 261.1; subtype 1 red, 2 black). Changed

  • Correction to pass 3 / pass 4: the idle numbers were swapped. asm 004857bd..00485832: CMP variant,1 then CMOVNZ: Dingle (variant 0) waits stateFrame > 30, rand%20, or rand%10 on a tick with pendingDamage; Dangle (variant 1) waits 15, rand%10, or rand%5 when hit.
  • Pick: rand%3 == 0 -> 9 Whistle; else rand&1 == 0 and not confused -> 11 BeforeSlide; else 10 Dance.
  • 8 Spit: Shoot -> black: mode 8 at 10 (variant 3, Dangle 5; FallingSpeed -1, FallingAccel .001); else mode 2 (centre
    • .9 * (.961, +-.276)) at 10 toward Isaac, variant 0 for red, 3 puke, Dangle 5 corn. Sound 0x12f.
  • 4 Slide: on Slide vel += unit(Isaac) * 10 (black 15), sound 0x12d; on the first slide only (i1 == 0) rand%5: Dingle a poop grid on its cell, Dangle a Corn Mine 295; friction *.98; from Slide on vel += unit(vel) * 1 (black 1.5) / friction; Dangle also farts (size + 20, .5) on interval ticks and lays creep 1000.94 (slippery brown) each tick, scale .75-1. Clip end: i1 < n -> stateFrame = 12 + rand&3 pause (friction .9, the clip restarted when it reaches 0), else 16 Tired. n = 3 red, 0 black, 2 Dingle, 1 Dangle (so 4 / 1 / 3 / 2 slides). Wall hit: splat on a wall cell.
  • 9 Whistle (sound 0x13b, Dangle 0x19d): on the spawn event, if (enemies < 5 and not red) or i2 < 6: plain 1-2 dips 217.0 (Dangle 217.2 corns at pos + aim*30 + rand 10 moving 15 at Isaac, state 4), red a red poop near it (i2++), black 1-2 Spiders 85 near it. Always on to Spit.
  • 16 Tired: 60 + rand%30 ticks (Dangle half). Off-slide friction *= .7.
  • Port: Dingle choice one_in 20 (was 10), hurt_one_in 10, cooldown 30 (was 15); Dangle hurt_one_in 5 (hurt_tick on both); Spit fan [1,0], [.8649, +-.2484] instead of three at .3 rad; black eight fall_velocity -4, fall_acceleration .001; slides' repeat gap [12, 3] at retention .9; Dingle's poop only on the first slide (poop first); Whistle enemy_limit 5 (not red). New engine fields: choice hurt_one_in, attacks[] repeat gap / gap_retention, poop first.
  • Not expressed: red's whistle cap of six red poops, Dangle's fart during the slide, the slide push along its own velocity (the port pushes along its aim).

haunt: NpcAI::ENTITY_THE_HAUNT 00481410 (260.0; subtype 1 black, 2 pink). Changed (pass 2's leftovers)

  • Re-read over pass2_haunt.md. Kept: lil haunt counts 3 / 2 / 1 at radius 50, skin drift, the no-skin line (TargetPosition.x +-.3 a tick, flipped plus a 15 kick on a side wall hit, y pinned to room top + 30), dash odds, attack clock (stateFrame > 60, rand%60, coin spit / laser), mode 5 spit.
  • State 4 with no lil haunt left plays AngrySkin (alpha .5 -> 1, y eased to room top + 20, friction *.5), then Peel (sound 0x13a, state 16), then state 3. The port went straight to Peel: the no-skin phase now opens on AngrySkin.
  • The line push (and wall flip) runs in states 3, 8 and 9 (line 0048273b: if state is 3, 8 or 9): the Haunt keeps sliding while it spits and lasers, and the dash is a state-3 velocity change, not a stop. New generic attack flag moving (the behaviour's movement runs on during the attack) on AngryNoSkin, SpitNoSkin, LaserNoSkin.
  • Dash: TargetPosition.x = |TargetPosition.x| and vel.x = |vel.x| toward Isaac, then + 10 + rand*5. New attack flag impulse_flip (velocity heading against the impulse is mirrored first), so the speed it had is kept, and the line push follows the new heading.
  • Laser: Entity_Laser::ShootAngle(1, pos, 90 (pink 135 and 45), timeout 10, offset (0, -50)), MaxDistance 3000: the beam lasts 10 ticks, not Shoot..LaserEnd (22). laser lifetime 10.
  • Pink spit (subtype 2): from Shoot to Stop on IsFrame(2): one shot at 10 toward Isaac turned by ((V2.x * .5 * s + .5) * 120 - 60) degrees, s = +1 on IsFrame(4) else -1, V2.x += .125 a shot; FallingAccel -.1. That is 60 * s * V2.x: 0, -7.5, +15, -22.5, ... +-52.5 over the 8 even frames. Was a fan of 8 at once; now eight aimed shots on clip frames 4, 6, ..., 18 with one-turn fans, fall_acceleration -.1.
  • Not expressed: the skin-phase opening (the AI spawns the lil haunts silently on init and plays AngrySkin only at the transition; the port still opens with AngrySkin to spawn them), the alpha and y easing.

rag_megas_rebirth_pillar: NpcAI::ENTITY_RAG_MEGA 00495610 variant 2 (409.2). Changed

  • Each tick: NPCs within 40: a Ragling in state 16 -> state 2 (revived), any other +25% of its max health (capped); Remove() on a grid collision or once its 24-frame "Rebirth Pillar" clip ends. Friction 1 (keeps its launch 10).
  • Port: revive radius 60 -> 40; fade life 90 -> 24 with duration 10000 (no slowing; was slowing to 0 over 90); grid_collision walls + wall_death (gone at a wall). Not expressed: the 25% heal of other enemies it passes.