mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Build 29046079
This commit is contained in:
parent
f3790b3334
commit
41b3e6f00b
11 changed files with 121 additions and 102 deletions
|
@ -1,6 +1,6 @@
|
|||
import { Ball, GameState, PerkId, PerksMap } from "./types";
|
||||
import { icons, upgrades } from "./loadGameData";
|
||||
import {t} from "./i18n/i18n";
|
||||
import { t } from "./i18n/i18n";
|
||||
|
||||
export function getMajorityValue(arr: string[]): string {
|
||||
const count: { [k: string]: number } = {};
|
||||
|
@ -66,12 +66,12 @@ export function pickedUpgradesHTMl(gameState: GameState) {
|
|||
return list;
|
||||
}
|
||||
export function levelsListHTMl(gameState: GameState) {
|
||||
if(!gameState.perks.clairvoyant) return ''
|
||||
if (!gameState.perks.clairvoyant) return "";
|
||||
let list = "";
|
||||
for (let i=0;i<max_levels(gameState);i++) {
|
||||
list += `<span style="opacity: ${i>=gameState.currentLevel ? 1:0.2}">${icons[gameState.runLevels[i].name]}</span>` ;
|
||||
for (let i = 0; i < max_levels(gameState); i++) {
|
||||
list += `<span style="opacity: ${i >= gameState.currentLevel ? 1 : 0.2}">${icons[gameState.runLevels[i].name]}</span>`;
|
||||
}
|
||||
return `<p>${t('score_panel.upcoming_levels')}</p><p>${list}</p>`;
|
||||
return `<p>${t("score_panel.upcoming_levels")}</p><p>${list}</p>`;
|
||||
}
|
||||
|
||||
export function currentLevelInfo(gameState: GameState) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue