diff --git a/frontend/src/js/fight_scene.ts b/frontend/src/js/fight_scene.ts index f0325b345fb51bb08937ec192ce3c4307a830702..6ab4dffd2af3b80f5ce58f7b9013e8d92ef3b048 100644 --- a/frontend/src/js/fight_scene.ts +++ b/frontend/src/js/fight_scene.ts @@ -452,11 +452,11 @@ export default class FightScene extends Phaser.Scene { getDifficulty() { const t = this.getGameTime(); - if (t >= 20 * 60000) return 1; // NOTE: c'mon... 20 minutes? + if (t >= 15 * 60000) return 1; // NOTE: c'mon... 15 minutes? // NOTE: this ranges in [0;20]x[0;10] const progression = (t) => (t + Math.sin((2 * Math.PI * t) / 4) + Math.sin(2 * Math.PI * t)) / 2; - return progression(t / 60000) / 10; + return progression((t * 15) / 20 / 60000) / 10; } async spawnFoes() {