fffiloni commited on
Commit
0205ab3
1 Parent(s): a428d27

Update public/sketch.js

Browse files
Files changed (1) hide show
  1. public/sketch.js +10 -10
public/sketch.js CHANGED
@@ -18,12 +18,6 @@ let hf_tkn;
18
  //-----------------------------------------------------
19
 
20
  function preload(){
21
-
22
- }
23
-
24
- function setup() {
25
-
26
-
27
  const socket = io();
28
  // client-side
29
  socket.on("connect", () => {
@@ -39,13 +33,19 @@ function setup() {
39
  Draws = new DrawHandler();
40
  AS = new AnimSys(12, 12, 30, 8);
41
 
42
-
43
-
44
- });
45
- for (let i = 0; i < 12; i++) {
46
  AS.create_new_frame();
47
  AS.display_frame(0);
48
  }
 
 
 
 
 
 
 
 
 
49
  Cursor = new OrientedCursor('canvas');
50
  Cursor.catchCursor();
51
  Pencil = new BrushPoint('pencil', 0, 0);
 
18
  //-----------------------------------------------------
19
 
20
  function preload(){
 
 
 
 
 
 
21
  const socket = io();
22
  // client-side
23
  socket.on("connect", () => {
 
33
  Draws = new DrawHandler();
34
  AS = new AnimSys(12, 12, 30, 8);
35
 
36
+ for (let i = 0; i < AS.initial_frame_nb; i++) {
 
 
 
37
  AS.create_new_frame();
38
  AS.display_frame(0);
39
  }
40
+
41
+ });
42
+ }
43
+
44
+ function setup() {
45
+
46
+
47
+
48
+
49
  Cursor = new OrientedCursor('canvas');
50
  Cursor.catchCursor();
51
  Pencil = new BrushPoint('pencil', 0, 0);