mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-05-04 10:49:13 -04:00
wip
This commit is contained in:
parent
06aac98954
commit
4df70f6591
6 changed files with 2613 additions and 2550 deletions
|
@ -14,10 +14,11 @@ Break colourful bricks, catch bouncing coins and select powerful upgrades !
|
|||
# Changelog
|
||||
## To do
|
||||
|
||||
- easy cleanup special effect
|
||||
|
||||
## Done
|
||||
|
||||
- boosted perk : stronger foundation (+3 combo, then +4, then +5..)
|
||||
- easy cleanup special effect (and X made of particles)
|
||||
- added a few levels
|
||||
- level end countdown (on mobile and desktop)
|
||||
- level start countdown (on mobile)
|
||||
|
|
839
dist/index.html
vendored
839
dist/index.html
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load diff
|
@ -355,3 +355,11 @@ export function zoneLeftBorderX(gameState: GameState) {
|
|||
export function zoneRightBorderX(gameState: GameState) {
|
||||
return gameState.canvasWidth - gameState.offsetXRoundedDown + 1;
|
||||
}
|
||||
|
||||
export function base_combo_from_stronger_foundation(perkLevel:number){
|
||||
let base = 1
|
||||
for(let i = 0;i<perkLevel;i++){
|
||||
base+=3+i
|
||||
}
|
||||
return base
|
||||
}
|
|
@ -272,7 +272,7 @@
|
|||
"upgrades.ball_repulse_ball.verbose_description": "Balls that are less than a quarter screen width away will start repulsing each other. The repulsion force is stronger if they are close to each other. Particles will jet out to symbolize this force being applied. This perk is only offered if you have more than one ball already.",
|
||||
"upgrades.base_combo.name": "Strong foundations",
|
||||
"upgrades.base_combo.tooltip": "3 more coins per brick broken",
|
||||
"upgrades.base_combo.verbose_description": "Your combo normally starts at 1 at the beginning of the level, and resets to 1 when you bounce around without hitting anything. With this perk, the combo starts 3 points higher, so you'll always get at least 4 coins per brick. Whenever your combo reset, it will go back to 4 and not 1. Your ball will glitter a bit to indicate that its combo is higher than one.",
|
||||
"upgrades.base_combo.verbose_description": "Your combo normally starts at 1 at the beginning of the level, and resets to 1 when you bounce around without hitting anything. With this perk, the combo starts 3 points higher, so you'll always get at least 4 coins per brick. Whenever your combo reset, it will go back to 4 and not 1. Your ball will glitter a bit to indicate that its combo is higher than one. At level 2, it adds 4 coins, then 5,then 6...",
|
||||
"upgrades.bigger_explosions.name": "Kaboom",
|
||||
"upgrades.bigger_explosions.tooltip": "Bigger explosions",
|
||||
"upgrades.bigger_explosions.verbose_description": "The default explosion clears a 3x3 square, with this it becomes a 5x5 square, and the blow on the coins is also significantly stronger. The screen will flash after each explosion (except in basic mode)",
|
||||
|
|
|
@ -2,6 +2,7 @@ import { t } from "./i18n/i18n";
|
|||
|
||||
import { comboKeepingRate } from "./pure_functions";
|
||||
import { PerkId, Upgrade } from "./types";
|
||||
import {base_combo_from_stronger_foundation} from "./game_utils";
|
||||
|
||||
// Those perks are excluded from creative mode
|
||||
export const noCreative: PerkId[] = [
|
||||
|
@ -768,7 +769,7 @@ export const rawUpgrades = [
|
|||
max: 7,
|
||||
name: t("upgrades.base_combo.name"),
|
||||
help: (lvl: number) =>
|
||||
t("upgrades.base_combo.tooltip", { coins: 1 + lvl * 3 }),
|
||||
t("upgrades.base_combo.tooltip", { coins: base_combo_from_stronger_foundation(lvl) }),
|
||||
fullHelp: (lvl: number) =>
|
||||
t("upgrades.base_combo.verbose_description", { lvl }),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue