This commit is contained in:
Eric Levin 2015-11-13 17:08:17 -08:00
parent 6f994d6274
commit ceca720fae
4 changed files with 39 additions and 3 deletions

View file

@ -165,14 +165,14 @@ function fire(side, value) {
});
createEntityHitEffect(intersection.intersection);
} else {
}
}, 50);
}
}
function
function
function scriptEnding() {

View file

@ -14,7 +14,6 @@ var rat = Entities.addEntity({
gravity: {x: 0, y: -9.8, z: 0},
collisionsWillMove: true,
script: scriptURL,
userData: JSON.stringify({isShootable: true});
});
function cleanup() {

View file

@ -0,0 +1,18 @@
var HOST = "localhost:5000"
// var HOST = "https://thawing-hamlet-8433.herokuapp.com/";
var client = new WebSocket("ws://" + HOST);
client.onerror - function() {
console.log("CONNECTION ERROR");
}
print("TESSST");
client.onopen = function() {
print("Web Socket client connected");
function sendMessage() {
// if(client.readyState === client.OPEN) {
client.send("HEY");
Script.setTimeout(sendMessage, 1000);
// }
}
sendMessage();
}

19
npm-debug.log Normal file
View file

@ -0,0 +1,19 @@
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'build' ]
2 info using npm@2.5.1
3 info using node@v0.12.0
4 verbose node symlink /usr/local/bin/node
5 verbose stack Error: ENOENT, open '/Users/ericlevin1/hifi/package.json'
5 verbose stack at Error (native)
6 verbose cwd /Users/ericlevin1/hifi
7 error Darwin 14.3.0
8 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
9 error node v0.12.0
10 error npm v2.5.1
11 error path /Users/ericlevin1/hifi/package.json
12 error code ENOENT
13 error errno -2
14 error enoent ENOENT, open '/Users/ericlevin1/hifi/package.json'
14 error enoent This is most likely not a problem with npm itself
14 error enoent and is related to npm not being able to find a file.
15 verbose exit [ -2, true ]