Game Client
From your checked out forked version of the bevygap-spaceships repo, run the game client like this by overriding the matchmaker URL to use the service you ran in the previous step:
MATCHMAKER_URL=http://localhost:3000/matchmaker/ws cargo run -p client
When you click connect:
- game makes websocket request to
bevygap_matchmaker_httpd bevygap_matchmaker_httpdmakes request tobevygap_matchmakervia NATSbevygap_matchmakersends the client IP to edgegap, creating a sessionbevygap_matchmakerwaits for edgegap to find a gameserver for this session. Auto-deploy may be starting one up for you.- Once a gameserver is ready,
bevygap_matchmakerwill create a suitable Connect Token and respond with the token, server IP, and port. bevygap_matchmaker_httpdwill relay this to the client- Client will establish connection to the gameserver, running on edgegap.
If you got this far, find me on Discord for a high five 🙌
Don't forget to support the Bevy Foundation with all that money your game is sure to make.