Building Lunch Siege: spin, wind and falling chefs
Lunch Siege started as a simple question: what if a siege game felt like a street food rivalry instead of a castle war?

A swipe becomes a throw
The game runs on a 2D physics engine. Every block, plank and chef on a truck is a physical body with its own weight and bounce. When you swipe, the length of the swipe sets the speed of the throw and the direction sets the angle. That is all the game needs to launch the food.
Why spin bends the shot
The fun part is spin. A curved swipe gives the food spin, and spinning food gets a small sideways push while it flies, the same effect that makes a football curl. A topspin throw dips; a backspin throw floats. Each food reacts differently: burgers spin the hardest, cabbages hardly at all.
Wind every turn
A new wind is rolled every turn and shown at the top of the screen. It is gentle enough to read, strong enough that you cannot throw the same shot twice. Most of the skill in the game is matching power and spin to the wind.
Damage and falling chefs
Every collision is checked for how hard it hit. Hard hits damage blocks and chefs; enough damage breaks a block. Often the best shot does not touch a chef at all: it knocks out the block underneath and lets gravity do the rest.
Playing with a friend
For online matches we did not want a heavy game server simulating physics. Instead, the player whose turn it is runs the physics on their own device and streams compact frames to the other player through a small relay. The relay only pairs two players by a six-digit code and passes messages along. At the end of each turn the full state is sent again to bring both screens back to a shared reference.
Three inputs, three different effects
| Input | What it changes | What it does not guarantee |
|---|---|---|
| Swipe direction | The launch direction | A clear path through a tall fort |
| Swipe length | The strength of the throw | That the food lands on the truck |
| Swipe curve | The spin and resulting curved flight | That a moving target or changing wind is cancelled |
A useful comparison holds two inputs steady and changes the third. For example, compare a mostly straight swipe with a similarly directed curved one using the same food. Wind changes between turns, so it must be recorded when comparing the paths; a different result cannot automatically be credited to spin alone.
A collapse is a chain of events
Consider a chef standing on two stacked supports. A projectile hits the lower support, the support breaks, the upper block falls, and the chef loses its platform. The result depends on that sequence, not just on damage to the chef. If another plank bridges the gap, the same first hit may leave the chef standing.
This is what makes a physics fort different from a single health bar. The positions of the remaining objects matter. A replay can help explain the result by showing the first collision and the later collapse separately. For the player, the question becomes which body to disturb, not merely which enemy to touch.
Why send a final state after a turn?
The active device's compact frames let the other player follow the throw. A complete state at the turn boundary provides a new reference for the next turn. Without such a reference, a small discrepancy could carry forward into later throws: one player might see a plank still standing while the other sees it already fallen.
A final state helps align the next decision, but it is not a guarantee against every network failure. A disconnect can still prevent delivery. It is more accurate to describe the turn boundary as a resynchronisation point than to promise both screens will always agree under all conditions.
Useful cases to test
- Direct collision: a tomato strikes an exposed block, with the impact and damage visible.
- Indirect fall: breaking a support drops a chef without the projectile touching that chef.
- Multiple bodies: a cabbage hits a tightly packed structure and several objects move.
- Online handoff: both players see the same remaining blocks when the turn changes.
- Interrupted connection: a player backgrounds a tab during a throw and reports whether the match recovers or stalls.
These are reproducible scenarios for inspecting the design, not a published device-certification list. A bug report is most useful when it identifies the food, wind, first collision and whether the host or joining player saw the disagreement. Send those details through Contact, or use the player guide for shot planning.