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
+34
-2
@@ -5,6 +5,7 @@
|
||||
#include "kage_graphics.h"
|
||||
#include "online_emotes.h"
|
||||
#include "temporary_effects.h"
|
||||
#include "weapon.h"
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <deque>
|
||||
@@ -136,6 +137,9 @@ enum Direction : int
|
||||
DIRECTION_DOWN
|
||||
};
|
||||
|
||||
// The head animations the player turns to, by direction.
|
||||
constexpr std::string_view PLAYER_HEAD_ANIMS[] = {"HeadLeft", "HeadUp", "HeadRight", "HeadDown"};
|
||||
|
||||
// The layers of the player's sprite, in the order its .anm2 lists them: the glow, the body, the head and the top
|
||||
// layers costumes can cover.
|
||||
enum PlayerSpriteLayer : int
|
||||
@@ -463,8 +467,17 @@ struct EntityDesc
|
||||
bool isPlayerControlled = false;
|
||||
};
|
||||
|
||||
// What the shoot actions ask for this frame: a direction, whether any is held, and whether opposite ones cancel.
|
||||
struct ShootInput
|
||||
{
|
||||
Vector direction{};
|
||||
bool isOpposing = false;
|
||||
bool isPressed = false;
|
||||
};
|
||||
|
||||
RNG rng_make(uint32_t seed, uint32_t shiftIndex);
|
||||
bool is_run_unlocked(int achievement);
|
||||
Direction vector_to_direction(const Vector& v);
|
||||
int scale_for_hard_difficulty(int value);
|
||||
std::string costume_path_apply_skin_color(const std::string& path, int skinColor, int playerType,
|
||||
bool* isSkinColorFound, bool* isCharacterFound);
|
||||
@@ -631,7 +644,10 @@ public:
|
||||
uint8_t wildCardItemType = WILD_CARD_NONE;
|
||||
bool isHeldItemVisible = false;
|
||||
|
||||
std::array<IsaacRepentancePlus::Weapon*, WEAPON_SLOT_COUNT> weapons{};
|
||||
std::array<WeaponPtr, WEAPON_SLOT_COUNT> weapons;
|
||||
std::array<bool, WEAPON_TYPE_COUNT> weaponTypes{};
|
||||
std::deque<Vector> shootDirectionHistory;
|
||||
EntityPtr azazelsRageLaser;
|
||||
Vector aimDirection{};
|
||||
Vector lastDirection{};
|
||||
Vector lastVelocity{};
|
||||
@@ -641,14 +657,18 @@ public:
|
||||
Vector tearsOffset{};
|
||||
float bodyAngle = 0;
|
||||
float heightVelocity = 0;
|
||||
float ibsChargeBar = 0;
|
||||
int64_t lastShootTime = 0;
|
||||
int actionHoldDrop = 0;
|
||||
int bombPlaceDelay = 0;
|
||||
int controllerIndex = -1;
|
||||
int controlsCooldown = 0;
|
||||
int doubleTapFrames = 0;
|
||||
int fireBlockCooldown = 0;
|
||||
int glowingHourglassIndex = -1;
|
||||
int lastActionTriggers = 0;
|
||||
int playerIndex = -1;
|
||||
int shootHeldFrames = 0;
|
||||
int slipperyTimer = 0;
|
||||
int tractorBeam = 0;
|
||||
Direction fireDirection = DIRECTION_NONE;
|
||||
@@ -657,6 +677,7 @@ public:
|
||||
bool areOpposingShootDirectionsPressed = false;
|
||||
bool canShoot = true;
|
||||
bool isControlsEnabled = true;
|
||||
bool isIbsChargeSoundPending = true;
|
||||
|
||||
EntityRef lastDamageSource;
|
||||
uint64_t lastDamageFlags = 0;
|
||||
@@ -865,6 +886,15 @@ public:
|
||||
bool IsInvisible();
|
||||
Vector GetBodyMoveDirection();
|
||||
|
||||
// Shooting.
|
||||
Entity_Tear* FireTear(const PosVel& shot, uint32_t fireFlags, Entity* source, float damageMultiplier);
|
||||
TearParams GetTearHitParams(WeaponType weaponType, float damageScale, int displacement, Entity* source);
|
||||
Weapon_MultiShotParams GetMultiShotParams(WeaponType weaponType);
|
||||
static PosVel GetMultiShotPositionVelocity(int loopIndex, WeaponType weaponType, const Vector& shotDirection,
|
||||
float shotSpeed, const Weapon_MultiShotParams& params);
|
||||
Vector GetTearMovementInheritance(const Vector& shotDirection, InheritMode mode);
|
||||
Vector delayed_shoot_direction();
|
||||
|
||||
void ClearReferences() override;
|
||||
bool CanShutDoors() override;
|
||||
bool IsValidTarget(Entity* other) override;
|
||||
@@ -920,7 +950,9 @@ private:
|
||||
void walk_velocity_update(Vector walkInput);
|
||||
bool walking_items_has();
|
||||
void walk_animation_update();
|
||||
void head_animation_update();
|
||||
void shoot_input_read(ShootInput& input);
|
||||
void head_turn(Vector toward);
|
||||
void charge_store_changed(int effectiveCharge, int oldCharge);
|
||||
void render_back(const Vector& position);
|
||||
ANM2& layer_sprite(int layer);
|
||||
int layer_id(int layer);
|
||||
|
||||
Reference in new issue
Block a user