This commit is contained in:
Renan LE CARO 2025-03-22 16:04:25 +01:00
parent 5725d90470
commit cb4b1ea49e
16 changed files with 330 additions and 213 deletions

6
src/types.d.ts vendored
View file

@ -94,8 +94,13 @@ export type Ball = {
previousVY: number;
sx: number;
sy: number;
// Uses of the pierce perk only
piercedSinceBounce: number;
// Any bounce counts, even if brick resisted the hit
hitSinceBounce: number;
// Brick was really broken ,but could have been respawned as a bomb
brokenSinceBounce: number;
// Bricks that have been destroyed (and not replaced by something else)
hitItem: { index: number; color: string }[];
sapperUses: number;
destroyed?: boolean;
@ -197,6 +202,7 @@ export type GameState = {
combo: number;
// Whether the game is running or paused
running: boolean;
isGameOver: boolean;
ballStickToPuck: boolean;
// Whether the game should be re-rendered once even if not running
needsRender: boolean;