{"repo":"prnthh/react-three-game","free":true,"listed":false,"github":"https://github.com/prnthh/react-three-game","clone":"git clone https://github.com/prnthh/react-three-game.git","description":"Batteries included game engine for react-three-fiber.","language":"TypeScript","stars":26,"topics":["rapier","rapier3d","react-three-fiber","react-three-fiber-game","three-js","game-engine"],"license":null,"category":"game-templates","readme_excerpt":"react-three-game Serializable prefab documents for React Three Fiber scenes and games. Built with three.js, React Three Fiber, and Drei. - Website: https://prnth.com/react-three-game - Editor: https://prnth.com/react-three-game/editor - Starter: https://github.com/prnthh/react-three-game-starter The model React Three Game has four scopes: Scope Purpose API --- --- --- Scene The outer R3F scene and Edit/Play mode useScene() Prefab One serializable document with local nodes and shared materials usePrefab() Node One entity in a prefab useNode() , useNodeObject() Component A reusable rendering or gameplay capability registerComponent() A scene can compose many prefab documents. Child prefabs share the outer scene while keeping their node ids, materials, and mutations local to their document. Install Crashcat physics is available from the optional plugin entrypoint: 1. Describe a prefab A prefab stores materials once and composes entities from component data. 2. Mount the scene GameCanvas supplies the WebGPU R3F canvas. PrefabRoot mounts the document. Passing a new data object loads that prefab. Runtime children can be composed inside PrefabRoot : 3. Understand component composition Components compose using the same parent-child model as R3F: Role Built-ins Result --- --- --- Transform Transform Outer node position, rotation, and scale Object Mesh , Model , Sprite , Text , lights, Camera Three.js object for the entity Attachment Geometry , BufferGeometry , Material Geometry and ma","default_branch":null,"files":null,"tree":[],"storefront":"/r/prnthh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/prnthh/react-three-game/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}