突出特殊方块删除

This commit is contained in:
2026-04-26 17:59:24 +08:00
parent 30fb10b66c
commit 8e68d9c712
5 changed files with 98 additions and 3 deletions
+11
View File
@@ -182,6 +182,15 @@ struct ParticleEffect
COLORREF color;
};
struct CellFlashEffect
{
int ticks;
int totalTicks;
int x;
int y;
COLORREF color;
};
enum ScreenState
{
SCREEN_MENU = 0,
@@ -224,6 +233,7 @@ extern FeedbackState feedbackState;
extern ClearEffectState clearEffectState;
extern FloatingTextEffect floatingTextEffects[8];
extern ParticleEffect particleEffects[96];
extern CellFlashEffect cellFlashEffects[64];
extern int currentScreen;
extern int currentMode;
extern int currentFallInterval;
@@ -267,6 +277,7 @@ bool TickVisualEffects();
void TriggerLineClearEffect(const int* rows, int rowCount, int linesCleared);
void PlayPendingLineClearEffect();
void TriggerCellClearEffect(const Point* cells, int cellCount, bool strongBurst);
void TriggerColoredCellClearEffect(const Point* cells, int cellCount, COLORREF flashColor, bool strongBurst);
void AwardRogueSkillClearRewards(int clearedCells, int& scoreGain, int& expGain, bool allowLevelProgress);
void CheckRogueLevelProgress();
void ApplyBoardGravity();