mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-24 14:06:16 -04:00
wip
This commit is contained in:
parent
42abc6bc01
commit
46228a2128
20 changed files with 226 additions and 129 deletions
|
@ -88,7 +88,6 @@ export function gameOver(title: string, intro: string) {
|
|||
help: "",
|
||||
},
|
||||
`<div id="level-recording-container"></div>`,
|
||||
// pickedUpgradesHTMl(gameState),
|
||||
unlocksInfo,
|
||||
getHistograms(gameState),
|
||||
],
|
||||
|
@ -130,9 +129,17 @@ export function getHistograms(gameState: GameState) {
|
|||
}))
|
||||
.filter((l) => l.r);
|
||||
|
||||
|
||||
gameState.runStatistics.runTime=Math.round(gameState.runStatistics.runTime)
|
||||
const perks={...gameState.perks}
|
||||
for(let id in perks){
|
||||
if(!perks[id]){
|
||||
delete perks[id]
|
||||
}
|
||||
}
|
||||
runsHistory.push({
|
||||
...gameState.runStatistics,
|
||||
perks: gameState.perks,
|
||||
perks,
|
||||
appVersion,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue