Reduce flying arc and hop distance

This commit is contained in:
Idrees Hassan
2025-10-28 21:13:51 -04:00
parent d86253c8bf
commit 64a48d6cad
4 changed files with 10 additions and 10 deletions

6
dist/birb.js vendored
View File

@@ -1508,7 +1508,7 @@
// Birb movement
const HOP_SPEED = 0.07;
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
const HOP_DISTANCE = 45;
const HOP_DISTANCE = 35;
// Timing constants (in milliseconds)
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
@@ -1652,7 +1652,7 @@
insertModal(`${birdBirb()} Mode`, message);
}),
new Separator(),
new MenuItem("2025.10.28.84", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.28.84"); }, false),
new MenuItem("2025.10.28.93", () => { alert("Thank you for using Pocket Bird! You are on version: 2025.10.28.93"); }, false),
];
const styleElement = document.createElement("style");
@@ -1959,7 +1959,7 @@
birdY = getFocusedY();
} else if (currentState === States.FLYING) {
// Fly to target location (even if in the air)
if (updateParabolicPath(FLY_SPEED)) {
if (updateParabolicPath(FLY_SPEED, 2)) {
setState(States.IDLE);
}
}