Giter Site home page Giter Site logo

secret-nemesis's Introduction

Secret Nemesis

A simple framework for HTML5/JS games and apps. Uses Node.js on the server, and communicates with Socket.io

Design

  • Phat server, skinny client

    While the client should be busy making things look nice, we won't trust him, and in fact, running the game on the server makes sense.

  • Focus on simplifying the client-server conversation

    Provide a set of primitives useful for app creation, and let the framework deal with them

    Write a single codeset that plays both in the client and on the server

Client

  • Loader

    Provide the loader with a list of files, and they will be loaded before the app begins.

  • Gamestate Manager

    Use a 'switch()' function to switch to a new gamestate.

  • Require

    Simple mechanism to include other JS files as libaries

  • Loading screen

    A bar should be displayed on the screen

  • Input manager

    Input events should be accessible via a simple interface. Like:

    input.assign( 'w', 'jump' );
    input.on( 'jump',
    	function(){
    		do.stuff();
    	}
    );
    
  • Sound and image manager

    Sounds and images should be pants to load and use. Use in combination with the Loader plox

  • Client-side prediction

    Implementation of a posvec object which supports tweening and prediction

Server

  • Fat server

    The server will run all the simulation and send periodic updates to all connected clients

  • Bitchy server

    The server never replies instantly, it buffers up answers for one tick then sends them in a block. This is to avoid ping spam, and also so we can detect duplicate info

secret-nemesis's People

Contributors

bradshaw avatar

Stargazers

Space avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

jailby

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.