From 80957e804b2c5a747bdaeb14ba2bb8caafe144d0 Mon Sep 17 00:00:00 2001 From: MVA Global Fret Date: Tue, 5 May 2026 14:46:23 +0200 Subject: [PATCH] =?UTF-8?q?Mobile:=20bump=20autonomous=20plane=20speed=20f?= =?UTF-8?q?rom=2028=20s=20=E2=86=92=2016=20s=20per=20traversal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mobile screens are smaller and users glance at them for less time, so the 28-second full-traversal on desktop felt sluggish there. BASE_SPEED is now 1/16 on mobile vs 1/28 on desktop. The touch boost (×6) still stacks on top, giving a sub-3-second sprint when the user holds a finger down. Co-Authored-By: Claude Opus 4.6 --- js/intro-scene.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/intro-scene.js b/js/intro-scene.js index cd8a7c3..236a4a9 100644 --- a/js/intro-scene.js +++ b/js/intro-scene.js @@ -211,7 +211,9 @@ function updateParcels(dt, t) { Bouger la souris ajoute un boost qui le pousse plus vite vers la fin. Une fois sorti à droite (progress = 1), il reste sorti. */ -const BASE_SPEED = 1 / 28; // 28 s pour traverser sans toucher la souris +/* Vitesse de croisière : 28 s desktop, 16 s mobile (l'écran est plus + petit, l'utilisateur a moins de temps de regarder, donc on accélère). */ +const BASE_SPEED = 1 / (IS_MOBILE ? 16 : 28); const MOUSE_BOOST = 1 / 4500; // pixels de souris → progress (0..1) const mouse = { targetProgress: 0,