├── .gitignore ├── .nvmrc ├── README.md ├── _redirects ├── config-overrides.js ├── package.json ├── public ├── favicon.ico ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json ├── models │ ├── Bamboo_3.glb │ ├── Bamboo_4.glb │ └── Ninja_Male.glb └── robots.txt ├── src ├── 3d │ └── components │ │ ├── Bamboo │ │ ├── BambooMedium.tsx │ │ └── BambooTall.tsx │ │ ├── Character │ │ └── Character.tsx │ │ └── Ninja │ │ ├── Ninja.tsx │ │ └── useHandleAnimation.ts ├── components │ └── App │ │ └── App.tsx ├── custom.d.ts ├── game │ ├── elements │ │ ├── camera │ │ │ └── components │ │ │ │ ├── Camera │ │ │ │ ├── Camera.tsx │ │ │ │ ├── ShadowHelper.tsx │ │ │ │ └── hooks │ │ │ │ │ └── useFollow.ts │ │ │ │ └── CameraProvider │ │ │ │ └── CameraProvider.tsx │ │ └── wall │ │ │ └── components │ │ │ └── Wall │ │ │ └── Wall.tsx │ ├── logic │ │ └── components │ │ │ ├── LgApp │ │ │ └── LgApp.tsx │ │ │ └── LgGame │ │ │ └── LgGame.tsx │ ├── main │ │ ├── components │ │ │ ├── Floor │ │ │ │ └── Floor.tsx │ │ │ ├── Game │ │ │ │ ├── Game.tsx │ │ │ │ └── components │ │ │ │ │ ├── GameCanvas │ │ │ │ │ └── GameCanvas.tsx │ │ │ │ │ ├── GameContents │ │ │ │ │ └── GameContents.tsx │ │ │ │ │ ├── GameEngine │ │ │ │ │ └── GameEngine.tsx │ │ │ │ │ └── InputsHandler │ │ │ │ │ └── InputsHandler.tsx │ │ │ ├── Lights │ │ │ │ └── Lights.tsx │ │ │ └── TouchHandler │ │ │ │ └── TouchHandler.tsx │ │ └── inputs │ │ │ ├── config.ts │ │ │ └── state.ts │ ├── player │ │ └── components │ │ │ ├── LgPlayer │ │ │ └── LgPlayer.tsx │ │ │ └── Player │ │ │ ├── Player.tsx │ │ │ └── hooks │ │ │ ├── useController.ts │ │ │ └── useLocalState.ts │ └── scenery │ │ └── components │ │ └── Bamboo │ │ └── Bamboo.tsx ├── index.css ├── index.tsx ├── infrastructure │ └── meshes │ │ └── uuids.ts ├── logo.svg ├── misc │ └── types.ts ├── react-app-env.d.ts ├── reportWebVitals.ts ├── setupTests.ts ├── utils │ ├── angles.ts │ ├── hooks.ts │ ├── ids.ts │ ├── numbers.ts │ └── vectors.ts └── workers │ └── logic │ ├── custom.d.ts │ ├── index.ts │ └── tsconfig.json ├── tsconfig.json └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 14.15.0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/README.md -------------------------------------------------------------------------------- /_redirects: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/_redirects -------------------------------------------------------------------------------- /config-overrides.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/config-overrides.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/package.json -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/index.html -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/manifest.json -------------------------------------------------------------------------------- /public/models/Bamboo_3.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/models/Bamboo_3.glb -------------------------------------------------------------------------------- /public/models/Bamboo_4.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/models/Bamboo_4.glb -------------------------------------------------------------------------------- /public/models/Ninja_Male.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/models/Ninja_Male.glb -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/public/robots.txt -------------------------------------------------------------------------------- /src/3d/components/Bamboo/BambooMedium.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/3d/components/Bamboo/BambooMedium.tsx -------------------------------------------------------------------------------- /src/3d/components/Bamboo/BambooTall.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/3d/components/Bamboo/BambooTall.tsx -------------------------------------------------------------------------------- /src/3d/components/Character/Character.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/3d/components/Character/Character.tsx -------------------------------------------------------------------------------- /src/3d/components/Ninja/Ninja.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/3d/components/Ninja/Ninja.tsx -------------------------------------------------------------------------------- /src/3d/components/Ninja/useHandleAnimation.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/3d/components/Ninja/useHandleAnimation.ts -------------------------------------------------------------------------------- /src/components/App/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/components/App/App.tsx -------------------------------------------------------------------------------- /src/custom.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/custom.d.ts -------------------------------------------------------------------------------- /src/game/elements/camera/components/Camera/Camera.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/elements/camera/components/Camera/Camera.tsx -------------------------------------------------------------------------------- /src/game/elements/camera/components/Camera/ShadowHelper.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/elements/camera/components/Camera/ShadowHelper.tsx -------------------------------------------------------------------------------- /src/game/elements/camera/components/Camera/hooks/useFollow.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/elements/camera/components/Camera/hooks/useFollow.ts -------------------------------------------------------------------------------- /src/game/elements/camera/components/CameraProvider/CameraProvider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/elements/camera/components/CameraProvider/CameraProvider.tsx -------------------------------------------------------------------------------- /src/game/elements/wall/components/Wall/Wall.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/elements/wall/components/Wall/Wall.tsx -------------------------------------------------------------------------------- /src/game/logic/components/LgApp/LgApp.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/logic/components/LgApp/LgApp.tsx -------------------------------------------------------------------------------- /src/game/logic/components/LgGame/LgGame.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/logic/components/LgGame/LgGame.tsx -------------------------------------------------------------------------------- /src/game/main/components/Floor/Floor.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Floor/Floor.tsx -------------------------------------------------------------------------------- /src/game/main/components/Game/Game.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Game/Game.tsx -------------------------------------------------------------------------------- /src/game/main/components/Game/components/GameCanvas/GameCanvas.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Game/components/GameCanvas/GameCanvas.tsx -------------------------------------------------------------------------------- /src/game/main/components/Game/components/GameContents/GameContents.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Game/components/GameContents/GameContents.tsx -------------------------------------------------------------------------------- /src/game/main/components/Game/components/GameEngine/GameEngine.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Game/components/GameEngine/GameEngine.tsx -------------------------------------------------------------------------------- /src/game/main/components/Game/components/InputsHandler/InputsHandler.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Game/components/InputsHandler/InputsHandler.tsx -------------------------------------------------------------------------------- /src/game/main/components/Lights/Lights.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/Lights/Lights.tsx -------------------------------------------------------------------------------- /src/game/main/components/TouchHandler/TouchHandler.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/components/TouchHandler/TouchHandler.tsx -------------------------------------------------------------------------------- /src/game/main/inputs/config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/inputs/config.ts -------------------------------------------------------------------------------- /src/game/main/inputs/state.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/main/inputs/state.ts -------------------------------------------------------------------------------- /src/game/player/components/LgPlayer/LgPlayer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/player/components/LgPlayer/LgPlayer.tsx -------------------------------------------------------------------------------- /src/game/player/components/Player/Player.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/player/components/Player/Player.tsx -------------------------------------------------------------------------------- /src/game/player/components/Player/hooks/useController.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/player/components/Player/hooks/useController.ts -------------------------------------------------------------------------------- /src/game/player/components/Player/hooks/useLocalState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/player/components/Player/hooks/useLocalState.ts -------------------------------------------------------------------------------- /src/game/scenery/components/Bamboo/Bamboo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/game/scenery/components/Bamboo/Bamboo.tsx -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/index.css -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/infrastructure/meshes/uuids.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/infrastructure/meshes/uuids.ts -------------------------------------------------------------------------------- /src/logo.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/logo.svg -------------------------------------------------------------------------------- /src/misc/types.ts: -------------------------------------------------------------------------------- 1 | export enum SyncComponentType { 2 | PLAYER, 3 | } -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/reportWebVitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/reportWebVitals.ts -------------------------------------------------------------------------------- /src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/setupTests.ts -------------------------------------------------------------------------------- /src/utils/angles.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/utils/angles.ts -------------------------------------------------------------------------------- /src/utils/hooks.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/utils/hooks.ts -------------------------------------------------------------------------------- /src/utils/ids.ts: -------------------------------------------------------------------------------- 1 | export type ValidUUID = number | string -------------------------------------------------------------------------------- /src/utils/numbers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/utils/numbers.ts -------------------------------------------------------------------------------- /src/utils/vectors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/utils/vectors.ts -------------------------------------------------------------------------------- /src/workers/logic/custom.d.ts: -------------------------------------------------------------------------------- 1 | declare module "react-nil" -------------------------------------------------------------------------------- /src/workers/logic/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/workers/logic/index.ts -------------------------------------------------------------------------------- /src/workers/logic/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/src/workers/logic/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simonghales/react-three-game-starter/HEAD/yarn.lock --------------------------------------------------------------------------------