[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115148":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":15,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":10,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":22,"hasPages":20,"topics":23,"createdAt":10,"pushedAt":31,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":16,"starSnapshotCount":16,"syncStatus":35,"lastSyncTime":36,"discoverSource":37},115148,"castle-valley","remorses\u002Fcastle-valley","remorses","A playable three.js game painted in oil brush strokes: the \"omw\" pixel-art post by @de5imulate, recreated in the browser","https:\u002F\u002Fomw-game.kimaki.dev",null,"TypeScript",95,19,56,1,0,38,12,65.7,false,"main",true,[24,25,26,27,28,29,30],"cloudflare-workers","game","oil-painting","painterly","threejs","typescript","webgl","2026-11-15 19:38:38","2026-11-22 22:34:39","# castle-valley\n\nA playable three.js game: you walk out of a dark forest, torch and sword in hand, toward a\nvillage under a castle, and fight the goblins and trolls on the way. It recreates this pixel-art clip:\nhttps:\u002F\u002Fx.com\u002Fde5imulate\u002Fstatus\u002F1947024682118488116\n\n**Play it:** https:\u002F\u002Fomw-game.kimaki.dev\n\n```bash\npnpm install\npnpm dev\n```\n\n| input | desktop | touch |\n| --- | --- | --- |\n| look | click, then move the mouse | drag the right half |\n| walk | `WASD` or arrows, `shift` runs | drag the left half |\n| jump | `space` | the JUMP button |\n| swing | click, `F` or `E` | tap the right half |\n| mute | `M` | |\n\n## Creatures\n\nPacks of **goblins** and a few **trolls** roam the meadows and the paths (`src\u002Fmobs.ts`).\n\n- They see you from about 17 m, run at you and raise a club. Step back or jump before it comes down.\n- A swing of the sword strikes everything in reach before you. A goblin takes three blows, a troll nine.\n- You have five hearts. They show while you are hurt and come back when no blow has landed for a while.\n- Struck down, you start again at the forest and every creature is back at its home.\n\n## Sound\n\nShort, dry recordings in the manner of an old game (`src\u002Faudio.ts`, files in `public\u002Faudio`): steps on grass\nand on the path, the sword, the club, the cries of the creatures. Each play is pitched a little by chance, and\na troll has a goblin's voice played slower. A creature is heard from where it stands: quieter with distance,\nand to the left or right. The wind is as loud as the gust that passes, and a song plays far under it all.\n\n## How it looks painted\n\nThe whole world is made of **dabs**: single marks of a bristle brush, pinned to points in 3D. No filter makes\nthe strokes. The painter follows https:\u002F\u002Fpatch.gg\u002Fblendi\u002Foil-paint.\n\n```\nunder ── coarse geometry in flat colours: the underpainting, so nothing shows between the dabs\ndabs ─── about 2.5 million instanced cards, each one mark of the brush sheet in one mixed colour\n          face: turns to the eye and runs along a direction (leaves, bark, boughs, grass, cloud)\n          lie:  lies on its surface and runs along its grain (ground, walls, roofs, rock)\n```\n\n- **Pinned to the world.** A dab never moves, so the paint stays on things when you walk or turn.\n- **The brush** is a sheet of eight marks made in code (`src\u002Fbrush.ts`): long strokes that run dry, curved\n  strokes, pressed dabs. A light from the upper left rakes across the thick paint.\n- **Colours are mixed once**, when the world is built: a tone from a ramp, picked by light and chance. The ramps\n  are measured from the reference video (`RAMPS` in `src\u002Fpaint.ts`).\n- **Each kind of thing has its painter** (`src\u002Fthings.ts`): lobes of leaves round a dark core, bark up a trunk,\n  boughs that hang from a fir, strokes along the grain of a wall, flicks of grass.\n- **Sun and shade.** The valley's shade is drawn once from the sun. A dab takes sun or shade whole, so the\n  edge of a shadow is a ragged line of whole dabs.\n- **Wind.** Gusts cross the valley in bands: leaves and firs are pushed downwind, grass bends, torn-off leaves\n  fly past, and the clouds drift.\n- **Mist** puts distance between one row of things and the next: each dab fades by its distance from you.\n- **The finish** runs once over the picture (`src\u002Fmain.ts`): a colour grade that leans the shade to violet and\n  the light to warm yellow, the weave of the canvas, and a little varnish. It also smooths and then firms the\n  edges of the strokes. The picture is drawn at the screen's own pixels, and with fewer when frames are slow.\n- **Far away, fewer and larger dabs.** Each dab has a fixed rank. With distance only the low ranks stay and\n  grow to cover their neighbours, so strokes never swap. Small strokes use a plain variant of the\n  brush: one clean shape in one colour.\n\n- **Creatures are painted the same way.** Each part of a body is painted once and moves as a whole, so the\n  strokes stay on the creature as it walks. It is lit from straight above, which stays right as it turns.\n\nThe hands and the hearts are **pixel sprites** drawn over the world, like Doom weapons. The hands are cut from\nthe reference frame.\n\n## Deploy\n\nThe game is a static site on Cloudflare Workers (`wrangler.jsonc`): no Worker code, only the files vite builds.\n\n```bash\npnpm run deploy        # preview, on workers.dev\npnpm run deploy:prod   # https:\u002F\u002Fomw-game.kimaki.dev\n```\n\nSee `AGENTS.md` for the code layout.\n","这是一个基于 Three.js 的可交互 WebGL 游戏，将原像素艺术作品《omw》以油画笔触风格实时渲染于浏览器中。项目核心采用百万级实例化画笔笔触（dabs）构建三维场景，每个笔触固定于世界坐标、朝向相机并沿材质方向排布，结合手工调校的色彩渐变与光照模型，实现无后期滤镜的纯程序化油画效果；支持键盘\u002F触屏双模操作，包含探索、战斗、音效空间化等完整游戏循环。适用于 WebGL 图形渲染研究、程序化艺术实践、教育演示及轻量级网页游戏体验。",2,"2026-11-24 04:50:30","CREATED_QUERY"]