Update server.js

This commit is contained in:
Aldess 2023-11-25 18:47:22 +01:00 committed by GitHub
commit 1c15057ddc

View file

@ -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