• Stars
    star
    548
  • Rank 81,119 (Top 2 %)
  • Language
    JavaScript
  • Created over 13 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Realtime Mutliplayer Game Engine using Node.js / websockets for HTML5 that uses a client-server approach in which the clients send only sampled input to the server

RealtimeMultiplayerNodeJS is a framework specifically for building HTML5 multiplayer games with the Client / Server model

JSConf talk

This repo was made to coincide with this talk

https://www.youtube.com/watch?v=z1_QpUkX2Gg

Status:

This repository is not in active development, unfortunately. However I do think there are still not enough good resources for learning how to do this on the client side so this respostory will remain preserved to perhaps give people something to poke around in and borrow concepts from.

ChangeLog:
  • Updated to work with socket.io 0.9.16 (thx @brendonjohn)

Video Demo

https://vimeo.com/24149718

How to use

  1. Download this repo
  2. In the terminal, navigate to the root directory of the repo
  3. Run "npm install"
  4. Run "node js/DemoBox2D/server.js"
  5. Within another terminal, navigate to the root directory and run "python -m SimpleHTTPServer"
  6. From the browser, open "http://127.0.0.1:8000/DemoBox2DApp.html"

DemoBox2D

RealtimeMultiplayerNodeJS comes with 3 demos

DemoHelloWorld

The most basic interesting working demo I could come up with. Objects move from left to right DemoHelloWorld

DemoCircle

A demonstration of the engine's simple CircleCollision engine, which can provide you with simple collision information and fires an event when two objects collide with the two objects.
This demo also shows one implementation of having a special kind of entity which is controlled by the keyboard from a connected user. A character controlled entity
DemoCircle

DemoBox2D

This demo uses a Box2D.js implementation to create a world, and show's off the idea of synchronized physics, and taking advantage that all the simulation happens on the server.
It also shows synchronized interaction between multiple users, and an example of sending a message to the server which it interprets back into the game
DemoBox2D

More Repositories

1

ChuClone

ChuClone is a 2.5D webgl HTML5 game that uses 2D physics (Box2D), but is drawn in 3D (Three.js)
C
80
star
2

CirclePackingJS

Circle packing algorithm in javascript
JavaScript
49
star
3

NoBarrierOSC

`NoBarrierOSC` is a Node.js server (using a a set of projects mangled together) that allows all users on pageto send OSC messages to any listening application, and each other via any webkit basedbrowser via a `Node.js` webserver.
JavaScript
41
star
4

Mandala

A mandala drawing program built with Dart.
CSS
17
star
5

BulletHaven

iOS BulletML parsing
C++
17
star
6

EclipseLovesCinder

A repository containing a compiling Cinder helloworld project in Eclipse/MAKE for other people who like xcode, but gave up on it's C++ editing abilities.
C++
12
star
7

Cocos2D-UIToolbar

This is an application that contains the Cocos2D within a UIKit view controller based application, and contains a UIToolbar at the bottom
Objective-C
12
star
8

GraveDanger

GraveDanger - An arcade-puzzle game written in Javascript using Canvas. Created for Mozilla GameOn 2010 contest. We made finalist!
JavaScript
11
star
9

RibbonPaint-2.0

RibbonPaint 2.0
C++
9
star
10

iOSFlocking-For-Games

Boid Steering Behavior / Flocking on iOS
9
star
11

Berkley-CS-188-

Following along Berkley CSS 188 on Artificial Intelligence - http://inst.eecs.berkeley.edu/~cs188/fa11/lectures.html
Python
9
star
12

CinderBoid

A port of SoulWire's Boid's to C++ specifically Cinder
C
6
star
13

ChuCloneSite

The Ruby on Rails application for ChuClone - Levels / Highscores / Creators / OAuth
JavaScript
6
star
14

QuadDistrust

3D Quads controlled by human skeleton and perlin noise
C
5
star
15

EclipseAndroid_NDK_SDK

This repository contains a project that represents a solid foundation for a Android NDK+SDK hybrid project, it also contains a working Cocos2dx project as a branch on top of it. It can compile both ADT project, and a CDT project within itself, contains builder to generate JNI interface, linked header files for syntax highlighting of both Java (SDK) and C++ (NDK)
C
5
star
16

CAAT-Hello

Source code for this demo
JavaScript
4
star
17

AiClass

Following along AIClass
Java
4
star
18

JadeScreenSaver

An C++ / Cairo based screensaver for OSX
C
3
star
19

RoughSeas

C++
3
star
20

OpenSteerMirror

This repository is a 100% mirror of the OpenSteer project, Except that I've made contains a valid Xcode4 compilable Xcode project.
C++
3
star
21

iphone3d-book

Following along oreily iphone3d book
C++
3
star
22

NeruSphere

NeruSphere is a live sound visualizer for YouAndNeru.com's october show at zaka
C++
3
star
23

GravitySwarm

GravitySwarm
C++
2
star
24

NaiveEmitter

Playing around with some very simple and naive particle emitters for a related project
C++
2
star
25

UnityCI

Testing continuous integration on a unity project
C#
2
star
26

Guide-To-Meshes---CreativeApplications

A repository following along this - http://www.creativeapplications.net/tutorials/guide-to-meshes-in-cinder-cinder-tutorials/
D
2
star
27

Dart-DataStructures

Creating a data-structures library as an excuse to play with the Dart programming language
Dart
1
star
28

CinderBox2dOSC

NoBarrierOSC + Cinder + Box2D
C++
1
star
29

Pez-HelloWorld

This repository contains an xcode project that compiles Pez
C
1
star
30

WhatsCanvas

A repo for a short talk I gave introducing canvas at ogilvy
JavaScript
1
star
31

CinderLightAppTest

A repository for a project trying to figure out why gl::light does not work how i think it should work.
C++
1
star
32

Search2DBoilerplate

Some simple java boilerplate for trying out different AI search algorithms in Processing following along with http://ai-class.com
Java
1
star
33

AcceleratedCPP

Following along, AcceleratedCPP book
C++
1
star
34

Stanford-CS-107

Following along with Stanfords CS 107 - Computing Paradigms
JavaScript
1
star
35

GLIntellijIDEABandaid

GLIntelliJBandaid is a project I created so I could have some kind of at least (ghetto) autocomplete from Intellij IDEA. I made it because I'm a n00b and I need autocomplete
JavaScript
1
star
36

DJ-Visuals-

HotSugar show VJ application
C++
1
star
37

Unity-iphone-android-basic-plugin-base

A purposely barebones example of creating an android plugin, iphone plugin, and a unity project which uses them.
Java
1
star
38

Experiments

Nothing exciting, a place where I put tiny quick personal experiments when I want to test something quickly in WebGL / Obj-C / Python / JS / Java / C++ / OpenGL
Java
1
star
39

TriangleEditor

TriangleEditor is a java application that contains a grid of 90 degree triangles. This project is going to be used as part of a simple Box2D editor where users can construct type out of a grid of these triangles.
Java
1
star