Giter VIP home page Giter VIP logo

outburst's Introduction

Outburst

Requirements

To run this project, you should have a recent stable version of NodeJS (f.ex. 0.4.11) as well as the npm package manager.

Setup

Enter the folder of this repo and install dependencies with npm. Then use make to start the server.

npm update
make

That's it! Then visit http://localhost:8000/game/ to play.

Project structure

The game server is in /gameserver. The code for the game itself is in /public/game/scripts.

Some of the gameplay is done in shared code in /public/game/shared. The rest is done only on the server, with the state transferred to dumb clients.

Game loop

Look at /public/game/shared/constants.coffee to see that currently the game processes inputs and calculates world changes 50 times per second, and sends input and world packets 25 times per second.

The game server uses setInterval to run a onTick function in /gameserver/main.coffee while the game requests an animation frame from the browser to run the onFrame function in /public/game/scripts/main.coffee.

outburst's People

Contributors

eirikurn avatar thorsteinsson avatar flassari avatar

Stargazers

Ragnar Þór Valgeirsson avatar  avatar  avatar  avatar

Watchers

 avatar  avatar James Cloos 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.