Add level-up golden burst overlay effect

When the player gains a level, a golden vignette flashes on screen edges
and a large "Level X!" text briefly appears in the center, both fading
over ~1 second. Uses the existing LevelUpCallback from GameHandler.
This commit is contained in:
Kelsi 2026-03-11 23:10:21 -07:00
parent 745768511b
commit 7e271df032
2 changed files with 49 additions and 0 deletions

View file

@ -72,6 +72,8 @@ private:
float nameplateScale_ = 1.0f; // Scale multiplier for nameplate bar dimensions
uint32_t lastPlayerHp_ = 0; // Previous frame HP for damage flash detection
float damageFlashAlpha_ = 0.0f; // Screen edge flash intensity (fades to 0)
float levelUpFlashAlpha_ = 0.0f; // Golden level-up burst effect (fades to 0)
uint32_t levelUpDisplayLevel_ = 0; // Level shown in level-up text
bool showPlayerInfo = false;
bool showSocialFrame_ = false; // O key toggles social/friends list
bool showGuildRoster_ = false;
@ -364,6 +366,7 @@ private:
};
std::vector<ChatBubble> chatBubbles_;
bool chatBubbleCallbackSet_ = false;
bool levelUpCallbackSet_ = false;
// Mail compose state
char mailRecipientBuffer_[256] = "";