Brownie: friction pushes, absorb radius, 0x14c = PlaybackSpeed, steering and burst details

This commit is contained in:
shweet committed 2026-10-24 14:04:29 -04:00
1 parent bce00e52e1
commit 61f5cf5429
1 file changed
+14
+14
View File
@@ -126,3 +126,17 @@ If you would rather not add them, set NEW_EVENTS = False. The lunge, spiral and
- Corn mines taking the boss colour.
- The first SpinStart hop using a stale heading.
11. **The 60% mine chance is given as spawn_most.** Dashing gets 3, front-loaded; Spinning 11 gets 1. Proposal: `spawn_one_in` / `spawn_chance` per spawn event.
## brownie: gaps closed (rif/brownie, 2026-10-24). Changed
All open gaps above are ported as generic fields; the record now has only the death phase.
- **Friction.** Every push (SpinStart 2.5 per Shoot frame, DashStart 2.5 on Dash) is `vel += push * speedMul / friction` with friction (Entity+0x36c) already *.7 that tick, so the port's lunge/impulse is 2.5 / .7 = 3.5714.
- **Absorb radius.** The landing query is `EntityList::QueryRadius(pos, size * 1.1)` (0048d700: xmm3 = Entity+0x370 * DAT_00baa490 1.1), so only dips within 38.5 px are eaten, any 217 variant.
- **field_0x14c is not CollisionDamage** (that is Entity+0x388). 0x14c = sprite (Entity+0x48) + 0x104 = ANM2 PlaybackSpeed: state 11 plays Spinning at double speed, reset to 1 on exit. Visual only; not ported.
- **Steering formula (0048e2xx).** `want = normalize(vel + .15 v2 (unit(target - pos) + unit(vel))) * v2`, `vel += (want - vel) * (1 - .8)` (the .8 adjusted by speedMultiplier when != 1), then friction .88. The "nearest dip" loop compares `dist < 0.0`, so it takes the first 217 (or 23 for black) in the list.
- **Dash burst.** `IsFrame(30, 0)` is (game frame) % 30; arms i1 byte 3 = 3 + rand%5 with i2 = 0; fires on i2 % 3 == 0 from the next tick, stopping once (i2 + 1) / 3 >= count: count shots 3 ticks apart. Only in state 8.
- **Sound ids** (sounds.xml by id): 72 meat jumps (landing, wall hit), 237 plop (each dip), 301 fart gurg (Dash), 420 BrownieLaugh (spin picks, Spinning/Dashing start). Laughs not ported (a cue would repeat on every clip loop).
- **Not ported:** HeightModifier -35 on the spin shots, the launch offset cos(2 pi i2 / 12) * size along x, the wall shake/splat, mines' boss colour, the stale first hop heading, creep exactly every 8 ticks (the port uses the clip's Trail/Spawn events), dips' velocity scale (0x39c / 0x36c of the new dip).
Port fields (isaac-classic MODDING.md): gate `hp_steps_lag`, `chance_hp`, `chance_after`; attack `hp_step`, `hp_steps_sync`, `next_roll`, `lunge_redraw`, `steer`, `spawn_period`, `spawn_chance`, `spawn_outward`, revive `absorb`; shot `burst.period/one_in/count/count_random`, `aim_scatter`, `still`, `wheel`; behaviour `hp_spawn`, `step_poses`.