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:
1 parent
b85591bdf4
commit
69a354f843
140 files changed
+23561
-20206
No files matched your search
@@ -0,0 +1,48 @@
|
||||
#pragma once
|
||||
|
||||
#include "grid_entity.h"
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// A rock standing, broken, primed to blow (a bomb rock hit by an explosion) and cracked (a super secret rock).
|
||||
enum RockState : int
|
||||
{
|
||||
ROCK_STATE_NONE,
|
||||
ROCK_STATE_STANDING,
|
||||
ROCK_STATE_BROKEN,
|
||||
ROCK_STATE_PRIMED,
|
||||
ROCK_STATE_CRACKED
|
||||
};
|
||||
|
||||
// Destruction (0070b950) is the default. The rubble animation's getter (005cd820) is the public field. A rock of any
|
||||
// kind (Lua's GridEntityRock):
|
||||
// plain, tinted, bomb, super secret, spiked, gold, metal blocks and pillars. A big rock spans four cells. Broken, it
|
||||
// leaves rubble and its drops.
|
||||
struct GridEntity_Rock : GridEntity
|
||||
{
|
||||
std::string anim;
|
||||
std::string rubbleAnim;
|
||||
std::vector<Vector> rubbleOffsets;
|
||||
int fuseFrames = 0;
|
||||
int previousState = 0;
|
||||
|
||||
void subclass_init() override;
|
||||
void PostInit() override;
|
||||
void Update() override;
|
||||
void Render(const Vector& offset) override;
|
||||
bool Destroy(bool isImmediate, const EntityRef& source) override;
|
||||
WaterClipInfo GetWaterClipInfo() override;
|
||||
|
||||
void update_collision();
|
||||
void RenderTop(const Vector& position);
|
||||
void SetBigRockFrame(int frame);
|
||||
int GetBigRockFrame();
|
||||
void UpdateAnimFrame();
|
||||
void UpdateNeighbors();
|
||||
static void RegisterRockDestroyed(GridEntityType type);
|
||||
void TrySpawnWorms();
|
||||
static void PlayBreakSound(GridEntityType type, int backdropType);
|
||||
bool TrySpawnLadder();
|
||||
static void SpawnDrops(const Vector& position, GridEntityType type, int variant, uint32_t seed, int backdropType,
|
||||
Entity* source);
|
||||
};
|
||||
Reference in new issue
Block a user