# art
Starfall Garden's look, built in code (the model generator was out of quota): a pillowy smiling star, a thorny gloom wisp with glowing eyes, a pearly seed pod in mint leaves, garden flowers that wilt, and the player's firefly. `Art.star(e)`, `Art.gloom(e)`, `Art.pod(e)`, `Art.flower(e, variant, size)`, `Art.setWilted(flower, bool)`, `Art.firefly(e)`. Meshes are generated once per peer with `renderer.mesh.create` and cached; pieces are temporary local children, so synced objects carry only gameplay data. Materials live in `materials/`.
# Starfall Garden
**A co-op touch arcade game for phones, tablets and computers.** Stars fall on
a floating garden island above a sea of clouds. **Tap** a star to catch it,
**swipe** through a thorny gloom wisp before it lands and wilts one of your five
flowers, **hold** a seed pod until it blooms (and revives a flower), and
**double-tap** when the shared moon meter is full for a **Moonburst** that clears
every gloom wisp on screen. A round lasts 90 seconds and ends with a score,
stars and **Play again**. Friends who join play the same garden, each with their
own score, touch feedback and firefly.
Version 1.0.8 (1.0.8: plays on menusKit 1.4.5, which brings controlsKit 1.4.9, both released without the deleted zui UI library, no code change; 1.0.7: plays on skyfallKit 1.0.4 and spawnerKit 1.2.7, whose README and version label now match, no code change; 1.0.6: plays on skyfallKit 1.0.3, which runs on spawnerKit 1.2.5, so every pooled object waits fully asleep; 1.0.5: installing the game now brings every kit it plays with, listed under Dependencies below, and it runs on the current built-in library; 1.0.4: one award per catch, each player's score on their own badge even when two devices share an account, a round plays through by mouse as well as by touch, the Touch styles room laid out clear of the bar and badge with every tap target visible, and the touch feedback kit renamed to Fingertip (fingertipKit) with its seventh gesture hint, flick; 1.0.3: the Touch styles room, a showcase of every touch feedback style and tap-target reaction, opened from the title; 1.0.2: one shared Match and one scoreKit keeper held in the scene so a second player never creates a duplicate, players can join a round in progress, points and Moonburst bonuses awarded once by the keeper, firefly look built only on live bodies; 1.0.1: cloud sea and cloud floor under the island, cover image; 1.0.0: first release).
## Play it
Open the world *Starfall Garden* and press Play (or Play on the title screen).
The first time each gesture is needed, a little hand shows it.
## Touch styles room
Pick **Touch styles** on the title screen to see and try every touch style side by side: every tap ripple, finger trail, button press and gesture hint (fingertipKit), and every hit reaction and hold ring on 3D objects (touchTargetsKit), each in five looks. It opens over the running garden (`scenes.touchShowcase`, the `TouchShowcase` component), so you stay in the shared world, and **Back to the garden** returns to the title.
## Progression
Lifetime stars are saved per player and earn gardener ranks: Seedling, Sprout,
Bud, Bloom, Starcatcher, Moon Gardener. Each rank unlocks a new finger trail
(sparkles, ribbon, bubbles, comet, chalk, neon). Your best score shows on the
title screen.
## On tablets: 30 frames a second
On a tablet the game runs at **30 frames a second**, not 60. Measured on an
Android tablet during a round: a steady 33 ms per frame, with the game's own
scripts taking only 1 to 4 ms of it, so the limit is the engine's frame rate on
the device, not the game. What you see: falling stars, finger trails and tap
ripples move a little less smoothly than on a computer. Taps, swipes and holds
are judged the same, nothing is missed and scores are not affected. This is
tracked as issue **#26161**; when it is fixed, tablets get the higher frame
rate with no change to the game.
## Dependencies
Installing starfallGarden brings every kit it plays with (declared under
`dependencies` in `package.yaml`), so one install is enough:
| Kit | Version |
|---|---|
| fingertipKit | 1.1.1 |
| touchTargetsKit | 1.0.1 |
| skyfallKit | 1.0.4 (brings spawnerKit 1.2.7) |
| scoreKit | 1.6.0 |
| MatchFlow | 1.4.3 |
| menusKit | 1.4.5 (brings controlsKit 1.4.9) |
| juiceKit | 1.2.16 |
The sky (paintedSkies) and the islands (floatingIslands) are placed by the
world's scene, not by the package's code, so they are not package dependencies.
## What it is made of
It is assembled from installable kits; the package itself holds only the rules
and the look that make it this game.
| Part | Does |
|---|---|
| fingertipKit | tap ripples, finger trails, button press, first-play gesture hints |
| touchTargetsKit | tap / swipe / hold on 3D objects, one winner per object in multiplayer |
| skyfallKit | stars, gloom and pods falling in waves, smooth on every screen |
| scoreKit | points, popups, combos |
| MatchFlow | shared countdown, 90 s round, round end for everyone |
| menusKit | title, victory and game-over screens (cozy look) |
| juiceKit | shake, sparkles, confetti |
| paintedSkies, floatingIslands | the summer sky and the meadow islands |
Inside the package: `round` (the rules), `art` (stars, gloom, pods, flowers in
code), `hud` (flowers and moon meter), `progress` (saved ranks and unlocks),
`sounds` (generated music and effects), `stage` (layout numbers), `game` and the
`StarfallGame` and `Firefly` components. The guide
**How Starfall Garden was put together from installable parts** walks through
it.
## Multiplayer
Every player who opens the world plays the same garden:
- **Shared, exactly once:** the Match (round clock), the scoreKit keeper and the `StarfallGame` entity are placed by the scene, so there is one of each however many players join. The skyfallKit director is created only by the host. Falling objects are synced and every screen computes their motion.
- **Owned by one machine each:** the game entity's owner writes the wilted flowers and the moon meter, scoreKit's keeper awards every point, and the director's owner spawns. A hit is recognised on the finger's own screen and claimed once (touchTargetsKit), so it scores once.
- **Your own:** score display and popups, combo, touch feedback, gesture hints, HUD, menus, sounds, progression and firefly.
- **Joining late:** press Play on the title and you join the round already running. Play again from anyone's end screen starts the next round for everyone.
## Settings
On the `StarfallGame` entity: `roundSeconds` (90), `gardenLives` (5) and
`look` (`pastel`; any fingertipKit / touchTargetsKit look: cartoon,
minimal, neon, pixel, pastel). The waves are `round.SCHEDULE`.