mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-21 20:46:14 -04:00
Build 29045711
This commit is contained in:
parent
2022b41937
commit
a89a61e35b
12 changed files with 212 additions and 182 deletions
|
@ -34,16 +34,18 @@ export function addToTotalScore(gameState: GameState, points: number) {
|
|||
setSettingValue("breakout_71_total_score", getTotalScore() + points);
|
||||
}
|
||||
|
||||
|
||||
export function getCurrentMaxCoins(){
|
||||
return Math.pow(2,getSettingValue('max_coins', 1))*200
|
||||
export function getCurrentMaxCoins() {
|
||||
return Math.pow(2, getSettingValue("max_coins", 1)) * 200;
|
||||
}
|
||||
export function getCurrentMaxParticles(){
|
||||
return Math.pow(2,getSettingValue('max_particles', 1))*200
|
||||
export function getCurrentMaxParticles() {
|
||||
return Math.pow(2, getSettingValue("max_particles", 1)) * 200;
|
||||
}
|
||||
export function cycleMaxCoins(){
|
||||
setSettingValue('max_coins', (getSettingValue('max_coins', 1)+1)%6)
|
||||
export function cycleMaxCoins() {
|
||||
setSettingValue("max_coins", (getSettingValue("max_coins", 1) + 1) % 6);
|
||||
}
|
||||
export function cycleMaxParticles() {
|
||||
setSettingValue(
|
||||
"max_particles",
|
||||
(getSettingValue("max_particles", 1) + 1) % 6,
|
||||
);
|
||||
}
|
||||
export function cycleMaxParticles(){
|
||||
setSettingValue('max_particles', (getSettingValue('max_particles', 1)+1)%6)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue