This is an example app using Bevy as a game server.
A few interesting things you can see here:
- State storage
- Background tasks
- Object-to-object communication
You can spawn multiple servers with the command:
cargo run --bin server -- 50999
Each new client will get the first seat available, if the table is full the server will create a new one.
To run the client:
cargo run --bin client PLAYER_ID
There are two handy scripts to run the server using either CockroachDB or Sqlite3: run-server-cockroach
and run-server-sqlite