# fornada.rules
The bakery's numbers as data (eight product lines, oven, baker, counter and cashier prices, milestones, rush hour, orders, prestige, offline) and pure formulas that turn upgrade levels into rates. The live game and the pacing simulator both read it. It reads levels and stats through a view `{ level = fn(id), stat = fn(name) }`, so it never touches the engine.
# fornada.lang
The player's language and the game's words and numbers: `Lang.t`, `Lang.text` (live text), `Lang.count(base, n)` (natural plurals including zero and millions in both languages), `Lang.num` (1.2K / 1,2 mil), `Lang.duration`, `Lang.set(tag)` and `Lang.onChange`.
# fornada.bakery
One player's bakery, run on that player's own machine: goods on the shelves, customers who queue and pay, cashiers and bakers, rush hour, special orders, milestones and opening a new bakery. Money, upgrade levels, prestige, offline earnings and saving are incrementalKit's. The Fornada component ticks it and screens listen with `Bakery.on(event, fn)`.
# Fornada
The game code of Fornada: Idle Bakery, a cosy idle bakery game in English and Brazilian Portuguese. Most of the game is installed kits; this package holds what is Fornada's own and wires the kits together.
- `fornada.rules`: the bakery's numbers and formulas. `fornada.sim` plays a long session headless to check the pacing.
- `fornada.bakery`: one player's bakery on their own machine (stock, what customers want, serving and pay, bakers, orders, milestones) on incrementalKit's money, upgrades, prestige and offline earnings.
- `fornada.customers`: the line on customerQueueKit's kit-driven mode (arrivals, morning, lunch and evening rushes at about twice the customers, a full line seen and left, patience, cashiers, moods).
- `fornada.street`: Main Street on shopfrontStreetKit (each player's own front, environment by neighbourhood, badge and sign styles) with reactionsKit's quick reactions.
- `fornada.stars`: Bakery Stars on economyKit, earned from daily goals, streaks and milestones and spent on shopfront looks.
- `fornada.goals` and `fornada.board`: daily goals with a streak (questKit), weekly and all-time leaderboards (scoreKit).
- `fornada.lang`: every word and number in both languages, live language switching, incrementalKit's number formatting.
- `fornada.hud`, `fornada.icons`, `fornada.fx`: screens, icons, music, sound, juice and graphics settings.
- `fornada.firstMinute`: tester check of a new player's first minutes. The `Fornada` component ties it together in the scene.
Good to know:
- No level or XP bar is shown: Fornada has no player levels. The save kit some kits bring would draw one over the shop's buttons, so Fornada keeps that screen hidden.
- Graphics: Low on phones and tablets (render scale 0.8, shorter shadows, no bloom; sun shadows redrawn at most 15 times a second), Medium on desktop browsers, adaptive Auto aiming at 55 fps. Players change it in Settings > Graphics.
- Tester tools (fast-forward 1 or 8 hours, speed x10, auto-play 45 minutes, reset) open with seven quick taps on the coin counter only while testing inside the editor. A session that uses one adds nothing to the leaderboards.
Guides: "How Fornada works, and how to change it" and "Example: make an idle shop game with customers, upgrades and prestige".