mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 20:16:16 -04:00
Made the "combo lost" text last 500ms instead of the pointless 150ms
This commit is contained in:
parent
da89cdb647
commit
23798c4e58
9 changed files with 262 additions and 265 deletions
|
@ -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)+'%')
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue