Re-introduced power saving mode

This commit is contained in:
Renan LE CARO 2025-03-16 20:11:08 +01:00
parent 9bf7e9534d
commit bdfe5408b9
6 changed files with 3702 additions and 4 deletions

2
src/types.d.ts vendored
View file

@ -190,6 +190,8 @@ export type GameState = {
combo: number;
// Whether the game is running or paused
running: boolean;
// Whether the game should be re-rendered once even if not running
needsRender: boolean;
// Position of the center of the puck on the canvas in pixels, from the left of the canvas.
puckPosition: number;
// Will be set if the game is about to be paused. Game pause is delayed by a few milliseconds if you pause a few times in a run,