Update public/sketch.js
Browse files- public/sketch.js +3 -3
public/sketch.js
CHANGED
|
@@ -25,10 +25,10 @@ function preload(){
|
|
| 25 |
|
| 26 |
});
|
| 27 |
socket.on("hello", (arg) => {
|
| 28 |
-
console.log(arg)
|
| 29 |
space_uri = arg[0];
|
| 30 |
hf_tkn = arg[1];
|
| 31 |
-
|
| 32 |
});
|
| 33 |
}
|
| 34 |
function setup() {
|
|
@@ -42,7 +42,7 @@ function setup() {
|
|
| 42 |
background('white');
|
| 43 |
|
| 44 |
console.log(space_uri)
|
| 45 |
-
|
| 46 |
Draws = new DrawHandler();
|
| 47 |
AS = new AnimSys(12, 12, 30, 8);
|
| 48 |
|
|
|
|
| 25 |
|
| 26 |
});
|
| 27 |
socket.on("hello", (arg) => {
|
| 28 |
+
//console.log(arg)
|
| 29 |
space_uri = arg[0];
|
| 30 |
hf_tkn = arg[1];
|
| 31 |
+
|
| 32 |
});
|
| 33 |
}
|
| 34 |
function setup() {
|
|
|
|
| 42 |
background('white');
|
| 43 |
|
| 44 |
console.log(space_uri)
|
| 45 |
+
grAPI = new GRAPI(space_uri, hf_tkn);
|
| 46 |
Draws = new DrawHandler();
|
| 47 |
AS = new AnimSys(12, 12, 30, 8);
|
| 48 |
|