Mobile: bump autonomous plane speed from 28 s → 16 s per traversal
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 <noreply@anthropic.com>
This commit is contained in:
parent
fd0acea058
commit
80957e804b
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user