Sturdy bricks now have a proper hit counter

This commit is contained in:
Renan LE CARO 2025-03-23 17:52:25 +01:00
parent 6899b5cf36
commit 3745b527f5
6 changed files with 64 additions and 32 deletions

2
src/types.d.ts vendored
View file

@ -226,6 +226,8 @@ export type GameState = {
ballsColor: colorString;
// Array of bricks to display. 'black' means bomb. '' means no brick.
bricks: colorString[];
// Number of times a brick has been hit already
brickHP: number[];
particles: ReusableArray<ParticleFlash>;
texts: ReusableArray<TextFlash>;