iozheg / b-castle

Simple Box2d game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

b-castle

Simple Box2d network game.

Two players controls cannons. Aim: destroy opponent.

This is simple game uses Javascript Box2D library for client side, nginx as proxy and Tornado Framework as websocket server. Currently using Javascript ES6, nginx 1.10.3, Tornado 4.5.2, python 3.5.3.

FEATURES

  • Two players.
  • Can be played on the same computer or different.
  • Random destuctable terrain.
  • Wind force changes every turn.

HOW TO USE

  1. Configure nginx using cgi/tornado config.
  2. Start server: run 'python3 server.py' from cgi/
  3. In browser enter server's IP (or localhost)
  4. Second player can connect to server on the same computer in other browser tab or window or another browser. Also second player can connect from another computer.
By default websocket port: 8888. To change: change at cgi/server.py, cgi/tornado and www/connector.js

Screenshots:


About

Simple Box2d game


Languages

Language:JavaScript 69.9%Language:Python 23.9%Language:HTML 4.8%Language:CSS 1.3%