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: 12 months ago
JSON representation
Simple game with @react-three/fiber
- Host: GitHub
- URL: https://github.com/satelllte/r3f-gravity-ball
- Owner: satelllte
- Created: 2023-03-01T21:05:11.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T20:07:54.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T13:43:40.775Z (about 1 year ago)
- Topics: 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
- Language: TypeScript
- Homepage: https://r3f-gravity-ball.pages.dev
- Size: 1.3 MB
- Stars: 13
- Watchers: 0
- Forks: 4
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
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
```