Commit Graph
348 Commits
Author SHA1 Message Date
√(noham)² 5797c055ed Persist and restore bird position across sessions
Add saving and restoring of bird positions so the bird can persist its location between navigations and reloads.

Introduces SavedBirdPosition and birdPositions in save data, constants for save intervals and thresholds, and tracking of position deltas to mark dirty state. Implements sanitizeSavedBirdPositions, normalizePath, trimming logic, and a per-tab session key (using window.name) to avoid cross-tab restores. Saves periodically and on pagehide/beforeunload, restores on startup (with heuristics to snap to a nearby perchable element), and avoids overwriting restored Y when appropriate.
2026-04-06 12:55:19 +02:00
Idrees Hassan 96ff61625a Fix bird/birb in menu items 2026-04-04 10:13:17 -07:00
Idrees Hassan 85ade65a57 Update colors and add icons 2026-04-03 19:06:28 -07:00
Idrees Hassan 2f3d7958ea Update application.js 2026-03-30 06:36:33 -07:00
Idrees eab6086f4d Merge pull request #9 from IdreesInc/new-birds
New birds and new logic!
2026-03-29 14:45:03 -07:00
Idrees Hassan c770e3d1f6 Update icon to new bird design 2026-03-29 14:43:21 -07:00
Idrees Hassan 0d007f8c1e Update highlight color 2026-03-29 14:26:26 -07:00
Idrees Hassan 92c083138d Add the violet backed starling 2026-03-29 14:24:03 -07:00
Idrees Hassan 5d6ea50c87 Add the cuban tody 2026-03-29 12:26:50 -07:00
Idrees Hassan 77a29c549f Slightly increase uncommon feather chance 2026-03-29 11:51:21 -07:00
Idrees Hassan a8ba15489f Add the spangled cotinga 2026-03-29 11:47:01 -07:00
Idrees Hassan 39e84be775 Add chin to sprite 2026-03-29 11:36:43 -07:00
Idrees Hassan f924343ac3 Add the painted bunting 2026-03-29 11:19:45 -07:00
Idrees Hassan fd55924025 Add shoulder to sprite 2026-03-29 11:13:36 -07:00
Idrees Hassan f891f8f06d Update euphonia colors 2026-03-28 15:38:43 -07:00
Idrees Hassan 9aee4eab1a Remove shoulder 2026-03-28 14:36:30 -07:00
Idrees Hassan 763b50f34b Change pigeon name 2026-03-28 12:15:53 -07:00
Idrees Hassan b4c577a0ac Fix collar scruff 2026-03-28 12:12:06 -07:00
Idrees Hassan 5a3b555d3a Fix flapping sprite 2026-03-28 12:07:36 -07:00
Idrees Hassan 74a776cd4f Add latin names to the birds 2026-03-28 11:48:02 -07:00
Idrees Hassan ebb9f92be2 Fix chickadee color overrides 2026-03-28 11:34:42 -07:00
Idrees Hassan b7d6ca63c1 Enforce enum types 2026-03-28 11:29:35 -07:00
Idrees Hassan 7d16459a76 Implement rarity calculations 2026-03-28 11:26:39 -07:00
Idrees Hassan abe4439d5e Add spots to the strawberry finch 2026-03-28 11:15:24 -07:00
Idrees Hassan 6f88d386ec Add the pigeon 2026-03-28 11:07:32 -07:00
Idrees Hassan 86a14d6dca Add the elegant euphonia 2026-03-28 10:52:08 -07:00
Idrees Hassan 30b9c86cca Remove color override redundency 2026-03-28 10:38:19 -07:00
Idrees Hassan 3765713fd0 Fix sprite color overrides 2026-03-28 10:31:23 -07:00
Idrees Hassan 0f90eb4492 Add more sprite template colors 2026-03-28 10:27:26 -07:00
Idrees Hassan 30d6c2fee5 Update house finch colors 2026-03-28 09:48:22 -07:00
Idrees Hassan 18fa5e8683 Lighten pink robin 2026-03-28 09:44:29 -07:00
Idrees Hassan c43dd4c7b4 Add the red warbler 2026-03-21 16:36:27 -07:00
Idrees Hassan 9e6f5feae1 Fix template colors 2026-03-21 14:44:27 -07:00
Idrees Hassan b6e93088a8 Add more eye template colors 2026-03-21 14:37:15 -07:00
Idrees Hassan b440f633a5 Add nose tip 2026-03-21 14:25:41 -07:00
Idrees Hassan 7b20a376ce Reduce pink robin wing edge contrast 2026-03-21 14:12:31 -07:00
Idrees Hassan 61fbe89986 Prevent flying to the same element and reduce chirp volume 2026-03-21 14:11:58 -07:00
Idrees Hassan c1511aae71 Update pink robin 2026-03-20 17:15:08 -07:00
Idrees Hassan 0a11ebe87d Update pink robin colors 2026-03-18 17:16:08 -07:00
Idrees Hassan 5cf96da868 Update house finch theme highlight 2026-03-18 17:12:57 -07:00
Idrees Hassan 5d99142b74 Add pink robin and update scarlet robin 2026-03-18 17:11:05 -07:00
Idrees Hassan 2a7ad229be Add support for different rarities in field guide 2026-03-18 16:48:13 -07:00
Idrees Hassan c880b99744 Add house finch 2026-03-18 15:52:16 -07:00
Idrees Hassan fe0310cb36 Add dark eyed junco 2026-03-11 20:50:16 -07:00
Idrees Hassan efddf12ba5 Add potential for multiple cheeps 2026-03-11 18:47:38 -07:00
Idrees Hassan 7aa9996857 Add wing edge to blue jay 2026-03-11 18:35:34 -07:00
Idrees Hassan 7f334d789f Add blue jay 2026-03-11 18:28:37 -07:00
Idrees Hassan a57615b3da Add black-capped chickadee 2026-03-11 17:07:50 -07:00
Idrees Hassan 37a8b6cc6e Merge branch 'main' into new-birds 2026-03-11 16:57:53 -07:00
Idrees Hassan 31a3f7cac9 Update .gitignore 2026-03-11 16:57:48 -07:00