Skip to content

Superpowers Test for socket IO in the upcoming global game jam.

Notifications You must be signed in to change notification settings

ChristopherBlackman/symmetrical-palm-tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to symmetrical palm tree

  • this is the testing library for game jam 2017,

Plans to implement

  • get a connection with some kind of socket server
  • get a connection to the twitch irc servers and authenticate
  • merge both programs

Install

  • node
  • python 2.7 >
  • g++
  • Setting up the twitch bot requires one to edit the config_dist.js file and to fill in channel, username and password( not your actual password)
# cd into js
npm install 
node irc.js

Here is an example on how to setup a socket io connection in the Superpowers library as of 2017

class ScriptBehavior extends Sup.Behavior {
    x = io( 'http://localhost:2406/' );
    name = "A_Computer";
    awake() {
        this.x.on("message",this.messages);

        this.x.emit("intro",this.name);
        this.x.emit('message',"hello world");
    }
    messages(data){
        Sup.log(data);
    }
    update() {

    }
}
Sup.registerBehavior(ScriptBehavior);

About

Superpowers Test for socket IO in the upcoming global game jam.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published