Made the "combo lost" text last 500ms instead of the pointless 150ms

This commit is contained in:
Renan LE CARO 2025-03-29 17:40:07 +01:00
parent da89cdb647
commit 23798c4e58
9 changed files with 262 additions and 265 deletions

View file

@ -191,6 +191,8 @@ export function countBricksBelow(gameState: GameState, index: number) {
}
export function comboKeepingRate(level:number){
if(level<=0) return 0
return 1-1/(1+level)*1.5
return clamp(1-1/(1+level)*1.5,0,1)
}
for(let i = 0;i<5;i++){
console.log(Math.round(comboKeepingRate(i)*100)+'%')
}