Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/satelllte/r3f-gravity-ball

Simple game with @react-three/fiber
https://github.com/satelllte/r3f-gravity-ball

casual-game game nextjs nextjs-game react-game react-games react-three-cannon react-three-drei react-three-fiber three three-js threejs use-cannon

Last synced: about 2 months ago
JSON representation

Simple game with @react-three/fiber

Awesome Lists containing this project

README

        

# 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:

```bash
nvm use
```

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

```bash
cp .env.example .env.local
```

Run the development server:

```bash
npm run dev
```

## Build for production

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

```bash
npm run build
npm run export
```

Once built, it can be previewed via:

```bash
npm run prod
```