Skip to content

valx76/Symfony-Websockets-Game-Experiment

Repository files navigation

Symfony-Websockets-Game-Experiment

Experiment with PHP 8.2, Symfony 6.3, Websocket about building a realtime game template.

Run the application

  • docker compose up
  • symfony server:start
  • php bin/console GameServerCommand

Preview

WebsocketsDemo.mp4

Additional information

This project is just a POC - It shouldn't be used as-is since the server sends the whole world data on each message, which is heavy on the server.
Instead, it would be better to send the data at a regular interval and only send what has been modified (as well as adding client side prediction).

About

Experiment with PHP 8.2, Symfony 6.3, Websocket about building a realtime game template

Topics

Resources

License

Stars

Watchers

Forks

Contributors