Curation round 9: floors and walls, room transitions, collision, the first enemies, saving, damage, pickups

Seven agents took over the backdrop's floor and wall rendering, room transitions (StartRoomTransition, on_leave,
room_enter), grid collision with tear hits and decal baking, Entity_NPC's core with the AI dispatch and the first
enemies (flies, Gaper, Pooter, Clotty, Horf, Dip, Spider), the run's save, player damage, PlayerManager::Update,
ShowName, pickups, slots and the common effects. Integration added LuaEngine::PostNewLevel/PostNewRoom, one shared
lua_callback_check (4 copies merged) and the enemy type range the original checks.
Under gdb a run draws its rooms with floors and walls, walks between rooms, fights Gapers with contact damage and the
damage flash, and collects pickups. Next: tears hitting enemies, pathfinding, item pedestals, death.
2891 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 08:24:38 -05:00
1 parent 69a354f843
commit 48933cd312
59 files changed
+13387 -6056

No files matched your search

+11 -180
View File
@@ -156,6 +156,7 @@ struct CellSpace;
struct ChallengeParam;
struct ChallengeParams;
struct Checksum;
struct CoPlayerState;
struct Color;
struct ColorMod;
struct ColorModState;
@@ -171,9 +172,11 @@ struct ConsoleScroll;
struct ConsoleText;
struct ConstLobby;
struct ConsumableData;
struct ControlRow;
struct ControllerEntry;
struct CoopAward;
struct CoopJoinSlot;
struct CostumeItem;
struct CostumeSpriteDesc;
struct CraftingRecipe;
struct Cutscene;
@@ -448,10 +451,12 @@ struct PathFinder;
struct PathNode;
struct PauseScreen;
struct PauseScreen_MyStuff;
struct PersistentEffect;
struct PersistentGameData;
struct PersistentGameDataReader;
struct PersistentGameDataWriter;
struct PersistentGameData_Bestiary;
struct PickupChoice;
struct PickupGhostData;
struct PillEffect;
struct Platform;
@@ -505,6 +510,7 @@ struct Room;
struct RoomClear;
struct RoomConfig;
struct RoomConfigMode;
struct RoomConfigRef;
struct RoomConfigRoom;
struct RoomConfigStage;
struct RoomConfig_Curse;
@@ -525,6 +531,7 @@ struct RoomTransition;
struct RoomTransitionRequest;
struct SFXManager;
struct SaveDataManager;
struct SavedRoom;
struct ScoreRecord;
struct ScoreSheet;
struct Seeds;
@@ -552,6 +559,7 @@ struct Sprite;
struct SpriteDraw;
struct SpriteShaderParams;
struct SpriteTrailData;
struct StageNameQuery;
struct StageTransition;
struct StageVisit;
struct StatHUD;
@@ -578,6 +586,9 @@ struct Vector;
struct VectorRing;
struct VentricleRazorPortal;
struct VideoPlayer;
struct VoidedPassive;
struct WallDetail;
struct WallSlot;
struct WaterClipInfo;
struct Weapon;
struct WeaponDelete;
@@ -920,25 +931,6 @@ LAYOUT32(offsetof(Ambush, _maxWaves) == 0x18);
LAYOUT32(offsetof(Ambush, _isActive) == 0x20);
LAYOUT32(offsetof(Ambush, _currentWave) == 0x24);
struct BackwardsStageDesc {
uint8_t _bossRooms[0x170]; // RoomDescriptor[2]
uint8_t _bossRoomConfigs[0x18]; // GameStateRoomConfig[2]
uint8_t _treasureRooms[0x170]; // RoomDescriptor[2]
uint8_t _treasureRoomConfigs[0x18]; // GameStateRoomConfig[2]
uint32_t _bossRoomsCount;
uint32_t _treasureRoomsCount;
uint32_t _stageType;
bool _isXL;
};
LAYOUT32(offsetof(BackwardsStageDesc, _bossRooms) == 0x0);
LAYOUT32(offsetof(BackwardsStageDesc, _bossRoomConfigs) == 0x170);
LAYOUT32(offsetof(BackwardsStageDesc, _treasureRooms) == 0x188);
LAYOUT32(offsetof(BackwardsStageDesc, _treasureRoomConfigs) == 0x2f8);
LAYOUT32(offsetof(BackwardsStageDesc, _bossRoomsCount) == 0x310);
LAYOUT32(offsetof(BackwardsStageDesc, _treasureRoomsCount) == 0x314);
LAYOUT32(offsetof(BackwardsStageDesc, _stageType) == 0x318);
LAYOUT32(offsetof(BackwardsStageDesc, _isXL) == 0x31c);
struct BeamRenderer {
static void Begin(ANM2 *anm2, uint32_t layer, uint8_t isUseOverlay, uint8_t isUnk); // 0041e480
static void Add(Vector *point, ColorMod *color, float spritesheetCoordinate, float width); // 0041e720
@@ -1344,13 +1336,6 @@ struct EntityPartition {
};
struct EntitySaveState {
void constructor(); // 004d3080
void copy(void *other); // 004d3130
static void set_extra_data(uint32_t param_1); // 00827f70
};
struct EntitySaveStateRef {
void Set(void *state); // 006eee10
};
@@ -1361,31 +1346,6 @@ struct EntitySpawner {
};
struct FamiliarData {
int _seed;
int _variant;
int _subtype;
int _coins;
int _hearts;
int _keys;
int _state;
int _roomClearCount;
uint8_t _pad_0x20[0x8];
float _health;
int _dropRNGSeed;
};
LAYOUT32(offsetof(FamiliarData, _seed) == 0x0);
LAYOUT32(offsetof(FamiliarData, _variant) == 0x4);
LAYOUT32(offsetof(FamiliarData, _subtype) == 0x8);
LAYOUT32(offsetof(FamiliarData, _coins) == 0xc);
LAYOUT32(offsetof(FamiliarData, _hearts) == 0x10);
LAYOUT32(offsetof(FamiliarData, _keys) == 0x14);
LAYOUT32(offsetof(FamiliarData, _state) == 0x18);
LAYOUT32(offsetof(FamiliarData, _roomClearCount) == 0x1c);
LAYOUT32(offsetof(FamiliarData, _health) == 0x28);
LAYOUT32(offsetof(FamiliarData, _dropRNGSeed) == 0x2c);
LAYOUT32(sizeof(FamiliarData) == 0x30);
struct File {
};
@@ -1465,19 +1425,6 @@ struct GameOver {
LAYOUT32(offsetof(GameOver, _state) == 0x0);
LAYOUT32(offsetof(GameOver, _isStopSoundsPending) == 0x11c);
struct GameStatePlayer {
~GameStatePlayer(); // 00754d90
void read_player_key(void *stream); // 009c86e0
void Init(); // 009cf050
static uint8_t read_coplayer(short *block, void *stream); // 009cff40
void write_coplayer(void *stream); // 009d0100
static void read_block_538(uint32_t *block, void *stream); // 009d02c0
static void write_block_538(short *block, void *stream); // 009d0440
uint8_t read(void *reader); // 009d05d0
static uint32_t read_part3(); // 009d2656
};
struct Game_StateSlot {
void * operator_assign(void *other); // 006f8a40
};
@@ -1493,20 +1440,6 @@ struct GlitchedItemSet {
};
struct GlowingHourglassState {
bool _isUsable;
uint8_t _pad_0x1[0x3];
uint8_t _gameState[0x1fe28]; // GameState
int _leaveDoor;
uint32_t _timeCounter;
uint8_t _eventCounters[0x4]; // int[523]
};
LAYOUT32(offsetof(GlowingHourglassState, _isUsable) == 0x0);
LAYOUT32(offsetof(GlowingHourglassState, _gameState) == 0x4);
LAYOUT32(offsetof(GlowingHourglassState, _leaveDoor) == 0x1fe2c);
LAYOUT32(offsetof(GlowingHourglassState, _timeCounter) == 0x1fe30);
LAYOUT32(offsetof(GlowingHourglassState, _eventCounters) == 0x1fe34);
struct GraphicsWindow {
int get_framebuffer_width(); // 00a19340
};
@@ -3717,32 +3650,6 @@ LAYOUT32(offsetof(PMD, pdisp) == 0x4);
LAYOUT32(offsetof(PMD, vdisp) == 0x8);
LAYOUT32(sizeof(PMD) == 0xc);
struct PathFinder {
int GetGridIndex(); // 00456370
static uint32_t GetEvadeMovementCountdown(); // 00456740
static void SetCanCrushRocks(uint8_t param_1); // 00499dc0
uint8_t HasDirectPath(); // 004be6e0
void Init(Entity *owner); // 007e31a0
void Reset(); // 007e3260
uint8_t is_entity_friendly(); // 007e3340
void EvadeTarget(Vector *targetPos, uint8_t isIgnoreStatusEffects); // 007e4940
void MoveRandomlyAxisAligned(float speed, uint8_t isIgnoreStatusEffects); // 007e5340
uint8_t MoveRandomly(uint8_t isIgnoreStatusEffects); // 007e6300
void MoveRandomlyBoss(uint8_t isIgnoreStatusEffects); // 007e6650
static void update_chase_movement(); // 007e6b90
void UpdateGridIndex(); // 007e6ff0
uint8_t _pad_0x0[0x4];
Vector _movementTarget;
uint8_t _pad_0xc[0x720];
bool _hasDirectPath;
uint8_t _pad_0x72d[0xf];
int _evadeMovementCountdown;
};
LAYOUT32(offsetof(PathFinder, _movementTarget) == 0x4);
LAYOUT32(offsetof(PathFinder, _hasDirectPath) == 0x72c);
LAYOUT32(offsetof(PathFinder, _evadeMovementCountdown) == 0x73c);
struct PathNode {
PathNode(void *other); // 007e48b0
PathNode() = default;
@@ -3820,58 +3727,6 @@ struct ProceduralItem {
};
LAYOUT32(offsetof(ProceduralItem, item) == 0x0);
struct ProjectileParams {
ProjectileParams(); // 0043ef30
bool GridCollision;
uint8_t _pad_0x1[0x3];
float HeightModifier;
float FallingSpeedModifier;
float FallingAccelModifier;
float VelocityMulti;
float Scale;
float CircleAngle;
float HomingStrength;
float CurvingStrength;
float Acceleration;
float Spread;
ColorMod Color;
uint64_t BulletFlags;
Vector PositionOffset;
Vector TargetPosition;
Vector FireDirectionLimit;
float DotProductLimit;
int32_t WiggleFrameOffset;
uint64_t ChangeFlags;
float ChangeVelocity;
uint32_t ChangeTimeout;
float DepthOffset;
uint32_t Variant;
};
LAYOUT32(offsetof(ProjectileParams, GridCollision) == 0x0);
LAYOUT32(offsetof(ProjectileParams, HeightModifier) == 0x4);
LAYOUT32(offsetof(ProjectileParams, FallingSpeedModifier) == 0x8);
LAYOUT32(offsetof(ProjectileParams, FallingAccelModifier) == 0xc);
LAYOUT32(offsetof(ProjectileParams, VelocityMulti) == 0x10);
LAYOUT32(offsetof(ProjectileParams, Scale) == 0x14);
LAYOUT32(offsetof(ProjectileParams, CircleAngle) == 0x18);
LAYOUT32(offsetof(ProjectileParams, HomingStrength) == 0x1c);
LAYOUT32(offsetof(ProjectileParams, CurvingStrength) == 0x20);
LAYOUT32(offsetof(ProjectileParams, Acceleration) == 0x24);
LAYOUT32(offsetof(ProjectileParams, Spread) == 0x28);
LAYOUT32(offsetof(ProjectileParams, Color) == 0x2c);
LAYOUT32(offsetof(ProjectileParams, BulletFlags) == 0x58);
LAYOUT32(offsetof(ProjectileParams, PositionOffset) == 0x60);
LAYOUT32(offsetof(ProjectileParams, TargetPosition) == 0x68);
LAYOUT32(offsetof(ProjectileParams, FireDirectionLimit) == 0x70);
LAYOUT32(offsetof(ProjectileParams, DotProductLimit) == 0x78);
LAYOUT32(offsetof(ProjectileParams, WiggleFrameOffset) == 0x7c);
LAYOUT32(offsetof(ProjectileParams, ChangeFlags) == 0x80);
LAYOUT32(offsetof(ProjectileParams, ChangeVelocity) == 0x88);
LAYOUT32(offsetof(ProjectileParams, ChangeTimeout) == 0x8c);
LAYOUT32(offsetof(ProjectileParams, DepthOffset) == 0x90);
LAYOUT32(offsetof(ProjectileParams, Variant) == 0x94);
struct Quad {
void rotate(Vector *pivot, float angle); // 00a10760
void scale(Vector *pivot, Vector *scale); // 00a10950
@@ -6961,8 +6816,6 @@ void FUN_006a80d0(); // 006a80d0
void FUN_006a8180(uint32_t param_1); // 006a8180
void FUN_006a8210(int param_1); // 006a8210
uint32_t FUN_006ae7a0(); // 006ae7a0
uint32_t FUN_006b2390(); // 006b2390
uint8_t entity_collision_classes_match(Entity *a, Entity *b); // 006b2410
void spawn_gibs(Vector *position, int amount, float spread, uint32_t *gibFlags, Entity *spawner, ColorMod *color, Vector *velocity, float scale); // 006b31b0
void FUN_006b5de0(); // 006b5de0
void FUN_006b5f40(); // 006b5f40
@@ -6979,10 +6832,7 @@ uint8_t FUN_006b8490(); // 006b8490
void FUN_006b84c0(); // 006b84c0
void FUN_006b8580(); // 006b8580
Entity * spawn_gfuel_explosion(); // 006b9450
void Entity_NPC_UpdateAI_dispatch(Entity_NPC *npc); // 006c2990
int FUN_006c4a90(); // 006c4a90
void FUN_006d0370(uint32_t *param_1); // 006d0370
void FUN_006d5350(); // 006d5350
void FUN_006d6650(); // 006d6650
uint8_t is_local_player_owned(void *self); // 006d8e10
uint32_t FUN_006da6f0(); // 006da6f0
@@ -6997,7 +6847,6 @@ void FUN_006daab0(); // 006daab0
void FUN_006dac00(uint32_t *param_1, uint32_t param_2); // 006dac00
float log_precise(float value); // 006dac30
void FUN_006daca0(uint32_t param_1); // 006daca0
uint8_t Pickup_PickVariant(uint32_t seed, uint32_t *variant, uint32_t *subType, uint8_t isAdvancePools, uint8_t isShopItem); // 006ddcd0
uint32_t FUN_006e1910(uint32_t param_1); // 006e1910
void FUN_006e2ff0(int param_1); // 006e2ff0
void FUN_006ee330(); // 006ee330
@@ -7249,7 +7098,6 @@ uint32_t FUN_007ab0e0(); // 007ab0e0
void FUN_007ad610(); // 007ad610
uint32_t FUN_007ad720(uint32_t param_1, uint8_t *param_2); // 007ad720
void FUN_007ae430(short *param_1); // 007ae430
void FUN_007b0b40(uint16_t *param_1); // 007b0b40
void FUN_007b8c00(int param_1); // 007b8c00
void FUN_007b9a60(); // 007b9a60
void FUN_007b9aa0(); // 007b9aa0
@@ -7382,7 +7230,6 @@ void FUN_007ea0c0(); // 007ea0c0
void FUN_007ea5d0(); // 007ea5d0
void FUN_007ebc40(); // 007ebc40
uint32_t FUN_007ed240(); // 007ed240
uint8_t entity_type_is_saved(int type, int variant, uint32_t subType, int spawnerType, uint8_t isRoomFlag); // 007eed10
float get_angel_room_chance(); // 007f96f0
void FUN_007fa2a0(float *param_1); // 007fa2a0
void FUN_007fa7d0(); // 007fa7d0
@@ -7647,9 +7494,7 @@ void FUN_00864fc0(uint32_t param_1); // 00864fc0
uint32_t Catch_0086504e(); // 0086504e
void FUN_008650a0(uint32_t param_1); // 008650a0
uint32_t Catch_0086512e(); // 0086512e
void FUN_00865180(); // 00865180
uint32_t Catch_00865209(); // 00865209
void FUN_00865260(); // 00865260
uint32_t Catch_008652e9(); // 008652e9
int lua_callback_run_get_card(RNG *rng, int card, uint8_t isPlaying, uint8_t isRunes, uint8_t isOnlyRunes); // 00865340
uint8_t * Catch_00865424(); // 00865424
@@ -9765,14 +9610,6 @@ int * FUN_00930a00(int param_1); // 00930a00
uint32_t FUN_00930b20(); // 00930b20
void FUN_00930ec0(); // 00930ec0
void FUN_00930ee0(char param_1); // 00930ee0
void FUN_00931f50(uint32_t *param_1, int param_2); // 00931f50
void FUN_00931fc0(uint32_t *param_1, uint32_t *param_2); // 00931fc0
void FUN_00932020(uint32_t *param_1, int param_2); // 00932020
void grid_rect_to_quad(float *outQuad, int x, int y, int width, int height); // 00932090
Vector * backdrop_detail_to_world_pos(Vector *outPosition, Vector *position); // 0093b480
uint32_t FUN_0093b530(); // 0093b530
void backdrop_wall_normal(Vector *outNormal, int isVertical, uint8_t isNegX, uint8_t isNegY); // 0093b580
void FUN_009426b0(uint32_t param_1, uint32_t param_2); // 009426b0
void FUN_00949b70(); // 00949b70
void FUN_00949bc0(uint32_t param_1); // 00949bc0
void FUN_0094e3b0(); // 0094e3b0
@@ -9792,7 +9629,6 @@ void save_rerun_to_steam_cloud(); // 00959180
void FUN_00959500(); // 00959500
void persistent_game_data_set_writable(); // 0095a680
void unlock_completion_mark_for_player_type(int markIndex, int playerType, int difficulty); // 0095aa30
int controller_button_to_glyph_frame(int button); // 0095aba0
void render_online_icon(int frame, Vector position, float scaleX, float scaleY); // 0095ae60
void FUN_0095be60(int param_1, int param_2); // 0095be60
void FUN_0095be90(void *param_1, int param_2); // 0095be90
@@ -9863,7 +9699,6 @@ void FUN_009b9fc0(int param_1); // 009b9fc0
void FUN_009ba9a0(); // 009ba9a0
void FUN_009baa10(char param_1); // 009baa10
int FUN_009bac00(int param_1); // 009bac00
uint32_t FUN_009be9c0(); // 009be9c0
void entity_vector_set_flag_410(void *self, uint8_t value); // 009bea10
void FUN_009bfc00(); // 009bfc00
void FUN_009bfc20(); // 009bfc20
@@ -21981,8 +21816,6 @@ void ENTITY_DUSTY_DEATHS_HEAD(Entity_NPC *npc); // 00504a40
void ENTITY_NECRO(Entity_NPC *npc); // 005052a0
void ENTITY_STONE_EYE(Entity_NPC *npc); // 00505d00
void ENTITY_CONSTANT_STONE_SHOOTER(Entity_NPC *npc); // 00506320
void ENTITY_FLY(Entity_NPC *npc); // 00506bd0
void ENTITY_GAPER(Entity_NPC *npc); // 00508f40
void ENTITY_EMBRYO(Entity_NPC *npc); // 0050a6b0
void ENTITY_ETERNALFLY(Entity_NPC *npc); // 0050a8a0
void ENTITY_GUSHER(Entity_NPC *npc); // 0050af90
@@ -21994,7 +21827,6 @@ uint32_t ENTITY_BOOMFLY(Entity_NPC *npc); // 0050f280
void ENTITY_MAW(Entity_NPC *npc); // 00510ae0
Entity * ENTITY_HOST(Entity_NPC *npc); // 005111b0
void ENTITY_BRAIN(Entity_NPC *npc); // 00512110
void ENTITY_HORF(Entity_NPC *npc); // 00513080
void ENTITY_KNIGHT(Entity_NPC *npc); // 005135d0
uint32_t * ENTITY_GUTS(Entity_NPC *npc); // 005153b0
void ENTITY_BOIL(Entity_NPC *npc); // 00517150
@@ -22026,7 +21858,6 @@ void ENTITY_BABY_LONG_LEGS(Entity_NPC *npc); // 00531ab0
void ENTITY_MOBILE_HOST(Entity_NPC *npc); // 005321d0
void ENTITY_DEATHS_HEAD(Entity_NPC *npc); // 00532cf0
void ENTITY_MOMS_HAND(Entity_NPC *npc); // 00533b80
void ENTITY_DIP(Entity_NPC *npc); // 00534860
Entity * ENTITY_SQUIRT(Entity_NPC *npc); // 00535280
void ENTITY_SWINGER(Entity_NPC *npc); // 00536d00
void ENTITY_WIZOOB(Entity_NPC *npc); // 005374a0