mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-26 12:17:23 +00:00
Reduce flying arc and hop distance
This commit is contained in:
6
dist/birb.js
vendored
6
dist/birb.js
vendored
@@ -1508,7 +1508,7 @@
|
|||||||
// Birb movement
|
// Birb movement
|
||||||
const HOP_SPEED = 0.07;
|
const HOP_SPEED = 0.07;
|
||||||
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
||||||
const HOP_DISTANCE = 45;
|
const HOP_DISTANCE = 35;
|
||||||
|
|
||||||
// Timing constants (in milliseconds)
|
// Timing constants (in milliseconds)
|
||||||
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
||||||
@@ -1652,7 +1652,7 @@
|
|||||||
insertModal(`${birdBirb()} Mode`, message);
|
insertModal(`${birdBirb()} Mode`, message);
|
||||||
}),
|
}),
|
||||||
new Separator(),
|
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");
|
const styleElement = document.createElement("style");
|
||||||
@@ -1959,7 +1959,7 @@
|
|||||||
birdY = getFocusedY();
|
birdY = getFocusedY();
|
||||||
} else if (currentState === States.FLYING) {
|
} else if (currentState === States.FLYING) {
|
||||||
// Fly to target location (even if in the air)
|
// Fly to target location (even if in the air)
|
||||||
if (updateParabolicPath(FLY_SPEED)) {
|
if (updateParabolicPath(FLY_SPEED, 2)) {
|
||||||
setState(States.IDLE);
|
setState(States.IDLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
dist/birb.user.js
vendored
8
dist/birb.user.js
vendored
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Pocket Bird
|
// @name Pocket Bird
|
||||||
// @namespace https://idreesinc.com
|
// @namespace https://idreesinc.com
|
||||||
// @version 2025.10.28.84
|
// @version 2025.10.28.93
|
||||||
// @description birb
|
// @description birb
|
||||||
// @author Idrees
|
// @author Idrees
|
||||||
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js
|
// @downloadURL https://github.com/IdreesInc/Pocket-Bird/raw/refs/heads/main/dist/birb.user.js
|
||||||
@@ -1522,7 +1522,7 @@
|
|||||||
// Birb movement
|
// Birb movement
|
||||||
const HOP_SPEED = 0.07;
|
const HOP_SPEED = 0.07;
|
||||||
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
||||||
const HOP_DISTANCE = 45;
|
const HOP_DISTANCE = 35;
|
||||||
|
|
||||||
// Timing constants (in milliseconds)
|
// Timing constants (in milliseconds)
|
||||||
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
||||||
@@ -1666,7 +1666,7 @@
|
|||||||
insertModal(`${birdBirb()} Mode`, message);
|
insertModal(`${birdBirb()} Mode`, message);
|
||||||
}),
|
}),
|
||||||
new Separator(),
|
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");
|
const styleElement = document.createElement("style");
|
||||||
@@ -1973,7 +1973,7 @@
|
|||||||
birdY = getFocusedY();
|
birdY = getFocusedY();
|
||||||
} else if (currentState === States.FLYING) {
|
} else if (currentState === States.FLYING) {
|
||||||
// Fly to target location (even if in the air)
|
// Fly to target location (even if in the air)
|
||||||
if (updateParabolicPath(FLY_SPEED)) {
|
if (updateParabolicPath(FLY_SPEED, 2)) {
|
||||||
setState(States.IDLE);
|
setState(States.IDLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 3,
|
"manifest_version": 3,
|
||||||
"name": "Pocket Bird",
|
"name": "Pocket Bird",
|
||||||
"description": "It's a bird, in your browser. What more could you want?",
|
"description": "It's a bird, in your browser. What more could you want?",
|
||||||
"version": "2025.10.28.84",
|
"version": "2025.10.28.93",
|
||||||
"homepage_url": "https://idreesinc.com",
|
"homepage_url": "https://idreesinc.com",
|
||||||
"icons": {
|
"icons": {
|
||||||
"48": "images/icons/transparent/48x48x1.png",
|
"48": "images/icons/transparent/48x48x1.png",
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ const DEFAULT_BIRD = "bluebird";
|
|||||||
// Birb movement
|
// Birb movement
|
||||||
const HOP_SPEED = 0.07;
|
const HOP_SPEED = 0.07;
|
||||||
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
const FLY_SPEED = isMobile() ? 0.125 : 0.25;
|
||||||
const HOP_DISTANCE = 45;
|
const HOP_DISTANCE = 35;
|
||||||
|
|
||||||
// Timing constants (in milliseconds)
|
// Timing constants (in milliseconds)
|
||||||
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
const UPDATE_INTERVAL = 1000 / 60; // 60 FPS
|
||||||
@@ -532,7 +532,7 @@ Promise.all([
|
|||||||
birdY = getFocusedY();
|
birdY = getFocusedY();
|
||||||
} else if (currentState === States.FLYING) {
|
} else if (currentState === States.FLYING) {
|
||||||
// Fly to target location (even if in the air)
|
// Fly to target location (even if in the air)
|
||||||
if (updateParabolicPath(FLY_SPEED)) {
|
if (updateParabolicPath(FLY_SPEED, 2)) {
|
||||||
setState(States.IDLE);
|
setState(States.IDLE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user