Giter Club home page Giter Club logo

impsock's Introduction

Impact Socket.IO Plugin

Socket.IO Plugin for the Impact Game Engine

This plugin provides basic realtime multiplayer interaction within games made with the Impact Game Engine.

Requirements

You'll need NodeJS. A NodeJS based Socket.IO server, and a Javascript Socket.IO client are included in the example app.

You'll also need to accept that this isn't a one-size-fits-all solution. If it works out of the box, that's fantastic!

Example App

Included in this repo is a basic sample app. To get it running, opening a terminal:

%> cd path/to/this/repo/example

%> node server.js

Now open up a browser and go to http://localhost:3000

You'll see a dude.

Open up anothe browser and go to http://localhost:3000

In the first browser you'll see a pale looking dude. In the second browser you'll still only see one dude. There's a bug there.

In the first browser, press W, S, A, or D. The second browser will now have two dudes, one of them is the dude you're controlling from the first browser.

Usage

  1. Study the example app. The various methods in example/lib/main.js are pretty crucial.
  2. Copy the impsock.js file into your lib/plugins/ directory.
  3. Add it to the list of required modules as plugins.impsock in your main game file.

impsock's People

Contributors

elbowdonkey avatar

Watchers

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