ferravex
GitHub

Pantry Panic

A neighborhood restaurant grows from its first lunch to a lantern banquet. Move one cook through a compact kitchen, prepare ingredients, juggle two burners and feed guests before their patience runs out. Seven authored services contain 42 orders and six recipes; the final service brings all four ingredients together.

cargo run -p pantry-panic --offline --locked -j 2

The parent-owned browser catalog also registers pantry-panic. This game uses Ferravex's first-party renderer and shared arcade host for fixed ticks, input, sound cues, menus, field guide, results and local records.

Open the doors

Enter starts the shared host, then Space opens the first service. The briefing card shows tonight's dishes (how many guests will order each, with a New tag on first-time dishes), the guests as tokens, a heart for the one miss the quota allows and the closing clock. A second missed guest fails that service. Complete all seven services to finish the restaurant's story.

ServiceGuests / quotaNew challenge
The First Lunch4 / 3Fresh salads and the kitchen route
Rain on the Windows5 / 4Hot soup and burner timing
Market Day5 / 4Tomato rice and mixed orders
The Garden Club6 / 5Herb pilaf and exact ingredients
After the Theater7 / 6Slow risotto and a busier queue
The Critic's Table7 / 6All five regular dishes, arriving every 17 seconds
The Lantern Banquet8 / 7Six recipes, including the four-ingredient House Feast

Arrivals follow a fixed menu and schedule. Three tables seat guests; when all are taken, the next scheduled guest waits in the doorway and their patience begins only once seated. A seated guest's speech bubble shows the dish, the ingredients it needs underneath, and a patience ring that turns from green to gold to red as their face sours. The door's ring fills toward the next arrival and shows that guest's dish. The kitchen also has an overall closing deadline.

Reading the kitchen

The screen explains itself with pictures rather than sentences:

Controls

ControlAction
Arrows / WASDMove the cook
Click a station or floor tileWalk to that station's marked access tile or the chosen floor tile
Click the station you stand atUse it, exactly like Space
Space / EnterUse the adjacent station; open or continue a service
Hold Space / Enter at CHOPPrepare the ingredient in your hands
X / EDiscard held food; with empty hands at MIX, clear its bowl; beside a burned pot, clean the burner
C / QCycle the six recipe cards
Click a seated guest or recipe thumbnailShow that recipe
1 / 2 / 3 between servicesBuy knife / shoes / burner upgrade
HOpen the short field guide, which pauses the game
Esc / PPause
RStart a whole new restaurant career
MToggle sound
F2Shared control editor

The bracketed floor squares identify each station's interaction position, and hovering a station or tile previews the walking route. Finish moving onto the square before tapping Space. A click on a distant station only walks there; a click on the station underfoot uses it like Space, and clicking never replaces holding Space to prepare food.

From pantry to table

  1. Collect: stand below a pantry and press Space with empty hands. Each ingredient costs two coins. Holding food prevents another purchase.
  2. Prepare: take it to CHOP and hold Space. Vegetables are chopped; rice is rinsed and portioned at the same bench. Initial preparation takes 1.5 seconds. Moving away discards partial preparation progress.
  3. Mix: press Space at MIX to add one prepared ingredient. Repeat for every ingredient in the recipe. Raw and duplicate ingredients are rejected.
  4. Lift: with empty hands, press Space at MIX to lift an exact, complete recipe. A bowl with an invalid combination stays on the counter until corrected by adding ingredients or cleared with X.
  5. Cook: put a mixed hot recipe on either empty burner. A gold ring fills while it cooks; a check, green ring and sound cue announce readiness. Return with empty hands and press Space to take it. Salad skips this step.
  6. Plate and serve: press Space at PLATE, then at SERVE. A matching waiting guest pays once, and your hands become empty. The oldest matching ticket is served first. Wrong dishes remain in your hands and award nothing.
RecipePrepared ingredientsCookingBase payment
Garden SaladTomato + greensNone18 coins
Forest SoupTomato + mushroom3 seconds22 coins
Tomato RiceTomato + rice4 seconds24 coins
Herb PilafGreens + rice3.5 seconds24 coins
Fungi RisottoMushroom + rice5 seconds26 coins
House FeastAll four6 seconds36 coins

Food initially burns five seconds after becoming ready. A burned pot cannot be served; stand beside it with empty hands and press X to clear it. Burning counts as waste once. Discards and mistaken mixing bowls never refund ingredient costs. The two burners run independently, so preparing the next bowl while one cooks can help during busy services.

Money, upgrades and retries

Begin with 48 coins. Each served dish earns its base payment plus a patience tip; faster service pays more. A completed service adds 20 coins. Buy equipment only between services, retaining enough cash to prepare the next dish.

UpgradeFirst / second priceEffect
Sharp Knife45 / 75 coinsPreparation falls to 1.0, then 0.7 seconds
Quick Shoes50 / 80 coinsA floor step takes 8, then 6 ticks instead of 10
Safe Burners35 / 65 coinsBurn grace rises to 8, then 11 seconds

Every upgrade has exactly two levels. Invalid, unaffordable or maxed purchases change no money or equipment. Three service retries are shared across the career. A retry restores money, score and dishes served to the start of the failed shift, while retaining completed earlier services and equipment. Failed-service earnings cannot be farmed. After the fourth failed service, the career ends.

Serving every guest with no waste earns three stars for a service. Serving every guest with waste earns two; meeting quota earns one. Service stars and dish tips contribute to the score. The ending awards Neighborhood Legend, Beloved Bistro or Open for Business based on total stars. Replay to improve route efficiency, reduce waste and finish with more money.

A sharper knife is a useful early investment. Prepare ingredients in pantry order to avoid forgetting one, inspect the ticket before lifting a bowl, and clear a burner before carrying another dish to it. The recipe panel stays on the recipe you chose; changing it never alters food already in the kitchen.

Implementation and checks

content.rs contains the seven menus, six recipes and station locations. model.rs is an integer-tick, renderer-independent state machine with fixed arrays for three orders and two pots, a four-bit mixing bowl and bounded campaign counters, plus a bounded presentation-event feed that rules never read and state equality ignores. view.rs draws the dining room, kitchen, cook, food, recipe book and service cards with procedural shapes and engine pictograms, and turns the feed into effects. No external assets or libraries are used.

cargo test -p pantry-panic --offline --locked -j 2
cargo clippy -p pantry-panic --all-targets --offline --locked -j 2 -- -D warnings
cargo run -p pantry-panic --offline --locked -j 2 -- --headless

The implementation check passed 27 behavioral tests and one executed API doctest, strict package Clippy and scoped formatting. Tests cover paid collection, chopping, recipe validation, both burners, cooking and burning, plating and serving, patience, quotas, retries, upgrade caps, pointer positions, click-to-use, recipe selection by pointer, the presentation feed and its refusal throttle, the exact payout preview, header progress, effects for serving, burning and refusals, terminal stability and an exact replay of a complete legal campaign. The full playthrough begins with Game::new() and changes state only through ordinary Input passed to step.

The legal pilot completes all seven services at tick 46,003: 42 dishes, 21 stars, 37,650 score, 974 coins, all upgrades and no spent retries. This is about 12 minutes 47 seconds of simulated play, not a measured human completion time. The pilot uses the same rules and paid ingredients as a player, and is intentionally simple: it works one dish at a time rather than optimizing both burners.

The parent performs native/browser integration and graphical captures separately. Automated rules checks do not establish human difficulty balance, physical mobile or gamepad support, audible-device quality or behavior on other operating systems. Mid-career saves are not implemented; the shared host retains completed records.