diff --git a/README.md b/README.md index f47efd6..8deb6b7 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,9 @@ -# Game Test +# Shinespark -A Bevy game, editable in the [jackdaw](https://github.com/jbuehler23/jackdaw) editor. - -- `cargo run` plays the game standalone; no editor required. -- Open the folder in jackdaw to author scenes, then hit Play. The - editor builds its own artifacts into `.jackdaw/` (gitignored) and - never modifies your manifest or lockfile. -- Gameplay lives in `src/lib.rs` (`GamePlugin`); authored scenes live - in `assets/*.bsn`. -- Components you derive `Reflect` on appear in the editor's inspector - automatically; no registration code is needed. +Fancy heavily advanced platform fighting game ## Direct P2P Debugging -The debug match can be run as two processes over UDP. Each process uses a -different local port, and remote player declarations are keyed by the GGRS -player handle: - ```text # Process 1 owns player 0 and listens on 7000. cargo run -- --debug-match --players 2 --local-port 7000 \ @@ -26,7 +13,3 @@ cargo run -- --debug-match --players 2 --local-port 7000 \ cargo run -- --debug-match --players 2 --local-port 7001 \ --net-player 0=127.0.0.1:7000 --net-player 1=local ``` - -Without `--net-player`, all requested players are local. This direct UDP -configuration is intentionally separate from match selection so a future -lobby provider can supply the same player roles and addresses. diff --git a/launch_localtest.sh b/launch_localtest.sh new file mode 100755 index 0000000..8f03849 --- /dev/null +++ b/launch_localtest.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +FIRST="cargo run -- --debug-match --players 2 --local-port 7000 \ + --net-player 0=local --net-player 1=127.0.0.1:7001" +SECOND="cargo run -- --debug-match --players 2 --local-port 7001 \ +--net-player 0=127.0.0.1:7000 --net-player 1=local" + +(trap 'kill 0' SIGINT; $FIRST & $SECOND) \ No newline at end of file