netfox icon indicating copy to clipboard operation
netfox copied to clipboard

Automatically host and connect on start

Open elementbound opened this issue 11 months ago • 0 comments

:sparkles: Description

Window tiling was implemented in #322, so when running games from the editor, the windows are automatically spread out on the screen. This helps a lot with starting and connecting to the game session.

As a next step, it would be nice if the game started automatically, hosting and then connecting, without user input.

This is an editor-only feature, build would not be affected.

Implementation notes

  • Autostart would use a port set in the project settings
  • Default behavior is to try to start a host, otherwise connect
  • A signal would be exposed, so games can implement their custom logic ( e.g. if more steps are required, like login )
  • If the signal is used, the default behavior should not run

Distribution

netfox.extras

elementbound avatar Feb 12 '25 21:02 elementbound