Update server.js
This commit is contained in:
parent
192cc73c9d
commit
1c15057ddc
1 changed files with 2 additions and 2 deletions
|
|
@ -6,8 +6,8 @@ const io = require('socket.io')(http);
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
|
|
||||||
const initialPixelColor = '#FFFFFF'; // Default color: White
|
const initialPixelColor = '#FFFFFF'; // Default color: White
|
||||||
const canvasWidth = 50;
|
const canvasWidth = 200;
|
||||||
const canvasHeight = 50;
|
const canvasHeight = 200;
|
||||||
let pixels = new Array(canvasWidth * canvasHeight).fill(initialPixelColor);
|
let pixels = new Array(canvasWidth * canvasHeight).fill(initialPixelColor);
|
||||||
let totalPixelsPlaced = 0; // Counter for total pixels placed by everyone
|
let totalPixelsPlaced = 0; // Counter for total pixels placed by everyone
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue