Firefly Jar is a complete mini-game made in Rive: slide a glass jar across a moonlit meadow, catch falling fireflies, dodge wasps, beat the clock. Play it live

The brief
Show that a Rive file can be a whole product moment, not a decoration: real game rules, animated characters, a HUD that updates live, and a scene that still looks hand-made.
What I built
Fireflies and wasps are their own Rive artboards with their own state machines (wing flaps, glow pulses, buzzing). The game spawns them as instances, so every sprite is real Rive animation.
A Luau script runs the round: spawning, sine-wave flight paths that speed up over 45 seconds, catching, combos, lives and particle sparks.
The jar follows the pointer through data binding. Every catch makes it glow brighter and squash; a wasp shakes it with a red flash.
Score, best score, hearts, the timer bar and the combo text all bind to one view model the script writes to.
Start and game-over screens are state machine layers, and the night scene (stars, moon glow, mist, swaying grass) loops on its own.
How it is wired
The playfield is a scripted layout; the HUD, overlays and jar are markup. The script reads a start trigger and writes score, lives, time, glow and combo back to the view model, so the same file can be driven or read by a host app. A demo mode lets the jar play itself for attract screens.

Result
One small .riv file that plays as a real game in the browser, with the art, animation and logic all inside Rive.
0 likes · 1 view · Nov 11, 2026
A playable Rive mini-game: Rive artboards as sprites, a Luau script running the round, and a data-bound HUD with score, lives, timer and combos.