Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/miohtama/mopedwarriors

A multi-player game in HTML5 and Python
https://github.com/miohtama/mopedwarriors

Last synced: 23 days ago
JSON representation

A multi-player game in HTML5 and Python

Awesome Lists containing this project

README

        

===========================
Moped Warriors
===========================

A multiplayer experiement in HTML5 and Python

Client

* HTML5

* cocos2d-javascript

* websockets-js (Flash implementation for websockets)

Server

* Tornado

* pygame

Installation
===============

Installation::

git clone blablaba
virtualenv virtualenv # use -p for force python 2.6
source virtualenv/bin/activate
easy_install Tornado
easy_install pygame


https://github.com/gimite/web-socket-js/tree/hybi-07

Running the server
====================

The server must be run as superuser, because we need to bind port 843 for Flash security.

source virtualenv/bin/activate
cd warriors
sudo python run.py

Now point your browser to

http://localhost:9999/test.html

Communications
================

* Web server is started

* Tornado listens port 80

* Browser opens index.html

* Browser downloads available game sessions from Tornado

* User may choose an existing session to join

* User may create a new sessions