A Winter CMS plugin that provides a multiplayer game engine running in PHP for 2D sprite based games using HTML5 Canvas and WebSockets.
A Winter CMS plugin that provides a multiplayer game engine running in PHP for 2D sprite based games using HTML5 Canvas and WebSockets.
php >= 8.2
ext-posix
ext-pcntl
ext-sockets
composer require jaxwilko/wn-game-plugin
php artisan migrate
php artisan mix:install
php artisan mix:compile -f -p jaxwilko.game
php artisan game:publish
For a detailed installation guide including server configuration and level editing, see: Getting Started.
To run the game server with the demo level, execute:
php artisan game:serve -f -m demo
The game server can be started via the backend control panel or via the CLI (in both fg and daemonized modes). See the help page for details:
php artisan game:serve -h
If you would like to run a local demo, check out this repo.
I thought it would be funny and nobody stopped me, for more see development notes.