Giter VIP home page Giter VIP logo

zergball's Introduction

ZergBall

The inspiration behind this project came from the wish to learn server side web stuff. So I decided to come up with a project to help me learn. The project I came up with was a multiplayer soccer game that allows unlimited number of players (or at least until the server catches on fire) to play at the same time on the same field. I chose NodeJS for the server platform, it uses javascript so it was easier to get into and its also really good for handling a flood of requests going back and forth (players sending in their location, server sending them back everyone else's location). The connections between players are facilitated by socket.io since I needed to minimize latency. I tried AJAX at first but the lag was intolerable (might be that I did something wrong too). The file serving is done by express which made it super easy to set up a simple web server that works well. Also, I left all files "visible" on purpose so that people can explore and see how it works. Files can be accessed by typing their location in the folder structure so server.js file for example is at www.zergball.com/server.js or client.js file at www.zergball.com/www/js/client.js. I chose OpenShift for hosting as they host NodeJS, they have a free plan and its easy to work with.

The project was a success as I learned alot in the process. Also, I think the game itself came out pretty quite cool (If I could only get more traffic on it).

The finished project can be seen at www.zergball.com or at http://zergball-rndm.rhcloud.com when the domain expires

PS: OpenShift powers it's free tier VMs down after a while so the page might not load at first. Just refresh the page a couple of times if that happens and it should come up.

PS: This project is no longer hosted anywhere. Clone the repository and run it locally to check it out.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.