Agar.io clone with PHP backend.
PHP JavaScript CSS HTML
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
client
.gitignore
LICENSE
README.md
composer.json
config.json
gulpfile.js
hserver.php
package.json
server.php
webpack.config.js

README.md

Agar.io-php

Transplanted from agar-io clone.
Backend rewrite with PHP swoole extension

NOT FINISHED YET

  • TODO Still have problem with QuadTree. Use simple collision detection instead.

Requirements

  • PHP version > 5.3.10
  • Swoole extension for PHP

Installation

  1. Install swoole extension via pecl

    pecl install swoole
  2. Download php libs via composer

    composer install -o
  3. Download nodejs libs via npm

    npm install

Run

  1. Configure your domain in client/js/global.js with default value localhost.
  2. Run with npm start, and visit http://localhost:3000 in your browser.