Curation round 10: combat, pathfinding, death and game over, items and stats, room state, Continue, Lua callbacks
Seven agents took over tear and contact collision, NPC death with blood and gibs, champions, PathFinder, the Gaper's kin, the player's death with the game over screen, item pedestals with collectible pickup, AddCollectible and EvaluateItems, room state save and restore, GameState::read, pressure plates, fireplaces, entity lights, ambient sounds, and one Lua callback enum with gated runners. Integration reconstructed Room::Update's loot preview and Entity_NPC::UpdatePickupGhosts and replaced a leftover Sacred Orb stub that stopped every pedestal roll. Under gdb: Gapers die with blood and gibs, a cleared room opens its doors, the treasure room's item is taken (banner, costume, stats: a Magic Mushroom gives damage 3.5 -> 6.12 and a heart), death leads to the game over diary, and a saved run is read back on the next boot with Continue offered. 3028 functions taken over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
48933cd312
commit
d8385e6c64
64 files changed
+8665
-3059
No files matched your search
+6
-5
@@ -147,7 +147,8 @@ void Game::LoadConfigXmls()
|
||||
game.load_bossoverlays_xml(mods.TryRedirectPath(BOSS_OVERLAYS_XML));
|
||||
|
||||
// The original also zeroes GameOver's second int and the ints at Game+0x1d63c and Game+0x1d64c, not modeled yet.
|
||||
game.gameOver._state = 0;
|
||||
game.gameOver.state = GAME_OVER_HIDDEN;
|
||||
game.gameOver.isStopSoundsPending = false;
|
||||
game.leaderboard.LoadAnm2();
|
||||
game.emoteWheel.Init();
|
||||
game.onlineStatsScreen.Load();
|
||||
@@ -523,7 +524,7 @@ void Game::Start(int playerType, uint32_t startChallenge, const Seeds& seeds, Di
|
||||
encounteredBosses.clear();
|
||||
room->Update();
|
||||
framesSinceRoomTransition = 0;
|
||||
static_cast<LuaEngine*>(g_luaEngine)->PostGameStart(false);
|
||||
lua_engine_get().PostGameStart(false);
|
||||
}
|
||||
|
||||
// 006f5210 Fades the screen in from a color at a speed, from full (or nearly no) cover as the instant fade asks, with
|
||||
@@ -750,7 +751,7 @@ static void overlays_render(Game& game)
|
||||
if (game.pauseScreen.state != PAUSE_HIDDEN) game.pauseScreen.Render();
|
||||
game.emoteWheel.Render();
|
||||
game.revivePlayerMenu.Render();
|
||||
if (game.gameOver._state != 0) game.gameOver.Render();
|
||||
game.gameOver.Render();
|
||||
game.leaderboard.Render();
|
||||
popups.render_layer(2);
|
||||
g_manager->modManager.shaders_render();
|
||||
@@ -854,7 +855,7 @@ void Game::Render()
|
||||
graphics.blendMode.SetMode(KAGE::Graphics::BLEND_NORMAL);
|
||||
if (isTransitionShown) roomTransition.Render();
|
||||
else room->Render();
|
||||
static_cast<LuaEngine*>(g_luaEngine)->PostRender();
|
||||
lua_engine_get().PostRender();
|
||||
bool isFlashing = hallucinationTimer > std::max(hallucinationDuration - HALLUCINATION_FLASH_FRAMES, 0);
|
||||
if (isFlashing && !isRoomSnapshot && hallucinationSnapshot)
|
||||
{
|
||||
@@ -877,7 +878,7 @@ bool Game::IsPaused()
|
||||
bool isOffline = !g_manager->netplayManager.is_online();
|
||||
|
||||
if (console.state != CONSOLE_CLOSED && isOffline) return true;
|
||||
return freezeFrames > 0 || gameOver._state != 0 || leaderboard.displayState != LEADERBOARD_HIDDEN ||
|
||||
return freezeFrames > 0 || gameOver.state != GAME_OVER_HIDDEN || leaderboard.displayState != LEADERBOARD_HIDDEN ||
|
||||
stageTransition._state != 0 || roomTransition.mode != 0 || itemOverlay._state == ITEM_OVERLAY_ACTIVE ||
|
||||
(pauseScreen.is_pausing() && isOffline) || g_manager->state != MANAGER_STATE_GAME ||
|
||||
genericPrompt.IsActive() || onlineStatsScreen.isActive;
|
||||
|
||||
Reference in new issue
Block a user