mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 12:36:15 -04:00
Removed unused translations
This commit is contained in:
parent
de99dd9ba8
commit
b2e6e3c9e4
10 changed files with 182 additions and 293 deletions
14
dist/index.html
vendored
14
dist/index.html
vendored
File diff suppressed because one or more lines are too long
|
@ -448,7 +448,6 @@ async function openScorePanel() {
|
|||
}),
|
||||
|
||||
content: [
|
||||
gameState.isCreativeModeRun ? `<p>${t("score_panel.test_run")}</p>` : "",
|
||||
pickedUpgradesHTMl(gameState),
|
||||
levelsListHTMl(gameState),
|
||||
gameState.rerolls
|
||||
|
|
|
@ -108,7 +108,7 @@ export function gameOver(title: string, intro: string) {
|
|||
(u) => u.threshold > startTs && u.threshold < endTs,
|
||||
);
|
||||
if (unlockedItems.length) {
|
||||
unlocksInfo += `<p>${t("gameOver.unlocked_count", { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
|
||||
unlocksInfo += `<p>${t('gameOver.unlocked_count', { count: unlockedItems.length })} ${unlockedItems.map((u) => u.title).join(", ")}</p>`;
|
||||
}
|
||||
|
||||
// Avoid the sad sound right as we restart a new games
|
||||
|
@ -119,7 +119,6 @@ export function gameOver(title: string, intro: string) {
|
|||
title,
|
||||
content: [
|
||||
`
|
||||
${gameState.isCreativeModeRun ? `<p>${t("gameOver.test_run")}</p> ` : ""}
|
||||
<p>${intro}</p>
|
||||
<p>${t("gameOver.cumulative_total", { startTs, endTs })}</p>
|
||||
${unlocksInfo}
|
||||
|
@ -160,11 +159,11 @@ export function getHistograms(gameState: GameState) {
|
|||
});
|
||||
|
||||
// Generate some histogram
|
||||
if (!gameState.isCreativeModeRun)
|
||||
localStorage.setItem(
|
||||
"breakout_71_runs_history",
|
||||
JSON.stringify(runsHistory, null, 2),
|
||||
);
|
||||
|
||||
localStorage.setItem(
|
||||
"breakout_71_runs_history",
|
||||
JSON.stringify(runsHistory, null, 2),
|
||||
);
|
||||
|
||||
const makeHistogram = (
|
||||
title: string,
|
||||
|
|
|
@ -555,7 +555,7 @@ export function addToScore(gameState: GameState, coin: Coin) {
|
|||
gameState.score += coin.points;
|
||||
gameState.lastScoreIncrease = gameState.levelTime;
|
||||
addToTotalScore(gameState, coin.points);
|
||||
if (gameState.score > gameState.highScore && !gameState.isCreativeModeRun) {
|
||||
if (gameState.score > gameState.highScore ) {
|
||||
gameState.highScore = gameState.score;
|
||||
localStorage.setItem(
|
||||
"breakout-3-hs-" + gameState.mode,
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -25,9 +25,7 @@
|
|||
"gameOver.stats.upgrades_applied": "Upgrades applied",
|
||||
"gameOver.test_run": "This is a test game, its score is not recorded.",
|
||||
"gameOver.unlocked_count": "You unlocked {{count}} items :",
|
||||
"gameOver.upgrades_picked": "Upgrades active at the end of the game",
|
||||
"gameOver.win.summary": "You cleared all levels for this game, catching {{score}} coins in total.",
|
||||
"gameOver.win.title": "Game finished",
|
||||
"lab.help": "Try to come up with 3 good builds",
|
||||
"lab.instructions": "Select upgrades below, then pick the level to play. Each time you upgrade a perk, it cannot be upgraded as much in the following levels. ",
|
||||
"lab.menu_entry": "New lab game",
|
||||
|
@ -97,8 +95,6 @@
|
|||
"main_menu.reset_confirm": "Yes",
|
||||
"main_menu.reset_help": "Erase high score, play time and statistics",
|
||||
"main_menu.reset_instruction": "You will loose all progress you made in the game, are you sure ?",
|
||||
"main_menu.resume": "Resume",
|
||||
"main_menu.resume_help": "Return to then game",
|
||||
"main_menu.save_file_error": "Error loading save file",
|
||||
"main_menu.save_file_loaded": "Save file loaded",
|
||||
"main_menu.save_file_loaded_help": "The app will now reload to apply your save",
|
||||
|
@ -123,7 +119,6 @@
|
|||
"play.mobile_press_to_play": "Press and hold here to play",
|
||||
"play.score_tooltip": "See your score, upgrades and more",
|
||||
"score_panel.rerolls_count": "You have accumulated {{rerolls}} rerolls",
|
||||
"score_panel.test_run": "This is a test game, score is not recorded permanently",
|
||||
"score_panel.title": "{{score}} points at level {{level}}/{{max}} ",
|
||||
"score_panel.title_looped": "{{score}} points at level {{level}}/{{max}} of loop {{loop}}",
|
||||
"score_panel.upcoming_levels": "Upcoming levels :",
|
||||
|
@ -133,7 +128,6 @@
|
|||
"unlocks.level": "Here are all the game levels, click one to start a game with that starting level. ",
|
||||
"unlocks.level_description": "A {{size}}x{{size}} level with {{bricks}} bricks, {{colors}} colors and {{bombs}} bombs.",
|
||||
"unlocks.title": "You unlocked {{percentUnlock}}% of the game. ",
|
||||
"unlocks.unlocks_at": "Unlocks at total score {{threshold}}.",
|
||||
"upgrades.addiction.fullHelp": "The countdown only starts after breaking the first brick of each level. It stops as soon as all bricks are destroyed.",
|
||||
"upgrades.addiction.help": "+{{lvl}} combo / brick, combo resets {{delay}}s after breaking a brick. ",
|
||||
"upgrades.addiction.name": "Addiction",
|
||||
|
|
|
@ -25,9 +25,7 @@
|
|||
"gameOver.stats.upgrades_applied": "Mises à jour appliquées",
|
||||
"gameOver.test_run": "Cette partie de test et son score ne sont pas enregistrés.",
|
||||
"gameOver.unlocked_count": "Vous avez débloqué {{count}} objet(s) :",
|
||||
"gameOver.upgrades_picked": "Amélioration actives en fin de partie",
|
||||
"gameOver.win.summary": "Vous avez nettoyé tous les niveaux pour cette partie, en attrapant {{score}} pièces au total.",
|
||||
"gameOver.win.title": "Partie terminée",
|
||||
"lab.help": "Créez trois bonnes combinaisons d'améliorations",
|
||||
"lab.instructions": "Sélectionnez les améliorations ci-dessous, puis choisissez le niveau à jouer. Chaque amélioration d'un avantage ne peut pas être améliorée autant dans les niveaux suivants.",
|
||||
"lab.menu_entry": "Nouvelle partie \"lab\" ",
|
||||
|
@ -97,8 +95,6 @@
|
|||
"main_menu.reset_confirm": "Oui",
|
||||
"main_menu.reset_help": "Effacer les scores, statistiques et temps de jeu",
|
||||
"main_menu.reset_instruction": "Vous perdrez tous les progrès que vous avez faits dans le jeu, êtes-vous sûr ?",
|
||||
"main_menu.resume": "Retourner à la partie",
|
||||
"main_menu.resume_help": "Continuer la partie en cours",
|
||||
"main_menu.save_file_error": "Erreur lors du chargement du fichier de sauvegarde",
|
||||
"main_menu.save_file_loaded": "Sauvegarde chargée",
|
||||
"main_menu.save_file_loaded_help": "L'appli va redémarrer",
|
||||
|
@ -118,12 +114,11 @@
|
|||
"play.current_lvl": "Niveau {{level}}/{{max}}",
|
||||
"play.current_lvl_loop": "Niveau {{level}}/{{max}} boucle {{loop}}",
|
||||
"play.menu_label": "Menu",
|
||||
"play.menu_tooltip": "",
|
||||
"play.menu_tooltip": "Ouvrir le menu principal",
|
||||
"play.missed_ball": "raté",
|
||||
"play.mobile_press_to_play": "Gardez le doigt ici pour jouer",
|
||||
"play.score_tooltip": "",
|
||||
"play.score_tooltip": "Consultez votre score, améliorations et plus encore",
|
||||
"score_panel.rerolls_count": "Vous avez accumulé {{rerolls}} rerolls",
|
||||
"score_panel.test_run": "Il s'agit d'une partie d'essai, le score n'est pas enregistré.",
|
||||
"score_panel.title": "{{score}} points au niveau {{level}}/{{max}} ",
|
||||
"score_panel.title_looped": "{{score}} points au niveau {{level}}/{{max}} ",
|
||||
"score_panel.upcoming_levels": "Niveaux de la parties : ",
|
||||
|
@ -133,7 +128,6 @@
|
|||
"unlocks.level": "Voici tous les niveaux du jeu. Cliquez sur un niveau pour commencer une nouvelle partie avec ce niveau de départ. ",
|
||||
"unlocks.level_description": "Un niveau {{size}}x{{size}} avec {{bricks}} briques, {{colors}} couleurs et {{bombs}} bombes.",
|
||||
"unlocks.title": "Vous avez débloqué {{percentUnlock}}% du jeu.",
|
||||
"unlocks.unlocks_at": "Déverrouillé au score total {{threshold}}.",
|
||||
"upgrades.addiction.fullHelp": "Le décompte ne commence qu'à parti de la destruction de la première brique du niveau, et s'arrête dès qu'il n'y a plus de briques. ",
|
||||
"upgrades.addiction.help": "+{{lvl}} combo / brique, le combo RAZ après {{delay}}s sans casser de briques",
|
||||
"upgrades.addiction.name": "Addiction",
|
||||
|
|
|
@ -83,7 +83,6 @@ export function newGameState(params: RunParams): GameState {
|
|||
coinSize: 14,
|
||||
puckHeight: 20,
|
||||
totalScoreAtRunStart,
|
||||
isCreativeModeRun: sumOfValues(perks) > 1,
|
||||
pauseUsesDuringRun: 0,
|
||||
keyboardPuckSpeed: 0,
|
||||
lastTick: performance.now(),
|
||||
|
|
|
@ -30,7 +30,6 @@ export function getTotalScore() {
|
|||
}
|
||||
|
||||
export function addToTotalScore(gameState: GameState, points: number) {
|
||||
if (gameState.isCreativeModeRun) return;
|
||||
setSettingValue("breakout_71_total_score", getTotalScore() + points);
|
||||
}
|
||||
|
||||
|
|
1
src/types.d.ts
vendored
1
src/types.d.ts
vendored
|
@ -264,7 +264,6 @@ export type GameState = {
|
|||
coinSize: number;
|
||||
puckHeight: number;
|
||||
totalScoreAtRunStart: number;
|
||||
isCreativeModeRun: boolean;
|
||||
pauseUsesDuringRun: number;
|
||||
keyboardPuckSpeed: number;
|
||||
lastTick: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue