mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-07-10 10:23:05 +00:00
Reduce flying arc and hop distance
This commit is contained in:
1 parent
d86253c8bf
commit
64a48d6cad
4 files changed
+10
-10
No files matched your search
+2
-2
@@ -81,7 +81,7 @@ const DEFAULT_BIRD = "bluebird";
|
||||
// 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
|
||||
@@ -532,7 +532,7 @@ Promise.all([
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user