mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-23 05:26:15 -04:00
Build 29058753
This commit is contained in:
parent
2c75005127
commit
92a0edabef
11 changed files with 31 additions and 33 deletions
|
@ -1,5 +1,5 @@
|
|||
// The version of the cache.
|
||||
const VERSION = "29058637";
|
||||
const VERSION = "29058753";
|
||||
|
||||
// The name of the cache
|
||||
const CACHE_NAME = `breakout-71-${VERSION}`;
|
||||
|
|
|
@ -1 +1 @@
|
|||
"29058637"
|
||||
"29058753"
|
||||
|
|
|
@ -61,12 +61,11 @@ body {
|
|||
color: white;
|
||||
transition: color 0.3s;
|
||||
|
||||
&.active .score{
|
||||
&.active .score {
|
||||
color: gold;
|
||||
transition: color 0.01s;
|
||||
}
|
||||
|
||||
|
||||
span {
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
|
||||
|
|
|
@ -989,7 +989,7 @@ restart(
|
|||
sapper: 3,
|
||||
// unbounded: 1,
|
||||
},
|
||||
mode: "short",
|
||||
mode: "long",
|
||||
}) || {
|
||||
mode: "short",
|
||||
},
|
||||
|
|
|
@ -1027,7 +1027,7 @@ export function gameStateTick(
|
|||
) {
|
||||
if (gameState.currentLevel + 1 < max_levels(gameState)) {
|
||||
setLevel(gameState, gameState.currentLevel + 1);
|
||||
} else if (gameState.loop < gameState.mode === "long" ? 7 : 0) {
|
||||
} else if (gameState.loop < (gameState.mode === "long" ? 7 : 0)) {
|
||||
gotoNextLoop(gameState);
|
||||
} else {
|
||||
gameOver(
|
||||
|
|
|
@ -85,14 +85,14 @@ export function pickedUpgradesHTMl(gameState: GameState) {
|
|||
.map((u) => {
|
||||
const newMax = Math.max(0, u.max - gameState.bannedPerks[u.id]);
|
||||
|
||||
let bars =[];
|
||||
let bars = [];
|
||||
for (let i = 0; i < Math.max(u.max, newMax, gameState.perks[u.id]); i++) {
|
||||
if (i < gameState.perks[u.id]) {
|
||||
bars .push('<span class="used"></span>');
|
||||
bars.push('<span class="used"></span>');
|
||||
} else if (i < newMax) {
|
||||
bars .push('<span class="free"></span>');
|
||||
bars.push('<span class="free"></span>');
|
||||
} else {
|
||||
bars .push('<span class="banned"></span>');
|
||||
bars.push('<span class="banned"></span>');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -106,7 +106,7 @@ export function pickedUpgradesHTMl(gameState: GameState) {
|
|||
<strong>${u.name}</strong>
|
||||
${u.help(Math.max(1, gameState.perks[u.id]))}
|
||||
</p>
|
||||
${bars.reverse().join('')}
|
||||
${bars.reverse().join("")}
|
||||
</div>
|
||||
`,
|
||||
};
|
||||
|
|
|
@ -69,16 +69,16 @@ export function render(gameState: GameState) {
|
|||
: "") +
|
||||
(isOptionOn("show_stats")
|
||||
? `
|
||||
<span class="${(catchRate > 0.95 && "great") || (catchRate > 0.9 && "good") || ""}" data-tooltip="${t('play.stats.coins_catch_rate')}">
|
||||
<span class="${(catchRate > 0.95 && "great") || (catchRate > 0.9 && "good") || ""}" data-tooltip="${t("play.stats.coins_catch_rate")}">
|
||||
${Math.floor(catchRate * 100)}%
|
||||
</span><span> / </span>
|
||||
<span class="${(gameState.levelTime < 30000 && "great") || (gameState.levelTime < 60000 && "good") || ""}" data-tooltip="${t('play.stats.levelTime')}">
|
||||
<span class="${(gameState.levelTime < 30000 && "great") || (gameState.levelTime < 60000 && "good") || ""}" data-tooltip="${t("play.stats.levelTime")}">
|
||||
${Math.ceil(gameState.levelTime / 1000)}s
|
||||
</span><span> / </span>
|
||||
<span class="${(gameState.levelWallBounces < 3 && "great") || (gameState.levelWallBounces < 10 && "good") || ""}" data-tooltip="${t('play.stats.levelWallBounces')}">
|
||||
<span class="${(gameState.levelWallBounces < 3 && "great") || (gameState.levelWallBounces < 10 && "good") || ""}" data-tooltip="${t("play.stats.levelWallBounces")}">
|
||||
${gameState.levelWallBounces} B
|
||||
</span><span> / </span>
|
||||
<span class="${(gameState.levelMisses < 3 && "great") || (gameState.levelMisses < 6 && "good") || ""}" data-tooltip="${t('play.stats.levelMisses')}">
|
||||
<span class="${(gameState.levelMisses < 3 && "great") || (gameState.levelMisses < 6 && "good") || ""}" data-tooltip="${t("play.stats.levelMisses")}">
|
||||
${gameState.levelMisses} M
|
||||
</span><span> / </span>
|
||||
`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue