From 2022b41937b796abc97a813305a949103da88ae3 Mon Sep 17 00:00:00 2001 From: Renan LE CARO Date: Sun, 23 Mar 2025 15:48:21 +0100 Subject: [PATCH] Split menus, fps display, set max coins and max particles --- Readme.md | 3 +- dist/index.html | 283 ++++++++++++++++++++++++++------------- src/asyncAlert.ts | 2 +- src/data/levels.json | 37 ++++- src/game.less | 22 ++- src/game.ts | 228 ++++++++++++++++++++----------- src/gameStateMutators.ts | 10 +- src/game_utils.ts | 2 + src/i18n/b71.babel | 120 +++++++++++++++++ src/i18n/en.json | 16 ++- src/i18n/fr.json | 26 ++-- src/index.html | 1 + src/newGameState.ts | 2 - src/options.ts | 5 + src/render.ts | 1 + src/settings.ts | 14 ++ src/types.d.ts | 4 +- 17 files changed, 576 insertions(+), 200 deletions(-) diff --git a/Readme.md b/Readme.md index 2c37880..6d94ee0 100644 --- a/Readme.md +++ b/Readme.md @@ -30,8 +30,7 @@ There's also an easy mode for kids (slower ball). # bugs -- perk : travel map -- stairs level has no bg, probably svg -1 +- perk : travel map * [colin] parfois je dois appuyer plusieurs fois sur "Start a new run" pour vraiment commencer une nouvelle partie. dans ce cas, lhécran de jeu derrière se "désassombrit" comme si le jeu avait démarré plusieurs parties en même temps. * [colin] lorsque le puck est trop petit, l'affichage du combo disparaît. mais c'est peut-être volontaire pour qu'il ne dépasse pas du puck ? afficher simplement le chiffre serait suffisant et tiendrait dans le puck * [colin] le niveau bug parfois et ne peux pas démarrer. dans ce cas, la balle apparait comme démarrant sans être attachée au puck, comme si la partie avait déjà commencée. il faut redémarrer B71 pour que ça fonctionne diff --git a/dist/index.html b/dist/index.html index 0a699d2..632037a 100644 --- a/dist/index.html +++ b/dist/index.html @@ -72,6 +72,22 @@ body { left: 0; } +#FPSDisplay { + z-index: 1; + white-space: nowrap; + pointer-events: none; + user-select: none; + opacity: .8; + color: #fff; + transform-origin: 0 0; + padding: 0; + line-height: 20px; + position: fixed; + bottom: 0; + left: 0; + transform: rotate(-90deg); +} + body.has-alert-open { height: auto; overflow: visible; @@ -167,7 +183,7 @@ body:not(.has-alert-open) #popup { } #popup.actionsAsGrid > div { - max-width: 800px; + max-width: none; } #popup.actionsAsGrid > div section { @@ -333,6 +349,7 @@ h2.histogram-title strong { +