[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-112898":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":15,"starSnapshotCount":15,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},112898,"petalwake","jjcm\u002Fpetalwake","jjcm","5.2 \"one\" shot game",null,"Python",118,25,57,1,0,4,33,59,23,74.64,"MIT License",false,"main",true,[],"2026-11-12 01:45:32","2026-11-23 14:36:14","Warning: Complete slop. I haven't read a single line of this repo. -Jacob\n\n# Petalwake\n\n*A broom, an island, a good wind.*\n\nPetalwake is a small browser game about flying low and fast over flower meadows, sea cliffs and\nopen water, and about what the air does behind you. The broom sheds a simulated pair of wake\nvortices, and the world answers to them: petals are wound up and carried along, grass is laid\nover, spray is torn off the sea, and the flowers you pass are left with fewer petals, the faster\nyou went by.\n\nThe island has people on it. Larkhaven is a harbour town of about a hundred hand-modelled\nbuildings on the south shore; Cairnwick is a village on the northern cliffs; farms, mills and a\nbeacon stand out in the meadows. A quarter of the buildings have somewhere high to set down: a\ntower gallery, a roof terrace, a lighthouse walk. Land there to deliver the parcel you are\ncarrying and pick up the next.\n\n**Play it: \u003Chttps:\u002F\u002Fpetalwake.non.io\u002Fv2>** (a desktop browser with WebGL2; the first load is about 95 MB).\nThe first version, from before the towns, is still at \u003Chttps:\u002F\u002Fpetalwake.non.io>.\n\n![Sprinting over the meadow with petals wound into the wake](screenshots\u002Fmeadow_wake.jpg)\n\n\u003Cp>\n  \u003Cimg src=\"screenshots\u002Fisland.jpg\" width=\"49%\" alt=\"The island from out at sea\">\n  \u003Cimg src=\"screenshots\u002Fsea_spray.jpg\" width=\"49%\" alt=\"Spray torn off the water behind the broom\">\n  \u003Cimg src=\"screenshots\u002Ffjord_waterfall.jpg\" width=\"49%\" alt=\"The fjord and its waterfall\">\n  \u003Cimg src=\"screenshots\u002Fmeadow_track.jpg\" width=\"49%\" alt=\"Three passes at three speeds: the faster the pass, the more petals are gone\">\n  \u003Cimg src=\"screenshots\u002Flighthouse.jpg\" width=\"49%\" alt=\"The lighthouse on its sea stack\">\n  \u003Cimg src=\"screenshots\u002Fstone_circle.jpg\" width=\"49%\" alt=\"Standing stones in the meadow\">\n\u003C\u002Fp>\n\n![Larkhaven from the sea](screenshots\u002Flarkhaven_harbour.jpg)\n\n\u003Cp>\n  \u003Cimg src=\"screenshots\u002Flarkhaven_square.jpg\" width=\"49%\" alt=\"The market square in Larkhaven\">\n  \u003Cimg src=\"screenshots\u002Flarkhaven_above.jpg\" width=\"49%\" alt=\"The square, the walled orchard and the Crown on its hill\">\n  \u003Cimg src=\"screenshots\u002Flanding_approach.jpg\" width=\"49%\" alt=\"Coming in to land on the Star-gazer's Tower, its gallery lit up\">\n  \u003Cimg src=\"screenshots\u002Flanding_landed.jpg\" width=\"49%\" alt=\"Landed on the Couriers' Guild, over the market square\">\n  \u003Cimg src=\"screenshots\u002Fdelivery_beacon.jpg\" width=\"49%\" alt=\"A gold light over the tower the parcel is for\">\n  \u003Cimg src=\"screenshots\u002Fkickflip.jpg\" width=\"49%\" alt=\"A kickflip along the quay\">\n  \u003Cimg src=\"screenshots\u002Fcairnwick.jpg\" width=\"49%\" alt=\"Cairnwick, the village on the northern cliffs\">\n  \u003Cimg src=\"screenshots\u002Ffarmstead.jpg\" width=\"49%\" alt=\"A farm and its orchard out in the meadows\">\n  \u003Cimg src=\"screenshots\u002Fplace_kettle_pools.jpg\" width=\"49%\" alt=\"The Kettle Pools, one of twelve hidden places\">\n  \u003Cimg src=\"screenshots\u002Fshore_crabs.jpg\" width=\"49%\" alt=\"Crabs on the south beach\">\n\u003C\u002Fp>\n\n## Controls\n\n| | |\n|---|---|\n| \u003Ckbd>W\u003C\u002Fkbd> \u003Ckbd>S\u003C\u002Fkbd> or \u003Ckbd>↑\u003C\u002Fkbd> \u003Ckbd>↓\u003C\u002Fkbd> | dive, climb |\n| \u003Ckbd>A\u003C\u002Fkbd> \u003Ckbd>D\u003C\u002Fkbd> or \u003Ckbd>←\u003C\u002Fkbd> \u003Ckbd>→\u003C\u002Fkbd> | bank |\n| \u003Ckbd>Shift\u003C\u002Fkbd> | ride the gust (boost) |\n| \u003Ckbd>Space\u003C\u002Fkbd> | ease up (brake) |\n| \u003Ckbd>Space\u003C\u002Fkbd> \u003Ckbd>Space\u003C\u002Fkbd> | land, when a landing place lights up near you; \u003Ckbd>Space\u003C\u002Fkbd> again to take off |\n| \u003Ckbd>Q\u003C\u002Fkbd> | kickflip, once you have caught ten wind seeds |\n| \u003Ckbd>J\u003C\u002Fkbd> | the journal of treasures found |\n| Mouse | click the view to steer with it; left button boosts, right button brakes |\n| \u003Ckbd>C\u003C\u002Fkbd> | camera: chase, low, far |\n| \u003Ckbd>I\u003C\u002Fkbd> | invert pitch |\n| \u003Ckbd>P\u003C\u002Fkbd> | hide the HUD |\n| \u003Ckbd>M\u003C\u002Fkbd> | mute |\n| Gamepad | left stick steers, right trigger or A boosts, left trigger or B brakes |\n\nThere is no way to fail. A dive rounds itself out and lands with a bounce, walls push you off, and\nthe wind turns you home if you wander too far out to sea. Glowing wind seeds are scattered along\nthe island's best lines; catching one tops up the gust.\n\nThere is always one parcel to deliver. A gold light stands over the tower it is for, and the\ncompass points the way: sometimes a hop across town, sometimes a flight to the other end of the\nisland. Twelve odd places are hidden around the coast and the hills, each with its own plants and\na treasure to find; the journal keeps hints for the ones you have not found. Down on the shore,\nthe rocks are crusted with barnacles and the crabs run for it when you come by.\n\n## Run it locally\n\nThere is no build step: the page loads ES modules straight from `src\u002F`.\n\n```bash\npython3 tools\u002Fserve.py\n```\n\nThen open \u003Chttp:\u002F\u002Flocalhost:6280>. Any static file server works just as well (it has to be served\nover HTTP; opening `index.html` from disk will not load the modules).\n\nOptions in the URL: `?q=low|medium|high` sets the meadow density, `?dpr=1.5` sets the pixel ratio,\n`?noscale` turns off the automatic resolution scaling, `?play` skips the title screen.\n\nIt has been developed and checked in Chrome only.\n\n## How it works\n\nEverything is vanilla JavaScript on [three.js](https:\u002F\u002Fthreejs.org) r187 (WebGL2), with custom\nshaders for nearly all of it.\n\n- **The wake** ([src\u002Ffx\u002Fvortex.js](src\u002Ffx\u002Fvortex.js)). A ring of 256 cross-sections is laid down\n  behind the broom, each holding a counter-rotating pair of vortex cores. The cores drive each\n  other and their mirror images under the ground, so the pair sinks and then runs apart along the\n  deck; they fatten and weaken with age, drift on the wind, and are shed unsteadily so no two\n  stretches are alike. The ring starts tight at the broom and opens up behind it.\n- **What the wake does.** Particles (petals, leaves, spray, grit) sample the vortices on the CPU\n  ([src\u002Ffx\u002Fparticles.js](src\u002Ffx\u002Fparticles.js), [src\u002Ffx\u002Fwindfx.js](src\u002Ffx\u002Fwindfx.js)). The same\n  trail is drawn as a ribbon into two top-down maps: a scrolling field that grass, flowers, trees\n  and water read to lean, thrash and foam ([src\u002Ffx\u002Fwake.js](src\u002Ffx\u002Fwake.js)), and an island-wide\n  map of how many petals each spot has lost ([src\u002Ffx\u002Fstrip.js](src\u002Ffx\u002Fstrip.js)).\n- **The meadow** ([src\u002Fworld\u002Fmeadow.js](src\u002Fworld\u002Fmeadow.js)). Grass and flowers are placed on the\n  GPU around the camera. Flowers form one continuous field that thins by rank with distance, and\n  drop their petals one at a time as the map above fills in.\n- **The island** ([src\u002Fworld\u002Fterrain.js](src\u002Fworld\u002Fterrain.js),\n  [tools\u002Fterrain\u002Fbake.py](tools\u002Fterrain\u002Fbake.py)). A 6 km square heightfield, 4096 samples a side,\n  baked offline: stratified sea cliffs, a fjord, droplet erosion, a river and its waterfall, flower\n  drifts, and the light and shadow maps. It is drawn as a CDLOD quadtree with stochastic texture\n  sampling to hide tiling.\n- **Sea, river, sky** ([src\u002Fworld\u002Fwater.js](src\u002Fworld\u002Fwater.js),\n  [src\u002Fworld\u002Friver.js](src\u002Fworld\u002Friver.js), [src\u002Fworld\u002Fclouds.js](src\u002Fworld\u002Fclouds.js)). Gerstner\n  swell with shore surf and reflections; ray-marched clouds baked into a sky texture at load.\n- **The towns** ([src\u002Fworld\u002Ftown.js](src\u002Fworld\u002Ftown.js), [tools\u002Ftown](tools\u002Ftown)). Every building\n  is a short Python script that models it in Blender with a small kit of parts (walls with real\n  openings, stepped-course roofs, galleries, chimneys, signs): see\n  [tools\u002Ftown\u002FREADME.md](tools\u002Ftown\u002FREADME.md). A layout script seats them along hand-drawn\n  streets, the terrain is cut and filled to suit (the quay, the harbour basin, the moles), and the\n  lot is packed into quantised chunks with three levels of detail, a baked sun shadow map per\n  town, and a height grid for collisions.\n- **Errands** ([src\u002Fgame](src\u002Fgame)). Landing places, the approach and the dismount, deliveries,\n  and the kickflip.\n- **Hidden places and shore life** ([src\u002Fworld\u002Fplaces.js](src\u002Fworld\u002Fplaces.js),\n  [src\u002Fworld\u002Fshore.js](src\u002Fworld\u002Fshore.js)). Twelve dressed sites with a treasure each; barnacles,\n  weed and crabs along the coast.\n- **Flight and camera** ([src\u002Fplayer\u002Fflight.js](src\u002Fplayer\u002Fflight.js),\n  [src\u002Fplayer\u002Fcamera.js](src\u002Fplayer\u002Fcamera.js)). An arcade model tuned for skimming; the chase\n  camera closes in when you slow down and pulls back when you sprint.\n- **Frame** ([src\u002Fcore\u002Fpipeline.js](src\u002Fcore\u002Fpipeline.js)). HDR with MSAA, camera motion blur with\n  the rider and particles drawn sharp on top, bloom, god rays, a light lens pass and tonemapping.\n- **Sound** ([src\u002Faudio\u002Faudio.js](src\u002Faudio\u002Faudio.js)). Synthesised in the browser; no audio files.\n\n## Layout\n\n```\nindex.html          the page, the title screen and the HUD\nsrc\u002F                the game\n  core\u002F             shared uniforms, the frame pipeline\n  world\u002F            terrain, meadow, water, river, sky, clouds, props, seeds, towns, places, shore\n  player\u002F           flight model, camera, input, the rider\n  game\u002F             landing, deliveries, the kickflip\n  ui\u002F               the journal\n  fx\u002F               wake vortices, wake maps, particles, wind effects\n  shaders\u002F          GLSL shared by every material\n  audio\u002F            procedural sound\nassets\u002F             what the game loads: baked terrain, models, textures\nvendor\u002Fthree\u002F       three.js r187, copied unmodified from the npm package\ntools\u002F\n  serve.py          dev server (no caching, optional frame capture)\n  terrain\u002Fbake.py   builds everything in assets\u002Fterrain\n  town\u002F             the building kit, one script per building, layout, terrain fitting, packing\n  shore\u002F            builds the little kit of shells, weed, boulders and crabs\n  places\u002F           lays out the hidden places\n  gen\u002F              concept art, models and materials from fal and Meshy\n  blender\u002F          turns generated meshes into game assets\nscreenshots\u002F\n```\n\n## Rebuilding the island\n\nThe world is defined in `tools\u002Fterrain\u002Fbake.py`; change it there, not in the game.\n\n```bash\npython3 -m venv tools\u002F.venv\ntools\u002F.venv\u002Fbin\u002Fpip install -r tools\u002Frequirements.txt\ntools\u002F.venv\u002Fbin\u002Fpython tools\u002Fterrain\u002Fbake.py 4096 --keep-props\n```\n\nA bake takes a little over a minute. `--keep-props` keeps trees, stones and boulders where they\nare; leave it off to scatter them afresh.\n\n## Rebuilding the towns\n\nBuildings and street furniture are modelled by the scripts in `tools\u002Ftown\u002Fbuildings` and\n`tools\u002Ftown\u002Fprops`, run inside Blender (5.2):\n\n```bash\n\u002FApplications\u002FBlender.app\u002FContents\u002FMacOS\u002FBlender -b -P tools\u002Ftown\u002Fmake.py -- h_inn --render --blend\n```\n\nThat writes the mesh the game uses to `art\u002Ftown\u002Fbuild`, a preview picture and a `.blend` file to\nopen. `tools\u002Ftown\u002Flayout.py` says where everything stands. After changing either:\n\n```bash\ntools\u002Ftown\u002Fbuild.sh\n```\n\nplans the lots, fits the ground and packs `assets\u002Ftown`. `MODELS=1 tools\u002Ftown\u002Fbuild.sh` runs every\nbuilding script through Blender first (a few minutes), which a fresh clone needs once since\n`art\u002F` is not in the repository. Fitting the ground always starts from the untouched island bake,\nkept in `art\u002Fterrain_base`; on a fresh clone, bake the island first (above) so that the copy it\ntakes is a clean one.\n\n## Regenerating the art\n\nThe rider, the trees and stones, and the pieces of the hidden places were generated, not modelled by hand: concept images from fal\n(`nano-banana-pro`), meshes from Meshy (`meshy-7.1`, image to 3D), ground and rock materials from\nfal (`patina`), then cleaned up, weighted for wind and exported with the Blender scripts. The\nscripts in `tools\u002Fgen` read `FAL_KEY` and `MESHY_API_KEY` from the environment. Their raw output\ngoes to `art\u002F`, which is not in this repository (it is about 250 MB); the processed results in\n`assets\u002F` are.\n\n## License and credits\n\nPetalwake is released under the MIT License: see [LICENSE](LICENSE).\n\n- [three.js](https:\u002F\u002Fthreejs.org) r187, MIT. See [vendor\u002Fthree\u002FLICENSE](vendor\u002Fthree\u002FLICENSE).\n  It bundles the meshoptimizer decoder (MIT, Arseny Kapoulkine).\n- Fraunces and Karla, loaded from Google Fonts, SIL Open Font License.\n- Models and materials generated with [Meshy](https:\u002F\u002Fwww.meshy.ai) and [fal](https:\u002F\u002Ffal.ai).\n\n## How it was made\n\nPetalwake was built in a day with [Claude Code](https:\u002F\u002Fclaude.com\u002Fclaude-code) (Claude Fable 5.2)\nfrom a short brief and a reference clip for the mood, then tuned over a few rounds of play-testing\nnotes. The towns, the deliveries, the hidden places and the shore life were added the next day,\nwith the buildings modelled by a handful of helper agents working two at a time. The code, the\nshaders, the terrain bake and the asset pipeline were written by the model; the art was generated\nwith the services credited above, apart from the buildings, which are modelled in code.\n","Petalwake 是一款基于 WebGL2 的浏览器端飞行模拟游戏，玩家操控扫帚低空高速掠过岛屿景观，实时生成气流尾迹并影响环境——花瓣被卷起、海浪飞溅、草叶倾伏。核心特点是物理驱动的流体交互可视化、手绘风格的微型开放世界（含两座城镇、农田、灯塔等可降落点）及包裹递送玩法。适合追求轻量级沉浸式飞行体验、环境响应式交互与诗意数字景观探索的玩家。",2,"2026-11-24 04:44:31","CREATED_QUERY"]