Experiment with PHP 8.2, Symfony 6.3, Websocket about building a realtime game template.
docker compose upsymfony server:startphp bin/console GameServerCommand
WebsocketsDemo.mp4
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).