From 054b4a85c7f75336ec8ebc22139f69839bc82387 Mon Sep 17 00:00:00 2001 From: Renan LE CARO Date: Sun, 23 Mar 2025 16:19:29 +0100 Subject: [PATCH] wip --- dist/index.html | 16 +++++++++++++++- src/game.ts | 16 +++++++++++++++- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/dist/index.html b/dist/index.html index bc3a963..a56f89f 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1303,7 +1303,21 @@ function restart(params) { (0, _recording.pauseRecording)(); (0, _gameStateMutators.setLevel)(gameState, 0); } -restart({}); +restart(window.location.search.includes('stressTest') ? { + level: 'Bird', + perks: { + sapper: 10, + bigger_explosions: 1, + unbounded: 1, + pierce_color: 1, + pierce: 20, + multiball: 6, + base_combo: 100, + telekinesis: 2, + yoyo: 2, + metamorphosis: 1 + } +} : {}); fitSize(); tick(); diff --git a/src/game.ts b/src/game.ts index 56abe0a..5db1a6b 100644 --- a/src/game.ts +++ b/src/game.ts @@ -972,6 +972,20 @@ export function restart(params: RunParams) { setLevel(gameState, 0); } -restart({}); +restart(window.location.search.includes('stressTest') ? { + level:'Bird', + perks:{ + sapper:10, + bigger_explosions:1, + unbounded:1, + pierce_color:1, + pierce:20, + multiball:6, + base_combo:100, + telekinesis:2, + yoyo:2, + metamorphosis:1 + } +}:{}); fitSize(); tick();