https://github.com/fibo/tris3d
Tic Tac Toe in 3D
https://github.com/fibo/tris3d
game threejs
Last synced: 4 months ago
JSON representation
Tic Tac Toe in 3D
- Host: GitHub
- URL: https://github.com/fibo/tris3d
- Owner: fibo
- License: mit
- Created: 2025-08-22T13:12:53.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-09-29T08:28:03.000Z (10 months ago)
- Last Synced: 2025-10-14T13:04:47.708Z (9 months ago)
- Topics: game, threejs
- Language: JavaScript
- Homepage: https://tris3d.inversive.net
- Size: 390 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tris3D
> Tic Tac Toe in 3D
## Launch locally
Install dependencies and run demo.
```shell
npm install
npm run demo
```
To try out multiplayer mode, launch server with
```shell
npm run server
```
## Showcase
Take a look to the pages of the app with
```shell
npm run showcase
```
## Progressive Web App
### Environment
To build and deploy the following environment variables are needed
- `BUCKET`
- `WEB_SOCKET_URL`
For instance, these are the default values for [tris3d.inversive.net](https://tris3d.inversive.net):
```shell
export BUCKET=tris3d.inversive.net
export WEB_SOCKET_URL=ws://tris3d.inversive.net:3456
```
### Build
Build the PWA with
```shell
npm run build
```
Generated files are in _pwa/out_ folder.
You can preview the PWA with any static file server, for example launch `npx http-server pwa/out`.
### Deploy
To deploy the PWA you need AWS CLI and the environment variable properly set.
Deploy the PWA with
```shell
npm run deploy
```
This will deploy only index.html and JS files.
To deploy whole PWA launch `npm run deploy -- all`.
## Credits
Many thanks to Mathias Lasser for code inspiration!