I have developed a simple HTML5 application that uses the HTML5 local storage is a list of “buy”, and can work offline, once loaded in the browser of an android phone or iPhone, you can work without internet connection:
Introduction:
I was develop one multiplayer online game “pairs game” with a node.js server , the purpose of this development is to test node.js powerfull features and asyncronous programming techniques.
this project does not uses socket.io (that is the best option to develop whit node.js) becose the “logic” of the game is very simple and with ajax long poll technique is enough to acomplish the goal. The engine of the game works with memory variables( no mysql calls) and is very fast!!, is a multi game/player server,
About the html of the page, is only one HTML file with his CSS and JS files, all the elements are stored in memory at first load page, after all is done directly with ajax calls (if you press F5 the game restarts)
The engine of the game incorporates one control that checks the origin of the url for each ajax call, to prevent using the engine to another not autorized sites.
general shema:
The logic is very simple:
On the client’s side, a long poll call is done recursively, until game is finished.
If you want to test multiplayer features or view a demo, you can simulate 2 users open 2 browser sessions, or with your friends, enjoy it: http://fyp.colome.org
this video demostrates the multiplayer features: https://www.youtube.com/watch?v=TzJ2n7D_hxU
If you want to send me a feedback or you like to add this game in your site (fully css customizable), and view only your active games and your global scorelist, I can authorize your domain, contact me: colome.disco@gmail.com
By continuing to use the site, you agree to the use of cookies. more information
The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.