Skip to content

feat: add confetti animation on game win - #20

Open
DaniilSyzenko wants to merge 2 commits into
BySplashGm:mainfrom
DaniilSyzenko:enhancement/confetti-win-animation
Open

feat: add confetti animation on game win #20
DaniilSyzenko wants to merge 2 commits into
BySplashGm:mainfrom
DaniilSyzenko:enhancement/confetti-win-animation

Conversation

@DaniilSyzenko

Copy link
Copy Markdown

Adds a confetti celebration animation on game win when the GameSummaryScreen loads.

  • Confetti fires when GameSummaryScreen mounts
  • Uses white and gold colours to match the app colour palette
  • Stops playing after 3 seconds
  • Doesn't play again until another win

Fixes #5

@DaniilSyzenko DaniilSyzenko changed the title Add confetti animation on game win #5 feat: add confetti animation on game win Apr 29, 2026
@BySplashGm BySplashGm added enhancement New feature or request ui/ux UI and UX improvements labels May 3, 2026

@BySplashGm BySplashGm left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great contribution overall — the widget lifecycle handling, dispose, and the custom star shape are all well done.

One visual bug to fix before merging: the stars accumulate at the emission point rather than spreading across the screen. Two things causing this:

  • blastDirectionality: BlastDirectionality.explosive and blastDirection: -pi / 2 conflict — in explosive mode the blast direction is ignored. Pick one: either explosive (all directions) or directional with your -pi / 2 angle
  • gravity: 0.05 is very low, so particles float in place instead of falling — try something around 0.20.3

A directional upward fountain from the center with higher gravity should give a clean result.

@BySplashGm BySplashGm closed this Jul 15, 2026
@DaniilSyzenko

Copy link
Copy Markdown
Author

Hi, can I still work on this?

@BySplashGm

Copy link
Copy Markdown
Owner

sure! i'll reopen your PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request ui/ux UI and UX improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Confetti animation on game win

2 participants