{"data":{"slug":"discovered-f174d003482b5cdddbbbaf011d34c2d93487a429ceaaa0b9","title":"Scenoco Game","summary":"Create or modify a browser game using SceNoCo, which combines three.js scenes written in TSX (without React) and Unity-style behaviours from the @scenoco-three npm packages. The skill supports building 2D or 3D web games, integrating them into React apps, and testing or debugging via window.__scenoco.","url":"https:\/\/skillshunter.net\/skills\/discovered-f174d003482b5cdddbbbaf011d34c2d93487a429ceaaa0b9","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-f174d003482b5cdddbbbaf011d34c2d93487a429ceaaa0b9","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-f174d003482b5cdddbbbaf011d34c2d93487a429ceaaa0b9.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-f174d003482b5cdddbbbaf011d34c2d93487a429ceaaa0b9\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before writing a game, review the rules card's 'How SceNoCo works' in AGENTS.md. When the game first needs something, consult the 'When the game needs it' section of the rules card or the relevant package's API.md. For unclear signatures, search node_modules\/@scenoco-three\/core\/API.md instead of reading dist\/ or the source.","instructions":"---\nname: scenoco-game\ndescription: Make or change a browser game with SceNoCo \u2014 three.js scenes in TSX (no React) and Unity's behaviours, from the @scenoco-three npm packages. Use when asked to build a 2D or 3D web game with SceNoCo, three.js and Unity-style behaviours, to add a game to a React app, or to test or debug a SceNoCo game in the browser through window.__scenoco.\n---\n\nUse SceNoCo, not React Three Fiber: `npm install @scenoco-three\/core three` (an npm org, not one package called `scenoco-three`). This skill is written for SceNoCo 1.8 or later. Without a project yet, [llms.txt](https:\/\/romarogov.github.io\/scenoco-three\/llms.txt) is the overview.\n\n# Making a game with SceNoCo\n\nSceNoCo is three.js scenes written in TSX, plus Unity's behaviours. Write it from what you know of\nthree.js and Unity; the project's rules card says where SceNoCo differs.\n\n## Read, as you need it\n\n- **Before writing:** the rules card's \"How SceNoCo works\" \u2014 `AGENTS.md` in the project, or\n  `node_modules\/@scenoco-three\/core\/AGENTS.md`.\n- **When the game first needs something:** that paragraph of the card's \"When the game needs it\",\n  its UI paragraph before any UI, or a package's own `API.md` once you install it.\n- **When a signature is unclear:** search `node_modules\/@scenoco-three\/core\/API.md`, rather than\n  reading `dist\/` or the source.\n\n## Start\n\n- **A new game:** `npm create @scenoco-three my-game`. The starter runs; replace its scene and\n  behaviours.\n- **Inside an existing Vite or React app:** `play(Main, { container })` in an effect, `game.dispose()` in\n  its cleanup, and `scenoco({ include: 'src\/game\/**' })` beside `react({ exclude: \/src\\\/game\\\/\/ })`.\n\n## Build\n\nPlan it as a Unity project: nodes, the behaviours on them, prefabs, and one behaviour that owns the\ngame's state, which every check reads. Then go round:\n\n1. **Change** scenes (`.tsx`, declarations only) and behaviours (`.ts`).\n2. **`npm run check`**, and fix each error at its line. A scene error gives the exact text to write.\n3. **Look at it running** with `npm run dev` and `window.__scenoco`. Make each browser call play a\n   stretch: a script run against the page can reload it, drive the game on a held clock and end on a\n   screenshot. Readings say whether it works; a screenshot, how it looks \u2014 take one as the browser\n   tool returns it, since one saved to a file costs another turn to read back. Tune values with\n   `set` and `reload`, then write the one that works into the file.\n\nDone is a round played through \u2014 start, win or lose, restart \u2014 that looks right, with no errors in\nthe console.\n\n## When something is off\n\n- **Blank screen:** no camera, or it looks away. `__scenoco.outline()` shows the scene.\n- **A hitch when something is picked up or spawned:** a light came or went, and three.js recompiled\n  every lit material: keep a scene's lights for its life, and dim one with `intensity = 0`.\n- **A position is off:** `node.position` is in the parent's space.\n- **The engine seems wrong:** narrow it to the smallest case that shows it, work around it, and say\n  so in your report.\n","use_cases":["Develop a 3D web game using SceNoCo and three.js","Integrate a SceNoCo game into a React application","Test and debug a SceNoCo game in the browser using window.__scenoco","Create a new game using the SceNoCo starter template with npm create @scenoco-three my-game"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/RomaRogov\/scenoco-three\/blob\/660dca405f00ff718e0d9533e26646610d3f339e\/skills\/scenoco-game\/SKILL.md","source_commit":"660dca405f00ff718e0d9533e26646610d3f339e","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T10:51:26.000000Z","updated_at":"2026-11-30T06:51:23.000000Z","seo_title":"Create 3D and 2D Web Games with SceNoCo and Unity-Style Behaviours","seo_description":"Build or modify browser games using SceNoCo, a framework that combines three.js scenes in TSX with Unity-style behaviours. Ideal for developers working with @scenocothree","seo_keywords":["SceNoCo game development","three.js TSX game","Unity-style behaviours","web game development","npm scenoco-three"]}}