Adjustments for looping

This commit is contained in:
Renan LE CARO 2025-03-29 15:00:44 +01:00
parent e08c1e7b9e
commit da89cdb647
10 changed files with 2565 additions and 2596 deletions

7
src/types.d.ts vendored
View file

@ -102,8 +102,6 @@ export type Ball = {
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;
};
@ -238,6 +236,11 @@ export type GameState = {
texts: ReusableArray<TextFlash>;
lights: ReusableArray<LightFlash>;
coins: ReusableArray<Coin>;
// Bricks that should respawn destroyed
respawns: ReusableArray<{ index: number; color: string ; time:number;
destroyed?: boolean;}>;
levelStartScore: number;
levelMisses: number;
levelSpawnedCoins: number;