Curation round 8: the first room plays: Isaac walks and shoots tears

Eight agents took over Room::Init's pieces, RailManager, Room::Render/render_lighting/Update, the GridEntity hierarchy
(walls, doors, rocks, pits, poop ...), Game::Update and interpolate_update, the run's save, update_ingame_input,
Game::Spawn with the entity factory and grid collision, the player's movement and tears through Weapon/Weapon_Tears,
PlayerManager's positions, the camera focus, MinimapConfig, PlayerHUD, mod shader rendering, Entity_Tear and
Entity_Effect. Integration wrote Level::get_secret_exit_kind, shared the secret-exit enum (four copies merged) and
fixed the generator's vtable-stub check (word boundary and namespace, not a substring).
Under gdb a run reaches the first room: doors, HUD with hearts and minimap, WASD movement with acceleration, arrow-key
tears that fly and splash. Floor and walls (Backdrop::RenderFloor/RenderWalls) and room transitions are next.
The official build/isaac reaches the start room and stops at Entity_NPC::Redirect. 2770 functions taken over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-11-20 06:43:01 -05:00
1 parent b85591bdf4
commit 69a354f843
140 files changed
+23561 -20206

No files matched your search

+2 -115
View File
@@ -345,119 +345,6 @@ void HUD_Message::render_text_image(Font&, std::u16string_view, Vector, KColor)
reconstruction_missing("HUD_Message::render_text_image 008413a0");
}
// Shows a player in a corner that does not show it yet, emptied first and redrawn.
static void corner_assign(PlayerHUD& hud, Entity_Player* player)
{
if (player == hud.player) return;
hud.reset();
hud.player = player;
hud.isDirty = true;
hud.isCraftingItemDirty = true;
}
// 00841cf0 Empties the corner: hearts, flashes, trinkets, actives, the crafting bag, and the player it showed.
void PlayerHUD::reset()
{
hearts.fill({});
lastHeartFlash = 0;
redHeartFlashCountdown = 0;
soulHeartFlashCountdown = 0;
goldHeartFlashCountdown = 0;
for (PlayerHUDTrinket& trinket : trinkets) trinket = {};
for (PlayerHUDActiveItem& item : activeItems) item = {};
craftingIcons.clear();
isDirty = false;
isCraftingItemDirty = false;
craftingResultImage.reset();
craftingBagImage.reset();
player = nullptr;
}
// Forgets the box the corner covered, as HUD::Render does before each frame.
void PlayerHUD::bounds_reset()
{
boundsMin = vector_make(PLAYER_HUD_BOUNDS_FAR, PLAYER_HUD_BOUNDS_FAR);
boundsMax = vector_make(-PLAYER_HUD_BOUNDS_FAR, -PLAYER_HUD_BOUNDS_FAR);
}
// 00842230 Follows the player's hearts, items, pockets and crafting bag, loading the icons they show.
void PlayerHUD::Update()
{
reconstruction_missing("PlayerHUD::Update 00842230");
}
// 00841e20 Picks the animations of a heart slot from the player's health.
void PlayerHUD::UpdateHearts(PlayerHUDHeart&, int)
{
reconstruction_missing("PlayerHUD::UpdateHearts 00841e20");
}
// 00840030 Sets an active slot's charge bar frame for a collectible.
void PlayerHUD::set_active_charge_frame(int)
{
reconstruction_missing("PlayerHUD::set_active_charge_frame 00840030");
}
// 00843df0 Draws the heart rows and returns how far they reach.
void PlayerHUD::RenderHearts(Vector&, ANM2&, PlayerHudLayout, float, Vector)
{
reconstruction_missing("PlayerHUD::RenderHearts 00843df0");
}
// 008453c0 Draws an active item with its charge bar.
void PlayerHUD::RenderActiveItem(int, Vector, PlayerHudLayout, float, float)
{
reconstruction_missing("PlayerHUD::RenderActiveItem 008453c0");
}
// 00846ff0 Draws a trinket.
void PlayerHUD::RenderTrinket(int, Vector, float, bool)
{
reconstruction_missing("PlayerHUD::RenderTrinket 00846ff0");
}
// 008471c0 Draws the cards, pills and pocket actives.
void PlayerHUD::RenderPocketItems(Vector, PlayerHudLayout, float, float)
{
reconstruction_missing("PlayerHUD::RenderPocketItems 008471c0");
}
// 00848d20 Draws Tainted Isaac's inventory.
void PlayerHUD::render_inventory(Vector, float)
{
reconstruction_missing("PlayerHUD::render_inventory 00848d20");
}
// 00849510 Draws Tainted Cain's crafting bag.
void PlayerHUD::RenderCraftingTable(Vector, float)
{
reconstruction_missing("PlayerHUD::RenderCraftingTable 00849510");
}
// 0084a3e0 Draws Tainted ???'s poop spell queue.
void PlayerHUD::RenderSpellQueue(Vector, float)
{
reconstruction_missing("PlayerHUD::RenderSpellQueue 0084a3e0");
}
// 0084ad40 Draws a versus health bar and returns its size.
Vector PlayerHUD::render_deathmatch_health_bar(Vector)
{
reconstruction_missing("PlayerHUD::render_deathmatch_health_bar 0084ad40");
}
// 009a8500 A new corner of a HUD, not one of its eight, showing a player.
std::shared_ptr<PlayerHUD> PlayerHUD::make_ref(HUD* owner, Entity_Player* shown)
{
auto corner = std::make_shared<PlayerHUD>();
corner->hud = owner;
corner->playerHudIndex = -1;
corner_assign(*corner, shown);
return corner;
}
// 0083abb0 Forgets both players' recent items.
void HistoryHUD::clear()
{
@@ -1566,7 +1453,7 @@ void HUD::AssignPlayerHUDs()
log_printf(LOG_INFO, "Assinging player entity %d (ControlerIndex = %d) to HUD slot %d \n", (int)i,
player->controllerIndex, seat);
corner_assign(playerHUD[seat], player);
playerHUD[seat].assign(player);
Entity_Player* twin = player->twin_get();
if (!twin || !twin->isExists || twin->playerType == PLAYER_THESOUL_B) continue;
@@ -1575,6 +1462,6 @@ void HUD::AssignPlayerHUDs()
log_printf(LOG_INFO, "Assinging player entity %d's twin (ControlerIndex = %d) to HUD slot %d \n", (int)i,
twin->controllerIndex, seat);
corner_assign(playerHUD[seat + MAIN_PLAYER_HUD_COUNT], twin);
playerHUD[seat + MAIN_PLAYER_HUD_COUNT].assign(twin);
}
}