Curation round 11: effects, room clears, items, Continue, bombs, active items, the boss and Basement II

This commit is contained in:
shweet committed 2026-11-20 11:54:27 -05:00
1 parent d8385e6c64
commit 698eeb74e9
74 files changed
+13965 -2078

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
#pragma once
#include "npc_ai.h"
// The basement enemies' AIs the dispatcher (npc_ai_update) runs by type.
void npc_gusher_update(Entity_NPC& npc);
void npc_clotty_update(Entity_NPC& npc);
void npc_mulligan_update(Entity_NPC& npc);
// Keeps an overlay animation playing, restarting it once it ends or another shows.
inline void npc_overlay_loop(ANM2& sprite, std::string_view name)
{
const AnimationData* data = sprite.overlayAnimState.animData;
bool isShown = data && data->name == name && (!data->isLooping || sprite.overlayAnimState.isPlaying);
if (isShown || !sprite.SetOverlayAnimation(name, SWITCH_KEEP_FRAME)) return;
sprite.overlayAnimState.Rewind();
sprite.overlayAnimState.isPlaying = true;
}