Skip to content

satelllte/r3f-gravity-ball

Repository files navigation

Gravity Ball

Simple game with @react-three/fiber

NOTE: this is a simple draft, not a final product

Local development

Set Node.js version specified in .nvmrc file:

nvm use

(Optional) Create a file with environment variables for debugging:

cp .env.example .env.local

Run the development server:

npm run dev

Build for production

Build the project (it also runs ESLint & TypeScript checks):

npm run build
npm run export

Once built, it can be previewed via:

npm run prod