Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/satelllte/r3f-gravity-ball
- Owner: satelllte
- Created: 2023-03-01T21:05:11.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-24T20:07:54.000Z (9 months ago)
- Last Synced: 2024-10-10T05:35:05.768Z (2 months 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: 11
- Watchers: 0
- Forks: 3
- 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
```