Curation round 14: console and Lua API, effects, lasers, enemies, eleven bosses, the Depths and Mom, status effects, the playable characters

This commit is contained in:
shweet committed 2026-11-20 19:04:41 -05:00
1 parent 8ae02a8422
commit 6e3da161fc
138 files changed
+16754 -6825

No files matched your search

+30 -1
View File
@@ -17,6 +17,7 @@ constexpr uint32_t CONSOLE_ECHO = 0xff808080;
// How many frames a printed line stays on the faded display.
constexpr int CONSOLE_FADE_FRAMES = 150;
constexpr int CONSOLE_SUGGESTION_COUNT = 6;
constexpr int DELIRIOUS_BOSS_COUNT = 59;
// Where the console is in sliding open and closed. Nothing known sets CONSOLE_REOPEN, which snaps back to open.
enum ConsoleState : int
@@ -42,6 +43,32 @@ enum HistoryFade
HISTORY_FADED
};
// A boss Delirious and the delirious command spawn as a friend, as Entity_Player::console_spawn reads it: its health
// and how many come.
struct DeliriousBoss
{
int type = 0;
int variant = 0;
float health = 0;
int count = 1;
};
// The bosses Delirious picks from (0x00c33d80).
inline constexpr DeliriousBoss DELIRIOUS_BOSSES[DELIRIOUS_BOSS_COUNT] = {
{268, 0, 100, 1}, {74, 0, 40, 1}, {411, 0, 100, 1}, {79, 2, 100, 1}, {68, 1, 100, 1}, {402, 0, 100, 1},
{265, 0, 100, 1}, {28, 2, 100, 3}, {28, 1, 100, 3}, {28, 0, 100, 3}, {65, 1, 100, 1}, {101, 0, 100, 1},
{261, 1, 100, 1}, {267, 0, 100, 1}, {66, 0, 100, 1}, {261, 0, 100, 1}, {67, 0, 100, 1}, {81, 0, 100, 1},
{63, 0, 100, 1}, {71, 0, 25, 1}, {403, 0, 100, 1}, {62, 2, 100, 1}, {79, 0, 100, 1}, {43, 1, 100, 1},
{36, 0, 100, 1}, {99, 0, 100, 1}, {237, 1, 100, 1}, {82, 0, 100, 1}, {19, 1, 100, 3}, {407, 0, 180, 1},
{67, 1, 100, 1}, {19, 0, 100, 3}, {404, 0, 100, 1}, {69, 0, 100, 1}, {69, 1, 100, 1}, {97, 0, 100, 1},
{264, 0, 100, 1}, {262, 0, 100, 1}, {20, 0, 100, 1}, {43, 0, 100, 1}, {270, 0, 100, 1}, {68, 0, 100, 1},
{64, 0, 100, 1}, {62, 0, 100, 1}, {269, 0, 100, 1}, {405, 0, 100, 1}, {409, 0, 100, 1}, {62, 1, 100, 1},
{410, 0, 100, 1}, {401, 0, 100, 1}, {79, 1, 100, 1}, {71, 1, 25, 1}, {263, 0, 100, 1}, {260, 0, 100, 1},
{101, 1, 100, 1}, {237, 2, 100, 1}, {65, 0, 100, 1}, {100, 0, 100, 1}, {100, 1, 100, 1}};
// The collectible the metro command makes the Metronome become, 0 for a random one (0x00c7166c).
extern int g_metronomeItem;
// The console's font for the ConsoleFont option, with its row height and how far its glyphs sit from their row.
struct ConsoleText
{
@@ -104,7 +131,7 @@ struct Console
void Print(std::string_view text, uint32_t color = CONSOLE_WHITE, int fadeFrames = CONSOLE_FADE_FRAMES);
void PrintError(std::string_view error);
void print_format(uint32_t color, const char* format, ...) __attribute__((format(printf, 3, 4)));
void RunCommand(std::string_view command, std::string* output, Entity_Player* player);
void RunCommand(std::string_view command, std::string* output = nullptr, Entity_Player* player = nullptr);
bool update_state();
void Update();
@@ -132,3 +159,5 @@ private:
};
ConsoleText console_text_get();
std::vector<std::string> text_split(std::string_view text, char delimiter);
std::string lua_code_run(std::string_view code);