Star wave, its rules in Hazel
Hazel activities › One-player games · source on GitHub · hazeljs on npmVisitors from the stars come down, wanting love, and drop rainbows on the town as they come: each rainbow turns a floor of a building rainbow, more often the more visitors are in the sky. Send them hearts from your launcher: move it with ⬅️ ➡️ (or drag along the field) and send a heart with 💗, ⬆️, Enter or a tap, one in the air at a time; a visitor who gets one bursts into hearts. The goal: the last heart just after the whole town is rainbow (the meter along the top). Too soon (the town not yet all rainbow) or too late (the visitors land, or the rainbow town waits more than 8 seconds) takes one of three tries 🎈; just right, and on to the next wave. The space bar pauses. Each step, and the robot that plays it for you, are Hazel (starwave/rules/StarWave.hz).
This app needs JavaScript, and a page served over http (python3 -m http.server, then localhost).
The vocabulary the module sees (starwave/rules/preamble.hz). The listings are text, highlighted, until Edit in Hazel opens each in Hazel's own editor; an edit changes the next step (interpreted, so slower).
loading preamble.hz…
loading StarWave.hz…
hazeljs-examples · versions · Apache 2.0 (code), CC BY 4.0 (words, the icon) · by Matthew Hammer · an example for hazeljs