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

+91 -5
View File
@@ -7,7 +7,80 @@
// Lua's TearFlags bits that the entity code reads.
enum TearFlagBit : int
{
TEAR_SHIELDED = 34
TEAR_GROW = 7,
TEAR_EXPLOSIVE = 12,
TEAR_WAIT = 17,
TEAR_QUADSPLIT = 18,
TEAR_GLOW = 31,
TEAR_SHIELDED = 34,
TEAR_TRACTOR_BEAM = 42,
TEAR_POP = 58,
TEAR_LUDOVICO = 127
};
// Lua's TearVariant: the look of a tear, which also picks its splash.
enum TearVariant : int
{
TEAR_BLUE = 0,
TEAR_BLOOD = 1,
TEAR_TOOTH = 2,
TEAR_METALLIC = 3,
TEAR_BOBS_HEAD = 4,
TEAR_FIRE_MIND = 5,
TEAR_DARK_MATTER = 6,
TEAR_MYSTERIOUS = 7,
TEAR_SCHYTHE = 8,
TEAR_CHAOS_CARD = 9,
TEAR_LOST_CONTACT = 10,
TEAR_CUPID_BLUE = 11,
TEAR_CUPID_BLOOD = 12,
TEAR_NAIL = 13,
TEAR_PUPULA = 14,
TEAR_PUPULA_BLOOD = 15,
TEAR_GODS_FLESH = 16,
TEAR_GODS_FLESH_BLOOD = 17,
TEAR_DIAMOND = 18,
TEAR_EXPLOSIVO = 19,
TEAR_COIN = 20,
TEAR_MULTIDIMENSIONAL = 21,
TEAR_STONE = 22,
TEAR_NAIL_BLOOD = 23,
TEAR_GLAUCOMA = 24,
TEAR_GLAUCOMA_BLOOD = 25,
TEAR_BOOGER = 26,
TEAR_EGG = 27,
TEAR_RAZOR = 28,
TEAR_BONE = 29,
TEAR_BLACK_TOOTH = 30,
TEAR_NEEDLE = 31,
TEAR_BELIAL = 32,
TEAR_EYE = 33,
TEAR_EYE_BLOOD = 34,
TEAR_BALLOON = 35,
TEAR_HUNGRY = 36,
TEAR_BALLOON_BRIMSTONE = 37,
TEAR_BALLOON_BOMB = 38,
TEAR_FIST = 39,
TEAR_GRIDENT = 40,
TEAR_ICE = 41,
TEAR_ROCK = 42,
TEAR_KEY = 43,
TEAR_KEY_BLOOD = 44,
TEAR_ERASER = 45,
TEAR_FIRE = 46,
TEAR_SWORD_BEAM = 47,
TEAR_SPORE = 48,
TEAR_TECH_SWORD_BEAM = 49,
TEAR_FETUS = 50
};
// Why a tear died, as deathFlags collects them.
enum TearDeath : uint32_t
{
TEAR_DEATH_GRID = 1 << 0,
TEAR_DEATH_WALL = 1 << 1,
TEAR_DEATH_FLOOR = 1 << 2,
TEAR_DEATH_FORCED = 1 << 6
};
// Construction and destruction (00665ea0, 00665cf0) are the defaults.
@@ -15,6 +88,8 @@ enum TearFlagBit : int
// 0060cd00, 0085dd60, 0085dd70, 0085dd90) are the public fields.
// A player's tear (Lua's EntityTear): its height and fall, scale and damage, the tear flags that change how it flies
// and hits, the entity it sticks to, and the tears and lasers it links to.
// Only a plain tear is reconstructed yet: Update and Interpolate stop at any tear flag or special variant, and
// HandleCollision past its early checks.
struct Entity_Tear : Entity
{
ANM2 deadEyeANM2;
@@ -26,9 +101,9 @@ struct Entity_Tear : Entity
EntityPtr laserShotLaser;
EntityPtr linkNext;
EntityPtr linkPrev;
EntityPtr stickTarget;
EntityPtr techZeroLaser;
EntityPtr techZeroTarget;
Entity* stickTarget = nullptr;
Vector continueVelocity{};
Vector holdOffset{};
Vector holdVelocity{};
@@ -76,7 +151,8 @@ struct Entity_Tear : Entity
void apply_wiggle(float strength);
void update_wiggle();
void play_fire_sound();
float get_height_offset_y(float height);
float get_height_offset_y(float tearHeight);
void SetHeight(float tearHeight);
void SetScale(float scale);
void SetTearFlags(TearFlags flags);
void apply_death_flag_effects(Entity* target);
@@ -85,10 +161,20 @@ struct Entity_Tear : Entity
void fire_split_projectiles(bool isHalved);
void SetDeadEyeIntensity(float intensity);
Entity_Tear* MakeMultidimensionalCopy(Entity* spawner);
void ChangeVariant(int variant);
void ChangeVariant(int newVariant);
int find_nearest_linkable_tear();
Entity_Tear* find_link_partner();
void apply_link_spring_forces();
static bool try_make_bridges(float*);
bool try_make_bridges(const Vector& position);
void reroll_hit_entity(int unused);
private:
float animation_update();
bool hold_update();
void wait_update();
void death_update();
void blood_stains_spawn();
void flight_update();
void floor_hit();
void grid_hit();
};