mirror of
https://github.com/NohamR/Pocket-Bird.git
synced 2026-05-25 12:17:22 +00:00
Allow clicking after short delay following petting
This commit is contained in:
2
birb.js
2
birb.js
@@ -943,7 +943,7 @@ Promise.all([loadSpriteSheetPixels(SPRITE_SHEET), loadSpriteSheetPixels(DECORATI
|
||||
});
|
||||
|
||||
onClick(canvas, () => {
|
||||
if (currentAnimation === Animations.HEART) {
|
||||
if (currentAnimation === Animations.HEART && (Date.now() - lastPetTimestamp < 1000)) {
|
||||
// Currently being pet, don't open menu
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user