Multiplayer Test #2

Merged
seba merged 11 commits from multiplayer-test into main 2025-05-10 21:13:42 +02:00
Owner

Websocket based with python protocol server. Could upgrade this to WebRTC at some point by using the current protocol server as signalling server.

Websocket based with python protocol server. Could upgrade this to WebRTC at some point by using the current protocol server as signalling server.
seba added 11 commits 2025-05-10 20:47:25 +02:00
...now with a GUI Theme! Players can leave a room as well. Actually
usable on mobile!
We now send out messages to all participants at the same time (or more
or less, as asyncio permits). To not fail in case we can't send the
message to one player, we ignore send-exceptions in these occasions and
hope that the `for data in self.websocket` in _handle_client() will
throw an error and kick the client out of our game.
We can now autoconnect via parameter on web, e.g. `freq=430.200`, which
then autoconnects to that frequency, creating it when it is not already
created. We also now reconnect on connection failure and display the
connection state down below.
Move "Leave" buttons always to upper right of screen. The "Get a Wav"
button now has a text that expresses better what it does depending on
the platform (save, download, share).
We now only open MIDI by default on non-Web platforms. On web, there is
an extra button to open MIDI devices. This allows us to no longer pester
users with the "allow MIDI" popup when they don't want to use MIDI.

If MIDI devices have been opened, the multiplayer part of this project
now uses it as well, in the same way the "singleplayer" part does it.
seba merged commit 0de9c11fc7 into main 2025-05-10 21:13:42 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
seba/cw-generator!2
No description provided.