mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 19:59:38 +00:00
Remove afk delay on mobile
This commit is contained in:
2
birb.js
2
birb.js
@@ -32,7 +32,7 @@ const HOP_SPEED = CONFIG.hopSpeed;
|
|||||||
const FLY_SPEED = CONFIG.flySpeed;
|
const FLY_SPEED = CONFIG.flySpeed;
|
||||||
const HOP_DISTANCE = CONFIG.hopDistance;
|
const HOP_DISTANCE = CONFIG.hopDistance;
|
||||||
// Time in milliseconds until the user is considered AFK
|
// Time in milliseconds until the user is considered AFK
|
||||||
const AFK_TIME = debugMode ? 0 : 1000 * 30;
|
const AFK_TIME = (debugMode || isMobile()) ? 0 : 1000 * 30;
|
||||||
const SPRITE_HEIGHT = 32;
|
const SPRITE_HEIGHT = 32;
|
||||||
const MENU_ID = "birb-menu";
|
const MENU_ID = "birb-menu";
|
||||||
const MENU_EXIT_ID = "birb-menu-exit";
|
const MENU_EXIT_ID = "birb-menu-exit";
|
||||||
|
|||||||
2
dist/birb.js
vendored
2
dist/birb.js
vendored
@@ -32,7 +32,7 @@ const HOP_SPEED = CONFIG.hopSpeed;
|
|||||||
const FLY_SPEED = CONFIG.flySpeed;
|
const FLY_SPEED = CONFIG.flySpeed;
|
||||||
const HOP_DISTANCE = CONFIG.hopDistance;
|
const HOP_DISTANCE = CONFIG.hopDistance;
|
||||||
// Time in milliseconds until the user is considered AFK
|
// Time in milliseconds until the user is considered AFK
|
||||||
const AFK_TIME = debugMode ? 0 : 1000 * 30;
|
const AFK_TIME = (debugMode || isMobile()) ? 0 : 1000 * 30;
|
||||||
const SPRITE_HEIGHT = 32;
|
const SPRITE_HEIGHT = 32;
|
||||||
const MENU_ID = "birb-menu";
|
const MENU_ID = "birb-menu";
|
||||||
const MENU_EXIT_ID = "birb-menu-exit";
|
const MENU_EXIT_ID = "birb-menu-exit";
|
||||||
|
|||||||
2
dist/birb.user.js
vendored
2
dist/birb.user.js
vendored
@@ -46,7 +46,7 @@ const HOP_SPEED = CONFIG.hopSpeed;
|
|||||||
const FLY_SPEED = CONFIG.flySpeed;
|
const FLY_SPEED = CONFIG.flySpeed;
|
||||||
const HOP_DISTANCE = CONFIG.hopDistance;
|
const HOP_DISTANCE = CONFIG.hopDistance;
|
||||||
// Time in milliseconds until the user is considered AFK
|
// Time in milliseconds until the user is considered AFK
|
||||||
const AFK_TIME = debugMode ? 0 : 1000 * 30;
|
const AFK_TIME = (debugMode || isMobile()) ? 0 : 1000 * 30;
|
||||||
const SPRITE_HEIGHT = 32;
|
const SPRITE_HEIGHT = 32;
|
||||||
const MENU_ID = "birb-menu";
|
const MENU_ID = "birb-menu";
|
||||||
const MENU_EXIT_ID = "birb-menu-exit";
|
const MENU_EXIT_ID = "birb-menu-exit";
|
||||||
|
|||||||
Reference in New Issue
Block a user