fffiloni commited on
Commit
4f69c26
·
1 Parent(s): e6e96e0

Update public/sketch.js

Browse files
Files changed (1) hide show
  1. public/sketch.js +4 -2
public/sketch.js CHANGED
@@ -22,6 +22,9 @@ function preload(){
22
  }
23
 
24
  function setup() {
 
 
 
25
  const socket = io();
26
  // client-side
27
  socket.on("connect", () => {
@@ -41,8 +44,7 @@ function setup() {
41
  AS.create_new_frame();
42
  AS.display_frame(0);
43
  }
44
- Cursor = new OrientedCursor('canvas');
45
- Cursor.catchCursor();
46
 
47
  Pencil = new BrushPoint('pencil', 0, 0);
48
  brushesPoints.push(Pencil);
 
22
  }
23
 
24
  function setup() {
25
+ Cursor = new OrientedCursor('canvas');
26
+ Cursor.catchCursor();
27
+
28
  const socket = io();
29
  // client-side
30
  socket.on("connect", () => {
 
44
  AS.create_new_frame();
45
  AS.display_frame(0);
46
  }
47
+
 
48
 
49
  Pencil = new BrushPoint('pencil', 0, 0);
50
  brushesPoints.push(Pencil);