Transplanted from agar-io clone.
Backend rewrite with PHP swoole extension
- TODO Still have problem with QuadTree. Use simple collision detection instead.
- PHP version > 5.3.10
- Swoole extension for PHP
-
Install swoole extension via pecl
pecl install swoole
-
Download php libs via composer
composer install -o
-
Download nodejs libs via npm
npm install
- Configure your domain in
client/js/global.js
with default value localhost. - Run with
npm start
, and visit http://localhost:3000 in your browser.