Giter VIP home page Giter VIP logo

spacegame's Introduction

Spacegame

HTML5 Multiplayer Game

Constant growth in the hand-held devices and growing number of users who are getting connected to the Internet is limitless. So we require the applications that are platform independent and highly responsive. Applications which provide native like structure as well as have lowest latency. All of this is achievable under gaming application which provides platform independence that is hybrid nature, native app-like structure, lowest latency benchmarking, real time client-server communication functionality and a multi-player console for game developers.

Working:

This game is a multiplayer game which can be played on the browser. Two players can play this game. User can play game while he/she is offline. Host will execute the game loop and takes care of all the logical execution, server handles message passing between host and client. Client will only render the image i.e. will only show the object at it's side and will send keypresses.

Installation:

  1. Install node.js http://nodejs.org/download/
  2. Create a new directory
  3. Then run command >npm install socket.io
  4. After the installation create(copy) server.js file in the folder
  5. Go in the recently created directory
  6. Start the server by command>node server.js

GamePlay:

  1. Open the index.html and copy the ID
  2. Open client.html paste the ID in the given box
  3. Cascade the windows side by side
  4. Use 'arrow keys' to move the Red ship and 'M' to fire
  5. Use 'WAD' to move the Blue ship and 'Z' to fire
  6. Offline GamePlay: User will only require index.html

Game rules:

  1. Survival of the fittest
  2. Avoid asteroids
  3. Power up by colliding with the powers
  4. Shield - Ship won't destroy when collided with asteroid
  5. Strike - Faster laser
  6. Ship only use booster to move, to move ship in opposite direction user have to turn the ship (No brakes)

spacegame's People

Contributors

a1j0 avatar omkarkhair avatar

Stargazers

 avatar

Watchers

Mayur avatar

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.