Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alecdwm/webtron
A browser-based multiplayer implementation of the classic Tron Lightcycles arcade game.
https://github.com/alecdwm/webtron
multiplayer-browser-game rust-gamedev tron-lightcycles
Last synced: about 2 months ago
JSON representation
A browser-based multiplayer implementation of the classic Tron Lightcycles arcade game.
- Host: GitHub
- URL: https://github.com/alecdwm/webtron
- Owner: alecdwm
- License: mit
- Created: 2016-01-11T12:35:01.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T04:37:55.000Z (almost 2 years ago)
- Last Synced: 2024-04-10T21:54:41.806Z (9 months ago)
- Topics: multiplayer-browser-game, rust-gamedev, tron-lightcycles
- Language: Rust
- Homepage: https://tron.owls.io
- Size: 3.31 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 25
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [![webtron](client/src/img/webtron.svg)](https://tron.owls.io)
A browser-based multiplayer implementation of the classic Tron Lightcycles arcade game.
[![a screenshot of an in-progress webtron game](screenshot.png)](https://tron.owls.io)
## Building the server binary from source
1. Install [bun](https://bun.sh) for building the bundled web client.
1. Install [rustup](https://www.rust-lang.org/tools/install).
1. Install the latest stable rust toolchain with `rustup toolchain install stable`.
1. Clone the project locally with `git clone [email protected]:alecdwm/webtron.git`.
1. Change to the cloned directory with `cd webtron`.
1. Build the project with `cargo build --release`.The server binary will be located at `target/release/webtron`.
## Running the server in development
1. Install [cargo-watch](https://github.com/passcod/cargo-watch).
1. Clone the project locally with `git clone [email protected]:alecdwm/webtron.git`.
1. Change to the cloned directory with `cd webtron`.
1. Run the server (and automatically restart it on code changes) with `cargo watch -i 'client/**' -x fmt -x run`.
- If you don't have `cargo-watch`, you can install it with `cargo install cargo-watch`
1. In another terminal, change to the client subdirectory with `cd webtron/client`.
1. Run the client development server with `bun dev`.The web client will be available at [http://localhost:3000](http://localhost:3000).