v4.0.0
Major rewrite: Manifest V3, modular game core, modern bakery UI, animated workers & scenery, full i18n pass. Permissions unchanged (storage only).
Architecture
- Migrated to Manifest V3 with a module service worker
- Split game logic into modular modules (config, state, economy, offline, events, achievements, audio)
- Split UI into modular modules (popup, scenery, workers, effects, icons, i18n)
- Removed jQuery and unused helpers
- Cleaned manifest: dropped unused CSP / web_accessible_resources
- Debounced saves with flush on popup hide / pagehide
- Schema migration so updates do not wipe new fields
- Economy unit tests
Economy & balance
- Rebalanced building costs (costMult 1.15) and CPS curves
- Click power includes a late-game CPS component
- Prestige uses cube root of lifetime cookies (Heavenly Crumbs)
- Power Click deducts the real scaled cost
- Affordability checks use ≥ cost
- Single production tick (removed stacked setInterval exploit)
- Offline accrual capped at 12 hours
- Crit clicks, daily bonus, Golden Cookie ×7 CPS buff (with despawn)
Content
- Buildings: Cat, Grandma, Farm, Office, Factory, Bank, Mars Colony, Intergalactic Corp, Portal, Time Machine, Antimatter Condenser
- One-shot upgrades (finger, catnip, grandma recipe, fertilizer, global / golden oven boosts)
- Achievements and cookie skins
- Prestige / Ascend loop with keep/lose rules
- Milestone toasts instead of hijacking tabs at cookie thresholds
Design & UX
- Midnight bakery theme, 600px popup height
- Larger bakery stage, denser market shop
- Stat board with Lucide SVG icons (CPS, click, crumbs, golden buff)
- Header icon actions: daily bonus, ascend, rate us, Android, settings
- Shop / upgrade tooltips on hover (what you get)
- Custom prestige modal (gains, bonuses, lose/keep lists) instead of confirm()
- Stable cookie counter - no jumping digits
- Purchase fly-to-cookie + sparkle feedback
- Floating crumbs, crit text, toasts
- Keyboard Space/Enter to bake (disabled while prestige modal is open)
- Daily bonus button hidden after claim
- Options page: sound, volume, notation, contrast, compact shop, stats, export/import/reset
Bakery life (workers & scenery)
- One cat and one grandma that grow with owned count; free-roam and whack the cookie
- Animated spritesheets (walk / attack) for cat and grandma
- Grass strip when farms are owned; sheep grazes across the grass
- Scenery buildings that scale with ownership: farm house, office, factory (smoke), bank, Mars colony, portal, time machine
- Unique click interactions + cooldowns per scenery piece (barn shake, sheep pet, office rally, factory vent, bank interest, Mars rocket, portal gift, time warp)
- Upgrade purchase visual accents on the bakery stage
Internationalization
- All UI strings routed through chrome.i18n + English fallback
- New keys for scenery tips, options howto, stats labels, status messages, time units, aria-labels
- Full key coverage for en, uk, and ru locales
Product
- No tab open on every update; single uninstall URL
- README, changelog, version aligned to 4.0.0
- Links: Chrome Web Store reviews, Android app, more games
Fixes
- Cookie clicks and purchases persist reliably
- Upgrade SFX path via chrome.runtime.getURL
- Golden cookie despawns if missed
- Shop tooltips hide on leave / tab change / re-render
- Prestige modal and tooltips respect [hidden] over CSS display
- Power Click row correctly disabled when locked
- Hotkeys do not fire through the prestige modal