This is an online game using peer-to-peer connections and iroh without a server.
This project incorporates features from iroh to enable peer-to-peer connections, inspired by the implementation in extreme_bevy and matchbox.
To run the native version, execute the following commands:
nix develop
cargo runAfter running, retrieve the iroh id from the log.
cargo run -- -i xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxIf you are using Nix, you can also run the application without clone:
nix run github:yadokani389/online-breakoutThis can be used instead of cargo run.
You can play here! https://yadokani389.github.io/online-breakout/
First, access this link and retrieve the iroh id from the Console log.
Next, append # and the iroh id to the link and open it in a new window to connect.
(e.g., https://yadokani389.github.io/online-breakout/#xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx)
To run the web version, execute the following commands:
nix develop
cargo run --target wasm32-unknown-unknown